Hi,
I tried to build FreeCAD with Qt5 support to see if I have this issue,I'm on Macos 10.10.5 with MacBook Pro Retina.
My cmake without the "-DBUILD_QT5=1" works just fine and
I can build the code successfully.
I've got gt5 from homebrew:
Code: Select all
brew info qt
qt5: stable 5.7.1 (bottled), HEAD [keg-only]
Cross-platform application and UI framework
https://www.qt.io/
/usr/local/Cellar/qt5/5.7.1_1 (8,273 files, 243.7M)
Poured from bottle on 2017-01-24 at 22:19:55
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/qt5.rb
==> Dependencies
Build: pkg-config ✔
Optional: dbus ✘
==> Requirements
Build: xcode ✔
Required: macOS >= 10.8 ✔
Optional: mysql ✘, postgresql ✘
==> Options
--with-dbus
Build with dbus support
--with-docs
Build documentation
--with-examples
Build examples
--with-mysql
Build with mysql support
--with-postgresql
Build with postgresql support
--with-qtwebkit
Build with QtWebkit module
--HEAD
Install HEAD version
==> Caveats
We agreed to the Qt opensource license for you.
If this is unacceptable you should uninstall.
This formula is keg-only, which means it was not symlinked into /usr/local.
Qt 5 has CMake issues when linked
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/qt5/lib
CPPFLAGS: -I/usr/local/opt/qt5/include
PKG_CONFIG_PATH: /usr/local/opt/qt5/lib/pkgconfig
nyholkus-MacBook-Pro-5:build2 nyholku$
But my CMake fails as follows, what am I doing wrong.
Code: Select all
cmake -DBUILD_FEM_NETGEN="1" -DFREECAD_CREATE_MAC_APP="1" -DBUILD_QT5=1 ../FreeCAD-git
-- prefix: /usr/local
-- datadir: data
-- docdir: doc
-- includedir: include
-- libdir: /usr/local/lib
-- Detected Homebrew install at /usr/local
-- Boost version: 1.63.0
-- Found the following Boost libraries:
-- filesystem
-- program_options
-- regex
-- signals
-- system
-- thread
-- chrono
-- date_time
-- atomic
-- Found Xerces-C: /usr/local/lib/libxerces-c.dylib
-- PyCXX found:
-- Headers: /Users/nyholku/FreeCAD/FreeCAD-git/src
-- Sources: /Users/nyholku/FreeCAD/FreeCAD-git/src/CXX
-- -- OpenCASCADE Community Edition has been found.
-- -- Found OCE/OpenCASCADE version: 6.8.0
-- -- OCE/OpenCASCADE include directory: /usr/local/Cellar/oce/0.17.2_1/OCE.framework/Versions/0.17/Resources/../../../../include/oce
-- -- OCE/OpenCASCADE shared libraries directory:
-- VTK components: not found or used
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- Check for medfile (libmed and libmedc) ...
-- Found NETGEN version 5.3, calculated: 328448
CMake Warning at CMakeLists.txt:738 (find_package):
By not providing "FindQt5Network.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5Network", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Network" with
any of the following names:
Qt5NetworkConfig.cmake
qt5network-config.cmake
Add the installation prefix of "Qt5Network" to CMAKE_PREFIX_PATH or set
"Qt5Network_DIR" to a directory containing one of the above files. If
"Qt5Network" provides a separate development package or SDK, be sure it has
been installed.
CMake Warning at CMakeLists.txt:739 (find_package):
By not providing "FindQt5Xml.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Xml", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5Xml" with any
of the following names:
Qt5XmlConfig.cmake
qt5xml-config.cmake
Add the installation prefix of "Qt5Xml" to CMAKE_PREFIX_PATH or set
"Qt5Xml_DIR" to a directory containing one of the above files. If "Qt5Xml"
provides a separate development package or SDK, be sure it has been
installed.
CMake Warning at CMakeLists.txt:741 (find_package):
By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5Widgets", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Widgets" with
any of the following names:
Qt5WidgetsConfig.cmake
qt5widgets-config.cmake
Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
"Qt5Widgets_DIR" to a directory containing one of the above files. If
"Qt5Widgets" provides a separate development package or SDK, be sure it has
been installed.
CMake Warning at CMakeLists.txt:742 (find_package):
By not providing "FindQt5PrintSupport.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt5PrintSupport", but CMake did not find one.
Could not find a package configuration file provided by "Qt5PrintSupport"
with any of the following names:
Qt5PrintSupportConfig.cmake
qt5printsupport-config.cmake
Add the installation prefix of "Qt5PrintSupport" to CMAKE_PREFIX_PATH or
set "Qt5PrintSupport_DIR" to a directory containing one of the above files.
If "Qt5PrintSupport" provides a separate development package or SDK, be
sure it has been installed.
CMake Warning at CMakeLists.txt:743 (find_package):
By not providing "FindQt5OpenGL.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5OpenGL", but CMake did not find one.
Could not find a package configuration file provided by "Qt5OpenGL" with
any of the following names:
Qt5OpenGLConfig.cmake
qt5opengl-config.cmake
Add the installation prefix of "Qt5OpenGL" to CMAKE_PREFIX_PATH or set
"Qt5OpenGL_DIR" to a directory containing one of the above files. If
"Qt5OpenGL" provides a separate development package or SDK, be sure it has
been installed.
CMake Warning at CMakeLists.txt:744 (find_package):
By not providing "FindQt5Svg.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Svg", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5Svg" with any
of the following names:
Qt5SvgConfig.cmake
qt5svg-config.cmake
Add the installation prefix of "Qt5Svg" to CMAKE_PREFIX_PATH or set
"Qt5Svg_DIR" to a directory containing one of the above files. If "Qt5Svg"
provides a separate development package or SDK, be sure it has been
installed.
CMake Warning at CMakeLists.txt:745 (find_package):
By not providing "FindQt5UiTools.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5UiTools", but CMake did not find one.
Could not find a package configuration file provided by "Qt5UiTools" with
any of the following names:
Qt5UiToolsConfig.cmake
qt5uitools-config.cmake
Add the installation prefix of "Qt5UiTools" to CMAKE_PREFIX_PATH or set
"Qt5UiTools_DIR" to a directory containing one of the above files. If
"Qt5UiTools" provides a separate development package or SDK, be sure it has
been installed.
CMake Warning at CMakeLists.txt:746 (find_package):
By not providing "FindQt5Network.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5Network", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Network" with
any of the following names:
Qt5NetworkConfig.cmake
qt5network-config.cmake
Add the installation prefix of "Qt5Network" to CMAKE_PREFIX_PATH or set
"Qt5Network_DIR" to a directory containing one of the above files. If
"Qt5Network" provides a separate development package or SDK, be sure it has
been installed.
CMake Warning at CMakeLists.txt:747 (find_package):
By not providing "FindQt5Concurrent.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt5Concurrent", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Concurrent"
with any of the following names:
Qt5ConcurrentConfig.cmake
qt5concurrent-config.cmake
Add the installation prefix of "Qt5Concurrent" to CMAKE_PREFIX_PATH or set
"Qt5Concurrent_DIR" to a directory containing one of the above files. If
"Qt5Concurrent" provides a separate development package or SDK, be sure it
has been installed.
CMake Warning at CMakeLists.txt:750 (find_package):
By not providing "FindQt5WebKitWidgets.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt5WebKitWidgets", but CMake did not find one.
Could not find a package configuration file provided by "Qt5WebKitWidgets"
with any of the following names:
Qt5WebKitWidgetsConfig.cmake
qt5webkitwidgets-config.cmake
Add the installation prefix of "Qt5WebKitWidgets" to CMAKE_PREFIX_PATH or
set "Qt5WebKitWidgets_DIR" to a directory containing one of the above
files. If "Qt5WebKitWidgets" provides a separate development package or
SDK, be sure it has been installed.
CMake Error at CMakeLists.txt:755 (MESSAGE):
========================
Qt5 libraries not found.
========================
-- Configuring incomplete, errors occurred!
See also "/Users/nyholku/FreeCAD/build2/CMakeFiles/CMakeOutput.log".
See also "/Users/nyholku/FreeCAD/build2/CMakeFiles/CMakeError.log".
nyholkus-MacBook-Pro-5:build2 nyholku$