Comments (10)
I can't reproduce this issue. Which compiler are you using?
I tested with
- CXX GNU 7.5.0` + python 3.8 + swig4.0.2
- and the ci's here: https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=184770&view=results
from pivy.
The Compiler is gcc-8 (Debian 8.3.0-6) 8.3.0 which is installed under debian 10.
Could it be problem of Python3.5?
from pivy.
Could it be problem of Python3.5?
This is also possible. Any chance to try with a newer python version?
from pivy.
Same error with Python 3.6.12
from pivy.
I can reproduce this error (but with different line-number) if I remove this line here:
https://github.com/coin3d/pivy/blob/master/Inventor/SbString.i#L1
the error in this case looks like this:
pivy/build/pivy/coinPYTHON_wrap.cxx: In function ‘PyObject* _wrap_SbString_vsprintf(PyObject*, PyObject*)’:
pivy/build/pivy/coinPYTHON_wrap.cxx:11366:15: error: invalid array assignment
arg3 = *temp;
But I am not sure if this helps anything.
from pivy.
@looooo Hi, I think I found the reason.
When building with cmake, usually I make a build_pivy outside pivy source code dir, but I found when I run cmake inside pivy source code dir ( with or without -B parameter ), it will work correctly. have tested with Python 3.6.12 and Python 3.8.5
from pivy.
I tried to build pivy from another directory, but still not running into this issue.
can you share the commands which lead to the failing build?
from pivy.
# under build_pivy, which is at same level as pivy
cmake -BRelease -DCMAKE_PREFIX_PATH="/home/hongbo/Developer/Engineering/local/lib/cmake:/usr/lib/x86_64-linux-gnu/cmake:/usr/lib/cmake" -DCMAKE_INSTALL_PREFIX="/home/hongbo/Developer/Engineering/local" -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE="/home/hongbo/Developer/Engineering/local/bin/python3.8" "../pivy"
I saw the CMakeCache.txt is actually created inside pivy, not build_pivy.
But when running inside pivy like:
cmake -BRelease -DCMAKE_PREFIX_PATH="/home/hongbo/Developer/Engineering/local/lib/cmake:/usr/lib/x86_64-linux-gnu/cmake:/usr/lib/cmake" -DCMAKE_INSTALL_PREFIX="/home/hongbo/Developer/Engineering/local" -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE="/home/hongbo/Developer/Engineering/local/bin/python3.8" "."
the cmake generated files are correctly created inside Release
from pivy.
I've had the same problem using g++ 11.2.0 and Python 3.10.5 (Ubuntu 22.04). If I try to build the source outside the pivy source code directory. If I build it inside the directory, it works fine.
from pivy.
@looooo Can this issue please be reopened? It is still happening when building as of now.
Out-of-tree builds do not seem to be possible!
Does not work:
local cmake_options=(
-B build
-D CMAKE_BUILD_TYPE=None
-D CMAKE_INSTALL_PREFIX=/usr
-D PIVY_USE_QT6=ON
-W no-dev
-S $_name-$pkgver
)
cmake "${cmake_options[@]}"
cmake --build build --verbose
Works:
local cmake_options=(
-B build
-D CMAKE_BUILD_TYPE=None
-D CMAKE_INSTALL_PREFIX=/usr
-D PIVY_USE_QT6=ON
-W no-dev
)
cd $_name-$pkgver
cmake "${cmake_options[@]}"
cmake --build build --verbose
from pivy.
Related Issues (20)
- SoGui.init(sys.argv[0]) run error HOT 6
- 'pivy._coin' has no attribute 'delete_SoGeo' HOT 7
- circular import error HOT 16
- Possible to SegFault SoPerspectiveCamera.getMatrix
- Pivy fails to build with Python 3.12 HOT 4
- Pivy failes to build with Python 3.13 HOT 4
- ImportError: cannot import name 'QActionGroup' from 'pivy.qt.QtWidgets' HOT 5
- imp module is removed in Python 3.12 HOT 2
- LINK : fatal error LNK1104: 无法打开文件“"G:\coin\coin\VS\Coin\lib\Coin4d.lib"”
- move to github actions and build for multiple python versions
- Transfer ownership of PyPi entry HOT 2
- How do you recommend projects find pivy using CMake ? (Is there a Findpivy.cmake?) HOT 4
- Recursion in SoBaseKit.__getattr__ HOT 4
- Pivy Python 3.10/3.11 compatibility? HOT 16
- unable to open file "...\Coin3D\lib\Coin4.lib" HOT 1
- Neither setup.py nor CMake build works without issues
- Could not find a package configuration file provided by "Coin" HOT 4
- macos build failure using cmake HOT 20
- SoVMRLTransform.setMatrix doesn't accept a parameter
- FreeCAD fails SIGSEGV, some pivy tests/ FAIL, one fails with SIGSEGV HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pivy.