View Full Version : Explain Lib Folder

30-12-2010, 10:05 PM
Hi Andru,

which type of files are into Lib folder?

.a files, how compile it? Where is the source?


31-12-2010, 08:22 AM

lib directory in ZenGL 0.2 RC5 contains only PasJPEG and PasZLib. PasJPEG - full source code of libjpeg6b translated into Pascal. PasZLib - needed only for Delphi. But in separate archives there are some *.a libs for ogg libraries(as described here (http://code.google.com/p/zengl/wiki/en02Compilation) for USE_OGG_STATIC) if you want to use static compilation. Source code(written in C) for getting this *.a and *.o files you can find on official website - http://xiph.org. How to get this *.a and *.o files - another question about using GCC and Borland C++ compilers :)

Latest version of ZenGL on svn have only *.o files due to this bug (http://bugs.freepascal.org/view.php?id=18294). Also there are no PasJPEG and PasZLib. ZenGL will use original libjpeg8b and zlib-1.2.5 for faster loading of jpeg and png files. But static compilation with libjpeg and ogg will be available only for FreePascal. For Delphi will be used OleLoadPicture for jpeg and dll's for ogg.

And... if this question about lib directory in my chipmunk-pascal project, answer will be the same :) libchipmunk.a is a result of compilation Chipmunk source code. But directory lib in chipmunk-pascal also contains dll's/so's in each subdirectory(for different platforms - GNU/Linux and Windows).