This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Can't build from SVN (commit 960901) (ipodcollection)

Tags: None
(comma "," separated)
superwad
Registered Member
Posts
7
Karma
0
I am not able to build using commit 960901 on Kubuntu 9.04.  I've made sure I have all the libglib dev packages, and all other dev packages.  I have satisfied all the pre-requisites for building, but it just won't carry on.

Here is my failure:
Code: Select all
[ 57%] Built target amarok_collection-ipodcollection_automoc
Scanning dependencies of target amarok_collection-ipodcollection
[ 57%] Building CXX object src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/amarok_collection-ipodcollection_automoc.o
[ 57%] Building CXX object src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/IpodMeta.o
[ 57%] Building CXX object src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/IpodCollection.o
[ 57%] Building CXX object src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/IpodCollectionLocation.o
[ 58%] Building CXX object src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/handler/IpodHandler.o
/home/wad/kde/src/amarok/src/collection/ipodcollection/handler/IpodHandler.cpp: In constructor ‘Ipod::IpodHandler::IpodHandler(IpodCollection*, const QString&, QObject*)’:
/home/wad/kde/src/amarok/src/collection/ipodcollection/handler/IpodHandler.cpp:87: error: ‘g_type_init’ was not declared in this scope
make[2]: *** [src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/handler/IpodHandler.o] Error 1
make[1]: *** [src/collection/ipodcollection/CMakeFiles/amarok_collection-ipodcollection.dir/all] Error 2
make: *** [all] Error 2



I went into the IpodHandler.cpp file, and I noticed that the .h file that contained g_type_init was wrapped in an "#ifdef GDK_FOUND", so what I did to finish compilation was copy the #include just below the #endif.  I'm probably sure this is making somebody out there cry a little, but that was necessary to get it to build at all.

I've spent 2 days in the IRC channel trying to get help finishing the compile using the proper instructions (http://www.howtoforge.com/how-to-compil ... k-x-ubuntu), but sadly nobody was able to help me.  Hopefully this problem wasn't just contained to me, and that this post helps a problem get resolved.

Thanks!
nhn
KDE Developer
Posts
114
Karma
0
OS
I had the same issue on my laptop for a while. Sadly I forget the exact fix. As a workaround I just commented the iPod collection out of src/collection/CmakeLists.txt to get it building. ( "add_subdirectory( ipodcollection )" -> "#add_subdirectory( ipodcollection )" )
superwad
Registered Member
Posts
7
Karma
0
Hmm, that would probably work.  I don't use Amarok to manage my iPod anyways, so I wouldn't be missing much functionality.

I'll give that a shot and see if things improve.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]