Ask Your Question

Opencv builds on lab computer, but not laptop.

asked 2014-03-31 13:20:40 -0600

bool gravatar image

I have been struggling to install opencv 2.4.8 on my own laptop, but managed to install it on a computer in my schools computer lab using the same procedure.

When I first ran make -j8 on my laptop, terminal returned an error saying that it could not find a library called eigen which I then downloaded and included on that particular files source path. Now I am having an issue where the make command finds the file, but can not read an identifier type ' numext'.

My professor thinks that this error may appear on my computer, but not on the lab computer because of a difference in cmake or xcode versions. So far only the cmake versions differ.

                      LAB                           LAPTOP

OS macosx 10.8.5 macosx 10.8.5 Java Version 1.6 1.8 Cmake Version 2.8-10 2.8-12 xcode version 5.0.2 (5A3005) 5.0.2(5A3005)

Any ideas on how I should go about trouble shooting this problem so that I can use opencv on my laptop?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-04-09 08:06:58 -0600

atrebbi gravatar image

I think the problem may be xcode 5.1 , i can't compile opencv since last upgrade but the bug is in cmake ( i think ), maybe here : /Applications/CMake

I tried to apply this patch:

but I go on having problems...

this is the file that i have modified:

please let me know if you manage to fix and how ( maybe i'm missing something )

edit flag offensive delete link more


Ok fixed ( works for me). follow these steps: 1) start getting this file : and substitute the wrong old one ( this contains the patch ). then there are 2 important things: 2) in , change IPHONEOS_DEPLOYMENT_TARGET=7.1 ( was 6.0 ) 3) compile as root ( there are some authorizations issues tryng to create temporary files ) it should build now

atrebbi gravatar imageatrebbi ( 2014-04-13 04:57:02 -0600 )edit

You should apply some other patches: (1) change and add this at line #43 : "-DCMAKE_C_FLAGS=\"-Wno-implicit-function-declaration\" " + (2) then apply this ptach to modules/world/CMakeLists.txt:84 :

let me know ( i will provide the patch to 2.4 branch when i'm sure about this )


atrebbi gravatar imageatrebbi ( 2014-04-14 04:49:09 -0600 )edit

Question Tools


Asked: 2014-03-31 13:20:40 -0600

Seen: 442 times

Last updated: Apr 09 '14