bitwiseworks / qtbase-os2

Port of Qt Base module version 5 to OS/2
Other
10 stars 2 forks source link

Decide on debug_and_release mode #30

Open dmik opened 6 years ago

dmik commented 6 years ago

This mode builds both the debug Qt libraries (suffixed with d) and release ones in the same output tree. This mode is on by default on OS/2, Windows and Mac (the prefix is debug there though). It works good, however, there is a potential problem. If the developer deals with an RPM distribution, it only contains the release build. Specifying debug in CONFIG when building a Qt application using such a distribution of Qt causes qmake to link to d-suffixed libraries and the build expectedly fails. The real life example is here: http://trac.netlabs.org/qt4/ticket/310.

Another thing to consider is that our RPM build, even though it's release, will provide debug symbols in a separate package. Which makes sense to build the app in debug mode and link it with release libs. We need to see if it's possible and if it's actually needed.

Greggk commented 1 year ago

Trying to build Kalendar it creates and defaults to doing a debug build. The build fails because the suffix d libs are not in the packages. Either the suffix d libs/dlls need to be in the rpms or the the configuration setup needs to be changed so the d suffix isn't usedl