* Andreas Grau (Andreas.Grau@...) wrote:
> The current version in the svn does not compile on my installation, because
> the qt header files could not be found. Patch [3] includes the qt3 header,
> which enables compilation. Perhaps its only a "bug" on my installation, which
> may be caused, because of an uninitialized environment variable?!
Argh! Really, there are as many different include/library locations
for everything as many linux/bsd/whatever systems are installed in
the world. Dunno if this is a bug (I thought QT is installed in
$QTDIR/{include,lib} on any system, but if you have qt3 subdir in
include/, I guess this rule is not absolute.
I become more and more disappointed in SCons. I want magic which
it doesn't provide :/ For now, I intend to investigate capabilities
of CMake. As it's used for KDE build, at least it shouldn't have
problems with Qt location, and I've heard it's really powerful.
Plan B is to use plain old qmake.
To temporary solve your problem you could modify SConscript like this:
env = Environment( CCFLAGS = [ '-Wall', '-g' ],
CXXFLAGS = [ '-Wall', '-g' ],
QTDIR = '/usr/X11R6',
+ QT_CPPPATH = '/usr/include/qt3',
options = opts );
There are other vars, like QT_LIBPATH or QT_MOC.
I guess filling SCons****'s with all possible path for every library is
not the best solution.
> By the way, why are you using QT in version 3. Until now the current code
> should work on QT4, too, (includes have to be adapted). Perhaps we should use
> QT4?
The only reason is that Qt4 isn't ported to FreeBSD (which I use) yet :/
> Patch [1] fixes the orientation of the GlobeEarthView model. The view is
> centered to the 0 meridian.
>
> Patch [3] includes text fields, which enables navigation, by specifying
> lat/long.
Cool, thanks. Commited with minor modifications.
As I've promised, I'll have some time for gaia since now, so development
continues :)
--
Best regards,
Dmitry Marakasov mailto:amdmi3@...
|