Project

General

Profile

Wt 3.3.0 RC3 doesn't build example

Added by Shantanu Tushar about 11 years ago

Hi, I can build Wt 3.3.0 RC3 on my system. However trying to build any example throws this error-

~/Desktop/dev/wt-3.3.0-rc3/build$ make widgetgallery.wt

[ 91%] Built target wt

[ 96%] Built target wthttp

Linking CXX executable widgetgallery.wt

../../src/libwt.so.3.3.0: undefined reference to `skeletons::Wt_js1'

../../src/libwt.so.3.3.0: undefined reference to `skeletons::JQuery_js()'

../../src/libwt.so.3.3.0: undefined reference to `skeletons::AuthBootstrapTheme_xml1'

../../src/libwt.so.3.3.0: undefined reference to `skeletons::Wt_xml1'

../../src/libwt.so.3.3.0: undefined reference to `skeletons::Plain_html1'

../../src/libwt.so.3.3.0: undefined reference to `skeletons::Hybrid_html1'

../../src/libwt.so.3.3.0: undefined reference to `skeletons::AuthCssTheme_xml1'

../../src/libwt.so.3.3.0: undefined reference to `skeletons::AuthStrings_xml1'

../../src/libwt.so.3.3.0: undefined reference to `skeletons::Boot_js1'

../../src/libwt.so.3.3.0: undefined reference to `skeletons::Boot_html1'

../../src/libwt.so.3.3.0: undefined reference to `skeletons::Wt_js()'

../../src/libwt.so.3.3.0: undefined reference to `boost::random::random_device::random_device()'

collect2: error: ld returned 1 exit status

make[3]: * [examples/widgetgallery/widgetgallery.wt] Error 1

make[2]: * [examples/widgetgallery/CMakeFiles/widgetgallery.wt.dir/all] Error 2

make[1]: * [examples/widgetgallery/CMakeFiles/widgetgallery.wt.dir/rule] Error 2

make: * [widgetgallery.wt] Error 2

Any idea what I might be missing?


Replies (3)

RE: Wt 3.3.0 RC3 doesn't build example - Added by Wim Dumon about 11 years ago

The first set of errors (skeletons::) is disturbing - that points in the direction of cmake not executing src/filetostring.cmake, which doesn't make a lot of sense. The second linker error (boost::random missing) is new to me too.

What cmake options did you use? What is your build system (OS + version)? Boost version?

BR,

Wim.

RE: Wt 3.3.0 RC3 doesn't build example - Added by Shantanu Tushar about 11 years ago

I didn't have to pass any options to cmake, this is the output I get-

shaan@shaan-laptop:~/Desktop/dev/wt-3.3.0-rc3/build$ cmake ..

--- The C compiler identification is GNU 4.7.2

--- The CXX compiler identification is GNU 4.7.2

--- Check for working C compiler: /usr/lib/icecc/bin/gcc

--- Check for working C compiler: /usr/lib/icecc/bin/gcc --- works

--- Detecting C compiler ABI info

--- Detecting C compiler ABI info - done

--- Check for working CXX compiler: /usr/lib/icecc/bin/c

--- Check for working CXX compiler: /usr/lib/icecc/bin/c --- works

--- Detecting CXX compiler ABI info

--- Detecting CXX compiler ABI info - done

--- [ /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:705 ] Include debugging info:

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:707 ] _boost_INCLUDE_SEARCH_DIRS = /usr/include;/usr;C:/boost/include;C:/boost;/boost/include;/boost;/sw/local/include

--- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:709 ] _boost_PATH_SUFFIXES = boost-1_35;boost_1_35;boost-1_36;boost_1_36;boost-1_37;boost_1_37;boost-1_38;boost_1_38;boost-1_39;boost_1_39;boost-1_40;boost_1_40;boost-1_41;boost_1_41;boost-1_42;boost_1_42;boost-1_43;boost_1_43;boost-1_44;boost_1_44;boost-1_45;boost_1_45;boost-1_46;boost_1_46;boost-1_47;boost_1_47;boost-1_48;boost_1_48;boost-1_49;boost_1_49;boost-1_50;boost_1_50;boost-1_51;boost_1_51;boost-1_52;boost_1_52;boost-1_53;boost_1_53;boost-1_54;boost_1_54;boost-1_55;boost_1_55;boost-1_56;boost_1_56;boost-1_57;boost_1_57;boost-1_58;boost_1_58;boost-1_59;boost_1_59;boost-1_56_0;boost_1_56_0;boost-1_56;boost_1_56;boost-1_55_0;boost_1_55_0;boost-1_55;boost_1_55;boost-1_54_0;boost_1_54_0;boost-1_54;boost_1_54;boost-1_53_0;boost_1_53_0;boost-1_53;boost_1_53;boost-1_52_0;boost_1_52_0;boost-1_52;boost_1_52;boost-1_51_0;boost_1_51_0;boost-1_51;boost_1_51;boost-1_50_0;boost_1_50_0;boost-1_50;boost_1_50;boost-1_49_0;boost_1_49_0;boost-1_49;boost_1_49;boost-1_48_0;boost_1_48_0;boost-1_48;boost_1_48;boost-1_47_0;boost_1_47_0;boost-1_47;boost_1_47;boost-1_46_1;boost_1_46_1;boost-1_46_0;boost_1_46_0;boost-1_46;boost_1_46;boost-1_45_0;boost_1_45_0;boost-1_45;boost_1_45;boost-1_44_0;boost_1_44_0;boost-1_44;boost_1_44;boost-1_43_0;boost_1_43_0;boost-1_43;boost_1_43;boost-1_42_0;boost_1_42_0;boost-1_42;boost_1_42;boost-1_41_0;boost_1_41_0;boost-1_41;boost_1_41;boost-1_40_0;boost_1_40_0;boost-1_40;boost_1_40;boost-1_39_0;boost_1_39_0;boost-1_39;boost_1_39;boost-1_38_0;boost_1_38_0;boost-1_38;boost_1_38;boost-1_37_0;boost_1_37_0;boost-1_37;boost_1_37;boost-1_36_1;boost_1_36_1;boost-1_36_0;boost_1_36_0;boost-1_36;boost_1_36;boost-1_35_1;boost_1_35_1;boost-1_35_0;boost_1_35_0;boost-1_35;boost_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.49.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_49_0/lib;/boost/boost_1_49/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_49;boost_random-gcc47-mt;boost_random-mt-1_49;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_49;boost_random-gcc47-mt-d;boost_random-mt-d-1_49;boost_random-mt-d;boost_random-mt;boost_random

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

--- Boost version: 1.49.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.49.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_49_0/lib;/boost/boost_1_49/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_49;boost_date_time-gcc47-mt;boost_date_time-mt-1_49;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_49;boost_date_time-gcc47-mt-d;boost_date_time-mt-d-1_49;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_49;boost_regex-gcc47-mt;boost_regex-mt-1_49;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_49;boost_regex-gcc47-mt-d;boost_regex-mt-d-1_49;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_49;boost_program_options-gcc47-mt;boost_program_options-mt-1_49;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_49;boost_program_options-gcc47-mt-d;boost_program_options-mt-d-1_49;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_49;boost_signals-gcc47-mt;boost_signals-mt-1_49;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_49;boost_signals-gcc47-mt-d;boost_signals-mt-d-1_49;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_49;boost_system-gcc47-mt;boost_system-mt-1_49;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_49;boost_system-gcc47-mt-d;boost_system-mt-d-1_49;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_49;boost_filesystem-gcc47-mt;boost_filesystem-mt-1_49;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_49;boost_filesystem-gcc47-mt-d;boost_filesystem-mt-d-1_49;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_49;boost_thread-gcc47-mt;boost_thread-mt-1_49;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_49;boost_thread-gcc47-mt-d;boost_thread-mt-d-1_49;boost_thread-mt-d;boost_thread-mt;boost_thread

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

--- Boost version: 1.49.0

--- Found the following Boost libraries:

--- date_time

--- regex

--- program_options

--- signals

--- system

--- filesystem

--- thread

--- libharu libraries not found - set HARU_PREFIX

--- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")

--- checking for module 'pangoft2'

--- found pangoft2, version 1.30.1

--- Looking for connect

--- Looking for connect - found

--- Looking for sin

--- Looking for sin - not found

--- Looking for Q_WS_X11

--- Looking for Q_WS_X11 - found

--- Looking for Q_WS_WIN

--- Looking for Q_WS_WIN - not found.

--- Looking for Q_WS_QWS

--- Looking for Q_WS_QWS - not found.

--- Looking for Q_WS_MAC

--- Looking for Q_WS_MAC - not found.

--- Found Qt4: /usr/bin/qmake (found version "4.8.3")

--- Looking for include file pthread.h

--- Looking for include file pthread.h - found

--- Looking for pthread_create

--- Looking for pthread_create - not found.

--- Looking for pthread_create in pthreads

--- Looking for pthread_create in pthreads - not found

--- Looking for pthread_create in pthread

--- Looking for pthread_create in pthread - found

--- Found Threads: TRUE

Enabling multi threading.

--- Found Doxygen: /usr/bin/doxygen

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

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

Enabling advanced font support using libpango

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.

Disabling FCGI connector: requires libfcgi

Indicate the location of libfcgi using -DUSERLIB_ROOT=..., or omit this connector using -DCONNECTOR_FCGI=OFF

Enabling built-in httpd.

--- Looking for crypt

--- Looking for crypt - not found

--- Looking for crypt in crypt

--- Looking for crypt in crypt - found

Testing Wt::Dbo using Postgres backend

Testing Wt::Dbo using Sqlite3 backend

--- Configuring done

--- Generating done

--- Build files have been written to: /home/shaan/Desktop/dev/wt-3.3.0-rc3/build

I have boost 1.49.0.1 from packages on Ubuntu 12.10

RE: Wt 3.3.0 RC3 doesn't build example - Added by Shantanu Tushar about 11 years ago

I just tried to build the current source from git master and it compiles perfectly. So while still unsure why the RC package wont compile, but I got the latest stuff working, so hurray :)

    (1-3/3)