Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to compile #39

Closed
nitrotm opened this issue Aug 10, 2018 · 0 comments
Closed

Failed to compile #39

nitrotm opened this issue Aug 10, 2018 · 0 comments

Comments

@nitrotm
Copy link

nitrotm commented Aug 10, 2018

Any idea what could be the reason? It seems to be related to swig, but on the other hand, maybe the flag '-fpermissive' should be added for now when calling gcc from setup.py?

gcc: 8.2.0
python: 3.7.0
swig: 3.0.12

gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -Iy/coin_wrap.cpp -o build/temp.linux-x86_64-3.7/pivy/coin_wrap.o -Iinterfaces -I/usr/include -I/usr/include/Inventor/annex -Wno-unused -Wno-maybe
pivy/coin_wrap.cpp: In function ‘void SoSensorPythonCB(void*, SoSensor*)’:
pivy/coin_wrap.cpp:6342:40: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
     sensor_cast_name = PyUnicode_AsUTF8(item);
                        ~~~~~~~~~~~~~~~~^~~~~~
pivy/coin_wrap.cpp: In function ‘void SoMarkerSet_addMarker__SWIG_3(int, const SbVec2s&, PyObject*, SbBool, SbBool)’:
pivy/coin_wrap.cpp:7236:43: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
             coin_marker = PyUnicode_AsUTF8(string);
                           ~~~~~~~~~~~~~~~~^~~~~~~~
peterlama added a commit to peterlama/pivy that referenced this issue Aug 25, 2018
Even with python 2, it doesn't seem like char* is needed
looooo pushed a commit that referenced this issue Aug 28, 2018
Even with python 2, it doesn't seem like char* is needed
@looooo looooo closed this as completed Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants