trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: February 2012

Re: [trinity-devel] k3b compile error QObject

From: "David C. Rankin" <drankinatty@...>
Date: Tue, 21 Feb 2012 08:04:59 -0600
On 02/21/2012 07:57 AM, David C. Rankin wrote:
> On 02/20/2012 08:40 PM, Jay wrote:
>> I have to say things are getting better and i have been able to compile most
>> packages i could not before ... except k3b. I successfully compiled around 2
>> weeks ago but today i get the error below error:
>>
>> I have all dependencies installed:
>> libdvdcss, ffmpeg, lame, faac, faad2, speex, xvidcore, schroedinger, openjpeg,
>> and x264
>> # Install transcode.
>> # Transcode dependencies: ffmpeg, libmpeg2, lame, libdv, libdvdread, and a52dec.
>>
>> ./misc/.libs/libmisc.a(k3bcdcopydialog.o): In function
>> `K3bCdCopyDialog::slotStartClicked()':
>> k3bcdcopydialog.cpp:(.text+0x30d3): undefined reference to
>> `K3bCdCopyJob::K3bCdCopyJob(K3bJobHandler*, QObject*)'
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> This looks like the old gcc >=4.5 constructor definition problem where:
> 
> K3bCdCopyJob::K3bCdCopyJob(K3bJobHandler*, QObject*)
> 
> must be redefined as:
> 
> K3bCdCopyJob(K3bJobHandler*, QObject*)
> 
> without the 'K3bCdCopyJob::' reference.
> 
> Check your gcc version. If you now have gcc >=4.5, then the constructor looks
> like the issue. At least I recall fixing many of these when Arch hit gcc 4.5 a
> year ago.
> 

This may be a slightly different issue. Looking again, the constructor issue
applied to the following type of statements (shown in diff format):


-            appFrontend->startAppCommand(TQString::TQString(), cmdline, false);
+            appFrontend->startAppCommand(TQString(), cmdline, false);

These would show up as compile errors like this:

/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]: ***

I thought these were all fixed?

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