On Sun, May 8, 2011 at 00:08, Baho Utot <baho-utot@...> wrote:

 93%] Building CXX object
amarok/src/CMakeFiles/amarok-shared.dir/editfilterdialog.cpp.o
Linking CXX shared library libamarok.so
CMakeFiles/amarok-shared.dir/actionclasses.cpp.o: In function
`Amarok::Menu::helpMenu(QWidget*)':
actionclasses.cpp:(.text+0x1522): undefined reference to `Amarok::aboutData'
collect2: ld returned 1 exit status
make[2]: *** [amarok/src/libamarok.so.0.0.0] Error 1
make[1]: *** [amarok/src/CMakeFiles/amarok-shared.dir/all] Error 2
make: *** [all] Error 2

actionclasses.cpp
.
.
.
KPopupMenu*
Menu::helpMenu( TQWidget *tqparent ) //STATIC
{
   extern KAboutData aboutData;

   if ( s_helpMenu == 0 )
       s_helpMenu = new KHelpMenu( tqparent, &aboutData,
Amarok::actionCollection() );

   return s_helpMenu->menu();
}
 

This is not an CMake-related bug, it also happens with the old, autotools-based, build system, so it's more likely a gcc4.6 issue. 

Amarok::aboutData is defined in app.cpp, that is built in libamarok... but I can't make it work.

Any hint?

--
Albert Vaca