trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: February 2011

Re: [trinity-devel] Amarok - Constructor Needs Fixing - osd.h:40:78 redundant ‘::QImage’

From: "David C. Rankin" <drankinatty@...>
Date: Sat, 26 Feb 2011 13:48:07 -0600
On 02/26/2011 01:22 PM, David C. Rankin wrote:
> Tim, all,
> 
>   Working with the new Amarok port, I've found another constructor issue:
> 
> [  1%] Building CXX object
> amarok/src/amarokcore/CMakeFiles/amarokcore-static.dir/amarokdcophandler.cpp.o
> cd /home/david/tblds/trinity-app-amarok/src/amarok/amarok/src/amarokcore &&
> /usr/bin/c++   -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE
> -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT
> -march=i686 -mtune=generic -O2 -pipe  -include tqt.h
> -I/home/david/tblds/trinity-app-amarok/src/amarok/amarok/src/amarokcore
> -I/home/david/tblds/trinity-app-amarok/src/amarok
> -I/home/david/tblds/trinity-app-amarok/src/amarok/amarok/src
> -I/home/david/tblds/trinity-app-amarok/src/amarok/amarok/src/statusbar
> -I/opt/trinity/include -I/opt/qt/include -I/opt/qt/include/tqt
> -I/usr/include/taglib   -fPIC -o
> CMakeFiles/amarokcore-static.dir/amarokdcophandler.cpp.o -c
> /home/david/tblds/trinity-app-amarok/src/amarok/amarok/src/amarokcore/amarokdcophandler.cpp
> In file included from
> /home/david/tblds/trinity-app-amarok/src/amarok/amarok/src/amarokcore/amarokdcophandler.cpp:36:0:
> /home/david/tblds/trinity-app-amarok/src/amarok/amarok/src/osd.h:40:78: error:
> cannot call constructor ‘QImage::QImage’ directly
> /home/david/tblds/trinity-app-amarok/src/amarok/amarok/src/osd.h:40:78: error:
>  for a function-style cast, remove the redundant ‘::QImage’
> make[2]: ***
> [amarok/src/amarokcore/CMakeFiles/amarokcore-static.dir/amarokdcophandler.cpp.o]
> Error 1
> make[2]: Leaving directory `/home/david/tblds/trinity-app-amarok/src/amarok'
> make[1]: *** [amarok/src/amarokcore/CMakeFiles/amarokcore-static.dir/all] Error 2
> make[1]: Leaving directory `/home/david/tblds/trinity-app-amarok/src/amarok'
> make: *** [all] Error 2
>     Aborting...
> 
>   Thanks for getting the port done!
> 
> 


Line 40 updated to:

         void show( const TQString &text, TQImage newImage = TQImage() );

After fixing it, the amarok build works fine:

  trinity-app-amarok-1222475-1-i686.pkg.tar.xz

-- 
David C. Rankin, J.D.,P.E.