Martchus / qtutilities

Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
GNU General Public License v2.0
39 stars 19 forks source link

How to build on macOS using Qt6? #8

Closed magnusja closed 2 years ago

magnusja commented 2 years ago
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
-- Checking for one of the modules 'cppunit>=1.13.0'
CMake Warning at /Users/magnus/Downloads/tageditor-3.7.4/c++utilities/cmake/modules/TestTarget.cmake:49 (message):
  Unable to add test target because cppunit could not be located.
Call Stack (most recent call first):
  /Users/magnus/Downloads/tageditor-3.7.4/c++utilities/CMakeLists.txt:200 (include)

-- Using template for doxygen from own (c++utilities) source directory.
CMake Warning at /Users/magnus/Downloads/tageditor-3.7.4/c++utilities/cmake/modules/Doxygen.cmake:32 (message):
  Doxygen not found, unable to add target for generating API documentation
  for c++utilities
Call Stack (most recent call first):
  /Users/magnus/Downloads/tageditor-3.7.4/c++utilities/CMakeLists.txt:201 (include)

-- Using template for config.h from own (c++utilities) source directory.
-- D-Bus notifications disabled
-- Configuring project qtutilities
-- Using default CXX11 ABI  of libstdc++ (not forcing old CX11 ABI).
-- For the check target to work, it is required to call enable_testing() on the source directory root.
-- Building with Qt Widgets GUI.
-- Building WITHOUT Qt Quick GUI.
CMake Error at /Users/magnus/Downloads/tageditor-3.7.4/qtutilities/cmake/modules/QtLinkage.cmake:67 (find_package):
  By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Gui", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Gui" (requested
  version 5.6) with any of the following names:

    Qt5GuiConfig.cmake
    qt5gui-config.cmake

  Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set
  "Qt5Gui_DIR" to a directory containing one of the above files.  If "Qt5Gui"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  /Users/magnus/Downloads/tageditor-3.7.4/qtutilities/cmake/modules/QtConfig.cmake:80 (use_qt_module)
  /Users/magnus/Downloads/tageditor-3.7.4/qtutilities/CMakeLists.txt:193 (include)

-- Configuring incomplete, errors occurred!
See also "/Users/magnus/Downloads/tageditor-3.7.4/bin/CMakeFiles/CMakeOutput.log".
See also "/Users/magnus/Downloads/tageditor-3.7.4/bin/CMakeFiles/CMakeError.log".
Warning: Already linked: /usr/local/Cellar/qt/6.3.1_1
To relink, run:
  brew unlink qt && brew link qt
Martchus commented 2 years ago

It seems like it would still look for Qt 5 which is currently the default. Maybe you just missed specifying the Qt version? See https://github.com/Martchus/tageditor#building-with-qt-gui for documentation about this. In general it would be useful if you'd share your CMake invocation. Note that I cannot help much with any macOS specific issues.

Martchus commented 2 years ago

Considering https://github.com/Martchus/tageditor/issues/87#issuecomment-1211993492 I suppose this issue can be closed.