Difficulties using qmake on MacOS

  • Hello everyone,

    I've decided to try using QT. I've been working most of today at getting the tools set up, but after much googling and trial and error, I haven't been able to circumvent a strange error message.

    Here's what happens when I try to build my project:
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -headerpad_max_install_names -macosx_version_min 10.6.0 -o testCV.app/Contents/MacOS/testCV -lcrt1.10.6.o -L/opt/local/lib -L/opt/local/lib -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_nonfree -lopencv_objdetect -lopencv_photo -lopencv_stitching -lopencv_superres -lopencv_ts -lopencv_video -lopencv_videostab //System/Library/Frameworks/OpenGL.framework //System/Library/Frameworks/AGL.framework -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk testCV.o findEyeCenter.o helpers.o showTarget.o -framework QtWidgets -framework QtGui -framework QtCore -framework OpenGL -framework AGL -lstdc++ -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/lib/darwin/libclang_rt.osx.a -F/opt/local/Library/Frameworks
    ld: can't map file, errno=22 file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk//System/Library/Frameworks/OpenGL.framework' for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    I'm not quite sure what this means, and the -v option didn't add much insight:
    @(#)PROGRAM:ld PROJECT:ld64-241.9
    configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7m armv7em
    Library search paths:
    Framework search paths:
    ld: can't map file, errno=22 file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk//System/Library/Frameworks/OpenGL.framework' for architecture x86_64
    Segmentation fault: 11

    I'm using MacOSX 10.9.5 and LLVM 6.0 (I've updated XCode to the latest version).

    I'd be very inclined to stick with QT, since it seems quite elegant! Any help getting the build to work would be greatly appreciated.

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Can you show the content of your pro file ?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.