Wait...hybrid wrote:But of course you need a Linux version of the .a file - or none at all. It is usually best to simply link the .o files of your app with the libIrrlicht.a. Making a static library from your app does not really make sense.
So compile all .o files (with g++ -c ...) and link all .o files with Irrlicht and the rest of the libraries as in the example Makefiles
What do I need to do? I assume that the library file (.a) stores all of the class information and such, as that was the error message I was getting.
Here's what the makefile says to build Irrlicht:
Thanks again!# Irrlicht Engine 1.3
# Makefile for Linux, created by N.Gebhardt.
#
# To use, just run:
#
# make
#
# This will compile Irrlicht, create a static lib (libIrrlicht.a), and copy it
# into the subdirectory lib/Linux. That's all.
#
# If you want Irrlicht to be compiled as shared lib (libIrrlicht.so.versionnumber), then run:
#
# make sharedlib
# make install
#
# Please note that Irrlicht as shared lib is just experimental and
# probably not tested.
FlyingIsFun1217