Project

General

Profile

Building Wt

Added by George McFie 15 days ago

Any help wth this build issue would be very appreciated.

I am following the instructions here https://redmine.emweb.be/projects/wt/wiki/Installing_Wt_on_Ubuntu

On an Ubuntu 24.04 machine I have installed Qt 6.8.1 (to /home/bardfast/Qt) and have downloaded Wt 4.11.1 .

But when attemption to configure the build with ...

cmake ..

... I get the following cmake error ...

-- Found unsuitable Qt version "" from NOTFOUND
CMake Warning at CMakeLists.txt:288 (FIND_PACKAGE):
By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Core", but
CMake did not find one.

Could not find a package configuration file provided by "Qt5Core" with any
of the following names:

Qt5CoreConfig.cmake
qt5core-config.cmake

Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
"Qt5Core_DIR" to a directory containing one of the above files. If
"Qt5Core" provides a separate development package or SDK, be sure it has
been installed.

How do I get it to recognize the Qt6 installation?

Much appreciated.


Replies (2)

RE: Building Wt - Added by Matthias Van Ceulebroeck 15 days ago

Hello George,

the building instructions on Redmine are fairly outdated, and https://www.webtoolkit.eu/wt/doc/reference/html/InstallationUnix.html is a much better resource. Redmine should probably link to it.

Anyhow, I think that you can solve this by calling cmake .. -DENABLE_QT4=OFF -DENABLE_QT5=OFF.
I think, since it's a custom install you may need to set the Qt6_PREFIX=/home/bardfast/Qt in case it wouldn't be able to find Qt6.

I hope that allows you to compile Wt. If you encounter further issues, please let me know.

Best,
Matthias

RE: Building Wt - Added by George McFie 13 days ago

Thanks Matthias - that solved the problem.

BTW I also discovered that attempting to install Boost manually prior to the Wt installation is not a good idea - it resulted in linker errors ...
*
/usr/bin/ld: ../src/libwt.so.4.11.1: undefined reference to `boost::filesystem::detail::directory_iterator_construct(boost::filesystem::directory_iterator&, boost::filesystem::path const&, boost::filesystem::directory_options, boost::filesystem::detail::directory_iterator_params*, boost::system::error_code*)'*

It seems that just installing libboost-all-dev is enough.

Thanks again

    (1-2/2)