Difference between revisions of "Opencv"

From AIRWiki
Jump to: navigation, search
(New page: == How to compile == in cmake-gui select these options<br> run cat /proc/cpuinfo and check which "sse" options are supported. Check them in cmake file<br>)
 
(How to compile)
Line 2: Line 2:
  
 
in cmake-gui select these options<br>
 
in cmake-gui select these options<br>
run cat /proc/cpuinfo and check which "sse" options are supported. Check them in cmake file<br>
+
- run cat /proc/cpuinfo and check which "sse" options are supported. Check them in cmake file<br>
 +
- edit the CMakeLists.txt file and at line 1007 put these lines
 +
                set(EXTRA_C_FLAGS_RELEASE "${EXTRA_C_FLAGS_RELEASE} -mfpmath=sse")
 +
MESSAGE(EDIT:: mfpmath=sse)
 +
  instead of
 +
    set(EXTRA_C_FLAGS_RELEASE "${EXTRA_C_FLAGS_RELEASE} -mfpmath=387")

Revision as of 10:42, 6 June 2011

How to compile

in cmake-gui select these options
- run cat /proc/cpuinfo and check which "sse" options are supported. Check them in cmake file
- edit the CMakeLists.txt file and at line 1007 put these lines

               set(EXTRA_C_FLAGS_RELEASE "${EXTRA_C_FLAGS_RELEASE} -mfpmath=sse")

MESSAGE(EDIT:: mfpmath=sse)

 instead of 
   set(EXTRA_C_FLAGS_RELEASE "${EXTRA_C_FLAGS_RELEASE} -mfpmath=387")