On 14/08/2012 09:36, Mike Howard wrote:
Hi All,
Due to the issue I've come across when stipulating '-DWITH_SHADOW' when building tdebase (see my last thread 'tdebase issue'), I decided to to build with ' -DWITH_ALL_OPTIONS=ON & -DBUILD_ALL=ON ' just to see what happens :) Anyway, this change has caused me to run into the "undefined reference to `kdemain'" issue all over again. Taking out the ' -DWITH_ALL_OPTIONS=ON' from the build allows all to proceed successfully.
So my questions are should these references to kdemain exist in the source code or not and if they are supposed to, why am I getting the 'undefined reference' failure?
I'm building on a (fedora) system that has not had any previous versions of TDE and I'm building from a clean pull from the git repository (http://scm.trinitydesktop.org/scm/git/tde).
Hmm, it seems that using '-DWITH_ALL_OPTIONS=ON' causes '-fvisibility=hidden -fvisibility-inlines-hidden' to be added to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS which seems to cause the 'undefined reference' failure. Preventing the addition to the 'flags' allows the build to proceed to a successful completion.
Not sure what consequences/benefits/drawbacks maybe or even if, by using '-DWITH_ALL_OPTIONS=ON', I'm actually getting 'WITH_SHADOW', which is what got me here in the first place.
Cheers, Mike.