Project

General

Profile

Building and installing the Wt library

Added by Karsheva Lena almost 11 years ago

Hello!!!

I'm trying to build wt. When I want to configure the library, that's what gives me:

root@Slash:/home/elena/wt-3.3.0/build# cmake ../

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:566 ] _boost_TEST_VERSIONS = 1.35;1.36;1.37;1.38;1.39;1.40;1.41;1.42;1.43;1.44;1.45;1.46;1.47;1.48;1.49;1.50;1.51;1.52;1.53;1.54;1.55;1.56;1.57;1.58;1.59;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:568 ] Boost_USE_MULTITHREADED = ON

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:570 ] Boost_USE_STATIC_LIBS =

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:572 ] Boost_USE_STATIC_RUNTIME =

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:574 ] Boost_ADDITIONAL_VERSIONS = 1.35;1.36;1.37;1.38;1.39;1.40;1.41;1.42;1.43;1.44;1.45;1.46;1.47;1.48;1.49;1.50;1.51;1.52;1.53;1.54;1.55;1.56;1.57;1.58;1.59

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:576 ] Boost_NO_SYSTEM_PATHS =

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:644 ] Declared as CMake or Environmental Variables:

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:646 ] BOOST_ROOT = /usr

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:648 ] BOOST_INCLUDEDIR =

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:650 ] BOOST_LIBRARYDIR =

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:652 ] _boost_TEST_VERSIONS = 1.35;1.36;1.37;1.38;1.39;1.40;1.41;1.42;1.43;1.44;1.45;1.46;1.47;1.48;1.49;1.50;1.51;1.52;1.53;1.54;1.55;1.56;1.57;1.58;1.59;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:734 ] location of version.hpp: /usr/include/boost/version.hpp

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:753 ] version.hpp reveals boost 1.53.0

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:785 ] guessed _boost_COMPILER = -gcc47

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:795 ] _boost_MULTITHREADED = -mt

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:838 ] _boost_RELEASE_ABI_TAG = -

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:840 ] _boost_DEBUG_ABI_TAG = -d

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:883 ] _boost_LIBRARY_SEARCH_DIRS = /usr/lib;/usr/stage/lib;/usr/include/lib;/usr/include/../lib;/usr/include/stage/lib;C:/boost/lib;C:/boost;/boost/boost_1_53_0/lib;/boost/boost_1_53/lib;/boost/lib;/boost;/sw/local/lib

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:961 ] Searching for RANDOM_LIBRARY_RELEASE: boost_random-gcc47-mt-1_53;boost_random-gcc47-mt;boost_random-mt-1_53;boost_random-mt;boost_random

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:993 ] Searching for RANDOM_LIBRARY_DEBUG: boost_random-gcc47-mt-d-1_53;boost_random-gcc47-mt-d;boost_random-mt-d-1_53;boost_random-mt-d;boost_random-mt;boost_random

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:1107 ] Boost_FOUND = TRUE

--- Boost version: 1.53.0

--- Found the following Boost libraries:

--- random

WT_NO_BOOST_RANDOM is OFF

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:566 ] _boost_TEST_VERSIONS = 1.35;1.36;1.37;1.38;1.39;1.40;1.41;1.42;1.43;1.44;1.45;1.46;1.47;1.48;1.49;1.50;1.51;1.52;1.53;1.54;1.55;1.56;1.57;1.58;1.59;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:568 ] Boost_USE_MULTITHREADED = ON

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:570 ] Boost_USE_STATIC_LIBS =

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:572 ] Boost_USE_STATIC_RUNTIME =

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:574 ] Boost_ADDITIONAL_VERSIONS = 1.35;1.36;1.37;1.38;1.39;1.40;1.41;1.42;1.43;1.44;1.45;1.46;1.47;1.48;1.49;1.50;1.51;1.52;1.53;1.54;1.55;1.56;1.57;1.58;1.59

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:576 ] Boost_NO_SYSTEM_PATHS =

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:644 ] Declared as CMake or Environmental Variables:

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:646 ] BOOST_ROOT = /usr

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:648 ] BOOST_INCLUDEDIR =

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:650 ] BOOST_LIBRARYDIR =

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:652 ] _boost_TEST_VERSIONS = 1.35;1.36;1.37;1.38;1.39;1.40;1.41;1.42;1.43;1.44;1.45;1.46;1.47;1.48;1.49;1.50;1.51;1.52;1.53;1.54;1.55;1.56;1.57;1.58;1.59;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:734 ] location of version.hpp: /usr/include/boost/version.hpp

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:753 ] version.hpp reveals boost 1.53.0

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:785 ] guessed _boost_COMPILER = -gcc47

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:795 ] _boost_MULTITHREADED = -mt

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:838 ] _boost_RELEASE_ABI_TAG = -

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:840 ] _boost_DEBUG_ABI_TAG = -d

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:883 ] _boost_LIBRARY_SEARCH_DIRS = /usr/lib;/usr/stage/lib;/usr/include/lib;/usr/include/../lib;/usr/include/stage/lib;C:/boost/lib;C:/boost;/boost/boost_1_53_0/lib;/boost/boost_1_53/lib;/boost/lib;/boost;/sw/local/lib

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:961 ] Searching for DATE_TIME_LIBRARY_RELEASE: boost_date_time-gcc47-mt-1_53;boost_date_time-gcc47-mt;boost_date_time-mt-1_53;boost_date_time-mt;boost_date_time

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:993 ] Searching for DATE_TIME_LIBRARY_DEBUG: boost_date_time-gcc47-mt-d-1_53;boost_date_time-gcc47-mt-d;boost_date_time-mt-d-1_53;boost_date_time-mt-d;boost_date_time-mt;boost_date_time

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:961 ] Searching for REGEX_LIBRARY_RELEASE: boost_regex-gcc47-mt-1_53;boost_regex-gcc47-mt;boost_regex-mt-1_53;boost_regex-mt;boost_regex

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:993 ] Searching for REGEX_LIBRARY_DEBUG: boost_regex-gcc47-mt-d-1_53;boost_regex-gcc47-mt-d;boost_regex-mt-d-1_53;boost_regex-mt-d;boost_regex-mt;boost_regex

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:961 ] Searching for PROGRAM_OPTIONS_LIBRARY_RELEASE: boost_program_options-gcc47-mt-1_53;boost_program_options-gcc47-mt;boost_program_options-mt-1_53;boost_program_options-mt;boost_program_options

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:993 ] Searching for PROGRAM_OPTIONS_LIBRARY_DEBUG: boost_program_options-gcc47-mt-d-1_53;boost_program_options-gcc47-mt-d;boost_program_options-mt-d-1_53;boost_program_options-mt-d;boost_program_options-mt;boost_program_options

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:961 ] Searching for SIGNALS_LIBRARY_RELEASE: boost_signals-gcc47-mt-1_53;boost_signals-gcc47-mt;boost_signals-mt-1_53;boost_signals-mt;boost_signals

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:993 ] Searching for SIGNALS_LIBRARY_DEBUG: boost_signals-gcc47-mt-d-1_53;boost_signals-gcc47-mt-d;boost_signals-mt-d-1_53;boost_signals-mt-d;boost_signals-mt;boost_signals

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:961 ] Searching for SYSTEM_LIBRARY_RELEASE: boost_system-gcc47-mt-1_53;boost_system-gcc47-mt;boost_system-mt-1_53;boost_system-mt;boost_system

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:993 ] Searching for SYSTEM_LIBRARY_DEBUG: boost_system-gcc47-mt-d-1_53;boost_system-gcc47-mt-d;boost_system-mt-d-1_53;boost_system-mt-d;boost_system-mt;boost_system

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:961 ] Searching for FILESYSTEM_LIBRARY_RELEASE: boost_filesystem-gcc47-mt-1_53;boost_filesystem-gcc47-mt;boost_filesystem-mt-1_53;boost_filesystem-mt;boost_filesystem

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:993 ] Searching for FILESYSTEM_LIBRARY_DEBUG: boost_filesystem-gcc47-mt-d-1_53;boost_filesystem-gcc47-mt-d;boost_filesystem-mt-d-1_53;boost_filesystem-mt-d;boost_filesystem-mt;boost_filesystem

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:961 ] Searching for THREAD_LIBRARY_RELEASE: boost_thread-gcc47-mt-1_53;boost_thread-gcc47-mt;boost_thread-mt-1_53;boost_thread-mt;boost_thread

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:993 ] Searching for THREAD_LIBRARY_DEBUG: boost_thread-gcc47-mt-d-1_53;boost_thread-gcc47-mt-d;boost_thread-mt-d-1_53;boost_thread-mt-d;boost_thread-mt;boost_thread

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:1107 ] Boost_FOUND = TRUE

--- Boost version: 1.53.0

--- Found the following Boost libraries:

--- date_time

--- regex

--- program_options

--- signals

--- system

--- filesystem

--- thread

--- libharu libraries not found - set HARU_PREFIX

--- checking for module 'pangoft2'

--- package 'pangoft2' not found

Enabling multi threading.

Disabling PDF support (WPdfImage, WPdfRenderer): requires libharu.

Indicate the location of your haru library using -DHARU_PREFIX=...

Disabling raster image support (WRasterImage): requires graphicsmagick.

Indicate the location of your graphicsmagick library using -DGM_PREFIX=...

Disabling advanced font rendering support: requires libpango.

Wt will use pkg-config to retrieve your libpango installation location.

Wt::Dbo: building SQLite3 backend.

Wt::Dbo: building Postgres backend.

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=...

Disabling ISAPI.

Enabling FastCGI connector.

Enabling built-in httpd.

--- Not building mandelbrot example: requires Wt::WRasterImage.

--- Not building style example: requires WRasterImage.

Testing Wt::Dbo using Postgres backend

Testing Wt::Dbo using Sqlite3 backend

--- Configuring done

--- Generating done

--- Build files have been written to: /home/elena/wt-3.3.0/build

I am interested in a specific line: Wt::Dbo: not building MySQL backend.

Why can not I compile the library for MySQL?

Please, help me!


Replies (5)

RE: Building and installing the Wt library - Added by Wim Dumon almost 11 years ago

Hello,

By default, Wt only searches for mariadb client libraries. If you want to search for mysql client libraries, you have to set MYSQL_LIBRARY to the name of the mysql client library, so run cmake as follows:

cmake .. -DMYSQL_LIBRARY=mysqlclient

See wt/cmake/WtFindMysql.txt to find out how exactly the mysql/mariadb libraries are searched for.

BR,

Wim.

RE: Building and installing the Wt library - Added by Karsheva Lena almost 11 years ago

Hello,

I did everything as you wrote, but I did not start my example with MySQL. Everything was installed as it should, all libraries have. But it gives you an error:

elena@Slash:~/menu$ g main.C WidgetGallery.C Layout.C TopicWidget.C TopicTemplate.C -lwt -lwthttp -lboost_signals -lboost_system -std=c++11 -o menu.wt

/tmp/cc1JGBs0.o: In function `main':

main.C:(.text+0x986): undefined reference to `Wt::Dbo::backend::MySQL::MySQL(std::string const&, std::string const&, std::string const&, std::string, unsigned int, std::string const&, int)'

main.C:(.text+0xa79): undefined reference to `Wt::Dbo::SqlConnection::setProperty(std::string const&, std::string const&)'

main.C:(.text+0xabe): undefined reference to `Wt::Dbo::Session::Session()'

main.C:(.text+0xad5): undefined reference to `Wt::Dbo::Session::setConnection(Wt::Dbo::SqlConnection&)'

collect2: error: ld returned 1 exit status

Can I somehow forgot to set or mark or not compile the project?

RE: Building and installing the Wt library - Added by Wim Dumon almost 11 years ago

Hi Lena,

You need to add the dbo libraries to your link command:

g++ main.C WidgetGallery.C Layout.C TopicWidget.C TopicTemplate.C -lwt -lwthttp -lwtdbo -lwtdbomysql -lboost_signals -lboost_system -std=c++11 -o menu.wt

BR,

Wim.

RE: Building and installing the Wt library - Added by Karsheva Lena almost 11 years ago

Wim, thank you!!!! Very very much!!! Everything worked! Thank you

    (1-5/5)