-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error #173
Comments
I've find my old own how-to compile, The same error occuring |
There are some new dependencies now, namely: libboost-dev I've updated the Ubuntu build instructions to include them: |
I'll try this tonight with the new instructions on Pop!_OS |
Tried it on Pop!_OS 20.10 and got a "missing SDL_mixer" error when I ran 'cmake ..' |
`spiegel@spiegel-laptop:~/wyrmsun/Wyrmgus/build$ cmake .. -- Configuring incomplete, errors occurred! |
here is my updated instructions (for the dependencies) |
here is the lua package I've found on the ubuntu 20.04 official repo |
I've installed lua5.1:i386 and lua5.1, it change nothing I've the exact same error. Maybe this build require some argument to "init": or some additionnal command? EDIT : I've just installed libluabind-dev too and retry for same result I've look on stackoverflow some people say it could be required to add |
@DinkyDyeAussie Ops, sorry, I forgot to include the following library in the list: |
@B4rabbas You need the "-dev" liblua library, i.e.: And additionally, tolua++: |
So I gave it a go compiling in pop os, and it got to 87% then spat out this error fatal error: Qtlocation/private/qgeo_json_p.h - no such file or directory. I followed all the directions. |
tolua++ lib is libtolua++5.1-dev in 20.04 official repo |
Ok now I have many They're pointing to line 1623, 1624 and 1626 Here is all dep I've Installed (I've checked, I think everything is here) See the joined txt or the cmake output for a more detailed building process. And thanks for the support, truly. At first I was thinking this will be such a message in a bottle. |
That is an important point, which I forgot to mention. GeoJSON parsing requires Qt private headers, which aren't present in the Ubuntu packaging of QtLocation. That is only necessary when wanting to develop new maps based on geodata though, for compiling the game for normal gameplay it is not needed. There is a CMake option for Wyrmgus to deactivate the GeoJSON parsing requirement, you just need to call cmake with the "-DWITH_GEOJSON=OFF" command line option. I've updated the documentation accordingly. |
I'm glad to help :) This problem can probably has the same origin as the one @DinkyDyeAussie mentioned, so the same solution (calling CMake with the "-DWITH_GEOJSON=OFF" command line option) should work. |
DWITH_GEOJSON=OFF works, but riiiight at the end of compilation, it throws me this error: error: use of deleted function ‘std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const wchar_t*) [with _Traits = std::char_traits]’ 127 | ostr << ( t ? t : L"null string" ); Arrow points to the bracket at the end of the function. No idea why it's doing this. |
That's a subtle error which occurs only in Ubuntu 20.10 (AFAIK). The reason is that Boost was doing something invalid, and which is now an error in C++20. In older versions of GCC that limitation hadn't been implemented yet, and in newer versions of Boost that is fixed (from 1.73 IIRC). So it only occurs in a specific combination which is present in 20.10 specifically. Upgrading Boost, or downgrading GCC should fix the issue. But note that the problematic Boost code is used just for the automated tests, so I could add a CMake option to allow compiling without the automated test suite, and then things should work fine too. |
Yeah add that option to disable boost |
I have an error during the compilation, it say there is no rule to build target for « tolua.cpp » |
and the output for cmake confuguration |
@DinkyDyeAussie I've added the option to enable/disable compiling the test project now (it is enabled by default): |
@B4rabbas if I recall correctly, someone had a similar issue in the past, and they solved it by cleaning their Wyrmgus CMake output files, and then trying again |
Can you be more precise : I don't understand wich file I've to remove/modify. |
I think he just deleted all of the CMake output. I would just use "git status" on the wyrmgus directory to see which files are build output (i.e. ones that were not part of the repository a priori), remove all of them, and then try building again. |
Hello,
I'm struggling with the building, maybe I've missed something
Here is which command I've used
CMakeOutput.log
`sudo apt install -y debhelper devscripts cmake make nsis upx gnupg
git clone https://github.com/Andrettin/Wyrmgus.git
cd Wyrmgus
mkdir build
git submodule update --init --remote --force
cmake . && make`
And there is the result
`spiegel@spiegel-laptop:~/Wyrmgus$ cmake . && make
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package):
Could not find a package configuration file provided by "Qt5Multimedia"
with any of the following names:
Add the installation prefix of "Qt5Multimedia" to CMAKE_PREFIX_PATH or set
"Qt5Multimedia_DIR" to a directory containing one of the above files. If
"Qt5Multimedia" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
CMakeLists.txt:1223 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/spiegel/Wyrmgus/CMakeFiles/CMakeOutput.log".`
I've also added CMakeOutput.log
The text was updated successfully, but these errors were encountered: