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 :(
--
David C. Rankin, J.D.,P.E.