-
Notifications
You must be signed in to change notification settings - Fork 29
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
build failure: invalid 'static_cast' #105
Comments
That does not occur in CI, nor have I seen it locally. You'll have to figure it out on your own. |
All I needed to do was compile occt with vtk support and regenerate symbols |
Do you remember specifically how you resolved this issue? I'm having the same problem even with vtk support. My steps roughly look like this—any help would be hugely appreciated. # pip install clang==15.0.7 for libclang-dev version 15
set -e
apt update && apt install -y git clang cmake make libclang-dev python3.11-full libvtk9-dev libgl-dev qtbase5-dev rapidjson-dev
# libocct-foundation-dev libocct-modeling-data-dev libocct-modeling-algorithms-dev
cd /root
# 9.2 suffers from https://github.com/CadQuery/OCP/issues/105
git clone --single-branch -b 'v9.1.0' --depth 1 https://github.com/Kitware/VTK
cd VTK
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/VTK
make -j8 install
cd /root
git clone https://github.com/Open-Cascade-SAS/OCCT
cd OCCT
git checkout tags/V7_7_1
cmake -S . -B build -DUSE_VTK=ON -D3RDPARTY_VTK_INCLUDE_DIR=/opt/VTK/include/vtk-9.1
cmake --build build -j8
python3.11 -m venv venv
source ./venv/bin/activate
pip install ./pywrap
LIBCLANG=/usr/lib/llvm-15/lib/libclang.so
ocp.toml
pywrap -i /opt/VTK/include/vtk-9.1 -l $LIBCLANG all ocp.toml
cmake -B build -S ./OCP -DCMAKE_BUILD_TYPE=Release -DPython3_FIND_STRATEGY=LOCATION -Dpybind11_ROOT=$(python -m pybind11 --cmake-root)
cmake --build build -j 8 &, const TopoDS_Face&, Standard_Real, GeomAbs_Shape)' {aka 'bool (*)(const TopoDS_Edge&, const TopoDS_Face&, const TopoDS_Face&, double, GeomAbs_Shape)'}
125 | (Standard_Boolean (*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , Standard_Real , const GeomAbs_Shape ) ) static_cast<Standard_Boolean (*)( const TopoDS_Edge & , const TopoDS_Face & , const TopoDS_Face & , Standard_Real , const GeomAbs_Shape ) >(&ChFi3d::IsTangentFaces), |
Did you regenerate symbols? On nix doing so looks like this:
|
I solved this by deleting a spurious definition in the bindings discovered here: #115 (comment), although I should try your solution. |
I'm trying to build the 7.7.0.0 release on nixos using the
method, but get an error during the last command bit.
versions:
full error:
The text was updated successfully, but these errors were encountered: