Linux Problems (Was quite simple)
-
- Posts: 34
- Joined: Sat Mar 31, 2007 8:38 pm
-lIrrlicht is only right when you have Irrlicht in your linkerpath.
Maybe you have to set that with -Lpath (like: -L../../lib/Linux)
I think the easiest way to start is to modify the examples. Just copy one of them in a new folder and put that besides the other examples. Now you have an already working project with a working Makefile. Even if you don't want to do that, you should maybe still take a look at those Makefiles, so you see which LDFLAGS are used.
Maybe you have to set that with -Lpath (like: -L../../lib/Linux)
I think the easiest way to start is to modify the examples. Just copy one of them in a new folder and put that besides the other examples. Now you have an already working project with a working Makefile. Even if you don't want to do that, you should maybe still take a look at those Makefiles, so you see which LDFLAGS are used.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 34
- Joined: Sat Mar 31, 2007 8:38 pm
Yay, used script to capture stuff!
and compile script:
So.. well, Im not demanding anything or even expecting anything. but if you want to help me, go ahead.
Code: Select all
/tmp/ccUwbkC3.o(.text+0x76): In function `main':
: undefined reference to `irr::createDevice(irr::video::E_DRIVER_TYPE, irr::core::dimension2d<int> const&, unsigned, bool, bool, bool, irr::IEventReceiver*, char const*)'
collect2: ld returned 1 exit status
Code: Select all
g++ -I/home/dsl/dev/sdk/irrlicht-1.3.1/include/ -Lsdk/irrlicht-1.3.1/lib/Linux/ -lIrrlicht main.cpp
I think you have one slash '/' too much at the end of the linker path. Also do check if the library really is there.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
a slash too much does not matter. But the code to the library is relative while the include path is absolute. Maybe it links a wrong library or none at all? But it would usually error out if the lib is missing...
BTW: You can press both buttons at once to emulate a third button to copy stuff. And most apps also support CTRL-V for pasting the mouse selection.
BTW: You can press both buttons at once to emulate a third button to copy stuff. And most apps also support CTRL-V for pasting the mouse selection.
-
- Posts: 34
- Joined: Sat Mar 31, 2007 8:38 pm
Hello Everyone! I hope you slept well
CuteAlien - I removed the slash but no go, Thanks anyways
hybrid - Yeah, I put -lIrrlichtm and it did error out so... You know, I did compile irrlicht my self, could I have done something wrong?
Ill be back online tonight, for the last night of my isolation/vacation and will be back on my main machine with all my familiar stuffs. That would be funny if I got it to work as I was pulling in the driveway.
CuteAlien - I removed the slash but no go, Thanks anyways
hybrid - Yeah, I put -lIrrlichtm and it did error out so... You know, I did compile irrlicht my self, could I have done something wrong?
Ill be back online tonight, for the last night of my isolation/vacation and will be back on my main machine with all my familiar stuffs. That would be funny if I got it to work as I was pulling in the driveway.
-
- Posts: 34
- Joined: Sat Mar 31, 2007 8:38 pm