Closed vascotenner closed 6 years ago
I try to build the pypylon module for python 3.6 on linux. Building for python 2.7 works fine.
For python3 i get the following error:
Warning: Extension name 'pypylon.cython.version' does not match fully qualified name 'version' of 'cython/version.pyx' Warning: Extension name 'pypylon.cython.factory' does not match fully qualified name 'factory' of 'cython/factory.pyx' cython/factory.pyx: cannot find cimported module 'pylon_def' running build running build_py creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/pypylon copying pypylon/__init__.py -> build/lib.linux-x86_64-3.6/pypylon creating build/lib.linux-x86_64-3.6/pypylon/cython copying pypylon/cython/__init__.py -> build/lib.linux-x86_64-3.6/pypylon/cython running build_ext building 'pypylon.cython.version' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/cython gcc -pthread -B /home/vtr300/anaconda3/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/pylon5/include -I/home/vtr300/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/home/vtr300/anaconda3/include/python3.6m -c cython/version.cpp -o build/temp.linux-x86_64-3.6/cython/version.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ g++ -pthread -shared -B /home/vtr300/anaconda3/compiler_compat -L/home/vtr300/anaconda3/lib -Wl,-rpath=/home/vtr300/anaconda3/lib,--no-as-needed build/temp.linux-x86_64-3.6/cython/version.o -L/opt/pylon5/lib64 -L/home/vtr300/anaconda3/lib -R/opt/pylon5/lib64 -lpylonbase -lpylonutility -lGenApi_gcc_v3_0_Basler_pylon_v5_0 -lGCBase_gcc_v3_0_Basler_pylon_v5_0 -lpython3.6m -o build/lib.linux-x86_64-3.6/pypylon/cython/version.cpython-36m-x86_64-linux-gnu.so g++: error: unrecognized command line option ‘-R’ error: command 'g++' failed with exit status 1
I can do some python programming, but i am unfamiliar with compilers for C++. How can I get this running?
Today this works for some reason fine! Steps I probably did:
pip install -e .
I try to build the pypylon module for python 3.6 on linux. Building for python 2.7 works fine.
For python3 i get the following error:
I can do some python programming, but i am unfamiliar with compilers for C++. How can I get this running?