LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2006, 10:30 AM   #1
tomazN
Member
 
Registered: May 2005
Location: Slovenia
Distribution: Suse 10.2 64bit
Posts: 127

Rep: Reputation: 16
Compiling opencv-0.9.7 in suse 10.0 64bit


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.
 
Old 04-07-2006, 11:42 AM   #2
tomazN
Member
 
Registered: May 2005
Location: Slovenia
Distribution: Suse 10.2 64bit
Posts: 127

Original Poster
Rep: Reputation: 16
Problem solved. I used CVS version which compiles fine on a 64 bit system with gcc-4.*
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling MPlayer 32bit on Fedora 4 64bit mwales Linux - Software 2 08-28-2006 05:59 AM
Newbie - Is SuSE 64bit? therealkilkenny SUSE / openSUSE 6 12-14-2005 01:07 PM
Compiling FFMPEGX, would i get 64bit in os x? MadSkillzMan Other *NIX 0 08-25-2005 08:28 PM
SuSE 9.2 64Bit w/ Quake3 Marvelloard Linux - Software 0 02-11-2005 10:08 AM
Compiling and linking 64bit code fskmh Slackware 0 01-15-2005 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration