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

Weird build errors [OpenSuse 11.1]

Tags: None
(comma "," separated)
4zzdawg
Registered Member
Posts
1
Karma
0

Weird build errors [OpenSuse 11.1]

Sun Apr 19, 2009 10:42 am
Hey guys,

I'm trying to build Amarok-2.0.2 on my OpenSuse 11.1 system with KDE 4.1.3.
And I'm getting a couple of strange errors when I run cmake that I can't work out or find anywhere on the net.

Code: Select all
CMake Error at src/collection/sqlcollection/CMakeLists.txt:52 (STRING):
  string sub-command REPLACE requires four arguments.


Any ideas? :(

Last edited by 4zzdawg on Sun Apr 19, 2009 10:45 am, edited 1 time in total.
QuakeD
Registered Member
Posts
9
Karma
0
I have this error too, on my ubuntu 9.04...
I definitely don't know how to do...that's my error

Code: Select all
edo@quake:~/amarok/amarok2.0-build$ cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
-- Found Qt-Version 4.5.0 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Phonon Version: 4.3.0
-- Found KDE 4.2 include dir: /usr/include
-- Found KDE 4.2 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
Qt QTNSPLUGIN library not found.
-- Found taglib: -L/usr/lib -ltag
-- Taglib found: -L/usr/lib -ltag
-- Strigi API needs 'signed char'
-- Found MySQL: /usr/include/mysql, /usr/lib/libmysqlclient.so
-- Found MySQL Embedded: /usr/include/mysql, /usr/lib/mysql/libmysqld.a
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found MTP: /usr/lib/libmtp.so
-- Could NOT find CURL  (missing:  CURL_LIBRARY CURL_INCLUDE_DIR)
-- Libgcrypt found: /lib/libgcrypt.so
-- Found GObject libraries: /usr/lib/libgobject-2.0.so;/usr/lib/libgmodule-2.0.so;/usr/lib/libgthread-2.0.so;/usr/lib/libglib-2.0.so
-- Found GObject includes : /usr/include/glib-2.0/gobject
-- Found Soprano: /usr/lib/libsoprano.so
-- Found Soprano includes: /usr/include
-- Found Soprano Index: /usr/lib/libsopranoindex.so
-- Found Soprano Client: /usr/lib/libsopranoclient.so
-- Found Soprano Plugin Dir: /usr/share/soprano/plugins
-- Found Soprano Plugins: nquadparser nquadserializer raptorparser raptorserializer redlandbackend
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found MTP: /usr/lib/libmtp.so
CMake Error at src/collection/sqlcollection/CMakeLists.txt:52 (STRING):
  string sub-command REPLACE requires four arguments.


CMake Error at src/collection/sqlcollection/CMakeLists.txt:55 (STRING):
  string sub-command REPLACE requires four arguments.


--
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ kdelibs
+ taglib
+ strigi
+ mysqld
+ zlib
+ glib2
+ Gdk
+ libgpod
+ libmp4v2
+ libmtp
+ libxml2
+ openssl or libgcrypt
+ gobject
+ loudmouth
+ soprano
+ nepomuk
+ Qt4 Glib support
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ curl: cURL provides the necessary network libraries required by mp3tunes. <http://curl.haxx.se>
-----------------------------------------------------------------------------

-- Configuring incomplete, errors occurred!
edo@quake:~/amarok/amarok2.0-build$ cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
-- Found Qt-Version 4.5.0 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Phonon Version: 4.3.0
-- Found KDE 4.2 include dir: /usr/include
-- Found KDE 4.2 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
Qt QTNSPLUGIN library not found.
-- Found taglib: -L/usr/lib -ltag
-- Taglib found: -L/usr/lib -ltag
-- Strigi API needs 'signed char'
-- Found MySQL: /usr/include/mysql, /usr/lib/libmysqlclient.so
-- Found MySQL Embedded: /usr/include/mysql, /usr/lib/mysql/libmysqld.a
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found MTP: /usr/lib/libmtp.so
-- Could NOT find CURL  (missing:  CURL_LIBRARY CURL_INCLUDE_DIR)
-- Libgcrypt found: /lib/libgcrypt.so
-- Found GObject libraries: /usr/lib/libgobject-2.0.so;/usr/lib/libgmodule-2.0.so;/usr/lib/libgthread-2.0.so;/usr/lib/libglib-2.0.so
-- Found GObject includes : /usr/include/glib-2.0/gobject
-- Found Soprano: /usr/lib/libsoprano.so
-- Found Soprano includes: /usr/include
-- Found Soprano Index: /usr/lib/libsopranoindex.so
-- Found Soprano Client: /usr/lib/libsopranoclient.so
-- Found Soprano Plugin Dir: /usr/share/soprano/plugins
-- Found Soprano Plugins: nquadparser nquadserializer raptorparser raptorserializer redlandbackend
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found MTP: /usr/lib/libmtp.so
CMake Error at src/collection/sqlcollection/CMakeLists.txt:52 (STRING):
  string sub-command REPLACE requires four arguments.


CMake Error at src/collection/sqlcollection/CMakeLists.txt:55 (STRING):
  string sub-command REPLACE requires four arguments.


--
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ kdelibs
+ taglib
+ strigi
+ mysqld
+ zlib
+ glib2
+ Gdk
+ libgpod
+ libmp4v2
+ libmtp
+ libxml2
+ openssl or libgcrypt
+ gobject
+ loudmouth
+ soprano
+ nepomuk
+ Qt4 Glib support
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ curl: cURL provides the necessary network libraries required by mp3tunes. <http://curl.haxx.se>
-----------------------------------------------------------------------------

-- Configuring incomplete, errors occurred!


****
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
Install libcurl-dev!

Greetings
m0nk


If men could get pregnant, abortion would be a sacrament.
QuakeD
Registered Member
Posts
9
Karma
0
obviously that was NOT the problem...the error I meant was the cmake one.

Code: Select all
edo@quake:~/amarok/amarok2.0-build$ cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
-- Found Qt-Version 4.5.0 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Phonon Version: 4.3.0
-- Found KDE 4.2 include dir: /usr/include
-- Found KDE 4.2 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
Qt QTNSPLUGIN library not found.
-- Found taglib: -L/usr/lib -ltag
-- Taglib found: -L/usr/lib -ltag
-- Strigi API needs 'signed char'
-- Found MySQL: /usr/include/mysql, /usr/lib/libmysqlclient.so
-- Found MySQL Embedded: /usr/include/mysql, /usr/lib/mysql/libmysqld.a
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found MTP: /usr/lib/libmtp.so
-- Found CURL: /usr/lib/libcurl.so
-- Libgcrypt found: /lib/libgcrypt.so
-- Found GObject libraries: /usr/lib/libgobject-2.0.so;/usr/lib/libgmodule-2.0.so;/usr/lib/libgthread-2.0.so;/usr/lib/libglib-2.0.so
-- Found GObject includes : /usr/include/glib-2.0/gobject
-- Found Soprano: /usr/lib/libsoprano.so
-- Found Soprano includes: /usr/include
-- Found Soprano Index: /usr/lib/libsopranoindex.so
-- Found Soprano Client: /usr/lib/libsopranoclient.so
-- Found Soprano Plugin Dir: /usr/share/soprano/plugins
-- Found Soprano Plugins: nquadparser nquadserializer raptorparser raptorserializer redlandbackend
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig
-- Found MTP: /usr/lib/libmtp.so
CMake Error at src/collection/sqlcollection/CMakeLists.txt:52 (STRING):
  string sub-command REPLACE requires four arguments.


CMake Error at src/collection/sqlcollection/CMakeLists.txt:55 (STRING):
  string sub-command REPLACE requires four arguments.


--
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ kdelibs
+ taglib
+ strigi
+ mysqld
+ zlib
+ glib2
+ Gdk
+ libgpod
+ libmp4v2
+ libmtp
+ curl
+ libxml2
+ openssl or libgcrypt
+ gobject
+ loudmouth
+ soprano
+ nepomuk
+ Qt4 Glib support
Congratulations! All external packages have been found.
-----------------------------------------------------------------------------

-- Configuring incomplete, errors occurred!

Last edited by QuakeD on Fri May 08, 2009 2:42 pm, edited 1 time in total.
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
Could you post the line 52 of the file src/collection/sqlcollection/CMakeLists.txt
It should look like this one:

STRING(REPLACE "-Wl,--fatal-warnings" "" CMAKE_SHARED_LINKER_FLAGS_NOFATALWARN ${CMAKE_SHARED_LINKER_FLAGS})
As you can see REPLACE has 4 Arguments:
1. "-Wl,--fatal-warnings"
2. ""
3. CMAKE_SHARED_LINKER_FLAGS_NOFATALWARN
4 .${CMAKE_SHARED_LINKER_FLAGS}

Nevertheless you need to install libcurl-dev for the mp3tunes service to be built.

Greetings
m0nk


If men could get pregnant, abortion would be a sacrament.
QuakeD
Registered Member
Posts
9
Karma
0
ok I got curl...
than...I'm a fool...
here it is


STRING(REPLACE "-Wl,--fatal-warnings" "" CMAKE_SHARED_LINKER_FLAGS_NOFATALWARN ${CMAKE_SHARED_LINKER_FLAGS})
SET(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS_NOFATALWARN} )

STRING(REPLACE "-Wl,--fatal-warnings" "" CMAKE_MODULE_LINKER_FLAGS_NOFATALWARN ${CMAKE_MODULE_LINKER_FLAGS})
SET(CMAKE_MODULE_LINKER_FLAGS ${CMAKE_MODULE_LINKER_FLAGS_NOFATALWARN} )

these are line 52 up to 56
exactly the same as yours...but I still get that error...

Last edited by QuakeD on Fri May 08, 2009 2:57 pm, edited 1 time in total.
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS

Weird build errors on Ubuntu 9.0.4

Fri May 08, 2009 3:17 pm
Seems, that you have searched in the build dir ;-). I've tested it on my amarok SVN directory and got a different output.
Also strange, that cmake is looking after soprano/nepomuk.
But CMakeLists.txt seems to be correct. In Jaunty, it is cmake 2.6.2, right? I've cmake 2.6.3 installed.
Did you run cmake again after installing curl?

Try an update of cmake or better install amarok from PPA repository
deb http://ppa.launchpad.net/kubuntu-experi ... ppa/ubuntu jaunty main

Greetings
m0nk
 


If men could get pregnant, abortion would be a sacrament.
QuakeD
Registered Member
Posts
9
Karma
0
I updated cmake to 2.6.4...
amarok from repositories sucks...
the error remains...
craaap
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS

Re: Weird build errors

Fri May 08, 2009 5:40 pm
Really strange...
Seems that  ${CMAKE_SHARED_LINKER_FLAGS} and ${CMAKE_MODULE_LINKER_FLAGS} aren't set in your source.

So you can try to comment out these 4 lines and try again.

Greetings
m0nk


If men could get pregnant, abortion would be a sacrament.
QuakeD
Registered Member
Posts
9
Karma
0
happened a strange thing...I always typed the command "cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`" from "amarok/amarok2.0-build"...
I tried to type it from "amarok" and nothing happend....so I typed this command from "amarok":
"cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`"  thinking that the two dots should have meant the upper folder...
everything went right....
?
?
?
sorry for my english I've tried to explain as better as I could.


Now I have another error when I type make...but I don't know if I have to type make/make install or not cause I don't see it in the guide...

here it is
Code: Select all
edo@quake:~/amarok$ make
[ 11%] Built target generator
[ 11%] Built target qtscript_core
[ 11%] Building CXX object src/scriptengine/generator/generator/CMakeFiles/qtscript_gui.dir/generated_cpp/com_trolltech_qt_gui/qtscriptshell_QTextCodecPlugin.o
/usr/include/qt4/QtCore/qmetatype.h: In static member function ‘static int QMetaTypeId2<T>::qt_metatype_id() [with T = QList<int>]’:
/usr/include/qt4/QtCore/qmetatype.h:199:   instantiated from ‘int qMetaTypeId(T*) [with T = QList<int>]’
/usr/include/qt4/QtScript/qscriptengine.h:372:   instantiated from ‘T qscriptvalue_cast(const QScriptValue&) [with T = QList<int>]’
/home/edo/amarok/src/scriptengine/generator/generator/generated_cpp/com_trolltech_qt_gui/qtscriptshell_QTextCodecPlugin.cpp:128:   instantiated from here
/usr/include/qt4/QtCore/qmetatype.h:189: error: ‘qt_metatype_id’ is not a member of ‘QMetaTypeId<QList<int> >’
make[2]: *** [src/scriptengine/generator/generator/CMakeFiles/qtscript_gui.dir/generated_cpp/com_trolltech_qt_gui/qtscriptshell_QTextCodecPlugin.o] Errore 1
make[1]: *** [src/scriptengine/generator/generator/CMakeFiles/qtscript_gui.dir/all] Errore 2
make: *** [all] Errore 2
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS

Weird build errors on Ubuntu 9.0.4

Sat May 09, 2009 1:32 pm
I've a problem in understanding what you did.
So step by step:
You've downloaded and unpacked the sources or checked SVN out, right?
So you've got a folder called amarok. Change into this folder and create a folder called build
cd into this folder and type: cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
This should be done to not pollute the source tree. The whole thing will run in build, which you can remove after installing.
After cmake finished without an error, type make && sudo make install

Compilation errors:
Do you have qtscript-qt installed from here?


Greetings
m0nk


If men could get pregnant, abortion would be a sacrament.
QuakeD
Registered Member
Posts
9
Karma
0
yes i've done all what you said...
so I have to install qtscript?
I'll do it
QuakeD
Registered Member
Posts
9
Karma
0
no way...
even with qtscript compiled...
the error remains...
creeping_death
Registered Member
Posts
20
Karma
0
what version of mysql-embedded do you have?
QuakeD
Registered Member
Posts
9
Karma
0
5.1.28.rc


Bookmarks



Who is online

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