Cannot compile on Ubuntu
Closed this issue · 3 comments
I installed all the dependencies, including the Debian ones like a previous issue recommended yet I am still unable to build the repo.
Here is my full log:
mkdir -p bin
g++ -D_REENTRANT -I/usr/include/SDL2 -DBASE_PATH='""' -IRSDKv4/ -IRSDKv4/NativeObjects/ -Idependencies/all/asio/asio/include/ -Idependencies/all/stb-image/ -Idependencies/all/tinyxml2/ objects/dependencies/all/tinyxml2/tinyxml2.cpp.o objects/RSDKv4/Animation.cpp.o objects/RSDKv4/Audio.cpp.o objects/RSDKv4/Collision.cpp.o objects/RSDKv4/Debug.cpp.o objects/RSDKv4/Drawing.cpp.o objects/RSDKv4/Ini.cpp.o objects/RSDKv4/Input.cpp.o objects/RSDKv4/main.cpp.o objects/RSDKv4/Math.cpp.o objects/RSDKv4/ModAPI.cpp.o objects/RSDKv4/Networking.cpp.o objects/RSDKv4/Object.cpp.o objects/RSDKv4/Palette.cpp.o objects/RSDKv4/Reader.cpp.o objects/RSDKv4/Renderer.cpp.o objects/RSDKv4/RetroEngine.cpp.o objects/RSDKv4/Scene.cpp.o objects/RSDKv4/Scene3D.cpp.o objects/RSDKv4/Script.cpp.o objects/RSDKv4/Sprite.cpp.o objects/RSDKv4/String.cpp.o objects/RSDKv4/Text.cpp.o objects/RSDKv4/Userdata.cpp.o objects/RSDKv4/NativeObjects/AboutScreen.cpp.o objects/RSDKv4/NativeObjects/AchievementDisplay.cpp.o objects/RSDKv4/NativeObjects/AchievementsButton.cpp.o objects/RSDKv4/NativeObjects/AchievementsMenu.cpp.o objects/RSDKv4/NativeObjects/BackButton.cpp.o objects/RSDKv4/NativeObjects/CWSplash.cpp.o objects/RSDKv4/NativeObjects/CreditText.cpp.o objects/RSDKv4/NativeObjects/DialogPanel.cpp.o objects/RSDKv4/NativeObjects/FadeScreen.cpp.o objects/RSDKv4/NativeObjects/InstructionsScreen.cpp.o objects/RSDKv4/NativeObjects/LeaderboardsButton.cpp.o objects/RSDKv4/NativeObjects/MenuBG.cpp.o objects/RSDKv4/NativeObjects/MenuControl.cpp.o objects/RSDKv4/NativeObjects/ModInfoButton.cpp.o objects/RSDKv4/NativeObjects/ModsButton.cpp.o objects/RSDKv4/NativeObjects/ModsMenu.cpp.o objects/RSDKv4/NativeObjects/MultiplayerButton.cpp.o objects/RSDKv4/NativeObjects/MultiplayerHandler.cpp.o objects/RSDKv4/NativeObjects/MultiplayerScreen.cpp.o objects/RSDKv4/NativeObjects/OptionsButton.cpp.o objects/RSDKv4/NativeObjects/OptionsMenu.cpp.o objects/RSDKv4/NativeObjects/PauseMenu.cpp.o objects/RSDKv4/NativeObjects/PlayerSelectScreen.cpp.o objects/RSDKv4/NativeObjects/PushButton.cpp.o objects/RSDKv4/NativeObjects/RecordsScreen.cpp.o objects/RSDKv4/NativeObjects/RetroGameLoop.cpp.o objects/RSDKv4/NativeObjects/SaveSelect.cpp.o objects/RSDKv4/NativeObjects/SegaIDButton.cpp.o objects/RSDKv4/NativeObjects/SegaSplash.cpp.o objects/RSDKv4/NativeObjects/SettingsScreen.cpp.o objects/RSDKv4/NativeObjects/StaffCredits.cpp.o objects/RSDKv4/NativeObjects/StartGameButton.cpp.o objects/RSDKv4/NativeObjects/SubMenuButton.cpp.o objects/RSDKv4/NativeObjects/TextLabel.cpp.o objects/RSDKv4/NativeObjects/TimeAttack.cpp.o objects/RSDKv4/NativeObjects/TimeAttackButton.cpp.o objects/RSDKv4/NativeObjects/TitleScreen.cpp.o objects/RSDKv4/NativeObjects/VirtualDPad.cpp.o objects/RSDKv4/NativeObjects/VirtualDPadM.cpp.o objects/RSDKv4/NativeObjects/ZoneButton.cpp.o -o bin/RSDKv4 -L/usr/lib64 -lSDL2 -lm -lasound -lm -ldl -lpthread -lpulse-simple -pthread -lpulse -pthread -lX11 -lXext -lXcursor -lXinerama -lXi -lXfixes -lXrandr -lXss -lXxf86vm -ldrm -lgbm -lwayland-egl -lwayland-client -lwayland-cursor -lxkbcommon -ldecor-0 -lpthread -lrt -lvorbisfile -lvorbis -lm -logg -lGLEW -lGL -lX11 -lGLU -lOpenGL -pthread
/usr/bin/ld: cannot find -ldecor-0: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:88: bin/RSDKv4] Error 1
You have to install libdecor-0-dev to compile on Debian based systems.
You have to install libdecor-0-dev to compile on Debian based systems.
Can you test compiling the RSDKv3 Decompilation and see if it's the same case with that?
I just tried compiling v3 with libdecor-0-dev removed and it compiled just fine. I'm thinking maybe it has something to do with different SDL versions between v3 and v4? SDL started to require libdecor-0-dev after they set the default to wayland iirc. You should only have to add libdecor-0-dev to the Debian based dependencies, since afaik fedora and other distros come with it prepackaged with SDL.