MediaDeviceCache Include

Alejandro Wainzinger aikawarazuni at gmail.com
Tue Jun 3 04:12:58 CEST 2008


I'm having trouble including MediaDeviceCache.h in
src/collection/mediadevicecollection/mediadevicecollection.cpp, I just
added a simple #include "MediaDeviceCache.h" there, and tried to use
some of the class's methods, but I'm getting this:

CMakeFiles/amarok_collection-mediadevicecollection.dir/mediadevicecollection.o:
In function `MediaDeviceCollectionFactory::init()':
/home/xevix/kde4dev/amarok/src/collection/mediadevicecollection/mediadevicecollection.cpp:68:
undefined reference to `MediaDeviceCache::refreshCache()'
CMakeFiles/amarok_collection-mediadevicecollection.dir/mediadevicecollection.o:
In function `MediaDeviceCache::instance()':
/home/xevix/kde4dev/amarok/src/collection/mediadevicecollection/../../MediaDeviceCache.h:40:
undefined reference to `MediaDeviceCache::s_instance'
/home/xevix/kde4dev/amarok/src/collection/mediadevicecollection/../../MediaDeviceCache.h:40:
undefined reference to `MediaDeviceCache::MediaDeviceCache()'
/home/xevix/kde4dev/amarok/src/collection/mediadevicecollection/../../MediaDeviceCache.h:40:
undefined reference to `MediaDeviceCache::s_instance'
collect2: ld returned 1 exit status
make[2]: *** [lib/libamarok_collection-mediadevicecollection.so] Error 1
make[2]: Leaving directory `/home/xevix/kde4dev/amarok/amarok-build'
make[1]: *** [src/collection/mediadevicecollection/CMakeFiles/amarok_collection-mediadevicecollection.dir/all]
Error 2
make[1]: Leaving directory `/home/xevix/kde4dev/amarok/amarok-build'
make: *** [all] Error 2
makeobj[0]: Leaving directory `/home/xevix/kde4dev/amarok/amarok-build'



Any idea why it wouldn't be picking this up?  The CMakeLists.txt has
the src/ directory, where the header is located, as in include
directory.


More information about the Amarok-devel mailing list