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

Cannot build on Ubuntu 24 #93

Open
YuriOsokin opened this issue Jan 19, 2025 · 0 comments
Open

Cannot build on Ubuntu 24 #93

YuriOsokin opened this issue Jan 19, 2025 · 0 comments

Comments

@YuriOsokin
Copy link

I have tried to build on Ubuntu 24.04.1 with Python 3.12, GCC 13.3.0, cmake pip version 3.31.4.
The setup.py script fails during DiffVG compilation on line 66,

subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)

with the following error

/home/yuri/workspace/diffvg/pybind11/include/pybind11/cast.h:446:36: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
  446 |                 "  " + handle(frame->f_code->co_filename).cast<std::string>() +
      |                                    ^~

After that there are multiple errors.

I tried to change the C++ standard to 14 in CMakeLists.txt line 121 set_property(TARGET diffvg PROPERTY CXX_STANDARD 14), because of the warnings, but it did not help.

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

1 participant