diffvg icon indicating copy to clipboard operation
diffvg copied to clipboard

Cannot build on Ubuntu 24

Open YuriOsokin opened this issue 1 year ago • 2 comments

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.

YuriOsokin avatar Jan 19 '25 10:01 YuriOsokin