Even a small error at compile

classic Classic list List threaded Threaded
4 messages Options
Helijah Helijah
Reply | Threaded
Open this post in threaded view
|

Even a small error at compile

Hi all

I'm cursed :)

last few days I still have the same compilation error

[100%] Building CXX object src/applications/osgearth_elevation/CMakeFiles/application_osgearth_elevation.dir/osgearth_elevation.o
/media/divers/Home2/FlightGear-src/osgearth/src/applications/osgearth_elevation/osgearth_elevation.cpp: In member function 'virtual bool QueryElevationHandler::handle(const osgGA::GUIEventAdapter&, osgGA::GUIActionAdapter&)':
/media/divers/Home2/FlightGear-src/osgearth/src/applications/osgearth_elevation/osgearth_elevation.cpp:46: erreur: invalid initialization of reference of type 'osgUtil::LineSegmentIntersector::Intersection&' from expression of type 'const osgUtil::LineSegmentIntersector::Intersection'
make[2]: *** [src/applications/osgearth_elevation/CMakeFiles/application_osgearth_elevation.dir/osgearth_elevation.o] Erreur 1
make[1]: *** [src/applications/osgearth_elevation/CMakeFiles/application_osgearth_elevation.dir/all] Erreur 2
make: *** [all] Erreur 2

I thought the updates would correct that. But it is still there :(

Have you any idea?

Best regards. Emmanuel
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Even a small error at compile

Try an update now. This is one of those "compiles on Windows but not on Linux" things.. hopefully fixed.

Glenn
Glenn Waldron / Pelican Mapping
Helijah Helijah
Reply | Threaded
Open this post in threaded view
|

Re: Even a small error at compile

Yeah !

All is good

You are the best.

Thanks.

Best regards. Emmanuel
Adam Adam
Reply | Threaded
Open this post in threaded view
|

Re: Even a small error at compile

In reply to this post by gwaldron
I know this is probably annoying, but another linux compile problem:

[  1%] Building CXX object src/osgEarth/CMakeFiles/osgEarth.dir/HTTPClient.o
In file included from /home/adam/current_issues/osg_lib/osgearth_1.2_T2009-08-12.r566/src/osgEarth/HTTPClient:24,
                 from /home/adam/current_issues/osg_lib/osgearth_1.2_T2009-08-12.r566/src/osgEarth/HTTPClient.cpp:22:
/home/adam/current_issues/osg_lib/osgearth_1.2_T2009-08-12.r566/src/osgEarth/Progress:80:7: warning: no newline at end of file
In file included from /home/adam/current_issues/osg_lib/osgearth_1.2_T2009-08-12.r566/src/osgEarth/HTTPClient.cpp:22:
/home/adam/current_issues/osg_lib/osgearth_1.2_T2009-08-12.r566/src/osgEarth/HTTPClient:166:33: warning: no newline at end of file
In file included from /home/adam/current_issues/osg_lib/osgearth_1.2_T2009-08-12.r566/src/osgEarth/Caching:24,
                 from /home/adam/current_issues/osg_lib/osgearth_1.2_T2009-08-12.r566/src/osgEarth/Registry:24,
                 from /home/adam/current_issues/osg_lib/osgearth_1.2_T2009-08-12.r566/src/osgEarth/HTTPClient.cpp:23:
/home/adam/current_issues/osg_lib/osgearth_1.2_T2009-08-12.r566/src/osgEarth/TMS:405:24: warning: no newline at end of file
In file included from /home/adam/current_issues/osg_lib/osgearth_1.2_T2009-08-12.r566/src/osgEarth/HTTPClient.cpp:23:
/home/adam/current_issues/osg_lib/osgearth_1.2_T2009-08-12.r566/src/osgEarth/Registry:100:27: warning: no newline at end of file
/home/adam/current_issues/osg_lib/osgearth_1.2_T2009-08-12.r566/src/osgEarth/HTTPClient.cpp: In constructor `osgEarth::HTTPClient::HTTPClient(const osgDB::ReaderWriter::Options*)':
/home/adam/current_issues/osg_lib/osgearth_1.2_T2009-08-12.r566/src/osgEarth/HTTPClient.cpp:224: error: `FALSE' was not declared in this scope
/home/adam/current_issues/osg_lib/osgearth_1.2_T2009-08-12.r566/src/osgEarth/HTTPClient.cpp: In member function `osgEarth::HTTPResponse osgEarth::HTTPClient::doGet(const osgEarth::HTTPRequest&, osgEarth::ProgressCallback*) const':
/home/adam/current_issues/osg_lib/osgearth_1.2_T2009-08-12.r566/src/osgEarth/HTTPClient.cpp:455: warning: passing NULL used for non-pointer converting 1 of `osgEarth::HTTPResponse::HTTPResponse(long int)'
make[2]: *** [src/osgEarth/CMakeFiles/osgEarth.dir/HTTPClient.o] Error 1
make[1]: *** [src/osgEarth/CMakeFiles/osgEarth.dir/all] Error 2
make: *** [all] Error 2


tl;dr: FALSE not defined in HTTPClient.cpp:224
Edit: Using r679