Build fails on linux

Bug #982132 reported by Michael Rawson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
roadrage
New
Low
eross

Bug Description

Makefile:31: Building...
g++ -I../../include -I/usr/X11R6/include -I/opt/irrlicht/include -O3 -ffast-math -Os -fomit-frame-pointer rr.cpp -o rr -L/usr/X11R6/lib -L../../irrlicht/lib/Linux -L/opt/irrlicht/lib/Linux -lIrrlicht -Llib -lGL -lGLU -lXxf86vm -lXext -lX11 -lSDL -lSDL_mixer -lXcursor
rr.cpp: In member function ‘int vscreen::Update_char(int, float, float)’:
rr.cpp:821:106: error: no matching function for call to ‘irr::scene::ISceneCollisionManager::getCollisionPoint(irr::core::line3d<float>&, irr::scene::IMetaTriangleSelector*&, irr::core::vector3df&, irr::core::triangle3df&, irr::scene::ISceneNode*&)’
rr.cpp:821:106: note: candidate is:
/usr/include/irrlicht/ISceneCollisionManager.h:41:16: note: virtual bool irr::scene::ISceneCollisionManager::getCollisionPoint(const irr::core::line3d<float>&, irr::scene::ITriangleSelector*, irr::core::vector3df&, irr::core::triangle3df&, const irr::scene::ISceneNode*&)
/usr/include/irrlicht/ISceneCollisionManager.h:41:16: note: no known conversion for argument 5 from ‘irr::scene::ISceneNode*’ to ‘const irr::scene::ISceneNode*&’
make: *** [all_linux] Error 1

Btw, can you give me upload rights?

Revision history for this message
eross (drarem) wrote :

Here is how to compile irrlicht first. Copy this to your /opt folder

sudo svn co https://irrlicht.svn.sourceforge.net/svnroot/irrlicht/trunk irrlicht

save it as 'uppirr.sh' and make it executable

cd /opt
./uppirr.sh
<enter password>

after it finishes:
cd irrlicht/source/Irrlicht
sudo make

Then you should be able to compile with the latest version, where the Makefile is pointing to. You may change that to another folder if you wish, if you don't want to place irrlicht in your /opt folder.

Revision history for this message
Michael Rawson (michael.rawson) wrote :

On Ubuntu (and I believe fedora/redhat too) there is a libirrlicht-dev package, we should use this instead really.

Revision history for this message
eross (drarem) wrote :

Updated, now will compile clean using the -dev package instead of the latest SVN.

Revision history for this message
Michael Rawson (michael.rawson) wrote :

Awesome. If you do need the latest svn from sourceforge, put it in the source tree. Packaging for debian is a headache if you download stuff during the install process. Thanks!

Revision history for this message
eross (drarem) wrote :

Compile errors have been addressed.

Changed in roadrage:
assignee: nobody → eross (drarem)
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.