[Clfs-dev] CBLFS -- query about cmake & qt4

Martin Ward macros_the_black at ntlworld.com
Wed Apr 8 03:04:09 PDT 2009


db m wrote:
> Greets,
>
> I just stumbled across a package (lmms) that uses the cmake
> build system for compilation - the package requires qt4, but
> cmake fails to find the qt4 qmake binary...
>
> This is likely to happen only if you have qt4 installed in /opt
> and you have qt3 installed in /usr -- the cmake control files
> (/usr/share/cmake-{version)/Modules) expect to find qt4 in
> /usr, and failing that, will walk the current $PATH looking for
> a valid qt4 qmake binary named 'qmake-qt4' or 'qmake4' - we
> do not create this during the CBLFS qt4 build procedure.
>
> We do set the QT4DIR variable (ignored by cmake) and include
> /opt/qt4/bin in $PATH, but cmake must find qmake-qt4 (or qmake4) 
> in $PATH (these can be symlinks to /opt/qt4/bin/qmake) or else the
> cmake system will error out.
>
> Although I could update the wiki page to add such a symlink
> and effectively fix this boofle, it occurs to me that in the case
> of a multilib build....where /opt/qt4/bin/qmake is a symlink back
> to  /usr/bin/multiarch_wrapper.....such an approach is not correct.
>
> i've put off touching the wiki on this, and instead air the situation
> here hopeful of some advice with this....anyone have any ideas?
>
> Regards,
>
> Don
>
>
> _________________________________________________________________
> View photos of singles in your area Click Here
> http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fdating%2Eninemsn%2Ecom%2Eau%2Fchannel%2Findex%2Easpx%3Ftrackingid%3D1046247&_t=773166080&_r=Hotmail_Endtext&_m=EXT
> _______________________________________________
> Clfs-dev mailing list
> Clfs-dev at lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org
>
>   
Have you tried setting DESIRED_QT_VERSION=4 on the command line i.e 
-DDESIRED_QT_VERSION=4//
//that should in principle invoke FIND_PACKAGE(Qt4) and  then set the 
appropriate variables

regards

Martin




More information about the Clfs-dev mailing list