| View previous topic :: View next topic |
|
|
| Author |
Message |
TheButler User
Joined: 30 Apr 2009 Posts: 41
|
Posted: Tue Jul 14, 2009 7:22 pm Post subject: Problems building examples (UNCLASSIFIED) |
|
|
Classification: UNCLASSIFIED
Caveats: NONE
I'm trying to build the examples under Linux x86_64 under RedHat 5. In
particular, the Qt and FLTK osgviewer examples. I'm using cmake 2.6-patch 4
Qt:
I've got Qt 4.5.2 installed (necessary for OSG) and have built non-OSG
applications with this version of Qt. I did have to install a newer version
of the fontconfig libraries to support Qt 4.5.2. In ccmake for OSG I've
made sure that QT_FONTCONFIG_LIBRARY is set to the right version of the
library (the 2.4.2 I compiled, not the older system one) Yet at link time in
examples/osgviewerQT I get:
/home/butler/src/Qt/qtsdk-2009.03/qt/lib/libQtGui.so: undefined
reference to FcFreeTypeQueryFace This indicates that it is not linking with
the fontconfig library I specified.
Any hints at getting this to link right would be most welcome.
FLTK:
Linking osgviewerFLTK doesn't pick up the -lXft -lXinerama flags needed to
link. The default FLTK 1.3 configuration includes Xft and Xinerama support
at this point. A CMakeList.txt entry for FLTK_XFT_LIBRARY and
FLTK_XINERAMA_LIBRARY would allow proper linking.
Linux:
Clearly RedHat 5 is *not* the linux of choice for OSG. The real question
is: Which distro *is* the preferred one?
Lee
Classification: UNCLASSIFIED
Caveats: NONE
------------------
Post generated by Mail2Forum |
|
| Back to top |
|
 |
Jason Daly Guest
|
Posted: Tue Jul 14, 2009 10:58 pm Post subject: Problems building examples (UNCLASSIFIED) |
|
|
Butler, Lee Mr CIV USA USAMC wrote:
| Quote:
|
Linux:
Clearly RedHat 5 is *not* the linux of choice for OSG. The real question
is: Which distro *is* the preferred one?
|
OSG works fine with Red Hat Enterprise 5, but it may not be the best
distro to use if you need to work with Qt 4.5. I'm not sure why you
felt it necessary to install your own fontconfig. My system shows that
fontconfig 2.4.1 is installed here, and I can't imagine a version that's
only 0.0.1 newer is that different.
Are you sure you need Qt 4.5 for that example? If you just need "a
version" of Qt 4, Red Hat Network has Qt 4.2.1 available, and you can
install it and all of its dependencies by running "yum install qt4"
I'd think FLTK would be fine, too. It might just be that that
particular example needs some work.
--"J"
------------------
Post generated by Mail2Forum |
|
| Back to top |
|
 |
TheButler User
Joined: 30 Apr 2009 Posts: 41
|
Posted: Wed Jul 15, 2009 12:02 am Post subject: Problems building examples (UNCLASSIFIED) |
|
|
Qt 4.5 came because the osgAdapterWidget code relies on QMdiSubWinodw and QMdiArea which
don't exist in Qt 4.2.1 (the installed Qt on RedHat 5).
Qt 4.5 required a newer version of fontconfig than was in RedHat 5 to avoid the otherwise undefined reference to `FcFreeTypeQueryFace' in libQtGui.so
Lee
----- Original Message -----
From: Jason Daly <>
Date: Tuesday, July 14, 2009 18:58
Subject: Re: Problems building examples (UNCLASSIFIED)
To: OpenSceneGraph Users <>
| Quote:
|
Butler, Lee Mr CIV USA USAMC wrote:
| Quote:
|
Linux:
Clearly RedHat 5 is *not* the linux of choice for OSG. The real
|
question> is: Which distro *is* the preferred one?
OSG works fine with Red Hat Enterprise 5, but it may not be the
best
distro to use if you need to work with Qt 4.5. I'm not sure why
you
felt it necessary to install your own fontconfig. My system shows
that
fontconfig 2.4.1 is installed here, and I can't imagine a version
that's
only 0.0.1 newer is that different.
Are you sure you need Qt 4.5 for that example? If you just need "a
version" of Qt 4, Red Hat Network has Qt 4.2.1 available, and you
can
install it and all of its dependencies by running "yum install qt4"
I'd think FLTK would be fine, too. It might just be that that
particular example needs some work.
--"J"
openscenegraph.org
|
------------------
Post generated by Mail2Forum |
|
| Back to top |
|
 |
robertosfield OSG Project Lead
Joined: 18 Mar 2009 Posts: 7033
|
Posted: Wed Jul 15, 2009 6:38 am Post subject: Problems building examples (UNCLASSIFIED) |
|
|
Hi Lee,
On Tue, Jul 14, 2009 at 8:22 PM, Butler, Lee Mr CIV USA
USAMC<> wrote:
| Quote:
|
/home/butler/src/Qt/qtsdk-2009.03/qt/lib/libQtGui.so: undefined
reference to FcFreeTypeQueryFace This indicates that it is not linking with
the fontconfig library I specified.
Any hints at getting this to link right would be most welcome.
|
I'm afraid I'm no Qt expert so will have to defer to others on this issue.
| Quote:
|
FLTK:
Linking osgviewerFLTK doesn't pick up the -lXft -lXinerama flags needed to
link. The default FLTK 1.3 configuration includes Xft and Xinerama support
at this point. A CMakeList.txt entry for FLTK_XFT_LIBRARY and
FLTK_XINERAMA_LIBRARY would allow proper linking.
|
Could you post this change to osg-submissions so I can review it.
| Quote:
|
Linux:
Clearly RedHat 5 is *not* the linux of choice for OSG. The real question
is: Which distro *is* the preferred one?
|
There isn't a preferred choice, it should work across a wide range of
distributions. Good support for any particular distro is really down
to the community to ensure that it works as it's not practical for
engineers like myself to manage dozens of different OS variants. Even
if you use the same OS variant there are still variables such as
optional dependencies like Qt and FLTK that can be thrown into the mix
that make your particular build system unique. The upshot of this is
that to see good support of your chosen build combination then you
need to be prepared to step forward and help ensure that the wrinkles
are all smoothed out.
The alternative to need members of community be proactive would be to
restrict the list of supported OS variants to ones that I can support,
which right now would be... Kubuntu 9.04, while this is fine OS
variant for dev work, it won't be a perfect fit for everyone. I see
this as the beauty of open source - you aren't restricted to arbitrary
choices that I or other core developers make - you have the ability to
tune the software to work well on your own platform of choice ;-)
Robert.
------------------
Post generated by Mail2Forum |
|
| Back to top |
|
 |
René Molenaar Guest
|
Posted: Wed Jul 15, 2009 7:22 am Post subject: Problems building examples (UNCLASSIFIED) |
|
|
Which version of cmake are you using? I believe recent versions have updated FindQt modules.
You might want to build qt again with the font libs installed, the configure step can have different
results.
Rene
2009/7/15 Robert Osfield < ( Only registered users can see emails on this board! Get registred or enter the forums! |
)>
| Quote:
|
Hi Lee,
On Tue, Jul 14, 2009 at 8:22 PM, Butler, Lee Mr CIV USA
USAMC< (Only registered users can see emails on this board! Get registred or enter the forums! | )> wrote:
| Quote:
|
/home/butler/src/Qt/qtsdk-2009.03/qt/lib/libQtGui.so: undefined
reference to FcFreeTypeQueryFace This indicates that it is not linking with
the fontconfig library I specified.
Any hints at getting this to link right would be most welcome.
|
I'm afraid I'm no Qt expert so will have to defer to others on this issue.
| Quote:
|
FLTK:
Linking osgviewerFLTK doesn't pick up the -lXft -lXinerama flags needed to
link. The default FLTK 1.3 configuration includes Xft and Xinerama support
at this point. A CMakeList.txt entry for FLTK_XFT_LIBRARY and
FLTK_XINERAMA_LIBRARY would allow proper linking.
|
Could you post this change to osg-submissions so I can review it.
| Quote:
|
Linux:
Clearly RedHat 5 is *not* the linux of choice for OSG. The real question
is: Which distro *is* the preferred one?
|
There isn't a preferred choice, it should work across a wide range of
distributions. Good support for any particular distro is really down
to the community to ensure that it works as it's not practical for
engineers like myself to manage dozens of different OS variants. Even
if you use the same OS variant there are still variables such as
optional dependencies like Qt and FLTK that can be thrown into the mix
that make your particular build system unique. The upshot of this is
that to see good support of your chosen build combination then you
need to be prepared to step forward and help ensure that the wrinkles
are all smoothed out.
The alternative to need members of community be proactive would be to
restrict the list of supported OS variants to ones that I can support,
which right now would be... Kubuntu 9.04, while this is fine OS
variant for dev work, it won't be a perfect fit for everyone. I see
this as the beauty of open source - you aren't restricted to arbitrary
choices that I or other core developers make - you have the ability to
tune the software to work well on your own platform of choice
Robert.
_______________________________________________
osg-users mailing list
(Only registered users can see emails on this board! Get registred or enter the forums! | )
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
|
------------------
Post generated by Mail2Forum |
|
| Back to top |
|
 |
Jason Daly Guest
|
Posted: Wed Jul 15, 2009 2:57 pm Post subject: Problems building examples (UNCLASSIFIED) |
|
|
Butler, Lee Mr CIV USA USAMC wrote:
| Quote:
|
Qt 4.5 came because the osgAdapterWidget code relies on QMdiSubWinodw and QMdiArea which
don't exist in Qt 4.2.1 (the installed Qt on RedHat 5).
Qt 4.5 required a newer version of fontconfig than was in RedHat 5 to avoid the otherwise undefined reference to `FcFreeTypeQueryFace' in libQtGui.so
|
I did my own digging online, and it looks like you're right. I'm just
surprised that they'd add new symbols to fontconfig without bumping the
middle number.
--"J"
------------------
Post generated by Mail2Forum |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
Powered by phpBB © 2001, 2005 phpBB Group
|