InsanityBringer / ChocolateDescent

Software rendering focused Descent port.
Other
34 stars 8 forks source link

Linux - Unable to compile - Cmake error #13

Closed Tkcmd closed 3 years ago

Tkcmd commented 3 years ago

cmake throws out following error. Something wrong with CMakeLists.txt ?

odroid@focal:~$ cd ChocolateDescent/
odroid@focal:~/ChocolateDescent$ mkdir build
odroid@focal:~/ChocolateDescent$ cd build
odroid@focal:~/ChocolateDescent/build$ cmake ../
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OPENAL: /usr/lib/aarch64-linux-gnu/libopenal.so  
-- Found FLUIDSYNTH: /usr/lib/aarch64-linux-gnu/libfluidsynth.so  
-- Found SDL2: /usr/lib/aarch64-linux-gnu/libSDL2.so  
-- Configuring done
CMake Error at CMakeLists.txt:751 (add_executable):
  Cannot find source file:

    UNIX

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx

CMake Error at CMakeLists.txt:751 (add_executable):
  No SOURCES given to target: ChocolateDescent2

CMake Error at CMakeLists.txt:750 (add_executable):
  No SOURCES given to target: ChocolateDescent

CMake Generate step failed.  Build files cannot be regenerated correctly.
odroid@focal:~/ChocolateDescent/build$ 
InsanityBringer commented 3 years ago

The change in commit 82f89ba should fix this. I haven't been able to test building on linux in a while sadly, so there may be other bugs but I should be able to address them.

InsanityBringer commented 3 years ago

In addition to the CMake fix, a number of bugs preventing compilation on some Linux distros have been fixed in the past week. If there's any further issues, please open a new report for them.