[CMake] Hi, i am looking for some help to build kuroo with cmake

Alexandre BIQUE bique.alexandre at gmail.com
Wed Aug 23 06:46:00 EDT 2006


> Did you use the "--kde3" switch for am2cmake ? (Probably you did).
Yes, i did.

> Can you please post some concrete error messages ?

Generating options1.cpp
cd /home/babali/develop/kuroo-test/src/config && /usr/bin/cmake \
-DKDE_UIC_FILE:STRING=/home/babali/develop/kuroo-test/src/config/options1.ui \
-DKDE_UIC_PLUGIN_DIR:PATH=/usr/kde/3.5/lib/kde3/plugins/designer \
-DKDE_UIC_CPP_FILE:STRING=/home/babali/develop/kuroo-test/src/config/options1.cpp\
 -DKDE_UIC_H_FILE:STRING=/home/babali/develop/kuroo-test/src/config/options1.h\
-P /usr/share/cmake/Modules/kde3uic.cmake

=> This generate this options1.cpp (which is empty) :
config>cat options1.cpp
#include <kdialog.h>
#include <klocale.h>

config>     


Generating settings.cpp
cd /home/babali/develop/kuroo-test/src/config 
&& /usr/kde/3.5/bin/kconfig_compil /home/babali/develop/kuroo-test/src/config/settings.kcfgckcfg
kconfig_compiler: ERROR: Unable to load document.
, line 1, col 1: unexpected end of file kurooconfig.kcfg


But if i dot it manualy it's ok : 
cd /home/babali/develop/kuroo-test/src/config \ 
&& /usr/kde/3.5/bin/kconfig_compiler kurooconfig.kcfg settings.kcfgc


So the CMakeLists.txt in the subdir config :

INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/config 
${CMAKE_SOURCE_DIR}/src/core ${CMAKE_SOURCE_DIR}/src/history 
${CMAKE_SOURCE_DIR}/src/intro ${CMAKE_SOURCE_DIR}/src/logs 
${CMAKE_SOURCE_DIR}/src/portage ${CMAKE_SOURCE_DIR}/src/queue 
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} 
${QT_INCLUDE_DIR}  )


########### next target ###############

SET(config_STAT_SRCS
configdialog.cpp
)

KDE3_AUTOMOC(${config_STAT_SRCS})

SET( config_UI
options1.ui
options2.ui
options7.ui
)

KDE3_ADD_UI_FILES(config_STAT_SRCS ${config_UI} )

SET( config_KCFG_SRCS
settings.kcfgc
)

KDE3_ADD_KCFG_FILES(config_STAT_SRCS ${config_KCFG_SRCS})

ADD_LIBRARY(config STATIC ${config_STAT_SRCS})


########### install files ###############

INSTALL_FILES( /share/config.kcfg FILES  kurooconfig.kcfg )



#original Makefile.am contents follow:

#INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/config \
#	-I$(top_srcdir)/src/core -I$(top_srcdir)/src/history -I$(top_srcdir)/src/intro 
\
#	-I$(top_srcdir)/src/logs -I$(top_srcdir)/src/portage -I$(top_srcdir)/src/queue 
\
#	-I$(top_builddir)/src/core $(all_includes)
#
#METASOURCES = AUTO
#
#noinst_LTLIBRARIES = libconfig.la
#
#libconfig_la_SOURCES = settings.kcfgc configdialog.cpp options1.ui 
options2.ui \
#	options7.ui
#
#noinst_HEADERS = configdialog.h
#
#kde_kcfg_DATA = kurooconfig.kcfg

-----------------------------------------

Thank you ;)


More information about the CMake mailing list