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

building amarok beta fails with void-engine.cpp:23: error: visibility arg must

Tags: None
(comma "," separated)
minred
Registered Member
Posts
2
Karma
0
I have downloaded from SVN and tried to build it using

./configure --enable-debug=full --prefix=`kde-config --prefix` --with-helix

void-engine.cpp:23: error: visibility arg must be one of "default", "hidden", "protected" or "internal"

RHEL AS 4
qt-3.3.3-9.3
kdelibs-3.3.1-3.14

any help will be appreciated.

bw
minred
minred
Registered Member
Posts
2
Karma
0
Hi

Removed KDE_EXPORT in  ../plugin/plugin.h
and it comiples with no problems.

bw
minred
LinusGates
Registered Member
Posts
1
Karma
0
My two cents:
It seems this has to do with the introduction of the new Visibilty support in c++
see http://gcc.gnu.org/wiki/Visibility.
I believe a developer may have semi-fixed this, as he/she left a comment about this in
universalamarok.cpp (search for KDE_EXPORT)
anywho
I have successfully installed amarok 1.4.1 on RedHat Fedora Core 3.
My installation uses the xine engine and mysql.
1) download install the xine engine http://xinehq.de/
2) created the amarok database, a user and password in mysql console
Note: if you installed a newer version of mysql, say in usr/local/mysql5, you may want to make sure older versions are not used by amarok: i.e. cp /usr/local/mysql5/bin/mysql_config  /usr/bin
3) Edit ..src/plugin/plugin.h
a) add the line: #define PLUGIN_VIZ __attribute__ ((visibility("default")))
before the line: #define AMAROK_EXPORT_PLUGIN( classname ) \ ...
b) change the following from KDE_EXPORT to PLUGIN_VIZ so that it reads as:
#define AMAROK_EXPORT_PLUGIN( classname ) \
    extern "C" { \
          PLUGIN_VIZ amaroK::Plugin* create_plugin() { return new classname; } \
    }
4) If your installation includes mysql you may wish to specify that on your config line: i.e.
./configure --prefix=`kde-config --prefix`  --enable-mysql


Should be good to go!


Bookmarks



Who is online

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