tresinformal / drakkar

The tresinformal video game called 'Drakkar'
GNU General Public License v3.0
11 stars 4 forks source link

Use CMake in build #521

Open richelbilderbeek opened 2 years ago

richelbilderbeek commented 2 years ago

@swom is working on using CMake to build our game

richelbilderbeek commented 2 years ago

My error:

 Unknown CMake command "qt_add_resources".

Full error:

Running /usr/local/bin/cmake /home/richel/GitHubs/game '-GCodeBlocks - Unix Makefiles' -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_CXX_COMPILER:STRING=/usr/bin/g++ -DCMAKE_C_COMPILER:STRING=/usr/bin/gcc -DCMAKE_PREFIX_PATH:STRING=/usr -DQT_QMAKE_EXECUTABLE:STRING=/usr/lib/qt5/bin/qmake in /tmp/QtCreator-mWtMfK/qtc-cmake-fqITLnIj.
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.25.1") 
-- Found SFML 2.5.1 in /usr/lib/x86_64-linux-gnu/cmake/SFML
-- Configuring incomplete, errors occurred!
See also "/tmp/QtCreator-mWtMfK/qtc-cmake-fqITLnIj/CMakeFiles/CMakeOutput.log".
CMake Error at src/CMakeLists.txt:36 (qt_add_resources):
  Unknown CMake command "qt_add_resources".

CMake process exited with exit code 1.
Running /usr/local/bin/cmake /home/richel/GitHubs/game '-GCodeBlocks - Unix Makefiles' in /tmp/QtCreator-mWtMfK/qtc-cmake-fqITLnIj.
-- Found SFML 2.5.1 in /usr/lib/x86_64-linux-gnu/cmake/SFML
-- Configuring incomplete, errors occurred!
See also "/tmp/QtCreator-mWtMfK/qtc-cmake-fqITLnIj/CMakeFiles/CMakeOutput.log".
CMake Error at src/CMakeLists.txt:36 (qt_add_resources):
  Unknown CMake command "qt_add_resources".
richelbilderbeek commented 2 years ago

Note that sudo apt install cmake-qt-gui does not fix the problem, although it seems very smart to do so :-)

richelbilderbeek commented 2 years ago

Tips:

git submodule update --init --remote --recursive

From then:

git submodule update
richelbilderbeek commented 1 year ago

I want this Issue, it is a prerequisite for #739 :-)