r1175 $make DEBUG=1

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 a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: r1175 $make DEBUG=1

Re: r1175 $make DEBUG=1

by Macil » Mon Aug 18, 2008 3:00 am

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.

Re: r1175 $make DEBUG=1

by Catoptromancy » Sun Aug 17, 2008 8:19 pm

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

Re: r1175 $make DEBUG=1

by Macil » Sun Aug 17, 2008 7:48 pm

Ok, I'd thought that CMake defaulted to debug builds when configuring. [wiki]Compile ZDoom on Linux#Debugging[/wiki] has been updated for this.

Re: r1175 $make DEBUG=1

by Catoptromancy » Sun Aug 17, 2008 7:26 pm

$cmake -DCMAKE_BUILD_TYPE=Debug .
Is not on wiki. But it did make a 27 mb binary, instead of 5 mb binary. = )

Re: r1175 $make DEBUG=1

by Macil » Sun Aug 17, 2008 7:06 pm

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.

r1175 $make DEBUG=1

by Catoptromancy » Sun Aug 17, 2008 6:30 pm

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.

Top