0

Linux Python アプリケーションを開発していますが、パッケージ化されすぎて Windows 環境にデプロイできません。

私はLinux開発プラットフォームからすべてを行っていました。

ただし、現時点では、win32 用の python chaco ライブラリをクロス コンパイルする必要があります。

引数として、mingw32 コンパイラーと、~/.wine/drive_c/... にある python dll を指定する必要があります。

mingw32で使用すると問題が発生します。環境では、ワインドライブにpython win32をセットアップしました。

python setup.py  build --compiler=mingw32
running build
running build_py
running egg_info
writing requirements to Chaco.egg-info/requires.txt
writing Chaco.egg-info/PKG-INFO
writing namespace_packages to Chaco.egg-info/namespace_packages.txt
writing top-level names to Chaco.egg-info/top_level.txt
writing dependency_links to Chaco.egg-info/dependency_links.txt
writing manifest file 'Chaco.egg-info/SOURCES.txt'
running build_ext
building 'enthought.chaco.contour.contour' extension
gcc -mno-cygwin -mdll -O -Wall -DNUMPY -I/usr/lib/python2.6/dist-packages/numpy/core/include -I/usr/include/python2.6 -c enthought/chaco/contour/cntr.c -o build/temp.linux-x86_64-2.6/enthought/chaco/contour/cntr.o
cc1: error: unrecognized command line option "-mno-cygwin"
cc1: error: unrecognized command line option "-mdll"
error: command 'gcc' failed with exit status 1
4

1 に答える 1

0

Linux コマンドラインから、コンパイルするコマンドは次のようになります。

i586-mingw32msvc-gcc -mdll -O -Wall -DNUMPY -I/home/xxx/.wine/drive_c/Python26/include -I/home/xxxx/.wine/drive_c/Python26/Lib/site-packages/numpy/コア/インクルード -c enthought/chaco/contour/cntr.c -o build/temp.linux-x86_64-2.6/enthought/chaco/contour/cntr.o

于 2014-11-06T07:40:41.420 に答える