r1175 $make DEBUG=1

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
Catoptromancy
Posts: 45
Joined: Mon Oct 09, 2006 10:16 am

r1175 $make DEBUG=1

Post by Catoptromancy »

Following instructions exactly on wiki with the cmake system, makes nothing at all.
$make DEBUG=1 makes a binary but its not zdoomd

Probably not a real bug, but the wiki doesnt work and usual debug binary building doesnt work.
User avatar
Macil
Posts: 2529
Joined: Mon Mar 22, 2004 7:00 pm
Preferred Pronouns: He/Him
Location: California, USA. Previously known as "Agent ME".
Contact:

Re: r1175 $make DEBUG=1

Post by Macil »

What page has those instructions? What type of system are you on?

"make debug=1" no longer works as before using the new CMake system. Instead, you have to tell CMake that you want to generate a debug build when it generates its files. CMake should create Makefiles for a debug build by default - try using "cmake -DCMAKE_BUILD_TYPE=Debug <path>" instead if it doesn't. Maybe works different if you're on windows.

If you're on linux, the page [wiki]Compile ZDoom on Linux[/wiki] has the most up-to-date instructions with using CMake. Parts of [wiki]Compile ZDoom on Windows[/wiki] may be outdated.
Catoptromancy
Posts: 45
Joined: Mon Oct 09, 2006 10:16 am

Re: r1175 $make DEBUG=1

Post by Catoptromancy »

$cmake -DCMAKE_BUILD_TYPE=Debug .
Is not on wiki. But it did make a 27 mb binary, instead of 5 mb binary. = )
User avatar
Macil
Posts: 2529
Joined: Mon Mar 22, 2004 7:00 pm
Preferred Pronouns: He/Him
Location: California, USA. Previously known as "Agent ME".
Contact:

Re: r1175 $make DEBUG=1

Post by Macil »

Ok, I'd thought that CMake defaulted to debug builds when configuring. [wiki]Compile ZDoom on Linux#Debugging[/wiki] has been updated for this.
Catoptromancy
Posts: 45
Joined: Mon Oct 09, 2006 10:16 am

Re: r1175 $make DEBUG=1

Post by Catoptromancy »

Actually most of the debugging part isnt needed.
cd trunk
cmake -DCMAKE_BUILD_TYPE=Debug . with one period is all thats needed.

The other steps are redundant. The debug directory isnt needed. You could run the cmake command with .. but would still need to make in trunk.

My autoupdate script uses same amount of steps to fully install.

Code: Select all

#!/bin/sh
cd trunk
svn update
cmake -DCMAKE_BUILD_TYPE=Debug .
make
mv src/zdoom ~/.zdoom/
mv zdoom.pk3 ~/.zdoom/
make clean
User avatar
Macil
Posts: 2529
Joined: Mon Mar 22, 2004 7:00 pm
Preferred Pronouns: He/Him
Location: California, USA. Previously known as "Agent ME".
Contact:

Re: r1175 $make DEBUG=1

Post by Macil »

Then you can't have multiple CMake builds set up, such as to build a release build too. Using an in-source CMake build isn't recommended, and even the CMake website recommends setting up CMake out-of-source to another folder. Some CMake projects such as some KDE programs even have code in the CMakeLists.txt to prevent you from using CMake on the same folder as the source code.
Post Reply

Return to “Closed Bugs [GZDoom]”