zm_image.cpp.o] Error 1

Forum for questions and support relating to the 1.26.x releases only.
Post Reply
mehrshid
Posts: 13
Joined: Tue Apr 29, 2014 9:51 am

zm_image.cpp.o] Error 1

Post by mehrshid » Tue Apr 29, 2014 10:13 am

ffmpeg -version
ffmpeg version N-62785-g5b88149
built on Apr 29 2014 13:12:25 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-54)
configuration: --enable-gpl --enable-shared --enable-pthreads
libavutil 52. 79.100 / 52. 79.100
libavcodec 55. 59.101 / 55. 59.101
libavformat 55. 37.101 / 55. 37.101
libavdevice 55. 13.100 / 55. 13.100
libavfilter 4. 4.100 / 4. 4.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
--------------------------------------
Zoneminder Release 1.26.5
--------------------------------------
I got error :
.
.
.
/NWA/ZoneMinder-master/src/zm_image.cpp:5552: error: unknown register name ق%xmm2ق in قasmق
/NWA/ZoneMinder-master/src/zm_image.cpp:5552: error: unknown register name ق%xmm1ق in قasmق
/NWA/ZoneMinder-master/src/zm_image.cpp:5552: error: unknown register name ق%xmm0ق in قasmق
make[2]: *** [src/CMakeFiles/zm.dir/zm_image.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/zm.dir/all] Error 2
make: *** [all] Error

mehrshid
Posts: 13
Joined: Tue Apr 29, 2014 9:51 am

Re: zm_image.cpp.o] Error 1

Post by mehrshid » Tue Apr 29, 2014 12:26 pm

P.S
yasm.i386.1,1,0-1.rf is Installed.
OS: Centos

mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: zm_image.cpp.o] Error 1

Post by mastertheknife » Tue Apr 29, 2014 12:45 pm

What processor and what GCC version?
Kfir Itzhak.

User avatar
dvarapala
Posts: 53
Joined: Sat Nov 06, 2010 2:30 pm

Re: zm_image.cpp.o] Error 1

Post by dvarapala » Tue Apr 29, 2014 1:58 pm

I have had similar problems when compiling on older distros (e.g. CentOS 5, Fedora 13) - it seems older versions of GCC have problems with the function declaration attributes that are supposed to filter out the SSE stuff on machines that don't support those instructions. On those machines I have to manually remove the SSE versions of the image processing functions from the source code before it will compile.

mehrshid
Posts: 13
Joined: Tue Apr 29, 2014 9:51 am

Re: zm_image.cpp.o] Error 1

Post by mehrshid » Tue Apr 29, 2014 10:37 pm

Processor : Intel(R) Pentium 4 CPU 2.40 GHz

mehrshid
Posts: 13
Joined: Tue Apr 29, 2014 9:51 am

Re: zm_image.cpp.o] Error 1

Post by mehrshid » Tue Apr 29, 2014 10:41 pm

dvarapala
Would you please tell me how could i manually remove the SSE versions of the image processing functions from the source code before i compile it?

User avatar
dvarapala
Posts: 53
Joined: Sat Nov 06, 2010 2:30 pm

Re: zm_image.cpp.o] Error 1

Post by dvarapala » Wed Apr 30, 2014 3:12 am

The simplest way is to just delete the functions which have errors. Once those are gone you'll also have to delete the (unused) references to them elsewhere in the file.

Another option is to upgrade your machine to a newer distribution and/or newer version of GCC, which might be a better way to go if you can do it.

mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: zm_image.cpp.o] Error 1

Post by mastertheknife » Wed Apr 30, 2014 9:01 am

This error often shows up on old GCC (< 4.4) because it doesn't understand the "target" attribute. In that case, adding -mssse3 (or -msse2, depending on what your processor supports) to the CXXFLAGS will do the trick.

Its also possible to ignore those functions completely by adding -DZM_STRIP_SSE to the CXXFLAGS.
Kfir Itzhak.

mehrshid
Posts: 13
Joined: Tue Apr 29, 2014 9:51 am

Re: zm_image.cpp.o] Error 1

Post by mehrshid » Fri May 02, 2014 10:22 pm

Hello
Thanks for your guide and helps, Fixed now.
That was exactly related to old GCC, I upgrade my CentOs 5 GCC and install successfully.
I use a trick in following URL to upgrade g++44 c++ . Maybe to be useful for someone else .

trinitycore.o-r-g/f/topic/5827-update-trinitycore-on-centos-55-final/

Regards,

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests