Kitware / TeleSculptor

TeleSculptor: Aerial Photogrammetry Application powered by KWIVER
Other
610 stars 150 forks source link

Can't build anything but Release on macOS #538

Open tfiner opened 2 years ago

tfiner commented 2 years ago

After many minutes of everything else building, Qt unhelpfully errors out with this message:

This is the Qt Open Source Edition.

You have already accepted the terms of the Open Source license.
ERROR: debug-only framework builds are not supported. Configure with -no-framework if you want a pure debug build.

My expectation is that I could build a Debug version to find out why TeleSculptor crashed (and hung). Is there a reason that TeleSculptor needs to build Qt from scratch instead of depending upon a package manager like brew (or even vcpkg?).

mleotta commented 2 years ago

See context in #537 about why macOS is poorly supported.

I don't believe I've tried to build a Debug build on macOS in quite some time. The reason that we build Qt from source is to ensure that we get the same version across all of our platforms (Windows, Linux, Mac). It's difficult to support a wide range of versions of Qt and other 3rd party packages that may vary between OSes and OS versions.

You can, in fact, configure CMake to build TeleSculptor against system packages for Qt and various other dependencies. Look for TELESCULPTOR_USE_SYSTEM_QT in the CMake options. However, this is at your own risk. It might not work if your system Qt differs too much from the version we expect. Building against system packages hasn't been tested extensively.

tfiner commented 2 years ago

I will try this route out, I already have a homebrew install of Qt5.

Thank you for all the information too.