OCCT Building on 64-bit platforms
Tune the environment for 64-bit. The path to 64-bit version of libraries for System, C, C++, XWindows, OpenGl should be located before the path to 32-bit libraries in LD_LIBRARY_PATH environment variable. Path to 64-bit version of executables should be before path to 32-bit executables in PATH variable.
Find and install or build and install third party products such as Tcl/Tk, JDK, QT.
Modify building procedures for 64-bit.
For gcc compiler
C compiler options should contain –m64 –D_OCC64
CXX compiler options should contain –m64 –D_OCC64
For Forte compiler
C compiler options should contain -xarch=v9
CXX compiler options should contain –xarch=v9
Linker options should contain –xarch=v9
For Silicon compiler
C compiler options should contain –n64
CXX compiler options should contain –n64
Linker options should contain –n64
Build OCCT
Launch an appropriate cmd shell for 64-compilation from SDK (Windows Server 2003 or Windows XP, IA64 or x64, 64-bit build environment).
Build or install a 64-bit version of third party products.
Modify *.mak files for 64-bit:
add /Wp64 /DWIN64 /D_WIN64 /D”CPU=AMD64” compiler options;
change to –machine:AMD64 linker option;
add bufferoverfluwu.lib to the linked libraries;
Change win32 to win64 in OUTDIR, INDIR, LIBDIR variables.
Build OCCTType topic text here.