Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Compilation error with recommended version of Boost #194

Open
Mailaender opened this issue Oct 9, 2023 · 0 comments
Open

Compilation error with recommended version of Boost #194

Mailaender opened this issue Oct 9, 2023 · 0 comments

Comments

@Mailaender
Copy link
Contributor

find_package(Boost 1.69.0 REQUIRED)

is definitely incorrect because that now fails:

[3/44] Building CXX object CMakeFiles/wyrmgus.dir/cmake_pch.hxx.gch
FAILED: CMakeFiles/wyrmgus.dir/cmake_pch.hxx.gch 
/usr/bin/c++ -DBINARY_NAME=\"wyrmgus\" -DBOOST_DATE_TIME_NO_LIB -DHAVE_GETOPT -DHAVE_STRCASESTR -DHAVE_STRNLEN -DPIXMAPS=\"/app/share/pixmaps\" -DQT_CORE_LIB -DQT_GUI_LIB -DQT_LOCATION_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_POSITIONINGQUICK_LIB -DQT_POSITIONING_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DStratagusMajorVersion=5 -DStratagusMinorVersion=3 -DStratagusPatchLevel=6 -DUSE_LINUX -DUSE_X11 -DUSE_ZLIB -I/run/build/wyrmgus/wyrmgus_autogen/include -I/run/build/wyrmgus/src -I/run/build/wyrmgus/src/include -I/run/build/wyrmgus/src/guichan/include -I/run/build/wyrmgus/src/guichan/include/guichan -I/run/build/wyrmgus/src/stratagus -I/run/build/wyrmgus/src/xbrz/include -I/run/build/wyrmgus -I/usr/include/SDL2 -isystem /usr/include/QtCore -isystem /usr/lib/mkspecs/linux-g++ -isystem /usr/include/QtGui -isystem /usr/include/QtWidgets -isystem /usr/include/QtMultimedia -isystem /usr/include/QtNetwork -isystem /usr/include/QtLocation -isystem /usr/include/QtPositioningQuick -isystem /usr/include/QtPositioning -isystem /usr/include/QtQuick -isystem /usr/include/QtQmlModels -isystem /usr/include/QtQml -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fsigned-char -std=gnu++20 -Wall -Wno-unknown-pragmas -Wno-subobject-linkage -fPIC -Winvalid-pch -x c++-header -include /run/build/wyrmgus/CMakeFiles/wyrmgus.dir/cmake_pch.hxx -MD -MT CMakeFiles/wyrmgus.dir/cmake_pch.hxx.gch -MF CMakeFiles/wyrmgus.dir/cmake_pch.hxx.gch.d -o CMakeFiles/wyrmgus.dir/cmake_pch.hxx.gch -c /run/build/wyrmgus/CMakeFiles/wyrmgus.dir/cmake_pch.hxx.cxx
In file included from /run/build/wyrmgus/CMakeFiles/wyrmgus.dir/cmake_pch.hxx:5,
                 from <command-line>:
/run/build/wyrmgus/src/pch.h:76:10: fatal error: boost/asio/awaitable.hpp: No such file or directory
   76 | #include <boost/asio/awaitable.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

I tried 1.70, but that failed with another error, so I am just asking for the right version instead of guessing.

@Mailaender Mailaender changed the title Compilation error with FreeDesktop runtime Compilation error with recommended version of Boost Oct 9, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant