trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

Re: [trinity-devel] applications/amarok CMake fails to find konqsidebarplugin.h?

From: "David C. Rankin" <drankinatty@...>
Date: Wed, 14 Mar 2012 12:38:25 -0500
On 03/14/2012 10:43 AM, Darrell Anderson wrote:
>> -- Performing Test HAVE_KONQSIDEBARPLUGIN_H - Failed
>> > CMake Error at cmake/modules/TDEMacros.cmake:23 (message):
>> >   #################################################
>> > 
>> >    konqsidebarplugin.h are requested, but not
>> > found on your system
>> > 
>> >   #################################################
>> > Call Stack (most recent call first):
>> >   ConfigureChecks.cmake:191 (tde_message_fatal)
>> >   CMakeLists.txt:67 (include)
>> > 
>> > 
>> > -- Configuring incomplete, errors occurred!
>> > 
>> >   I have it:
>> > 
>> > 23:31 nirvana:~/tde/bld/libkarma> find $CHROOT/david/opt
>> > -name konqsidebarplugin.h
>> > /mnt/nv1/home/chroot/david/opt/trinity/include/konqsidebarplugin.h
>> > 
>> >  Hmm, what's the trick?
> No such error encountered here with my builds last night. Possibly something to do with updating Arch to bleeding edge?
> 
> Darrell

Hmm... Even if the bleeding edge was somehow implicated here, the amarok tde
cmake files should still be able to find their own headers in
/opt/trinity/include :)

# konqsidebarplugin.h
if( WITH_KONQSIDEBAR )
  tde_save( CMAKE_REQUIRED_DEFINITIONS CMAKE_REQUIRED_FLAGS
CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
  set( CMAKE_REQUIRED_DEFINITIONS ${TQT_CFLAGS_OTHER} )
  set( CMAKE_REQUIRED_INCLUDES
${TDE_INCLUDE_DIR};${TQT_INCLUDE_DIRS};${CMAKE_INCLUDE_PATH} )
  set( CMAKE_REQUIRED_FLAGS "-include tqt.h" )
  set( CMAKE_REQUIRED_LIBRARIES -L${TQT_LIBRARY_DIRS} ${TQT_LIBRARIES} )
  check_cxx_source_compiles("
    #include <konqsidebarplugin.h>
    int main(int, char**) { return 0; } "
    HAVE_KONQSIDEBARPLUGIN_H )
  tde_restore( CMAKE_REQUIRED_DEFINITIONS CMAKE_REQUIRED_FLAGS
CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
  if( NOT HAVE_KONQSIDEBARPLUGIN_H )
    tde_message_fatal( "konqsidebarplugin.h are requested, but not found on your
system" )
  endif( )
endif( )

How can that not find /opt/trinity/include?? set( CMAKE_REQUIRED_INCLUDES
${TDE_INCLUDE_DIR};... should do it?

-- 
David C. Rankin, J.D.,P.E.