- I'm trying to install IVT on a Mac OSX 10.6.2. In order to set up IVT, parameters in Makefile.base are changed as detailed below (the rest of the settings are left as default):
USE_OPENGL = 1
USE_OPENCV = 1
USE_OPENCV_HIGHGUI = 1
- 'Make' process ends up with this error message:
g++ -O3 -c gui/Cocoa/CocoaImplementation.m -o build/cocoagui_implementation.o
gui/Cocoa/CocoaImplementation.m:9:24: error: cocoa/cocoa.h: No such file or directory
make: *** Error 1
Any idea of what is going on?
Thanks in advance,
Alfons
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this is strange, so far haven't heard of this problem, maybe it is 10.6.2 specific.
Could you do two things please:
1. Locate with your Finder the file "cocoa.h" and post here, where it is located on your system.
2. Try to add in IVT/src/Makefile, for the line that produces the compiler call for CocoaImplementation.m, add "-framework Cocoa", so it would then be:
1. I've found 3 entries for "cocoa.h":
/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers
2. Added "-framework Cocoa" in_ IVT/src/Makefile_ and error message persists:
g++ -O3 -framework Cocoa -c gui/Cocoa/CocoaImplementation.m -o build/cocoagui_implementation.o
gui/Cocoa/CocoaImplementation.m:9:24: error: cocoa/cocoa.h: No such file or directory
make: *** Error 1
Any idea?
Thanks,
Alfons
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
- I'm trying to install IVT on a Mac OSX 10.6.2. In order to set up IVT, parameters in Makefile.base are changed as detailed below (the rest of the settings are left as default):
USE_OPENGL = 1
USE_OPENCV = 1
USE_OPENCV_HIGHGUI = 1
USE_QT3 = 0
USE_QT4 = 0
USE_QTGUI = 0
USE_GTKGUI = 0
USE_COCOAGUI = 1
USE_REMOTEGUI = 0
- 'Make' process ends up with this error message:
g++ -O3 -c gui/Cocoa/CocoaImplementation.m -o build/cocoagui_implementation.o
gui/Cocoa/CocoaImplementation.m:9:24: error: cocoa/cocoa.h: No such file or directory
make: *** Error 1
Any idea of what is going on?
Thanks in advance,
Alfons
Hello,
this is strange, so far haven't heard of this problem, maybe it is 10.6.2 specific.
Could you do two things please:
1. Locate with your Finder the file "cocoa.h" and post here, where it is located on your system.
2. Try to add in IVT/src/Makefile, for the line that produces the compiler call for CocoaImplementation.m, add "-framework Cocoa", so it would then be:
build/cocoagui_implementation.o: gui/Cocoa/CocoaImplementation.m gui/Cocoa/CocoaImplementation.h
$(COMPILER) $(FLAGS) -framework Cocoa -c gui/Cocoa/CocoaImplementation.m -o build/cocoagui_implementation.o
Please let me know if that helped.
Pedram
Hi Pedram,
Thanks a lot for your quick respose.
I've done as you said, and:
1. I've found 3 entries for "cocoa.h":
/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers
2. Added "-framework Cocoa" in_ IVT/src/Makefile_ and error message persists:
g++ -O3 -framework Cocoa -c gui/Cocoa/CocoaImplementation.m -o build/cocoagui_implementation.o
gui/Cocoa/CocoaImplementation.m:9:24: error: cocoa/cocoa.h: No such file or directory
make: *** Error 1
Any idea?
Thanks,
Alfons
Do any of these links help you:
http://www.cocoabuilder.com/archive/cocoa/109933-cocoa-not-found.html
http://www.macosxguru.net/article.php?story=20050703101010507
Seems like something is wrong with your SDK.
Pedram