-
Notifications
You must be signed in to change notification settings - Fork 193
Description
(.venv) D:\jhg\project\SVGDreamer-main\diffvg git:[master]
python setup.py install
running install
D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
self.initialize_options()
running bdist_egg
running egg_info
creating diffvg.egg-info
writing diffvg.egg-info\PKG-INFO
writing dependency_links to diffvg.egg-info\dependency_links.txt
writing requirements to diffvg.egg-info\requires.txt
writing top-level names to diffvg.egg-info\top_level.txt
writing manifest file 'diffvg.egg-info\SOURCES.txt'
reading manifest file 'diffvg.egg-info\SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'diffvg.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build
creating build\lib.win-amd64-cpython-39
creating build\lib.win-amd64-cpython-39\pydiffvg
copying pydiffvg\color.py -> build\lib.win-amd64-cpython-39\pydiffvg
copying pydiffvg\device.py -> build\lib.win-amd64-cpython-39\pydiffvg
copying pydiffvg\image.py -> build\lib.win-amd64-cpython-39\pydiffvg
copying pydiffvg\optimize_svg.py -> build\lib.win-amd64-cpython-39\pydiffvg
copying pydiffvg\parse_svg.py -> build\lib.win-amd64-cpython-39\pydiffvg
copying pydiffvg\pixel_filter.py -> build\lib.win-amd64-cpython-39\pydiffvg
copying pydiffvg\render_pytorch.py -> build\lib.win-amd64-cpython-39\pydiffvg
copying pydiffvg\save_svg.py -> build\lib.win-amd64-cpython-39\pydiffvg
copying pydiffvg\shape.py -> build\lib.win-amd64-cpython-39\pydiffvg
copying pydiffvg_init_.py -> build\lib.win-amd64-cpython-39\pydiffvg
running build_ext
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22000.
-- The C compiler identification is MSVC 19.43.34809.0
-- The CXX compiler identification is MSVC 19.43.34809.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/jhg/vs2022/setupfile/VC/Tools/MSVC/14.43.34808/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/jhg/vs2022/setupfile/VC/Tools/MSVC/14.43.34808/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Python: D:/jhg/python/libs/python39.lib (found suitable version "3.9.12", minimum required is "3.6") found components: Development Development.Module Development.Embed
CMake Deprecation Warning at pybind11/CMakeLists.txt:8 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
-- pybind11 v2.6.0 dev
-- Performing Test HAS_MSVC_GL_LTCG
-- Performing Test HAS_MSVC_GL_LTCG - Success
-- Using pybind11: (version "2.6.0" dev)
-- Build with CUDA support
CMake Warning (dev) at CMakeLists.txt:19 (find_package):
Policy CMP0146 is not set: The FindCUDA module is removed. Run "cmake
--help-policy CMP0146" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found CUDA: D:/CUDA/setup (found suitable version "12.8", minimum required is "10")
CMake Warning (dev) at CMakeLists.txt:33 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found PythonLibs: D:/jhg/python/libs/python39.lib (found version "3.9.12")
-- Configuring done (10.6s)
-- Generating done (0.0s)
-- Build files have been written to: D:/jhg/project/SVGDreamer-main/diffvg/build/temp.win-amd64-cpython-39/Release
适用于 .NET Framework MSBuild 版本 17.13.19+0d9f5a35a
1>Checking Build System
Building NVCC (Device) object CMakeFiles/diffvg.dir/Release/diffvg_generated_diffvg.cpp.obj
diffvg.cpp
D:/CUDA/setup/include\cuda.h(23382): warning C4819: 璇ユ枃浠跺寘鍚笉鑳藉湪褰?鎸夘寫鑳?936)涓〃绀虹殑瀛楃銆傝灏嗚鏂囦欢淇濆瓨涓?Unicode 鏍煎紡浠ラ槻姝㈡暟鎹涪澶? [D:\jhg\project\SVG
Dreamer-main\diffvg\build\temp.win-amd64-cpython-39\Release\diffvg.vcxproj]
D:/CUDA/setup/include\cuda.h(23937): warning C4819: 璇ユ枃浠跺寘鍚笉鑳藉湪褰撳墠浠g爜椤?936)涓〃绀虹殑瀛楃銆傝灏嗚鏂囦欢淇濆瓨涓?Unicode 鏍煎紡浠ラ槻姝㈡暟鎹涪澶? [D:\jhg\project\SV
GDreamer-main\diffvg\build\temp.win-amd64-cpython-39\Release\diffvg.vcxproj]
D:/CUDA/setup/include\cub/warp/specializations/warp_exchange_shfl.cuh(1): warning C4819: 璇ユ枃浠跺寘鍚笉鑳藉湪褰撳墠浠g爜椤?936)涓〃绀虹 殑瀛楃銆傝灏嗚鏂囦欢淇濆瓨涓?Unic
ode ?琚锋彮鑻戜箰鏁咁惂鑽活€? [D:\jhg\project\SVGDreamer-main\diffvg\build\temp.win-amd64-cpython-39\Release\diffvg.vcxproj]
CUSTOMBUILD : nvcc warning : Support for offline compilation for architectures prior to '<compute/sm/lto>_75' will be removed in a future re
lease (Use -Wno-deprecated-gpu-targets to suppress warning). [D:\jhg\project\SVGDreamer-main\diffvg\build\temp.win-amd64-cpython-39\Release\
diffvg.vcxproj]
D:/CUDA/setup/include\cuda.h(23382): warning C4819: 璇ユ枃浠跺寘鍚笉鑳藉湪褰撳墠浠g爜椤?936)涓〃绀虹殑瀛楃銆傝灏嗚鏂囦欢淇濆瓨涓?Unicode 鏍煎紡浠ラ槻姝㈡暟鎹涪澶? [D:\jhg\project\SV
GDreamer-main\diffvg\build\temp.win-amd64-cpython-39\Release\diffvg.vcxproj]
D:/CUDA/setup/include\cuda.h(23937): warning C4819: 璇ユ枃浠跺寘鍚笉鑳藉湪褰撳墠浠g爜椤?936)涓〃绀虹殑?鍧€顛庯姬铏㈩伒姊﹀嫙顟革紨瀚?Unicode 鏍煎紡浠ラ槻姝㈡暟鎹涪澶? [D:\jhg\project\SV
GDreamer-main\diffvg\build\temp.win-amd64-cpython-39\Release\diffvg.vcxproj]
D:/CUDA/setup/include\cub/warp/specializations/warp_exchange_shfl.cuh(1): warning C4819: 璇ユ枃浠跺寘鍚笉鑳藉湪褰撳墠浠g爜椤?936)涓〃绀虹 殑瀛楃銆傝灏嗚鏂囦欢淇濆瓨涓?Unic
ode ?琚锋彮鑻戜箰鏁咁惂鑽活€? [D:\jhg\project\SVGDreamer-main\diffvg\build\temp.win-amd64-cpython-39\Release\diffvg.vcxproj]
D:\jhg\project\SVGDreamer-main\diffvg\diffvg.cpp(158): error : identifier "d_p" is undefined [D:\jhg\project\SVGDreamer-main\diffvg\build\te
mp.win-amd64-cpython-39\Release\diffvg.vcxproj]
Ellipse d_p = (Ellipse)d_shape.ptr;
^
D:\jhg\project\SVGDreamer-main\diffvg\diffvg.cpp(158): error : expected an expression [D:\jhg\project\SVGDreamer-main\diffvg\build\temp.win-
amd64-cpython-39\Release\diffvg.vcxproj]
Ellipse d_p = (Ellipse)d_shape.ptr;
^
D:\jhg\project\SVGDreamer-main\diffvg\diffvg.cpp(158): error : expected a ";" [D:\jhg\project\SVGDreamer-main\diffvg\build\temp.win-amd64-cp
ython-39\Release\diffvg.vcxproj]
Ellipse d_p = (Ellipse)d_shape.ptr;
^
D:\jhg\project\SVGDreamer-main\diffvg\diffvg.cpp(160): error : no instance of overloaded function "atomic_add" matches the argument list [D:
\jhg\project\SVGDreamer-main\diffvg\build\temp.win-amd64-cpython-39\Release\diffvg.vcxproj]
argument types are: (, TVector2)
atomic_add(&d_p->center[0], normal * contrib);
^
D:\jhg\project\SVGDreamer-main\diffvg\atomic.h(132): note #3327-D: candidate function template "atomic_add(T0 *, const TMatrix3x3 &)"
failed deduction
inline void atomic_add(T0 *target, const TMatrix3x3 &source) {
^
D:\jhg\project\SVGDreamer-main\diffvg\atomic.h(123): note #3327-D: candidate function template "atomic_add(T0 *, const TVector4 &)" fa
iled deduction
inline void atomic_add(T0 *target, const TVector4 &source) {
^
D:\jhg\project\SVGDreamer-main\diffvg\atomic.h(113): note #3327-D: candidate function template "atomic_add(TVector4 &, const TVector4<
T1> &)" failed deduction
inline TVector4 atomic_add(TVector4 &target, const TVector4 &source) {
^
D:\jhg\project\SVGDreamer-main\diffvg\atomic.h(105): note #3327-D: candidate function template "atomic_add(T0 *, const TVector3 &)" fa
iled deduction
inline void atomic_add(T0 *target, const TVector3 &source) {
^
D:\jhg\project\SVGDreamer-main\diffvg\atomic.h(96): note #3327-D: candidate function template "atomic_add(TVector3 &, const TVector3<T
1> &)" failed deduction
inline TVector3 atomic_add(TVector3 &target, const TVector3 &source) {
^
D:\jhg\project\SVGDreamer-main\diffvg\atomic.h(89): note #3327-D: candidate function template "atomic_add(T0 *, const TVector2 &)" fai
led deduction
inline void atomic_add(T0 *target, const TVector2 &source) {
^
D:\jhg\project\SVGDreamer-main\diffvg\atomic.h(81): note #3327-D: candidate function template "atomic_add(TVector2 &, const TVector2<T
1> &)" failed deduction
inline TVector2 atomic_add(TVector2 &target, const TVector2 &source) {
^
D:\jhg\project\SVGDreamer-main\diffvg\atomic.h(75): note #3327-D: candidate function template "atomic_add(T0 *, T1)" failed deduction
inline T0 atomic_add(T0 *target, T1 source) {
^
D:\jhg\project\SVGDreamer-main\diffvg\atomic.h(64): note #3326-D: function "atomic_add(double &, double)" does not match because argument
#2 does not match parameter
static double atomic_add(double &target, double source) {
^
D:\jhg\project\SVGDreamer-main\diffvg\atomic.h(56): note #3326-D: function "atomic_add(float &, float)" does not match because argument #2
does not match parameter
static float atomic_add(float &target, float source) {
^
D:\jhg\project\SVGDreamer-main\diffvg\diffvg.cpp(1692): error : function "Ellipse" is not a type name [D:\jhg\project\SVGDreamer-main\diffvg
\build\temp.win-amd64-cpython-39\Release\diffvg.vcxproj]
py::class_(m, "Ellipse")
^
D:\jhg\project\SVGDreamer-main\diffvg\pybind11\include\pybind11\detail/common.h(593): error : too few arguments for class template "pybind11
::detail::pack_element" [D:\jhg\project\SVGDreamer-main\diffvg\build\temp.win-amd64-cpython-39\Release\diffvg.vcxproj]
using type = conditional_t<found, typename pack_element<index, Ts...>::type, Default>;
^
detected during:
instantiation of class "pybind11::detail::exactly_one<Predicate, Default, Ts...> [with Predicate=pybind11::class_<
::is_holder, Default=std::unique_ptr<, std::default_delete<>>, Ts=<>]" at line 599
instantiation of type "pybind11::detail::exactly_one_t<pybind11::class_<>::is_holder, std::unique_ptr<
, std::default_delete<>>>" at line 1100 of D:/jhg/project/SVGDreamer-main/diffvg/pybind11/include\pybind11/pybind11.h
instantiation of class "pybind11::class_<type_, options...> [with type_=, options=<>]" at line 1692 of D:\jhg\proj
ect\SVGDreamer-main\diffvg\diffvg.cpp
6 errors detected in the compilation of "D:/jhg/project/SVGDreamer-main/diffvg/diffvg.cpp".
CUSTOMBUILD : nvcc warning : Support for offline compilation for architectures prior to '<compute/sm/lto>_75' will be removed in a future re
lease (Use -Wno-deprecated-gpu-targets to suppress warning). [D:\jhg\project\SVGDreamer-main\diffvg\build\temp.win-amd64-cpython-39\Release\
diffvg.vcxproj]
diffvg.cpp
CMake Error at diffvg_generated_diffvg.cpp.obj.Release.cmake:280 (message):
Error generating file
D:/jhg/project/SVGDreamer-main/diffvg/build/temp.win-amd64-cpython-39/Release/CMakeFiles/diffvg.dir//Release/diffvg_generated_diffvg.cpp
.obj
D:\jhg\vs2022\setupfile\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: “D:\jhg\project\SVGDreamer-main\diffvg
diffvg.cpp;D:\jhg\project\SVGDreamer-main\diffvg\scene.cpp;D:\jhg\project\SVGDreamer-main\diffvg\CMakeLists.txt”的自定义生成已退出,代码为 1 。 [D:\jhg\pro
ject\SVGDreamer-main\diffvg\build\temp.win-amd64-cpython-39\Release\diffvg.vcxproj]
Traceback (most recent call last):
File "D:\jhg\project\SVGDreamer-main\diffvg\setup.py", line 93, in
setup(name = 'diffvg',
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_init_.py", line 103, in setup
return distutils.core.setup(**attrs)
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\core.py", line 185, in setup
return run_commands(dist)
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools\dist.py", line 1001, in run_command
super().run_command(command)
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools\command\install.py", line 84, in run
self.do_egg_install()
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools\command\install.py", line 132, in do_egg_install
self.run_command('bdist_egg')
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools\dist.py", line 1001, in run_command
super().run_command(command)
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools\command\bdist_egg.py", line 167, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools\command\bdist_egg.py", line 153, in call_command
self.run_command(cmdname)
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools\dist.py", line 1001, in run_command
super().run_command(command)
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
self.build()
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\command\install_lib.py", line 111, in build
self.run_command('build_ext')
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools\dist.py", line 1001, in run_command
super().run_command(command)
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "D:\jhg\project\SVGDreamer-main\diffvg\setup.py", line 32, in run
super().run()
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools\command\build_ext.py", line 88, in run
_build_ext.run(self)
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\command\build_ext.py", line 345, in run
self.build_extensions()
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\command\build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "D:\jhg\project\SVGDreamer-main.venv\lib\site-packages\setuptools_distutils\command\build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "D:\jhg\project\SVGDreamer-main\diffvg\setup.py", line 67, in build_extension
subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
File "D:\jhg\python\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '/m']' returned non-zero exit status 1.