All,
What is this karma-sharp.'dll' stuff in the amarok cmake files? Isn't .dll m$ only? I have libkarma -- but it doesn't have any .dll:
/usr/bin/chprop /usr/bin/karma_helper /usr/bin/riocp /usr/include/ /usr/include/libkarma/ /usr/include/libkarma/lkarma.h /usr/include/libkarma/utf8.h /usr/lib/ /usr/lib/libkarma.a /usr/lib/libkarma.so /usr/lib/libkarma.so.0 /usr/lib/libkarma.so.0.1.1 /usr/share/ /usr/share/man/ /usr/share/man/man1/ /usr/share/man/man1/chprop.1.gz /usr/share/man/man1/karma_helper.1.gz /usr/share/man/man1/riocp.1.gz
Shouldn't this work?
On Sunday 01 April 2012 01:48:03 David C. Rankin wrote:
All,
What is this karma-sharp.'dll' stuff in the amarok cmake files? Isn't .dll m$ only? I have libkarma -- but it doesn't have any .dll:
If i'm not wrong, mono provide dll files too. Seems that amarok use mono version of libkarma.
On 03/31/2012 05:58 PM, Serghei Amelian wrote:
If i'm not wrong, mono provide dll files too. Seems that amarok use mono version of libkarma.
Your not -- I just found it:
http://bobcopeland.com/karma/banshee/
Good reference...
On 03/31/2012 06:07 PM, David C. Rankin wrote:
On 03/31/2012 05:58 PM, Serghei Amelian wrote:
If i'm not wrong, mono provide dll files too. Seems that amarok use mono version of libkarma.
Your not -- I just found it:
http://bobcopeland.com/karma/banshee/
Good reference...
Build still fails with CMake error:
18:47 archangel:/dat_e/bld/libkarma> ls -l /usr/lib/karma-sharp/ total 12 -rwxr-xr-x 1 root root 8192 Mar 31 18:43 karma-sharp.dll -rwxr-xr-x 1 root root 79 Mar 31 18:43 karma-sharp.dll.config
18:47 archangel:/dat_e/bld/libkarma> pkg-config --libs karma-sharp -r:/usr/lib/karma-sharp/karma-sharp.dll
18:49 archangel:/dat_e/bld/libkarma> cat /usr/lib/karma-sharp/karma-sharp.dll.config <configuration> <dllmap dll="karma" target="libkarma.so.0" /> </configuration>
<snip> -- checking for one of the modules 'dbus-1' -- checking for one of the modules 'dbus-tqt' -- Looking for ifp.h -- Looking for ifp.h - found -- Looking for ifp_init in ifp -- Looking for ifp_init in ifp - found -- checking for one of the modules 'libusb' -- checking for one of the modules 'libnjb' -- checking for one of the modules 'libmtp' CMake Error at cmake/modules/TDEMacros.cmake:23 (message): #################################################
riokarma support is not buildable, it needs to link to karma-sharp.dll
################################################# Call Stack (most recent call first): amarok/src/mediadevice/riokarma/CMakeLists.txt:12 (tde_message_fatal)
What gives?
On Sunday 01 April 2012 02:51:44 David C. Rankin wrote: [...]
riokarma support is not buildable, it needs to link to karma-sharp.dll
################################################# Call Stack (most recent call first): amarok/src/mediadevice/riokarma/CMakeLists.txt:12 (tde_message_fatal)
What gives?
This is intentional. Comment offending tde_message_fatal and check if is buildable.
On 03/31/2012 06:51 PM, David C. Rankin wrote:
On 03/31/2012 06:07 PM, David C. Rankin wrote:
On 03/31/2012 05:58 PM, Serghei Amelian wrote:
If i'm not wrong, mono provide dll files too. Seems that amarok use mono version of libkarma.
Your not -- I just found it:
http://bobcopeland.com/karma/banshee/
Good reference...
Build still fails with CMake error:
18:47 archangel:/dat_e/bld/libkarma> ls -l /usr/lib/karma-sharp/ total 12 -rwxr-xr-x 1 root root 8192 Mar 31 18:43 karma-sharp.dll -rwxr-xr-x 1 root root 79 Mar 31 18:43 karma-sharp.dll.config
18:47 archangel:/dat_e/bld/libkarma> pkg-config --libs karma-sharp -r:/usr/lib/karma-sharp/karma-sharp.dll
18:49 archangel:/dat_e/bld/libkarma> cat /usr/lib/karma-sharp/karma-sharp.dll.config
<configuration> <dllmap dll="karma" target="libkarma.so.0" /> </configuration>
<snip> -- checking for one of the modules 'dbus-1' -- checking for one of the modules 'dbus-tqt' -- Looking for ifp.h -- Looking for ifp.h - found -- Looking for ifp_init in ifp -- Looking for ifp_init in ifp - found -- checking for one of the modules 'libusb' -- checking for one of the modules 'libnjb' -- checking for one of the modules 'libmtp' CMake Error at cmake/modules/TDEMacros.cmake:23 (message): #################################################
riokarma support is not buildable, it needs to link to karma-sharp.dll
################################################# Call Stack (most recent call first): amarok/src/mediadevice/riokarma/CMakeLists.txt:12 (tde_message_fatal)
What gives?
Is there a problem with:
amarok/amarok/src/mediadevice/riokarma/CMakeLists.txt
##### libamarok_riokarma-mediadevice (module) ###
tde_add_kpart( libamarok_riokarma-mediadevice AUTOMOC SOURCES riokarmamediadevice.cpp LINK amarok-shared ${KARMA_LIBRARIES} DESTINATION ${PLUGIN_INSTALL_DIR}
not finding ${KARMA_LIBRARIES}?
It looks like it is in amarok/amarok/src/mediadevice/riokarma/ConfigureChecks.cmake:
# libkarma pkg_search_module( KARMA karma-sharp ) if( NOT KARMA_FOUND ) tde_message_fatal( "libkarma is required, but was not found on your system" ) endif( )
but the CMake check is still failing??
On 03/31/2012 07:00 PM, David C. Rankin wrote:
Is there a problem with:
amarok/amarok/src/mediadevice/riokarma/CMakeLists.txt
##### libamarok_riokarma-mediadevice (module) ###
tde_add_kpart( libamarok_riokarma-mediadevice AUTOMOC SOURCES riokarmamediadevice.cpp LINK amarok-shared ${KARMA_LIBRARIES} DESTINATION ${PLUGIN_INSTALL_DIR}
not finding ${KARMA_LIBRARIES}?
It looks like it is in amarok/amarok/src/mediadevice/riokarma/ConfigureChecks.cmake:
# libkarma pkg_search_module( KARMA karma-sharp ) if( NOT KARMA_FOUND ) tde_message_fatal( "libkarma is required, but was not found on your system" ) endif( )
but the CMake check is still failing??
Messages crossed in main.. I'll try comment and report back...
On 03/31/2012 07:04 PM, David C. Rankin wrote:
On 03/31/2012 07:00 PM, David C. Rankin wrote:
Is there a problem with:
amarok/amarok/src/mediadevice/riokarma/CMakeLists.txt
##### libamarok_riokarma-mediadevice (module) ###
tde_add_kpart( libamarok_riokarma-mediadevice AUTOMOC SOURCES riokarmamediadevice.cpp LINK amarok-shared ${KARMA_LIBRARIES} DESTINATION ${PLUGIN_INSTALL_DIR}
not finding ${KARMA_LIBRARIES}?
It looks like it is in amarok/amarok/src/mediadevice/riokarma/ConfigureChecks.cmake:
# libkarma pkg_search_module( KARMA karma-sharp ) if( NOT KARMA_FOUND ) tde_message_fatal( "libkarma is required, but was not found on your system" ) endif( )
but the CMake check is still failing??
Messages crossed in main.. I'll try comment and report back...
Darn...
[ 22%] Building C object amarok/src/mediadevice/daap/mongrel/http11/CMakeFiles/http11-shared.dir/http11.c.o cd /build/src/build/amarok/src/mediadevice/daap/mongrel/http11 && /usr/bin/gcc -Dhttp11_shared_EXPORTS -DHAVE_CONFIG_H -Dinline=__inline__ -Dasm=__asm__ -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/lib/ruby/1.9.1/x86_64-linux -o CMakeFiles/http11-shared.dir/http11.c.o -c /build/src/amarok/amarok/src/mediadevice/daap/mongrel/http11/http11.c /build/src/amarok/amarok/src/mediadevice/daap/mongrel/http11/http11.c:5:18: fatal error: ruby.h: No such file or directory compilation terminated. Linking CXX static library libauthentication.a cd /build/src/build/amarok/src/mediadevice/daap/daapreader/authentication && /usr/bin/cmake -P CMakeFiles/authentication-static.dir/cmake_clean_target.cmake make[2]: *** [amarok/src/mediadevice/daap/mongrel/http11/CMakeFiles/http11-shared.dir/http11.c.o] Error 1 make[2]: Leaving directory `/build/src/build' make[1]: *** [amarok/src/mediadevice/daap/mongrel/http11/CMakeFiles/http11-shared.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... cd /build/src/build/amarok/src/mediadevice/daap/daapreader/authentication && /usr/bin/cmake -E cmake_link_script CMakeFiles/authentication-static.dir/link.txt --verbose=1 /usr/bin/ar cr libauthentication.a CMakeFiles/authentication-static.dir/contentfetcher.cpp.o CMakeFiles/authentication-static.dir/md5.c.o CMakeFiles/authentication-static.dir/hasher.c.o /usr/bin/ranlib libauthentication.a make[2]: Leaving directory `/build/src/build' /usr/bin/cmake -E cmake_progress_report /build/src/build/CMakeFiles 65 [ 22%] Built target authentication-static Linking CXX shared module konqsidebar_universalamarok.so cd /build/src/build/amarok/src/konquisidebar && /usr/bin/cmake -E cmake_link_script CMakeFiles/konqsidebar_universalamarok-module.dir/link.txt --verbose=1 /usr/bin/c++ -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -Wl,--no-undefined -shared -Wl,-soname,konqsidebar_universalamarok.so -o konqsidebar_universalamarok.so CMakeFiles/konqsidebar_universalamarok-module.dir/universalamarok.cpp.o CMakeFiles/konqsidebar_universalamarok-module.dir/amarokdcopiface_stub.cpp.o -L/opt/tqt3/lib /opt/trinity/lib/libkonqsidebarplugin.so.1.2.0 /opt/trinity/lib/libkhtml.so.4.2.0 /opt/trinity/lib/libkutils.so.1.2.0 /opt/trinity/lib/libkparts.so.2.1.0 /opt/trinity/lib/libtdeprint.so.4.2.0 /opt/trinity/lib/libkio.so.4.2.0 /opt/trinity/lib/libtdeui.so.4.2.0 -lfreetype -lfontconfig /opt/trinity/lib/libtdesu.so.4.2.0 -lutil /opt/trinity/lib/libkwalletclient.so.1.0.1 /opt/trinity/lib/libkjs.so.1.2.0 /opt/trinity/lib/libtdecore.so.4.2.0 /opt/trinity/lib/libDCOP.so.4.2.0 /opt/trinity/lib/libtdefx.so.4.2.0 -ltqt -ltqt-mt -lXrender -lX11 -lz -lidn -lXcomposite -lICE -lSM -lpcre -ljpeg -Wl,-rpath,/opt/tqt3/lib:/opt/trinity/lib: make[2]: Leaving directory `/build/src/build' /usr/bin/cmake -E cmake_progress_report /build/src/build/CMakeFiles 68 [ 22%] Built target konqsidebar_universalamarok-module make[1]: Leaving directory `/build/src/build' make: *** [all] Error 2
I even tried:
export RUBY_INCLUDE_DIR=/usr/include/ruby-1.9.1
What to try next? Can I add this to the cmake files somewhere?
On 03/31/2012 07:30 PM, David C. Rankin wrote:
I even tried:
export RUBY_INCLUDE_DIR=/usr/include/ruby-1.9.1
What to try next? Can I add this to the cmake files somewhere?
Fixed that with CXXFLAGS, but then hit:
-I/opt/tqt3/include -I/usr/include/tqt -o CMakeFiles/libamarok_xine-engine-module.dir/xinecfg.cpp.o -c /build/src/build/amarok/src/engine/xine/xinecfg.cpp /usr/bin/cmake -E cmake_progress_report /build/src/build/CMakeFiles [ 70%] Building CXX object amarok/src/engine/xine/CMakeFiles/libamarok_xine-engine-module.dir/xine-engine.cpp.o cd /build/src/build/amarok/src/engine/xine && /usr/bin/c++ -Dlibamarok_xine_engine_module_EXPORTS -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/ruby-1.9.1 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -fPIC -I/build/src/build/amarok/src/engine/xine -I/build/src/build -I/build/src/build/amarok/src/amarokcore -I/build/src/amarok/amarok/src -I/build/src/amarok/amarok/src/amarokcore -I/opt/trinity/include -I/opt/tqt3/include -I/usr/include/tqt -o CMakeFiles/libamarok_xine-engine-module.dir/xine-engine.cpp.o -c /build/src/amarok/amarok/src/engine/xine/xine-engine.cpp /build/src/amarok/amarok/src/engine/xine/xine-engine.cpp: In static member function 'static void XineEngine::XineEventListener(void*, const xine_event_t*)': /build/src/amarok/amarok/src/engine/xine/xine-engine.cpp:940:85: warning: 'xine_mrl_reference_data_t' is deprecated (declared at /usr/include/xine.h:1985) [-Wdeprecated-declarations] /build/src/amarok/amarok/src/engine/xine/xine-engine.cpp: In member function 'virtual bool XineEngine::getAudioCDContents(const TQString&, KURL::List&)': /build/src/amarok/amarok/src/engine/xine/xine-engine.cpp:1151:58: error: invalid conversion from 'const char* const*' to 'char**' [-fpermissive] make[2]: *** [amarok/src/engine/xine/CMakeFiles/libamarok_xine-engine-module.dir/xine-engine.cpp.o] Error 1 make[2]: Leaving directory `/build/src/build' make[1]: *** [amarok/src/engine/xine/CMakeFiles/libamarok_xine-engine-module.dir/all] Error 2 make[1]: Leaving directory `/build/src/build' make: *** [all] Error 2
On 03/31/2012 07:43 PM, David C. Rankin wrote:
On 03/31/2012 07:30 PM, David C. Rankin wrote:
I even tried:
export RUBY_INCLUDE_DIR=/usr/include/ruby-1.9.1
What to try next? Can I add this to the cmake files somewhere?
Fixed that with CXXFLAGS, but then hit:
-I/opt/tqt3/include -I/usr/include/tqt -o CMakeFiles/libamarok_xine-engine-module.dir/xinecfg.cpp.o -c /build/src/build/amarok/src/engine/xine/xinecfg.cpp /usr/bin/cmake -E cmake_progress_report /build/src/build/CMakeFiles [ 70%] Building CXX object amarok/src/engine/xine/CMakeFiles/libamarok_xine-engine-module.dir/xine-engine.cpp.o cd /build/src/build/amarok/src/engine/xine && /usr/bin/c++ -Dlibamarok_xine_engine_module_EXPORTS -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/ruby-1.9.1 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -fPIC -I/build/src/build/amarok/src/engine/xine -I/build/src/build -I/build/src/build/amarok/src/amarokcore -I/build/src/amarok/amarok/src -I/build/src/amarok/amarok/src/amarokcore -I/opt/trinity/include -I/opt/tqt3/include -I/usr/include/tqt -o CMakeFiles/libamarok_xine-engine-module.dir/xine-engine.cpp.o -c /build/src/amarok/amarok/src/engine/xine/xine-engine.cpp /build/src/amarok/amarok/src/engine/xine/xine-engine.cpp: In static member function 'static void XineEngine::XineEventListener(void*, const xine_event_t*)': /build/src/amarok/amarok/src/engine/xine/xine-engine.cpp:940:85: warning: 'xine_mrl_reference_data_t' is deprecated (declared at /usr/include/xine.h:1985) [-Wdeprecated-declarations] /build/src/amarok/amarok/src/engine/xine/xine-engine.cpp: In member function 'virtual bool XineEngine::getAudioCDContents(const TQString&, KURL::List&)': /build/src/amarok/amarok/src/engine/xine/xine-engine.cpp:1151:58: error: invalid conversion from 'const char* const*' to 'char**' [-fpermissive] make[2]: *** [amarok/src/engine/xine/CMakeFiles/libamarok_xine-engine-module.dir/xine-engine.cpp.o] Error 1 make[2]: Leaving directory `/build/src/build' make[1]: *** [amarok/src/engine/xine/CMakeFiles/libamarok_xine-engine-module.dir/all] Error 2 make[1]: Leaving directory `/build/src/build' make: *** [all] Error 2
Fixed that with '-fpermissive'
but then every 3rd party package (mtp, riokarma, daap, etc.. is way broken....) eg <cstddef> stuff, etc..:
[ 74%] Building CXX object amarok/src/mediadevice/mtp/CMakeFiles/libamarok_mtp-mediadevice-module.dir/mtpmediadevice.cpp.o cd /build/src/build/amarok/src/mediadevice/mtp && /usr/bin/c++ -Dlibamarok_mtp_mediadevice_module_EXPORTS -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/ruby-1.9.1 -fpermissive -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -fPIC -I/build/src/build/amarok/src/mediadevice/mtp -I/build/src/build -I/build/src/amarok/amarok/src -I/opt/trinity/include -I/opt/tqt3/include -I/usr/include/tqt -o CMakeFiles/libamarok_mtp-mediadevice-module.dir/mtpmediadevice.cpp.o -c /build/src/amarok/amarok/src/mediadevice/mtp/mtpmediadevice.cpp /build/src/amarok/amarok/src/mediadevice/mtp/mtpmediadevice.cpp: In member function 'uint32_t MtpMediaDevice::getDefaultParentId()': /build/src/amarok/amarok/src/mediadevice/mtp/mtpmediadevice.cpp:384:56: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] /build/src/amarok/amarok/src/mediadevice/mtp/mtpmediadevice.cpp: In member function 'LIBMTP_album_t* MtpMediaDevice::getOrCreateAlbum(TQPtrList<MediaItem>*)': /build/src/amarok/amarok/src/mediadevice/mtp/mtpmediadevice.cpp:512:128: error: 'realloc' was not declared in this scope /build/src/amarok/amarok/src/mediadevice/mtp/mtpmediadevice.cpp:528:85: error: 'malloc' was not declared in this scope /build/src/amarok/amarok/src/mediadevice/mtp/mtpmediadevice.cpp: In member function 'void MtpMediaDevice::playlistFromItem(MtpMediaItem*)': /build/src/amarok/amarok/src/mediadevice/mtp/mtpmediadevice.cpp:895:81: error: 'malloc' was not declared in this scope /build/src/amarok/amarok/src/mediadevice/mtp/mtpmediadevice.cpp: In member function 'virtual bool MtpMediaDevice::openDevice(bool)': /build/src/amarok/amarok/src/mediadevice/mtp/mtpmediadevice.cpp:1146:21: error: 'free' was not declared in this scope /build/src/amarok/amarok/src/mediadevice/mtp/mtpmediadevice.cpp: In member function 'virtual void MtpMediaDevice::customClicked()': /build/src/amarok/amarok/src/mediadevice/mtp/mtpmediadevice.cpp:1254:21: error: 'free' was not declared in this scope make[2]: *** [amarok/src/mediadevice/mtp/CMakeFiles/libamarok_mtp-mediadevice-module.dir/mtpmediadevice.cpp.o] Error 1 make[2]: Leaving directory `/build/src/build' make[1]: *** [amarok/src/mediadevice/mtp/CMakeFiles/libamarok_mtp-mediadevice-module.dir/all] Error 2 make[1]: Leaving directory `/build/src/build' make: *** [all] Error 2
This code needs work :(