Dwarf-Therapist icon indicating copy to clipboard operation
Dwarf-Therapist copied to clipboard

Only builds successfully in debug_and_release mode on unix

Open anders-larsson opened this issue 10 years ago • 2 comments

Hello,

Currently Dwarf Therapist can only be built successfuly if CONFIG=debug_and_release is used. It fails with linking error if it's built with either CONFIG=debug or CONFIG=release. Error below:

moc_itemgenericsubtype.o moc_unitemotion.o moc_emotion.o moc_emotiongroup.o moc_basetreedock.o moc_subthoughttypes.o moc_mood.o moc_cellcolors.o moc_vieweditordialog.o moc_viewcolumncolors.o moc_viewcolumnsetcolors.o moc_cellcolordef.o qrc_resources.o    -L/usr/lib64/qt4 -lQtScript -L/usr/lib64/qt4 -lQtGui -L/usr/X11R6/lib -lQtCore -lpthread 
dfinstance.o: In function `DFInstance::newInstance()':
dfinstance.cpp:(.text+0x6f8): undefined reference to `DFInstanceLinux::DFInstanceLinux(QObject*)'
collect2: error: ld returned 1 exit status
Makefile:493: recipe for target 'DwarfTherapist' failed
make: *** [DwarfTherapist] Error 1

The visual difference between the modes directly is when 'qmake' is executed it only shows Project MESSAGE: Setting up for Qt 4 instead of the messages shown when debug_and_release is active shown below. Somehow some routine seems to be missed if it isn't built with debug_and_release.

Project MESSAGE: Setting up for Qt 4
Project MESSAGE: Setting up for Qt 4
Project MESSAGE: Setting up for Linux
Checking for pdflatex... /usr/bin/pdflatex
Project MESSAGE: Setting up for Qt 4
Project MESSAGE: Setting up for Linux
Checking for pdflatex... /usr/bin/pdflatex

It seems to do something with build_pass not being parsed.

anders-larsson avatar Mar 08 '15 13:03 anders-larsson

last I touched this code, it was intended that one use qmake && make $TYPE where $TYPE is either debug or release, instead of having to modify the .pro file.

Hello71 avatar Mar 08 '15 14:03 Hello71

Ok. The reason I made this issue is because this seems to break functionality with the eqmake4 function used in Gentoo which reconfigures the build to be built with release only instead of debug/debug_and_release. See referenced issue for more info.

anders-larsson avatar Mar 09 '15 06:03 anders-larsson