Windows system, compiling Python_ Bbox, compile parameters:
from setuptools import setup, find_packages, Extension
import numpy as np
ext_modules = [
Extension(
"cython_bbox",
["utils/cython_bbox.pyx"],
extra_compile_args=["-Wno-cpp", "-Wno-unused-function"],
include_dirs=[np.get_include()],
)
]
report errors:
Error d8021: invalid numeric parameter “/wno CPP”
Error d8021: invalid numeric parameter “/wno unused function”
Solution:
from setuptools import setup, find_packages, Extension
import numpy as np
ext_modules = [
Extension(
"cython_bbox",
["utils/cython_bbox.pyx"],
extra_compile_args=["-std=c++14"],
include_dirs=[np.get_include()],
)
]
Or:
extra_compile_args=["-std=c99"],
Then compile OK:
Read More:
- [Solved] Unity Package Error: Failed running D:\Program Files\Unity2018.4.1\Editor\Data\il2cpp/build/il2cpp.exe
- [Solved] VScode Error: PS D:\vscode> cd “d:\vscode\“ ; if ($?) { g++ tempCodeRunnerFile.cpp -o tempCodeRunn
- [Solved] Import gensim Error: RuntimeError: Cython extensions are unavailable.
- [Solved] HALCON error #5190: Invalid window parameter
- [Solved] Loadrunner Error: with parameter delimiters is not a parameter.
- [Solved] Halcon & C# Error: HalconDotNet.HOperatorException:“HALCON error #5190: Invalid window parameter in op
- [Solved] java.lang.IllegalStateException: Cannot get a STRING value from a NUMERIC cell
- flutter | W/zipro(12512): Error opening archive D:\…Invalid file ERROR: dump failed because…
- tf.nn.dilation2d Call Error: TypeError: dilation2d_v1() got an unexpected keyword argument ‘data_format’
- Clickhouse error: XXXX.XXXX_local20211009 (8fdb18e9-bb4c-42d8-8fdb-18e9bb4c02d8): auto…
- [Solved] Open3d error: unable to display image using open3d
- [Solved] MindSpore Error: Data type conversion of ‘Parameter’ is not supporte
- [Solved] configure: error: C++ preprocessor “/lib/cpp” fails sanity check
- ROS Error: Could not import “pyqt“ bindings of qt_gui_cpp library
- [Solved] Appium Error: InvalidArgumentException: Message: invalid argument: invalid locator
- The imported project “c:\Microsoft.Cpp.Default.props” was not found
- How to Solve Opencv Error: CPP: 1557 error
- [Solved] SyntaxError: Invalid regular expression: invalid group specifier name
- Python3: Str.format Keyerror Solution for incoming parameter error
- How to Solve setsupportactionbar parameter Error