-2

This is related to Object file was built for newer OSX version than being linked

Here on macOS Monterey M1 macbook, I'm using Qt5.15.6 from vcpkg. On qmake project I add

CONFIG+=sdk_no_version_check

QMAKE_MACOSX_DEPLOYMENT_TARGET = 12.0

And it seems I can build/run a Qt project. There is a minor issue though, at the end of build it prints

ld: warning: directory not found for option 'L/Users/user/vcpkg/installed/arm64-osx/debug/lib/manual-link'

What is this warning about? How can I fix it?

KcFnMi
  • 5,516
  • 10
  • 62
  • 136
  • 1
    Does this answer your question? [QtCreator issues ld: warning: directory not found for vcpkg Qt](https://stackoverflow.com/questions/71948575/qtcreator-issues-ld-warning-directory-not-found-for-vcpkg-qt) – Alexander Neumann Feb 13 '23 at 18:19

1 Answers1

0
CONFIG += sdk_no_version_check
QMAKE_MACOSX_DEPLOYMENT_TARGET = 12.0

#QMAKE_APPLE_DEVICE_ARCHS = arm64

CONFIG -= debug_and_release debug_and_release_target

And remember to use Qt kit from vcpkg, not Qt kit installed with Qt online installer.

KcFnMi
  • 5,516
  • 10
  • 62
  • 136