Project

General

Profile

Problems when compiling wt with mingw on win10

Added by yong liang almost 2 years ago

Hi all,

I compile and install boost 1.79.0 successfully:

b2 toolset=gcc --build-type=complete --layout=versioned --prefix=c:/boost_1_79_0/mingw install

cmake 3.23.2 config for wt4.7.2:

Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
Found Boost 1.79.0 at C:/boost_1_79_0/mingw/lib/cmake/Boost-1.79.0
Requested configuration: QUIET COMPONENTS system
BoostConfig: find_package(boost_headers 1.79.0 EXACT CONFIG QUIET HINTS C:/boost_1_79_0/mingw/lib/cmake)
Found boost_headers 1.79.0 at C:/boost_1_79_0/mingw/lib/cmake/boost_headers-1.79.0
BoostConfig: find_package(boost_system 1.79.0 EXACT CONFIG QUIET HINTS C:/boost_1_79_0/mingw/lib/cmake)
Found boost_system 1.79.0 at C:/boost_1_79_0/mingw/lib/cmake/boost_system-1.79.0
Boost toolset is mgw7 (GNU 7.3.0)
Scanning C:/boost_1_79_0/mingw/lib/cmake/boost_system-1.79.0/libboost_system-variant*.cmake
Including C:/boost_1_79_0/mingw/lib/cmake/boost_system-1.79.0/libboost_system-variant-mgw7-mt-d-x32-1_79-static.cmake
[ ] libboost_system-mgw7-mt-d-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_system-1.79.0/libboost_system-variant-mgw7-mt-d-x64-1_79-shared.cmake
[ ] libboost_system-mgw7-mt-d-x64-1_79.dll.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_system-1.79.0/libboost_system-variant-mgw7-mt-d-x64-1_79-static.cmake
[x] libboost_system-mgw7-mt-d-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_system-1.79.0/libboost_system-variant-mgw7-mt-s-x32-1_79-static.cmake
[ ] libboost_system-mgw7-mt-s-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_system-1.79.0/libboost_system-variant-mgw7-mt-s-x64-1_79-static.cmake
[ ] libboost_system-mgw7-mt-s-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_system-1.79.0/libboost_system-variant-mgw7-mt-sd-x32-1_79-static.cmake
[ ] libboost_system-mgw7-mt-sd-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_system-1.79.0/libboost_system-variant-mgw7-mt-sd-x64-1_79-static.cmake
[ ] libboost_system-mgw7-mt-sd-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_system-1.79.0/libboost_system-variant-mgw7-mt-x32-1_79-static.cmake
[ ] libboost_system-mgw7-mt-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_system-1.79.0/libboost_system-variant-mgw7-mt-x64-1_79-shared.cmake
[ ] libboost_system-mgw7-mt-x64-1_79.dll.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_system-1.79.0/libboost_system-variant-mgw7-mt-x64-1_79-static.cmake
[x] libboost_system-mgw7-mt-x64-1_79.a
Adding boost_system dependencies: headers
Found Boost 1.79.0 at C:/boost_1_79_0/mingw/lib/cmake/Boost-1.79.0
Requested configuration: QUIET REQUIRED COMPONENTS program_options;filesystem;thread
BoostConfig: find_package(boost_headers 1.79.0 EXACT CONFIG REQUIRED QUIET HINTS C:/boost_1_79_0/mingw/lib/cmake)
BoostConfig: find_package(boost_program_options 1.79.0 EXACT CONFIG REQUIRED QUIET HINTS C:/boost_1_79_0/mingw/lib/cmake)
Found boost_program_options 1.79.0 at C:/boost_1_79_0/mingw/lib/cmake/boost_program_options-1.79.0
Boost toolset is mgw7 (GNU 7.3.0)
Scanning C:/boost_1_79_0/mingw/lib/cmake/boost_program_options-1.79.0/libboost_program_options-variant*.cmake
Including C:/boost_1_79_0/mingw/lib/cmake/boost_program_options-1.79.0/libboost_program_options-variant-mgw7-mt-d-x32-1_79-static.cmake
[ ] libboost_program_options-mgw7-mt-d-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_program_options-1.79.0/libboost_program_options-variant-mgw7-mt-d-x64-1_79-shared.cmake
[ ] libboost_program_options-mgw7-mt-d-x64-1_79.dll.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_program_options-1.79.0/libboost_program_options-variant-mgw7-mt-d-x64-1_79-static.cmake
[x] libboost_program_options-mgw7-mt-d-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_program_options-1.79.0/libboost_program_options-variant-mgw7-mt-s-x32-1_79-static.cmake
[ ] libboost_program_options-mgw7-mt-s-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_program_options-1.79.0/libboost_program_options-variant-mgw7-mt-s-x64-1_79-static.cmake
[ ] libboost_program_options-mgw7-mt-s-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_program_options-1.79.0/libboost_program_options-variant-mgw7-mt-sd-x32-1_79-static.cmake
[ ] libboost_program_options-mgw7-mt-sd-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_program_options-1.79.0/libboost_program_options-variant-mgw7-mt-sd-x64-1_79-static.cmake
[ ] libboost_program_options-mgw7-mt-sd-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_program_options-1.79.0/libboost_program_options-variant-mgw7-mt-x32-1_79-static.cmake
[ ] libboost_program_options-mgw7-mt-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_program_options-1.79.0/libboost_program_options-variant-mgw7-mt-x64-1_79-shared.cmake
[ ] libboost_program_options-mgw7-mt-x64-1_79.dll.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_program_options-1.79.0/libboost_program_options-variant-mgw7-mt-x64-1_79-static.cmake
[x] libboost_program_options-mgw7-mt-x64-1_79.a
Adding boost_program_options dependencies: headers
BoostConfig: find_package(boost_filesystem 1.79.0 EXACT CONFIG REQUIRED QUIET HINTS C:/boost_1_79_0/mingw/lib/cmake)
Found boost_filesystem 1.79.0 at C:/boost_1_79_0/mingw/lib/cmake/boost_filesystem-1.79.0
Boost toolset is mgw7 (GNU 7.3.0)
Scanning C:/boost_1_79_0/mingw/lib/cmake/boost_filesystem-1.79.0/libboost_filesystem-variant*.cmake
Including C:/boost_1_79_0/mingw/lib/cmake/boost_filesystem-1.79.0/libboost_filesystem-variant-mgw7-mt-d-x32-1_79-static.cmake
[ ] libboost_filesystem-mgw7-mt-d-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_filesystem-1.79.0/libboost_filesystem-variant-mgw7-mt-d-x64-1_79-shared.cmake
[ ] libboost_filesystem-mgw7-mt-d-x64-1_79.dll.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_filesystem-1.79.0/libboost_filesystem-variant-mgw7-mt-d-x64-1_79-static.cmake
[x] libboost_filesystem-mgw7-mt-d-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_filesystem-1.79.0/libboost_filesystem-variant-mgw7-mt-s-x32-1_79-static.cmake
[ ] libboost_filesystem-mgw7-mt-s-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_filesystem-1.79.0/libboost_filesystem-variant-mgw7-mt-s-x64-1_79-static.cmake
[ ] libboost_filesystem-mgw7-mt-s-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_filesystem-1.79.0/libboost_filesystem-variant-mgw7-mt-sd-x32-1_79-static.cmake
[ ] libboost_filesystem-mgw7-mt-sd-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_filesystem-1.79.0/libboost_filesystem-variant-mgw7-mt-sd-x64-1_79-static.cmake
[ ] libboost_filesystem-mgw7-mt-sd-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_filesystem-1.79.0/libboost_filesystem-variant-mgw7-mt-x32-1_79-static.cmake
[ ] libboost_filesystem-mgw7-mt-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_filesystem-1.79.0/libboost_filesystem-variant-mgw7-mt-x64-1_79-shared.cmake
[ ] libboost_filesystem-mgw7-mt-x64-1_79.dll.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_filesystem-1.79.0/libboost_filesystem-variant-mgw7-mt-x64-1_79-static.cmake
[x] libboost_filesystem-mgw7-mt-x64-1_79.a
Adding boost_filesystem dependencies: atomic;headers
Found boost_atomic 1.79.0 at C:/boost_1_79_0/mingw/lib/cmake/boost_atomic-1.79.0
Boost toolset is mgw7 (GNU 7.3.0)
Scanning C:/boost_1_79_0/mingw/lib/cmake/boost_atomic-1.79.0/libboost_atomic-variant*.cmake
Including C:/boost_1_79_0/mingw/lib/cmake/boost_atomic-1.79.0/libboost_atomic-variant-mgw7-mt-d-x32-1_79-static.cmake
[ ] libboost_atomic-mgw7-mt-d-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_atomic-1.79.0/libboost_atomic-variant-mgw7-mt-d-x64-1_79-shared.cmake
[ ] libboost_atomic-mgw7-mt-d-x64-1_79.dll.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_atomic-1.79.0/libboost_atomic-variant-mgw7-mt-d-x64-1_79-static.cmake
[x] libboost_atomic-mgw7-mt-d-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_atomic-1.79.0/libboost_atomic-variant-mgw7-mt-s-x32-1_79-static.cmake
[ ] libboost_atomic-mgw7-mt-s-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_atomic-1.79.0/libboost_atomic-variant-mgw7-mt-s-x64-1_79-static.cmake
[ ] libboost_atomic-mgw7-mt-s-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_atomic-1.79.0/libboost_atomic-variant-mgw7-mt-sd-x32-1_79-static.cmake
[ ] libboost_atomic-mgw7-mt-sd-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_atomic-1.79.0/libboost_atomic-variant-mgw7-mt-sd-x64-1_79-static.cmake
[ ] libboost_atomic-mgw7-mt-sd-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_atomic-1.79.0/libboost_atomic-variant-mgw7-mt-x32-1_79-static.cmake
[ ] libboost_atomic-mgw7-mt-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_atomic-1.79.0/libboost_atomic-variant-mgw7-mt-x64-1_79-shared.cmake
[ ] libboost_atomic-mgw7-mt-x64-1_79.dll.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_atomic-1.79.0/libboost_atomic-variant-mgw7-mt-x64-1_79-static.cmake
[x] libboost_atomic-mgw7-mt-x64-1_79.a
Adding boost_atomic dependencies: headers
BoostConfig: find_package(boost_thread 1.79.0 EXACT CONFIG REQUIRED QUIET HINTS C:/boost_1_79_0/mingw/lib/cmake)
Found boost_thread 1.79.0 at C:/boost_1_79_0/mingw/lib/cmake/boost_thread-1.79.0
Boost toolset is mgw7 (GNU 7.3.0)
Scanning C:/boost_1_79_0/mingw/lib/cmake/boost_thread-1.79.0/libboost_thread-variant*.cmake
Including C:/boost_1_79_0/mingw/lib/cmake/boost_thread-1.79.0/libboost_thread-variant-mgw7-mt-d-x32-1_79-static.cmake
[ ] libboost_thread-mgw7-mt-d-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_thread-1.79.0/libboost_thread-variant-mgw7-mt-d-x64-1_79-shared.cmake
[ ] libboost_thread-mgw7-mt-d-x64-1_79.dll.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_thread-1.79.0/libboost_thread-variant-mgw7-mt-d-x64-1_79-static.cmake
[x] libboost_thread-mgw7-mt-d-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_thread-1.79.0/libboost_thread-variant-mgw7-mt-s-x32-1_79-static.cmake
[ ] libboost_thread-mgw7-mt-s-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_thread-1.79.0/libboost_thread-variant-mgw7-mt-s-x64-1_79-static.cmake
[ ] libboost_thread-mgw7-mt-s-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_thread-1.79.0/libboost_thread-variant-mgw7-mt-sd-x32-1_79-static.cmake
[ ] libboost_thread-mgw7-mt-sd-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_thread-1.79.0/libboost_thread-variant-mgw7-mt-sd-x64-1_79-static.cmake
[ ] libboost_thread-mgw7-mt-sd-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_thread-1.79.0/libboost_thread-variant-mgw7-mt-x32-1_79-static.cmake
[ ] libboost_thread-mgw7-mt-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_thread-1.79.0/libboost_thread-variant-mgw7-mt-x64-1_79-shared.cmake
[ ] libboost_thread-mgw7-mt-x64-1_79.dll.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_thread-1.79.0/libboost_thread-variant-mgw7-mt-x64-1_79-static.cmake
[x] libboost_thread-mgw7-mt-x64-1_79.a
Adding boost_thread dependencies: chrono;headers
Found boost_chrono 1.79.0 at C:/boost_1_79_0/mingw/lib/cmake/boost_chrono-1.79.0
Boost toolset is mgw7 (GNU 7.3.0)
Scanning C:/boost_1_79_0/mingw/lib/cmake/boost_chrono-1.79.0/libboost_chrono-variant*.cmake
Including C:/boost_1_79_0/mingw/lib/cmake/boost_chrono-1.79.0/libboost_chrono-variant-mgw7-mt-d-x32-1_79-static.cmake
[ ] libboost_chrono-mgw7-mt-d-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_chrono-1.79.0/libboost_chrono-variant-mgw7-mt-d-x64-1_79-shared.cmake
[ ] libboost_chrono-mgw7-mt-d-x64-1_79.dll.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_chrono-1.79.0/libboost_chrono-variant-mgw7-mt-d-x64-1_79-static.cmake
[x] libboost_chrono-mgw7-mt-d-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_chrono-1.79.0/libboost_chrono-variant-mgw7-mt-s-x32-1_79-static.cmake
[ ] libboost_chrono-mgw7-mt-s-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_chrono-1.79.0/libboost_chrono-variant-mgw7-mt-s-x64-1_79-static.cmake
[ ] libboost_chrono-mgw7-mt-s-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_chrono-1.79.0/libboost_chrono-variant-mgw7-mt-sd-x32-1_79-static.cmake
[ ] libboost_chrono-mgw7-mt-sd-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_chrono-1.79.0/libboost_chrono-variant-mgw7-mt-sd-x64-1_79-static.cmake
[ ] libboost_chrono-mgw7-mt-sd-x64-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_chrono-1.79.0/libboost_chrono-variant-mgw7-mt-x32-1_79-static.cmake
[ ] libboost_chrono-mgw7-mt-x32-1_79.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_chrono-1.79.0/libboost_chrono-variant-mgw7-mt-x64-1_79-shared.cmake
[ ] libboost_chrono-mgw7-mt-x64-1_79.dll.a
Including C:/boost_1_79_0/mingw/lib/cmake/boost_chrono-1.79.0/libboost_chrono-variant-mgw7-mt-x64-1_79-static.cmake
[x] libboost_chrono-mgw7-mt-x64-1_79.a
Adding boost_chrono dependencies: headers
libharu libraries not found - set HARU_PREFIX
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR)
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Found unsuitable Qt version "5.13.0" from C:/Qt/Qt5.13.0/5.13.0/mingw73_64/bin/qmake.exe
** Enabling multi threading.
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
** Disabling crypto support (Auth::SHA1HashFunction, HTTPS support): requires OpenSSL.
Indicate the location of your OpenSSL library using -DSSL_PREFIX=...
** Disabling PDF support (WPdfImage, WPdfRenderer): requires libharu.
Indicate the location of your haru library using -DHARU_PREFIX=...
** Enabling advanced font support using DirectWrite
** Wt::Dbo: building SQLite3 backend.
** Wt::Dbo: not building Postgres backend.
Indicate the location of your postgres installation using
-DPOSTGRES_PREFIX=...
** Wt::Dbo: not building Firebird backend.
Indicate the location of your FirebirdSQL and IBPP installation using
-DFIREBIRD_PREFIX=... -DIBPP_SRC_DIRECTORY=...
** Wt::Dbo: not building MySQL backend.
Indicate the location of your mariadb or mysqlclient installation using
-DMYSQL_PREFIX=... and the library to search for (e.g. mariadb or
mysqlclient) using -DMYSQL_LIBRARY=...
** Wt::Dbo: building Microsoft SQL Server backend.
** Disabling ISAPI.
** Disabling FastCGI connector.
** Enabling built-in httpd.
** Not building socketnotifier example for lack of getaddrinfo freeaddrinfo.
** Not building gitmodel example: uses POSIX calls not available on win32
** Not building wtwithqt example.
wtwithqt example requires a Qt4 installation.
** Testing Wt::Dbo using Sqlite3 backend
** Testing Wt::Dbo using Microsoft SQL Server backend
Configuring done
Generating done

when I compile wtt-4.7.2 with mingw73_64 in QT5.13.2

mingw32-make

errors happened:

[47%] Building CXX object src/CMakeFiles/wt.dir/Wt/FontSupportDirectWrite.C.obj
In file included from C:/wt-4.7.2/src/Wt/FontSupport.h:24:0,
from C:\wt-4.7.2\src\Wt\FontSupportDirectWrite.C:7:
C:\wt-4.7.2\src\Wt\FontSupportDirectWrite.C: In function 'std::__cxx11::wstring {anonymous}::fileNameForFontFace(IDWriteFontFace*)':
C:\wt-4.7.2\src\Wt\FontSupportDirectWrite.C:133:3: error: 'IDWriteLocalFontFileLoader_layout_has_not_been_verified_and_its_declaration_is_most_likely_incorrect' was not declared in this scope
IDWriteLocalFontFileLoader localFontLoader = NULL;
^
C:\wt-4.7.2\src\Wt\FontSupportDirectWrite.C:133:31: error: 'localFontLoader' was not declared in this scope
IDWriteLocalFontFileLoader *localFontLoader = NULL;
~~~~~~~~~~~~~~
C:\wt-4.7.2\src\Wt\FontSupportDirectWrite.C:133:31: note: suggested alternative: 'fontLoader'
IDWriteLocalFontFileLoader *localFontLoader = NULL;
~~~~~~~~~~~~~~
fontLoader
mingw32-make[2]: *
* [src\CMakeFiles\wt.dir\build.make:5393: src/CMakeFiles/wt.dir/Wt/FontSupportDirectWrite.C.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:1569: src/CMakeFiles/wt.dir/all] Error 2
mingw32-make: *** [Makefile:135: all] Error 2

Any help is appreciated, I am not sure how to resolve this issue.