插件框架精简版 x3py 已在Win/Mac/Linux下测试通过
SVN: https://github.com/rhcad/x3py.git/trunk
GIT: git clone git://github.com/rhcad/x3py.git
C++插件框架 x3py 在下列平台编译测试通过:
1、Win7 x64, VC++ 9.0 x64 | VC++ 8.0 x86, Console | Python2.7/3.2 | Perl5 | Java 1.6
2、Win7 x64, TDM GCC 4 + MSYS + Makefile, Console | Python | Perl | Java
(Python和Perl 链接时找不到.a文件,因为下载的是activestate版本,用GCC重新编译应该就行)
3、Mac OS X 10.6, GCC + Makefile, Console | Python2.6 | Java (Perl没找到头文件)
4、Linux (Ubantu 11.10 x64), GCC + Makefile, Console | Python | Perl | Java | Ruby
编译说明见 INSTALL-win.txt 或 INSTALL-unix.txt,
例如在Linux上输入下面命令就可编译出所有文件:
make all python java perl5 ruby
Unix上的默认路径见 config.mk :
# Environment variables used by source/public/swig/Makefile.swig# You may change the default values or set environment variables (must do this on Windows).
#SWIG_TYPE: python, perl5, java, ruby, php, r (no space after =)
SWIG_TYPE ?=python
ifdef IS_MACOSX
PYTHON_INCLUDE ?=/usr/include/python2.6
JAVA_INCLUDE ?=/Library/Java/Home/include
else # Linux
PYTHON_INCLUDE ?=/usr/include/python2.7
PYTHON_LIBFILE ?=python2.7
JAVA_INCLUDE ?=/usr/lib/jvm/java-6-openjdk/include
endif
PERL5_INCLUDE ?=/usr/lib/perl/5.12.4/CORE
PERL5_LIBFILE ?=perl
RUBY_INCLUDE ?=/usr/include/ruby-1.9.1
RUBY_LIBFILE ?=ruby-1.9.1