Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Difficulties using qmake on MacOS
QtWS25 Last Chance

Difficulties using qmake on MacOS

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    whowhatwhere
    wrote on last edited by
    #1

    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:
    /opt/local/lib
    /opt/local/lib
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib
    Framework search paths:
    /opt/local/Library/Frameworks
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/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
    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Can you show the content of your pro file ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved