compilation problems after upgrading to Karmic

Andreas Pakulat apaku at gmx.de
Wed Sep 2 21:32:06 BST 2009


On 02.09.09 21:29:16, Morten Volden wrote:
> Hi
> 
> I hope someone here can point me in the right direction.
> 
> I compile kdevelop using the directions explained in:
> 
> http://www.kdevelop.org/mediawiki/index.php/KDevelop_4/compiling
> 
> After performing an upgrade of Ubuntu to Karmic I am able to compile the
> kdevplatform library without any problems.
> 
> Compiling kdevelop, however, is another story.
> 
> Removing $HOME/src/kdevelop/build/CMakeCache.txt and trying to do e.g.
> uninstall gives the following:
> 
> mvo at mvo-desktop:~/src/kdevelop/build$ cd $HOME/src/kdevelop/build && make
> > uninstall
> > -- The C compiler identification is GNU
> > -- The CXX compiler identification is GNU
> >
> > .....Cut the text here.....
> >
> > -- Found automoc4: /usr/bin/automoc4
> > CMake Error at CMakeLists.txt:19 (find_package):
> >   Could not find module FindKDevPlatform.cmake or a configuration file for
> >   package KDevPlatform.
> >
> >   Adjust CMAKE_MODULE_PATH to find FindKDevPlatform.cmake or set
> >   KDevPlatform_DIR to the directory containing a CMake configuration file
> > for
> >   KDevPlatform.  The file will have one of the following names:
> >
> >     KDevPlatformConfig.cmake
> >     kdevplatform-config.cmake
> >
> 
> So I tried to set KDevPlatform_DIR:
> 
> export KDevPlatform_DIR=/home/mvo/src/kdevplatform/build

Thats wrong, you shouldn't put the builddirectory there. Where did you
install kdevplatform to? You'll need something like this:

cmake -DCMAKE_PREFIX_PATH=<where kdevplatform was installed to> ../

when running cmake in kdevelop. Also uninstall doesn't make any sense here.
Just delete the whole builddir and then run the above cmake and make
afterwards. 

In case you're worried about older plugins lying in your installation dir
for kdevplatform/kdevelop, just delete the installation dir (or any
*kdev*.so and *kdev*.desktop files from it)

Andreas

-- 
You will become rich and famous unless you don't.




More information about the KDevelop mailing list