stohrendorf / CroftEngine

An open-source Tomb Raider 1 engine remake
Other
285 stars 18 forks source link

Fail to build on Ubuntu 20 LTS #290

Closed dubigrasu closed 1 year ago

dubigrasu commented 1 year ago

The process of installing what's needed and building went rather smooth except few warnings until 94%, when failed with: clang: error: linker command failed with exit code 1 https://gist.github.com/dubigrasu/e8a9f8ae3e1dad93a1fa3073007f6a30

stohrendorf commented 1 year ago

Interesting. I'm using 20.04 myself in my personal CI pipelines, and it works well. Can you confirm you have the following dependencies installed? libboost-all-dev libglfw3-dev libpng-dev libopenal-dev libopengl-dev libasound2-dev libfreetype-dev libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavresample-dev libavutil-dev libpostproc-dev libswresample-dev libswscale-dev libutfcpp-dev cmake cmake-data cmake-extras gcc-10 g++-10 build-essential gettext git qt5-default qtbase5-dev qtbase5-dev-tools libqt5widgets5 libqt5gui5 libqt5dbus5 libqt5network5 libqt5core5a qttools5-dev binutils libarchive-dev

dubigrasu commented 1 year ago

I had indeed several packages missing. I assumed initially that dependencies were satisfied with vcpkg, but likely I didn't understood the instructions correctly. The missing packages were: libboost-all-dev libglfw3-dev libavdevice-dev libavfilter-dev libavresample-dev libpostproc-dev libutfcpp-dev qt5-default libarchive-dev

After their installation I deleted the build folder and tried again, with what seems to be the same or very similar error: https://gist.github.com/dubigrasu/8146c13194e13846ee8579f7dfc8c41e

stohrendorf commented 1 year ago

Please don't use vcpkg on Linux, that's a Windows-only thing. I'll add that clarification to the readme.

dubigrasu commented 1 year ago

TL;DR: Build (with no vcpkg) has succeeded and the game works as expected.

The vcpkg bit has really threw me off, I imagined that is something like pip, and the fact that has a release for Linux added to my confusion. So far everything seems to work with two gamepads I've tested, feels good, looks good. Only tried it with the regular install from Steam, no other textures Screenshot from 2022-12-02 22-11-34

Thanks for the help and for the engine!