Giter Site home page Giter Site logo

Comments (10)

looooo avatar looooo commented on May 24, 2024

I can't reproduce this issue. Which compiler are you using?

I tested with

from pivy.

sprhawk avatar sprhawk commented on May 24, 2024

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.

looooo avatar looooo commented on May 24, 2024

Could it be problem of Python3.5?

This is also possible. Any chance to try with a newer python version?

from pivy.

sprhawk avatar sprhawk commented on May 24, 2024

Same error with Python 3.6.12

from pivy.

looooo avatar looooo commented on May 24, 2024

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.

sprhawk avatar sprhawk commented on May 24, 2024

@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.

looooo avatar looooo commented on May 24, 2024

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.

sprhawk avatar sprhawk commented on May 24, 2024
# 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.

lcpt avatar lcpt commented on May 24, 2024

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.

dvzrv avatar dvzrv commented on May 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.