Like said in Thread subject i cant compile opencv. Tried with one version earlier (cant try much older ones, because i need functionality from atleast 0.9.6). I have all things opencv needs:
Output from configure:
Code:
Configuration:
Compiler: g++
CXXFLAGS: -Wall -fno-rtti -pipe -O3 -DNDEBUG -fomit-frame-pointer
Install path: /usr/local
Use gtk+ 2.x: yes
Use libjpeg: yes
Use zlib: yes
Use libpng: yes
Use libtiff: yes
Use ffmpeg: yes
Use dc1394 & raw1394: no
Use v4l: yes
Build wrappers for
- Python no
SWIG is at No swig detected. Use existing files.
Build demo apps no
Then i run make:
Code:
linux:/home/godlike/opencv-0.9.7 # make
make all-recursive
make[1]: Entering directory `/home/godlike/opencv-0.9.7'
Making all in cxcore
make[2]: Entering directory `/home/godlike/opencv-0.9.7/cxcore'
Making all in src
make[3]: Entering directory `/home/godlike/opencv-0.9.7/cxcore/src'
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I../../cxcore/include -I../.. -Wall -fno-rtti -pipe -O3 -DNDEBUG -fomit-frame-pointer -MT cxalloc.lo -MD -MP -MF ".deps/cxalloc.Tpo" -c -o cxalloc.lo cxalloc.cpp; \
then mv -f ".deps/cxalloc.Tpo" ".deps/cxalloc.Plo"; else rm -f ".deps/cxalloc.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I../../cxcore/include -I../.. -Wall -fno-rtti -pipe -O3 -DNDEBUG -fomit-frame-pointer -MT cxalloc.lo -MD -MP -MF .deps/cxalloc.Tpo -c cxalloc.cpp -fPIC -DPIC -o .libs/cxalloc.o
../../cxcore/include/cxtypes.h: In function 'int cvRound(double)':
../../cxcore/include/cxtypes.h:192: error: '__m128d' was not declared in this scope
../../cxcore/include/cxtypes.h:192: error: expected `;' before 't'
../../cxcore/include/cxtypes.h:193: error: 't' was not declared in this scope
../../cxcore/include/cxtypes.h:193: error: '_mm_cvtsd_si32' was not declared in this scope
../../cxcore/include/cxtypes.h: In function 'int cvFloor(double)':
../../cxcore/include/cxtypes.h:218: error: '__m128d' was not declared in this scope
../../cxcore/include/cxtypes.h:218: error: expected `;' before 't'
../../cxcore/include/cxtypes.h:219: error: 't' was not declared in this scope
../../cxcore/include/cxtypes.h:219: error: '_mm_cvtsd_si32' was not declared in this scope
../../cxcore/include/cxtypes.h:220: error: '_mm_cvtsi32_sd' was not declared in this scope
../../cxcore/include/cxtypes.h:220: error: '_mm_cmplt_sd' was not declared in this scope
../../cxcore/include/cxtypes.h:220: error: '_mm_movemask_pd' was not declared in this scope
../../cxcore/include/cxtypes.h: In function 'int cvCeil(double)':
../../cxcore/include/cxtypes.h:232: error: '__m128d' was not declared in this scope
../../cxcore/include/cxtypes.h:232: error: expected `;' before 't'
../../cxcore/include/cxtypes.h:233: error: 't' was not declared in this scope
../../cxcore/include/cxtypes.h:233: error: '_mm_cvtsd_si32' was not declared in this scope
../../cxcore/include/cxtypes.h:234: error: '_mm_cvtsi32_sd' was not declared in this scope
../../cxcore/include/cxtypes.h:234: error: '_mm_cmpgt_sd' was not declared in this scope
../../cxcore/include/cxtypes.h:234: error: '_mm_movemask_pd' was not declared in this scope
cxalloc.cpp: In function 'void* cvAlloc(size_t)':
cxalloc.cpp:105: warning: comparison is always false due to limited range of data type
make[3]: *** [cxalloc.lo] Error 1
By the 0.9.6 version it comes abit further but still wont compile. I use gcc4 maybe this is the problem. So i tried to compile gcc-3.4.6 and compile with that, but then i got error by compiling gcc
Other things i installed and compiled worked so far good, and i compiled quite much already, so please give me some pointers to what is going on, or give me a link to a rpm for gcc3 or opencv i can use on my suse 10.0 64bit.
thx.