Your Ad Here

Linux compiler requirement

To compile plug-ins and standalone plug-ins for Maya 8.5 for Linux, use the gcc compiler 4.0.2. Maya is built with this compiler under Red Hat Enterprise 4 WS (U3). Plug-ins built with any other compiler will not work because the C++ ABI (Application Binary Interface) must match between Maya and plug-ins.

Note that the compiler should be renamed with the “402” extension to avoid conflict with the default version of gcc on the system.

Unlike other platforms, on Linux we build the gcc compiler with certain options. Please consult the section Additional Linux notes for information on how to build the gcc 4.0.2 compiler.

Additionally, the following steps can be taken to build the gcc compiler:

Download the latest errata of RHEL 4 WS U4 and the gcc 4.0.2 
source tar file from http://gcc.gnu.org/install/ 
. 
Platform Maya builds on:  RHEL 4 WS with latest errata updates 
    % uname -a 
    Linux lnx-build6 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:54:53 EST 
2006 i686 i686 i386 GNU/Linux 
    binutils-2.15.92.0.2-15 
Setup directories: 
    % mkdir gcc402 
    % cd gcc402 
    % mkdir gcc-build 
Extract the source files: 
    % tar zxvf gcc-4.0.2.tar.gz 
Configure the compiler: 
    % cd gcc-build 
Run the following all on 1 line: 
../gcc-4.0.2/configure --prefix=/opt/gcc402 --program-suffix=402 
--enable-shared --enable-threads=posix --enable-checking=release 
--with-system-zlib --disable-libunwind-exceptions 
--enable-__cxa_atexit 
Build the compiler: 
    % make -j 2 bootstrap 
Install compiler as root: 
    % su root 
    % make install 
Note: you can make a symlink in /usr/bin to make the call to gcc 
easier for the 
user: 
    % cd /usr/bin 
    % ln -s /opt/gcc402/bin/gcc402 . 
    % ln -s /opt/gcc402/bin/g++402 . 

 

Return to Autodesk Index


Your Ad Here