Hello,
when I tried to compile the Irrlicht examples of v1.8 it failed because -the Xcursor library could not be found.
Removing -lXcursor from the makefiles solved the problem. Propably it should also be removed from the official release?
greetings
Makefiles Irrlicht examples -lXcursor
Re: Makefiles Irrlicht examples -lXcursor
You can actually just install Xcursor library on linux, never had a problem with it. It's not needed all the time, but may be quite useful to someone in certain situations. So I don't think there is a reason to remove it.
Re: Makefiles Irrlicht examples -lXcursor
I have the Xcursor library installed (from the Ubuntu repository). Maybe there's something wrong with the repository. I don't know.
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Makefiles Irrlicht examples -lXcursor
It's not always requires to link against thos libs, as they may be included already in some Xextensions library. But in the simple Makefile situation that we use there's no place for such checks, hence you have to adapt the Makefile to your needs. XCursor is needed for the hardware cursor extensions integrated with Irrlicht 1.8
Re: Makefiles Irrlicht examples -lXcursor
Linking against XCursor is currently not really needed as I disabled the _IRR_LINUX_XCURSOR_ by default again in IrrCompileConfig.h (to avoid breaking old projects). So yeah - I should probably kick this out of all the example files against - except maybe for the cursor-example.
And it's needed for color-cursors on X11 (monochrome hardware cursors are in X11, but real color support is still too futuristic for X11 ...).
Edit: Then again it's needed in all project files as soon as someone enabled the define. So maybe better to keep it.
And it's needed for color-cursors on X11 (monochrome hardware cursors are in X11, but real color support is still too futuristic for X11 ...).
Edit: Then again it's needed in all project files as soon as someone enabled the define. So maybe better to keep it.
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
Re: Makefiles Irrlicht examples -lXcursor
The file needs a macro to check for enabled features, to be able to dynamically add libs/flags based on that.
Re: Makefiles Irrlicht examples -lXcursor
Haha yeah - I guess we could do that for the makefiles. For IDE's it would only be possible using something like CMake... or maybe IDE-build systems are more flexible than I ever tried?
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:
Re: Makefiles Irrlicht examples -lXcursor
Unfortunately, makefiles cannot check for defines enabled inside files (as in IrrCompileConfig.h), at least not cross-platform. Under Linux you could create some funky grep or awk command (which leads to some hand-made autoconfig in the end), but it's also hard to get a properly working version for all things (don't forget undefine etc...)
Re: Makefiles Irrlicht examples -lXcursor
Yes, a cpp pipe to grep was my thoughts. cpp handles the undefines etc properly.
-
- Competition winner
- Posts: 688
- Joined: Mon Sep 10, 2012 8:51 am
Re: Makefiles Irrlicht examples -lXcursor
Old thread, yes.
But for those who are interested, the wiki contains instructions on how to install Xcursor and all of the other necessary libraries for irrlicht on Linux:
http://irrlicht3d.org/wiki/index.php?n= ... ngIrrlicht
But for the impatient, enter the following into the Terminal to obtain and compile the necessary libraries for Linux:
Note, you may have to switch users to root if sudo doesn't work (for whatever stupid reason).
But for those who are interested, the wiki contains instructions on how to install Xcursor and all of the other necessary libraries for irrlicht on Linux:
http://irrlicht3d.org/wiki/index.php?n= ... ngIrrlicht
But for the impatient, enter the following into the Terminal to obtain and compile the necessary libraries for Linux:
Code: Select all
sudo apt-get -y install build-essential xserver-xorg-dev x11proto-xf86vidmode-dev libxxf86vm-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libxext-dev libxcursor-dev