Sunday 26 June 2011

Error got while building kraft

I got this error while building KRAFT using QT-creator



-- Found Qt-Version 4.7.0 (using /usr/bin/qmake)

-- Found X11: /usr/lib/libX11.so

-- Found KDE 4.5 include dir: /usr/include

-- Found KDE 4.5 library dir: /usr/lib

-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler

-- Found automoc4: /usr/bin/automoc4

CMake Error at /usr/share/kde4/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:198 (MESSAGE):

Could NOT find KdepimLibs (missing: KdepimLibs_CONFIG)

Call Stack (most recent call first):

/usr/share/kde4/apps/cmake/modules/FindKdepimLibs.cmake:80 (find_package_handle_standard_args)

CMakeLists.txt:7 (find_package)

-- Configuring incomplete, errors occurred!



So i added the kdepimlibs5-dev using the ubuntu software center, after which i got the following output

.

.

.


-- Found automoc4: /usr/bin/automoc4

-- Found KdepimLibs: /usr/lib/cmake/KdepimLibs/KdepimLibsConfig.cmake

CMake Error at /usr/share/kde4/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:198 (MESSAGE):

Could NOT find Ctemplate (missing: CTEMPLATE_INCLUDE_DIR

CTEMPLATE_LIBRARIES)

Call Stack (most recent call first):

cmake/modules/FindCtemplate.cmake:23 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)

CMakeLists.txt:8 (find_package)

-- Configuring incomplete, errors occurred!



After this i installed the libctemplate-dev again using the ubuntu software center after which i am able to build it successfully with the following output


-- Found automoc4: /usr/bin/automoc4

-- Found Ctemplate: /usr/include

-- Configuring done

-- Generating done

-- Build files have been written to: /home/puneet/puneet/office/qtcreator-build



Now after running cmake, when i tried to build it, I got the following error

/usr/include/akonadi/itempayloadinternals_p.h:28: error: boost/shared_ptr.hpp: No such file or directory


which i thought that i have not installed the boost libraries yet

So installed the boost library libboost1.4.2-dev again using the ubuntu software center

After which this issue was resolved when i again clicked on the icon to build it

However i still got some warnings as shown as follows


/home/puneet/puneet/office/kraft/src/models/modeltest.cpp:468: warning: unused parameter ‘end’

/home/puneet/puneet/office/kraft/src/models/modeltest.cpp:520: warning: unused parameter ‘parent’

/home/puneet/puneet/office/kraft/src/models/modeltest.cpp:520: warning: unused parameter ‘start’

/home/puneet/puneet/office/kraft/src/models/modeltest.cpp:520: warning: unused parameter ‘end’

/home/puneet/puneet/office/kraft/src/external/ktreeviewsearchline.cpp:192: warning: unused parameter ‘treeView’


But i ignored the warnings and clicked on the Run icon


and it showed with a new window of kraft application :D

with the following output in the application ouput window of QT-creator

http://pastebin.com/FJzFYE5p

No comments:

Post a Comment