Not sure if this helps but from the FindQt4.cmake file there is the following:

IF(Q_WS_MAC)
SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} "- framework Carbon")

    # Qt 4.0, 4.1, 4.2 use QuickTime
    IF(QT_VERSION_MINOR LESS 3)
SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} "- framework QuickTime")
    ENDIF(QT_VERSION_MINOR LESS 3)

    # Qt 4.2+ use AppKit
    IF(QT_VERSION_MINOR GREATER 1)
SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} "- framework AppKit")
    ENDIF(QT_VERSION_MINOR GREATER 1)

SET(QT_QTCORE_LIB_DEPENDENCIES ${QT_QTCORE_LIB_DEPENDENCIES} "- framework ApplicationServices")
  ENDIF(Q_WS_MAC)

Also is that a linker error or a compile error? Looks like a compile error. You probably have to include the location of the Carbon Headers.


_________________________________________________________
Mike Jackson                  mike.jack...@bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio



On Aug 6, 2009, at 3:41 PM, ML wrote:

HI All,

I am continuing my learning curve.

Consider this block:

if (APPLE)
                SET(MOREFILESX_HEADERS
                        source/thirdparty/OSX/MoreFilesX/MoreFilesX.h
                )
        
                SET(MOREFILESX_SOURCES
                        source/thirdparty/OSX/MoreFilesX/MoreFilesX.c
                )
                
                FIND_LIBRARY (CARBON_LIBRARY Carbon)
                MARK_AS_ADVANCED (CARBON_LIBRARY)
                SET (EXTRA_LIBS ${CARBON_LIBRARY})
                
                ADD_LIBRARY (MoreFilesX ${MOREFILESX_SOURCES} 
${MOREFILESX_HEADERS})
                TARGET_LINK_LIBRARIES (MoreFilesX ${EXTRA_LIBS} )
ENDIF (APPLE)

I am trying to link against the Carbon Framework. I know it is not working because I am getting errors like:

/Volumes/Data/jtsm/Checkout/Universal GUI/source/thirdparty/OSX/ MoreFilesX/MoreFilesX.c: In function ‘FSGetVolParms’: /Volumes/Data/jtsm/Checkout/Universal GUI/source/thirdparty/OSX/ MoreFilesX/MoreFilesX.c:231: error: ‘HParamBlockRec’ undeclared (first use in this function)

What am I doing wrong above?

Best,

-Jason
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to