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

Amarok 1.3 does not compile!!

Tags: None
(comma "," separated)
Bergo
Karma
0

Amarok 1.3 does not compile!!

Tue Aug 16, 2005 5:17 am
Hi,
I have just downloaded a brand new 1.3 and can\'t compile it. The error what I have appeared when compiling Konqueror Sidebar was compiling

if /bin/sh ../../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_ H -I. -I. -I../../.. -I/usr/include/kde -I/usr/lib/qt-3.3/include -I/usr/X11R6/i nclude -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPE N_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtua l-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_A SCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT universalamarok.lo -MD -MP -MF \".deps/universalamarok.Tpo\" -c -o universalamarok.lo universalamaro k.cpp; \\
then mv -f \".deps/universalamarok.Tpo\" \".deps/universalamarok.Plo\"; else rm -f \" .deps/universalamarok.Tpo\"; exit 1; fi
universalamarok.cpp:136: warning: `visibility\' attribute ignored on non-class types
universalamarok.cpp:145: error: visibility arg must be one of \"default\", \"hidden\", \"protected\" or \"internal\"
make: *** [universalamarok.lo] Error 1

First I tried to configure Amarok without this feature but I can\'t find appropiate flag, so I check lines 136 and 145 in universalamarok.cpp. There are two functions checked as \"FIXME: Is this referenced from anywhere ??!\" I have commented both of them (cause I can\'t find a word visibility anywhere) and the Konqueror Sidebar is now compiling :)

I don\'t know if it is a good solutiion but it works... for compilation.

Bergo
Michael Rodriguez-Torrent
Karma
0

Re:Amarok 1.3 does not compile!!

Tue Aug 16, 2005 9:37 pm
I have the same problem, see my post from yesterday..
User avatar
oggb4mp3
Registered Member
Posts
166
Karma
0

Re:Amarok 1.3 does not compile!!

Tue Aug 16, 2005 9:50 pm
what gcc are you on? SOunds like it has something to do with -fvisibility which was introduced in gcc4 and which some distros backported to 3.4.x.
Bergo
Karma
0

Re:Amarok 1.3 does not compile!!

Tue Aug 16, 2005 10:11 pm
I do not have gcc 4 - I have gcc 3.4.2 red hat fc3
jimct
Karma
0

Re:Amarok 1.3 does not compile!!

Tue Aug 16, 2005 11:33 pm
Hi,
I was able to successfully compile amaroK 1.3 in a system with KDE 3.3.1 without touching anything in the application code, but had to change a line in kdemacros.h, which for my system is in /opt/kde/include/.
I changed the line that says
#define KDE_EXPORT __attribute__ ((visibility(\"visible\")))
into
#define KDE_EXPORT __attribute__ ((visibility(\"default\")))
and the compilation error went away.

I found the workaround in this thread:
http://bugs.kde.org/show_bug.cgi?id=108458#c5

Hope this helps,
JIm
Bergo
Karma
0

Re:Amarok 1.3 does not compile!!

Wed Aug 17, 2005 1:39 am
It works :)

Thanks man.
Marco Gulino
Registered Member
Posts
4
Karma
0

Re:Amarok 1.3 does not compile!!

Wed Aug 17, 2005 10:30 pm
It should be solved in current svn trunk.
Please recheck.
Michael Rodriguez-Torrent
Karma
0

Re:Amarok 1.3 does not compile!!

Fri Aug 19, 2005 4:44 am
It does not appear to be fixed. I just tried svn a few minutes ago and receive the same error. Changing the value in kdemacros.h appears to work. I\'m using Mandrake 10.1 with KDE 3.3.0, which that digikam bug mentioned as an issue I believe.

[code:1]universalamarok.cpp:158: error: visibility arg must be one of \"default\", \"hidden\", \"protected\" or \"internal\"
universalamarok.cpp:167: error: visibility arg must be one of \"default\", \"hidden\", \"protected\" or \"internal\"
make[4]: *** [universalamarok.lo] Error 1[/code:1]
Marco Gulino
Registered Member
Posts
4
Karma
0

Re:Amarok 1.3 does not compile!!

Fri Aug 19, 2005 4:35 pm
Can someone with this problem join #amarok and ask for me please?
Marco Gulino
Registered Member
Posts
4
Karma
0

Re:Amarok 1.3 does not compile!!

Fri Aug 19, 2005 9:41 pm
Thanks 2 Michael, this time is _really_ solved and checked.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]