[oe-users] bb file to use the new qtopia-core libs...

James W. Mills jmills at avionpartners.com
Thu Jan 11 23:23:46 UTC 2007


James W. Mills wrote:
> Michael 'Mickey' Lauer wrote:
>   
>> You should add a classes/qt4e.bbclass that deals with setting the
>> environment variables. Have a look at qt3e.bbclass and qt4x11.bbclass
>> for inspirations.
>>   
>>     
> I will do that.
>
>   
>> Then, look at qmake-base which sets up the most common variables and
>> qmake.bbclass which automatically calls qmake for you, if you set S to
>> the proper source directory where the .pro file is found.
>>   
>>     
> I notice that qmake-base depends on qmake-native.  Right now, that pulls 
> qt3 down and build qmake from there.  It also installs qmake and 
> oe-specific  mkspec files.
>
> Do you think I should create qmake4-base and qmake4 classes, and add a 
> qmake4-native?  I do not want to "dirty the water" with qt4 variants, 
> but I also do not want to completely hose the existing qte/qmake 
> environment.
>
> I will go ahead and create the qmake4 chain and begin testing it.  As 
> this is my second day to use openembeded, I'm in no rush to check things 
> in. :).  I'll figure out where I should post this stuff for 
> review/acceptance/whatever...
>
> Thanks again!
> ~james
>
>   
>> Then your bb file could be as simple as:
>>
>> DESCRIPTION = "PCU ..."
>> SECTION = "?"
>> LICENSE = "?"
>>
>> SRC_URI = "file://pcu-1.0.0.tar.bz2"
>> S = "${WORKDIR}/pcu"
>>
>> inherit qmake qt4e
>>
>> do_install() {
>>         install -d ${D}${bindir}
>>         install -m 0755 pcu ${D}${bindir}/pcu
>> }
>>
>> Regards,
>>
>> :M:
>>   
Responding to my own post

I created a qmake4-native bb that installs qmake and the mkspecs into 
the native staging dir.  For the time being, I am still using the uic 
and moc installed by the current qtopia-core package.  I updated the 
mkspec file from the original qtopia-core to point to the correct moc 
and uic, and install it with qmake-native, along with the rest of the 
mkspecs.

I also created three new classes: qmake4-base, qmake4, and qtopia.  As 
stated previously, I did not want to screw up any existing qte/qmake builds.

Creating a package was was easy as you stated above.  I simply inherit 
qmake4 and qtopia, and everything built and ran!

Thanks for the help.  I haven't investigated checking anything in yet, 
but I will tomorrow.  In the meantime, if anyone would like to see the 
new files, let me know.  I don't want to clutter the message board 
needlessly...

I also though that maybe the qtopia-core build should be modified to 
only install the libs, and the bins can be broken out (like they appear 
to be in previous releases).  If so, I am happy to do this, as it lined 
up with what I am currently trying to accomplish.


~james

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-users/attachments/20070111/8999e142/attachment-0002.html>


More information about the Openembedded-users mailing list