Menu

Mac OSX 10.6.2 - Install - Cocoa GUI Error

Help
2010-09-21
2013-05-09
  • Nobody/Anonymous

    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

     
  • Pedram Azad

    Pedram Azad - 2010-09-21

    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

     
  • Nobody/Anonymous

    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

     

Log in to post a comment.