Skip to content

Cannot build on Ubuntu 24 #93

Open
@YuriOsokin

Description

@YuriOsokin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions