Difference between revisions of "SWIG"
From CBLFS
Jump to navigationJump to search (I added a note about the test suite.) |
|||
Line 22: | Line 22: | ||
== Non-Multilib == | == Non-Multilib == | ||
+ | |||
+ | '''Test Suite Note:''' | ||
+ | If you're going to run the test suite, use | ||
+ | '''make -k check''' instead of just '''make check'''. You | ||
+ | don't stand a prayer of a chance of finishing all | ||
+ | of the tests otherwise. Also, note that there are | ||
+ | a ''lot'' of tests run, so the test suite will take | ||
+ | a while and that it's highly likely that many | ||
+ | tests will fail even if SWIG built correctly. Take | ||
+ | a look at the README for more details. | ||
Compile the package: | Compile the package: |
Revision as of 16:38, 4 January 2007
Download Source: | http://prdownloads.sourceforge.net/swig/swig-1.3.40.tar.gz |
---|
Dependencies
Optional
Non-Multilib
Test Suite Note: If you're going to run the test suite, use make -k check instead of just make check. You don't stand a prayer of a chance of finishing all of the tests otherwise. Also, note that there are a lot of tests run, so the test suite will take a while and that it's highly likely that many tests will fail even if SWIG built correctly. Take a look at the README for more details.
Compile the package:
./configure --prefix=/usr && make
Install the package
make install
Multilib
32Bit
Compile the package:
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 ./configure --prefix=/usr && make
Install the package
make install && mv -v /usr/bin/swig{,-32}
N32
Compile the package:
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" USE_ARCH=n32 ./configure --prefix=/usr --libdir=/usr/lib32 && make
Install the package
make install && mv /usr/bin/swig{,-n32}
64Bit
Compile the package:
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 ./configure --prefix=/usr --libdir=/usr/lib64 && make
Install the package
make install && mv -v /usr/bin/swig{,-64} && ln -sfv multiarch_wrapper /usr/bin/swig