trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

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

From: Darrell Anderson <humanreadable@...>
Date: Wed, 14 Mar 2012 11:45:05 -0700 (PDT)
> 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?

Check the cmake error log. With automake packages, check configure.log. Often either of those provide clues.

My cmake output looks like this:

-- Performing Test HAVE_KONQSIDEBARPLUGIN_H
-- Performing Test HAVE_KONQSIDEBARPLUGIN_H - Success

Darrell