32-bit OpenCV on OS X Lion? Possible?

后端 未结 4 403
广开言路
广开言路 2021-01-03 10:10

I\'ve been googling and trying for days now, trying to figure out how to get 32-bit OpenCV working on OS X Lion, but can just find 64-bit version.

So i have the foll

4条回答
  •  一生所求
    2021-01-03 10:43

    Here's something you can try: download OpenCV 2.4 sources and edit the CMakeLists.txt in the root directory. Around line 242 you will see:

    # ----------------------------------------------------------------------------
    #  Path for build/platform -specific headers
    # ----------------------------------------------------------------------------
    set(OPENCV_CONFIG_FILE_INCLUDE_DIR "${CMAKE_BINARY_DIR}/" CACHE PATH "Where to create the platform-dependant cvconfig.h")
    add_definitions(-DHAVE_CVCONFIG_H)
    ocv_include_directories(${OPENCV_CONFIG_FILE_INCLUDE_DIR})
    

    below the add_definitions() call, add this one:

     add_definitions(-m32)
    

提交回复
热议问题