Today, I used swig to encapsulate the underlying C + + library. After the result was encapsulated, release was OK. However, in the debug mode, the import failed all the time, indicating that the module could not be found. Why did I fail when I had PYD?
After troubleshooting, PYD in the original debug mode must be added_ d
The result is to add_ D is solved; For example_ Somelib.pyd should be_ someLib_ d. PYD, so Python can import.
Modify cmakelists.txt to ensure that it is added in debug mode_ d
set(CMAKE_DEBUG_POSTFIX _d)
set_target_properties(${target_name} PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
Read More:
- Brief introduction of cmake generating all in vs Project_ BUILD、INSTALL、ZERO_ Check function!!
- Two methods of cmake in VTK program
- Clion breakpoint not triggered debugging no response to solve the problem
- Error lnk2038: detected “0”_ ITERATOR_ DEBUG_ The reason and solution of the unmatched item of “level”
- CMake Error: The source directory “opencv_install_catalog“ does not appear to contain CMakeLists.txt.
- Vtk8.2.0 (32bit + 64bit) compilation and installation test (win10 + vs2017 + Qt5)
- [VTK] vtk8.2.0 + vs2015 + win10 compilation and configuration
- The C compiler identification is unknown
- Summary of problems encountered in compiling and installing vtk7 + vs2013 / 2015 + cmake
- Vtk8.0 compilation process record under vs2017 and qt5.12.1
- Error lnk2038 occurred during PCL code compilation: detected “error” during PCL code compilation_ ITERATOR_ DEBUG_ Mismatch of level: value ‘0’ does not match value ‘2’ solution
- Pcl1.9 + vs2017 + win10 installation instructions and MFC adaptation
- Vs2017 compiles pcl1.8.1 with vtk8.0 and uses qt5.9.5
- cv2 error – function not implemented [How to Solve]
- Ubuntu 18.04 installation of opencv2.4.13 encountered fatal error. Possible solutions
- Cmake error on qt5core
- Error resolution-“Error in configuration process, project files may be invalid” appears when Cmake compiles openCV
- If you want to open more than one program “pdc140.xxx”, the CL.EXE To write to the same. Pdb file, please use
- error: ‘to_string’ is not a member of ‘std’
- Vs2012 compiling PCL dependency library vtk7.0