Building Urho3D on Debian works, but on my Arch machine I get the following error “
multiple definition of `WAYLAND_wl_proxy_get_user_data’” during the stage of “ Linking CXX executable …/…/…/bin/Urho3DPlayer”.
make: *** [Source/Tools/Urho3DPlayer/CMakeFiles/Urho3DPlayer.dir/build.make:104: bin/Urho3DPlayer] Error 1
make: *** [CMakeFiles/Makefile2:2746: Source/Tools/Urho3DPlayer/CMakeFiles/Urho3DPlayer.dir/all] Error 2
make: *** [Makefile:171: all] Error 2
Does anyone have an idea of what’s the issue?
Many thanks in advance.
Using esy-sdl2 with gcc 10. In gcc version 10 the flag -fno-common… | by Christian Lentfort | Medium
And also: Cannot build in Arch · Issue #1778 · onivim/oni2 · GitHub
Basically, you either add
-fcommon to your compiler flags or if you need
-Wl,--allow-multiple-definition to your linker. See
In case anyone else runs across the same problem, issue was solved by adding
I’m on Manjaro Linux (which is based on Arch Linux) and I disable wayland with cmake to solve this issue for my builds:
Issues relating to the topic:
04:55PM - 14 Jan 21 UTC
Sorry, don't know is the master branch at working state or not, but there were no commits for a long time.