GZDoom Installation for Linux Mint 18.3

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
User avatar
Twitchy2019
Posts: 176
Joined: Wed Jan 04, 2017 8:27 pm
Location: My Foot,Your Face! (Team Monster)

GZDoom Installation for Linux Mint 18.3

Post by Twitchy2019 »

Hi, I am trying to compile GZDoom for Linux Mint 18.3. I tried to follow all the instructions in the wiki, but I am still hitting a bit of a snag. I am going to post the code I get whenever I try to enter the compile commands from the compile section in the gzdoom wiki page. Could anyone help me with this?

Code: Select all

kolten@kolten-X202E ~ $ a='' && [ "$(uname -m)" = x86_64 ] && a=64
kolten@kolten-X202E ~ $ c="$(lscpu -p | grep -v '#' | sort -u -t , -k 2,4 | wc -l)" ; [ "$c" -eq 0 ] && c=1
kolten@kolten-X202E ~ $ cd ~/gzdoom_build/gzdoom/build &&
> rm -f output_sdl/liboutput_sdl.so &&
> if [ -d ../fmodapi44464linux ]; then
> f="-DFMOD_LIBRARY=../fmodapi44464linux/api/lib/libfmodex${a}-4.44.64.so \
> -DFMOD_INCLUDE_DIR=../fmodapi44464linux/api/inc"; else
> f='-UFMOD_LIBRARY -UFMOD_INCLUDE_DIR'; fi &&
> cmake .. -DCMAKE_BUILD_TYPE=Release $f &&
> make -j$c
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "/usr/bin/cc" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: /home/kolten/gzdoom_build/gzdoom/build/CMakeFiles/CMakeTmp

  

  Run Build Command:"/usr/bin/make" "cmTC_96c4a/fast"

  /usr/bin/make -f CMakeFiles/cmTC_96c4a.dir/build.make
  CMakeFiles/cmTC_96c4a.dir/build

  make[1]: Entering directory
  '/home/kolten/gzdoom_build/gzdoom/build/CMakeFiles/CMakeTmp'

  Building C object CMakeFiles/cmTC_96c4a.dir/testCCompiler.c.o

  /usr/bin/cc -o CMakeFiles/cmTC_96c4a.dir/testCCompiler.c.o -c
  /home/kolten/gzdoom_build/gzdoom/build/CMakeFiles/CMakeTmp/testCCompiler.c

  Linking C executable cmTC_96c4a

  /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_96c4a.dir/link.txt
  --verbose=1

  /usr/bin/cc CMakeFiles/cmTC_96c4a.dir/testCCompiler.c.o -o cmTC_96c4a
  -rdynamic

  /usr/bin/ld: cannot find crt1.o: No such file or directory

  /usr/bin/ld: cannot find crti.o: No such file or directory

  /usr/bin/ld: cannot find -lc

  /usr/bin/ld: cannot find crtn.o: No such file or directory

  collect2: error: ld returned 1 exit status

  CMakeFiles/cmTC_96c4a.dir/build.make:97: recipe for target 'cmTC_96c4a'
  failed

  make[1]: *** [cmTC_96c4a] Error 1

  make[1]: Leaving directory
  '/home/kolten/gzdoom_build/gzdoom/build/CMakeFiles/CMakeTmp'

  Makefile:126: recipe for target 'cmTC_96c4a/fast' failed

  make: *** [cmTC_96c4a/fast] Error 2

  

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/kolten/gzdoom_build/gzdoom/build/CMakeFiles/CMakeOutput.log".
See also "/home/kolten/gzdoom_build/gzdoom/build/CMakeFiles/CMakeError.log".
kolten@kolten-X202E ~/gzdoom_build/gzdoom/build $ 
User avatar
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: GZDoom Installation for Linux Mint 18.3

Post by Caligari87 »

I'm not sure about your compilation problem, but just in case you're unaware, there's a repo at debian.drdteam.org that works with Debian, Ubuntu, and Mint (plus derivatives). That may be easier than building yourself if you just want to play.

8-)
User avatar
Twitchy2019
Posts: 176
Joined: Wed Jan 04, 2017 8:27 pm
Location: My Foot,Your Face! (Team Monster)

Re: GZDoom Installation for Linux Mint 18.3

Post by Twitchy2019 »

I'm a scrub at Linux Mint. How would I go about getting it off that website and actually making it work?
User avatar
m8f
 
 
Posts: 1445
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)
Contact:

Re: GZDoom Installation for Linux Mint 18.3

Post by m8f »

  1. Open terminal (or console)
  2. Enter the following command:

    Code: Select all

    sudo apt-add-repository 'deb http://debian.drdteam.org/ stable multiverse'
    
    You will be prompted for your password.
  3. Then the following command:

    Code: Select all

    wget -O- http://debian.drdteam.org/drdteam.gpg | sudo apt-key add -
    
  4. After that, you are able to install gzdoom with apt-get:

    Code: Select all

    sudo apt-get install gzdoom
    
Bitmannn
Posts: 1
Joined: Fri Mar 23, 2018 6:32 am

Re: GZDoom Installation for Linux Mint 18.3

Post by Bitmannn »

m8f wrote:
  1. Open terminal (or console)
  2. Enter the following command:

    Code: Select all

    sudo apt-add-repository 'deb http://debian.drdteam.org/ stable multiverse'
    
    You will be prompted for your password.
  3. Then the following command:

    Code: Select all

    wget -O- http://debian.drdteam.org/drdteam.gpg | sudo apt-key add -
    
  4. After that, you are able to install gzdoom with apt-get:

    Code: Select all

    sudo apt-get install gzdoom
    
Thanks,@m8f.
That help me a lot.I have long suffered from this.
It's good that decisions were made on time.
Сheer.
User avatar
ramon.dexter
Posts: 1529
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: GZDoom Installation for Linux Mint 18.3

Post by ramon.dexter »

The repo is good to get stable version. But when one need a dev version, the only way is to compile it.
User avatar
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: GZDoom Installation for Linux Mint 18.3

Post by Caligari87 »

Thankfully stable versions have been coming more frequently. I don't use dev versions anymore.

8-)
Post Reply

Return to “General”