Registered Member
|
building amarok beta fails with void-engine.cpp:23: error: visibility arg must
Thu May 11, 2006 7:23 am
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 |
Registered Member
|
Re: building amarok beta fails with void-engine.cpp:23: error: visibility arg mu
Thu May 11, 2006 8:04 am
Hi
Removed KDE_EXPORT in ../plugin/plugin.h and it comiples with no problems. bw minred |
Registered Member
|
Re: building amarok beta fails with void-engine.cpp:23: error: visibility arg mu
Wed Jul 05, 2006 1:04 am
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! |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]