osg原始碼編譯步驟

shaderdx發表於2015-05-29


1、最基礎的庫zlib


2、libjpeg;http://blog.csdn.net/dgyanyong/article/details/22970213


3、libtiff;http://blog.csdn.net/chunxiaopengshan/article/details/4038368

With Microsoft Visual C++ installed, and properly configured for commandline use (you will likely need to source VCVARS32.BAT in AUTOEXEC.bAT or somewhere similar) you should be able to use the provided makefile.vc.

C:\LIBTIFF\LIBTIFF> nmake /f makefile.vc
C:\LIBTIFF\LIBTIFF> cd ..\tools
C:\LIBTIFF\TOOLS> nmake /f makefile.vc
This will build the library file LIBTIFF\LIBTIFF\LIBTIFF.LIB. This can be used in Win32 programs. If used in a project using the /MD compiler switch (using the runtime C library), it may be necessary to modify the CFLAGS macro in makefile.vc to correspond.

The makefile also builds a DLL (libtiff.dll) with an associated import library (libtiff_i.lib). Any builds using libtiff will need to include the LIBTIFF\LIBTIFF directory in the include path.

The libtiff\tools\makefile.vc should build .exe's for all the standard TIFF tool programs.

NOTE: The contents of the contrib/win32 directory should no longer be needed, and are kept in the distribution temporarily.


4、libpng;http://blog.csdn.net/yshen_dublin/article/details/4942871


以上三庫均需依賴zlib庫;


5、核心庫OpenThreads,以獲得多執行緒支援;


6、osg原始碼可以從osgwiki官網下載;


相關文章