├── .vscode └── settings.json ├── CMakeLists.txt ├── README.md ├── bin └── yolov5s ├── build ├── CMakeCache.txt ├── CMakeFiles │ ├── 3.16.6 │ │ ├── CMakeCCompiler.cmake │ │ ├── CMakeCXXCompiler.cmake │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ ├── CMakeSystem.cmake │ │ ├── CompilerIdC │ │ │ ├── CMakeCCompilerId.c │ │ │ └── a.out │ │ └── CompilerIdCXX │ │ │ ├── CMakeCXXCompilerId.cpp │ │ │ └── a.out │ ├── CMakeDirectoryInformation.cmake │ ├── CMakeError.log │ ├── CMakeOutput.log │ ├── Makefile.cmake │ ├── Makefile2 │ ├── TargetDirectories.txt │ ├── cmake.check_cache │ ├── progress.marks │ └── yolov5s.dir │ │ ├── CXX.includecache │ │ ├── DependInfo.cmake │ │ ├── build.make │ │ ├── cmake_clean.cmake │ │ ├── depend.internal │ │ ├── depend.make │ │ ├── flags.make │ │ ├── link.txt │ │ ├── progress.make │ │ └── src │ │ ├── main.cpp.o │ │ ├── nms.cpp.o │ │ ├── src.cpp.o │ │ └── yolo.cpp.o ├── Makefile └── cmake_install.cmake ├── files ├── 1.png ├── anchor_grid.txt ├── go.png ├── labels.txt ├── test-1.png ├── test-8.png ├── test.png └── yolov5s.torchscript ├── include ├── nms.h └── yolo.h └── src ├── main.cpp ├── nms.cpp ├── src.cpp └── yolo.cpp /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "array": "cpp", 4 | "string": "cpp", 5 | "atomic": "cpp", 6 | "*.tcc": "cpp", 7 | "bitset": "cpp", 8 | "cctype": "cpp", 9 | "chrono": "cpp", 10 | "clocale": "cpp", 11 | "cmath": "cpp", 12 | "complex": "cpp", 13 | "cstdarg": "cpp", 14 | "cstdint": "cpp", 15 | "cstdio": "cpp", 16 | "cstdlib": "cpp", 17 | "cstring": "cpp", 18 | "ctime": "cpp", 19 | "cwchar": "cpp", 20 | "cwctype": "cpp", 21 | "deque": "cpp", 22 | "list": "cpp", 23 | "unordered_map": "cpp", 24 | "vector": "cpp", 25 | "exception": "cpp", 26 | "fstream": "cpp", 27 | "functional": "cpp", 28 | "initializer_list": "cpp", 29 | "iomanip": "cpp", 30 | "iosfwd": "cpp", 31 | "iostream": "cpp", 32 | "istream": "cpp", 33 | "limits": "cpp", 34 | "mutex": "cpp", 35 | "new": "cpp", 36 | "ostream": "cpp", 37 | "numeric": "cpp", 38 | "ratio": "cpp", 39 | "sstream": "cpp", 40 | "stdexcept": "cpp", 41 | "streambuf": "cpp", 42 | "system_error": "cpp", 43 | "thread": "cpp", 44 | "cinttypes": "cpp", 45 | "tuple": "cpp", 46 | "type_traits": "cpp", 47 | "utility": "cpp", 48 | "typeinfo": "cpp", 49 | "cstddef": "cpp", 50 | "algorithm": "cpp", 51 | "memory": "cpp" 52 | } 53 | } -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8) 2 | project(yolov5s) 3 | 4 | IF(NOT CMAKE_BUILD_TYPE) 5 | SET(CMAKE_BUILD_TYPE Release) 6 | ENDIF() 7 | 8 | set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin) 9 | set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib) 10 | 11 | include_directories("/home/zherlock/torchvision-abi/include/") 12 | include_directories("/home/zherlock/torchvision-abi/include/torchvision") 13 | include_directories("/home/zherlock/SLAM/libtorch/libtorch-abi/include/torch/csrc/api/include/") 14 | include_directories("/home/zherlock/SLAM/libtorch/libtorch-abi/include/") 15 | include_directories("/home/zherlock/anaconda3/envs/detectron2/include/python3.7m/") 16 | include_directories( 17 | ${PROJECT_SOURCE_DIR}/include 18 | ) 19 | 20 | 21 | set(CMAKE_PREFIX_PATH "/home/zherlock/SLAM/libtorch/libtorch-abi") 22 | set(OpenCV_DIR "/home/zherlock/opencv-2.4.9/build/") 23 | find_package(OpenCV 2.4.9 QUIET) 24 | find_package(Torch REQUIRED) 25 | 26 | file(GLOB SOURCE_FILES src/*.cpp) 27 | 28 | add_executable(${CMAKE_PROJECT_NAME} ${SOURCE_FILES}) 29 | 30 | 31 | 32 | target_link_libraries( 33 | ${CMAKE_PROJECT_NAME} 34 | ${OpenCV_LIBS} 35 | ${TORCH_LIBRARIES} 36 | /home/zherlock/torchvision-abi/lib/libtorchvision.so) 37 | 38 | set(CMAKE_CXX_STANDARD 14) 39 | add_definitions(-std=c++14) 40 | 41 | 42 | #add_library(nms SHARED 43 | #${PROJECT_SOURCE_DIR}/include/src/nms.cpp 44 | #) 45 | #add_executable(yolo src.cpp) 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # YOLOv5_Torchscript 2 | C++ code for running a yolov5s model. 3 | 4 | My steps are, 5 | 6 | 1.generating a torchscript file using export.py in yolov5. 7 | when u run export.py, Make sure u modify the detect layer to make it return the inputed list x, then we will implement detect layer in c++. 8 | 9 | 2.write codes for image pre_processing, detect layer, and nms. 10 | 11 | src.cpp is a clean one that u can compile and run. 12 | 13 | nms.cpp and nms.h are offered, I put them on the path /torchvision/include/torchvision/ 14 | 15 | my implementation is not perfect since I'm not familiar to libtorch, and I fixed some parameters in these functions. 16 | 17 | IMAGES IN DIFFERENT SHAPES CAN BE FED LIEK THAT IN PYTHON. 18 | 19 | -------------------------------------------------------------------------------- /bin/yolov5s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zherlock030/YOLOv5_Torchscript/5f2e5e026a76df65f89f7e5bf037c7e81206658f/bin/yolov5s -------------------------------------------------------------------------------- /build/CMakeCache.txt: -------------------------------------------------------------------------------- 1 | # This is the CMakeCache file. 2 | # For build in directory: /home/zherlock/c++ example/object detection/build 3 | # It was generated by CMake: /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake 4 | # You can edit this file to change values found and used by cmake. 5 | # If you do not want to change any of the values, simply exit the editor. 6 | # If you do want to change a value, simply edit, save, and exit the editor. 7 | # The syntax for the file is as follows: 8 | # KEY:TYPE=VALUE 9 | # KEY is the name of a variable in the cache. 10 | # TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. 11 | # VALUE is the current value for the KEY. 12 | 13 | ######################## 14 | # EXTERNAL cache entries 15 | ######################## 16 | 17 | //Path to a library. 18 | C10_LIBRARY:FILEPATH=/home/zherlock/SLAM/libtorch/libtorch-abi/lib/libc10.so 19 | 20 | //Path to a program. 21 | CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line 22 | 23 | //Path to a program. 24 | CMAKE_AR:FILEPATH=/usr/bin/ar 25 | 26 | //Choose the type of build, options are: None Debug Release RelWithDebInfo 27 | // MinSizeRel ... 28 | CMAKE_BUILD_TYPE:STRING= 29 | 30 | //Enable/Disable color output during build. 31 | CMAKE_COLOR_MAKEFILE:BOOL=ON 32 | 33 | //CXX compiler 34 | CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++ 35 | 36 | //A wrapper around 'ar' adding the appropriate '--plugin' option 37 | // for the GCC compiler 38 | CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-5 39 | 40 | //A wrapper around 'ranlib' adding the appropriate '--plugin' option 41 | // for the GCC compiler 42 | CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-5 43 | 44 | //Flags used by the CXX compiler during all build types. 45 | CMAKE_CXX_FLAGS:STRING= 46 | 47 | //Flags used by the CXX compiler during DEBUG builds. 48 | CMAKE_CXX_FLAGS_DEBUG:STRING=-g 49 | 50 | //Flags used by the CXX compiler during MINSIZEREL builds. 51 | CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG 52 | 53 | //Flags used by the CXX compiler during RELEASE builds. 54 | CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG 55 | 56 | //Flags used by the CXX compiler during RELWITHDEBINFO builds. 57 | CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG 58 | 59 | //C compiler 60 | CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc 61 | 62 | //A wrapper around 'ar' adding the appropriate '--plugin' option 63 | // for the GCC compiler 64 | CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-5 65 | 66 | //A wrapper around 'ranlib' adding the appropriate '--plugin' option 67 | // for the GCC compiler 68 | CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-5 69 | 70 | //Flags used by the C compiler during all build types. 71 | CMAKE_C_FLAGS:STRING= 72 | 73 | //Flags used by the C compiler during DEBUG builds. 74 | CMAKE_C_FLAGS_DEBUG:STRING=-g 75 | 76 | //Flags used by the C compiler during MINSIZEREL builds. 77 | CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG 78 | 79 | //Flags used by the C compiler during RELEASE builds. 80 | CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG 81 | 82 | //Flags used by the C compiler during RELWITHDEBINFO builds. 83 | CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG 84 | 85 | //Path to a program. 86 | CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND 87 | 88 | //Flags used by the linker during all build types. 89 | CMAKE_EXE_LINKER_FLAGS:STRING= 90 | 91 | //Flags used by the linker during DEBUG builds. 92 | CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= 93 | 94 | //Flags used by the linker during MINSIZEREL builds. 95 | CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= 96 | 97 | //Flags used by the linker during RELEASE builds. 98 | CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= 99 | 100 | //Flags used by the linker during RELWITHDEBINFO builds. 101 | CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= 102 | 103 | //Enable/Disable output of compile commands during generation. 104 | CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF 105 | 106 | //Install path prefix, prepended onto install directories. 107 | CMAKE_INSTALL_PREFIX:PATH=/usr/local 108 | 109 | //Path to a program. 110 | CMAKE_LINKER:FILEPATH=/usr/bin/ld 111 | 112 | //Path to a program. 113 | CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make 114 | 115 | //Flags used by the linker during the creation of modules during 116 | // all build types. 117 | CMAKE_MODULE_LINKER_FLAGS:STRING= 118 | 119 | //Flags used by the linker during the creation of modules during 120 | // DEBUG builds. 121 | CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= 122 | 123 | //Flags used by the linker during the creation of modules during 124 | // MINSIZEREL builds. 125 | CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= 126 | 127 | //Flags used by the linker during the creation of modules during 128 | // RELEASE builds. 129 | CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= 130 | 131 | //Flags used by the linker during the creation of modules during 132 | // RELWITHDEBINFO builds. 133 | CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= 134 | 135 | //Path to a program. 136 | CMAKE_NM:FILEPATH=/usr/bin/nm 137 | 138 | //Path to a program. 139 | CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy 140 | 141 | //Path to a program. 142 | CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump 143 | 144 | //Value Computed by CMake 145 | CMAKE_PROJECT_DESCRIPTION:STATIC= 146 | 147 | //Value Computed by CMake 148 | CMAKE_PROJECT_HOMEPAGE_URL:STATIC= 149 | 150 | //Value Computed by CMake 151 | CMAKE_PROJECT_NAME:STATIC=yolov5s 152 | 153 | //Path to a program. 154 | CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib 155 | 156 | //Path to a program. 157 | CMAKE_READELF:FILEPATH=/usr/bin/readelf 158 | 159 | //Flags used by the linker during the creation of shared libraries 160 | // during all build types. 161 | CMAKE_SHARED_LINKER_FLAGS:STRING= 162 | 163 | //Flags used by the linker during the creation of shared libraries 164 | // during DEBUG builds. 165 | CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= 166 | 167 | //Flags used by the linker during the creation of shared libraries 168 | // during MINSIZEREL builds. 169 | CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= 170 | 171 | //Flags used by the linker during the creation of shared libraries 172 | // during RELEASE builds. 173 | CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= 174 | 175 | //Flags used by the linker during the creation of shared libraries 176 | // during RELWITHDEBINFO builds. 177 | CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= 178 | 179 | //If set, runtime paths are not added when installing shared libraries, 180 | // but are added when building. 181 | CMAKE_SKIP_INSTALL_RPATH:BOOL=NO 182 | 183 | //If set, runtime paths are not added when using shared libraries. 184 | CMAKE_SKIP_RPATH:BOOL=NO 185 | 186 | //Flags used by the linker during the creation of static libraries 187 | // during all build types. 188 | CMAKE_STATIC_LINKER_FLAGS:STRING= 189 | 190 | //Flags used by the linker during the creation of static libraries 191 | // during DEBUG builds. 192 | CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= 193 | 194 | //Flags used by the linker during the creation of static libraries 195 | // during MINSIZEREL builds. 196 | CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= 197 | 198 | //Flags used by the linker during the creation of static libraries 199 | // during RELEASE builds. 200 | CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= 201 | 202 | //Flags used by the linker during the creation of static libraries 203 | // during RELWITHDEBINFO builds. 204 | CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= 205 | 206 | //Path to a program. 207 | CMAKE_STRIP:FILEPATH=/usr/bin/strip 208 | 209 | //If this value is on, makefiles will be generated without the 210 | // .SILENT directive, and all commands will be echoed to the console 211 | // during the make. This is useful for debugging only. With Visual 212 | // Studio IDE projects all commands are done without /nologo. 213 | CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE 214 | 215 | //The directory containing a CMake configuration file for Caffe2. 216 | Caffe2_DIR:PATH=/home/zherlock/SLAM/libtorch/libtorch-abi/share/cmake/Caffe2 217 | 218 | //The directory containing a CMake configuration file for MKLDNN. 219 | MKLDNN_DIR:PATH=MKLDNN_DIR-NOTFOUND 220 | 221 | //The directory containing a CMake configuration file for MKL. 222 | MKL_DIR:PATH=MKL_DIR-NOTFOUND 223 | 224 | //Path where debug 3rdpaty OpenCV dependencies are located 225 | OpenCV_3RDPARTY_LIB_DIR_DBG:PATH= 226 | 227 | //Path where release 3rdpaty OpenCV dependencies are located 228 | OpenCV_3RDPARTY_LIB_DIR_OPT:PATH= 229 | 230 | OpenCV_CONFIG_PATH:FILEPATH=/home/zherlock/opencv-2.4.9/build 231 | 232 | //Path where debug OpenCV libraries are located 233 | OpenCV_LIB_DIR_DBG:PATH= 234 | 235 | //Path where release OpenCV libraries are located 236 | OpenCV_LIB_DIR_OPT:PATH= 237 | 238 | //Path to a library. 239 | TORCH_LIBRARY:FILEPATH=/home/zherlock/SLAM/libtorch/libtorch-abi/lib/libtorch.so 240 | 241 | //The directory containing a CMake configuration file for Torch. 242 | Torch_DIR:PATH=/home/zherlock/SLAM/libtorch/libtorch-abi/share/cmake/Torch 243 | 244 | //Value Computed by CMake 245 | yolov5s_BINARY_DIR:STATIC=/home/zherlock/c++ example/object detection/build 246 | 247 | //Value Computed by CMake 248 | yolov5s_SOURCE_DIR:STATIC=/home/zherlock/c++ example/object detection 249 | 250 | 251 | ######################## 252 | # INTERNAL cache entries 253 | ######################## 254 | 255 | //ADVANCED property for variable: CMAKE_ADDR2LINE 256 | CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1 257 | //ADVANCED property for variable: CMAKE_AR 258 | CMAKE_AR-ADVANCED:INTERNAL=1 259 | //This is the directory where this CMakeCache.txt was created 260 | CMAKE_CACHEFILE_DIR:INTERNAL=/home/zherlock/c++ example/object detection/build 261 | //Major version of cmake used to create the current loaded cache 262 | CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 263 | //Minor version of cmake used to create the current loaded cache 264 | CMAKE_CACHE_MINOR_VERSION:INTERNAL=16 265 | //Patch version of cmake used to create the current loaded cache 266 | CMAKE_CACHE_PATCH_VERSION:INTERNAL=6 267 | //ADVANCED property for variable: CMAKE_COLOR_MAKEFILE 268 | CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1 269 | //Path to CMake executable. 270 | CMAKE_COMMAND:INTERNAL=/home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake 271 | //Path to cpack program executable. 272 | CMAKE_CPACK_COMMAND:INTERNAL=/home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cpack 273 | //Path to ctest program executable. 274 | CMAKE_CTEST_COMMAND:INTERNAL=/home/zherlock/cmake-3.16.6-Linux-x86_64/bin/ctest 275 | //ADVANCED property for variable: CMAKE_CXX_COMPILER 276 | CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 277 | //ADVANCED property for variable: CMAKE_CXX_COMPILER_AR 278 | CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1 279 | //ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB 280 | CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1 281 | //ADVANCED property for variable: CMAKE_CXX_FLAGS 282 | CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 283 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG 284 | CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 285 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL 286 | CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 287 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE 288 | CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 289 | //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO 290 | CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 291 | //ADVANCED property for variable: CMAKE_C_COMPILER 292 | CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 293 | //ADVANCED property for variable: CMAKE_C_COMPILER_AR 294 | CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1 295 | //ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB 296 | CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1 297 | //ADVANCED property for variable: CMAKE_C_FLAGS 298 | CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 299 | //ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG 300 | CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 301 | //ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL 302 | CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 303 | //ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE 304 | CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 305 | //ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO 306 | CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 307 | //ADVANCED property for variable: CMAKE_DLLTOOL 308 | CMAKE_DLLTOOL-ADVANCED:INTERNAL=1 309 | //Path to cache edit program executable. 310 | CMAKE_EDIT_COMMAND:INTERNAL=/home/zherlock/cmake-3.16.6-Linux-x86_64/bin/ccmake 311 | //Executable file format 312 | CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF 313 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS 314 | CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 315 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG 316 | CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 317 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL 318 | CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 319 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE 320 | CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 321 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO 322 | CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 323 | //ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS 324 | CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 325 | //Name of external makefile project generator. 326 | CMAKE_EXTRA_GENERATOR:INTERNAL= 327 | //Name of generator. 328 | CMAKE_GENERATOR:INTERNAL=Unix Makefiles 329 | //Generator instance identifier. 330 | CMAKE_GENERATOR_INSTANCE:INTERNAL= 331 | //Name of generator platform. 332 | CMAKE_GENERATOR_PLATFORM:INTERNAL= 333 | //Name of generator toolset. 334 | CMAKE_GENERATOR_TOOLSET:INTERNAL= 335 | //Test CMAKE_HAVE_LIBC_PTHREAD 336 | CMAKE_HAVE_LIBC_PTHREAD:INTERNAL= 337 | //Have library pthreads 338 | CMAKE_HAVE_PTHREADS_CREATE:INTERNAL= 339 | //Have library pthread 340 | CMAKE_HAVE_PTHREAD_CREATE:INTERNAL=1 341 | //Have include pthread.h 342 | CMAKE_HAVE_PTHREAD_H:INTERNAL=1 343 | //Source directory with the top level CMakeLists.txt file for this 344 | // project 345 | CMAKE_HOME_DIRECTORY:INTERNAL=/home/zherlock/c++ example/object detection 346 | //Install .so files without execute permission. 347 | CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1 348 | //ADVANCED property for variable: CMAKE_LINKER 349 | CMAKE_LINKER-ADVANCED:INTERNAL=1 350 | //ADVANCED property for variable: CMAKE_MAKE_PROGRAM 351 | CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 352 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS 353 | CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 354 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG 355 | CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 356 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL 357 | CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 358 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE 359 | CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 360 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO 361 | CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 362 | //ADVANCED property for variable: CMAKE_NM 363 | CMAKE_NM-ADVANCED:INTERNAL=1 364 | //number of local generators 365 | CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1 366 | //ADVANCED property for variable: CMAKE_OBJCOPY 367 | CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 368 | //ADVANCED property for variable: CMAKE_OBJDUMP 369 | CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 370 | //Platform information initialized 371 | CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 372 | //ADVANCED property for variable: CMAKE_RANLIB 373 | CMAKE_RANLIB-ADVANCED:INTERNAL=1 374 | //ADVANCED property for variable: CMAKE_READELF 375 | CMAKE_READELF-ADVANCED:INTERNAL=1 376 | //Path to CMake installation. 377 | CMAKE_ROOT:INTERNAL=/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16 378 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS 379 | CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 380 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG 381 | CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 382 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL 383 | CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 384 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE 385 | CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 386 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO 387 | CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 388 | //ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH 389 | CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 390 | //ADVANCED property for variable: CMAKE_SKIP_RPATH 391 | CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 392 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS 393 | CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 394 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG 395 | CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 396 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL 397 | CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 398 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE 399 | CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 400 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO 401 | CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 402 | //ADVANCED property for variable: CMAKE_STRIP 403 | CMAKE_STRIP-ADVANCED:INTERNAL=1 404 | //uname command 405 | CMAKE_UNAME:INTERNAL=/bin/uname 406 | //ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE 407 | CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 408 | //Details about finding Threads 409 | FIND_PACKAGE_MESSAGE_DETAILS_Threads:INTERNAL=[TRUE][v()] 410 | //Details about finding torch 411 | FIND_PACKAGE_MESSAGE_DETAILS_torch:INTERNAL=[/home/zherlock/SLAM/libtorch/libtorch-abi/lib/libtorch.so][/home/zherlock/SLAM/libtorch/libtorch-abi/include;/home/zherlock/SLAM/libtorch/libtorch-abi/include/torch/csrc/api/include][v()] 412 | //ADVANCED property for variable: OpenCV_3RDPARTY_LIB_DIR_DBG 413 | OpenCV_3RDPARTY_LIB_DIR_DBG-ADVANCED:INTERNAL=1 414 | //ADVANCED property for variable: OpenCV_3RDPARTY_LIB_DIR_OPT 415 | OpenCV_3RDPARTY_LIB_DIR_OPT-ADVANCED:INTERNAL=1 416 | //ADVANCED property for variable: OpenCV_CONFIG_PATH 417 | OpenCV_CONFIG_PATH-ADVANCED:INTERNAL=1 418 | //ADVANCED property for variable: OpenCV_LIB_DIR_DBG 419 | OpenCV_LIB_DIR_DBG-ADVANCED:INTERNAL=1 420 | //ADVANCED property for variable: OpenCV_LIB_DIR_OPT 421 | OpenCV_LIB_DIR_OPT-ADVANCED:INTERNAL=1 422 | 423 | -------------------------------------------------------------------------------- /build/CMakeFiles/3.16.6/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "/usr/bin/cc") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "5.4.0") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") 8 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") 9 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 10 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 11 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 12 | 13 | set(CMAKE_C_PLATFORM_ID "Linux") 14 | set(CMAKE_C_SIMULATE_ID "") 15 | set(CMAKE_C_COMPILER_FRONTEND_VARIANT "") 16 | set(CMAKE_C_SIMULATE_VERSION "") 17 | 18 | 19 | 20 | set(CMAKE_AR "/usr/bin/ar") 21 | set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar-5") 22 | set(CMAKE_RANLIB "/usr/bin/ranlib") 23 | set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib-5") 24 | set(CMAKE_LINKER "/usr/bin/ld") 25 | set(CMAKE_MT "") 26 | set(CMAKE_COMPILER_IS_GNUCC 1) 27 | set(CMAKE_C_COMPILER_LOADED 1) 28 | set(CMAKE_C_COMPILER_WORKS TRUE) 29 | set(CMAKE_C_ABI_COMPILED TRUE) 30 | set(CMAKE_COMPILER_IS_MINGW ) 31 | set(CMAKE_COMPILER_IS_CYGWIN ) 32 | if(CMAKE_COMPILER_IS_CYGWIN) 33 | set(CYGWIN 1) 34 | set(UNIX 1) 35 | endif() 36 | 37 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 38 | 39 | if(CMAKE_COMPILER_IS_MINGW) 40 | set(MINGW 1) 41 | endif() 42 | set(CMAKE_C_COMPILER_ID_RUN 1) 43 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 44 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 45 | set(CMAKE_C_LINKER_PREFERENCE 10) 46 | 47 | # Save compiler ABI information. 48 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 49 | set(CMAKE_C_COMPILER_ABI "ELF") 50 | set(CMAKE_C_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 51 | 52 | if(CMAKE_C_SIZEOF_DATA_PTR) 53 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 54 | endif() 55 | 56 | if(CMAKE_C_COMPILER_ABI) 57 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 58 | endif() 59 | 60 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 61 | set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 62 | endif() 63 | 64 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 65 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 66 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 67 | endif() 68 | 69 | 70 | 71 | 72 | 73 | set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/5/include;/usr/local/include;/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed;/usr/include/x86_64-linux-gnu;/usr/include") 74 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") 75 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/5;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") 76 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 77 | -------------------------------------------------------------------------------- /build/CMakeFiles/3.16.6/CMakeCXXCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_CXX_COMPILER "/usr/bin/c++") 2 | set(CMAKE_CXX_COMPILER_ARG1 "") 3 | set(CMAKE_CXX_COMPILER_ID "GNU") 4 | set(CMAKE_CXX_COMPILER_VERSION "5.4.0") 5 | set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_CXX_COMPILER_WRAPPER "") 7 | set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "98") 8 | set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17") 9 | set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters") 10 | set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates") 11 | set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates") 12 | set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17") 13 | set(CMAKE_CXX20_COMPILE_FEATURES "") 14 | 15 | set(CMAKE_CXX_PLATFORM_ID "Linux") 16 | set(CMAKE_CXX_SIMULATE_ID "") 17 | set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "") 18 | set(CMAKE_CXX_SIMULATE_VERSION "") 19 | 20 | 21 | 22 | set(CMAKE_AR "/usr/bin/ar") 23 | set(CMAKE_CXX_COMPILER_AR "/usr/bin/gcc-ar-5") 24 | set(CMAKE_RANLIB "/usr/bin/ranlib") 25 | set(CMAKE_CXX_COMPILER_RANLIB "/usr/bin/gcc-ranlib-5") 26 | set(CMAKE_LINKER "/usr/bin/ld") 27 | set(CMAKE_MT "") 28 | set(CMAKE_COMPILER_IS_GNUCXX 1) 29 | set(CMAKE_CXX_COMPILER_LOADED 1) 30 | set(CMAKE_CXX_COMPILER_WORKS TRUE) 31 | set(CMAKE_CXX_ABI_COMPILED TRUE) 32 | set(CMAKE_COMPILER_IS_MINGW ) 33 | set(CMAKE_COMPILER_IS_CYGWIN ) 34 | if(CMAKE_COMPILER_IS_CYGWIN) 35 | set(CYGWIN 1) 36 | set(UNIX 1) 37 | endif() 38 | 39 | set(CMAKE_CXX_COMPILER_ENV_VAR "CXX") 40 | 41 | if(CMAKE_COMPILER_IS_MINGW) 42 | set(MINGW 1) 43 | endif() 44 | set(CMAKE_CXX_COMPILER_ID_RUN 1) 45 | set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;CPP) 46 | set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC) 47 | 48 | foreach (lang C OBJC OBJCXX) 49 | if (CMAKE_${lang}_COMPILER_ID_RUN) 50 | foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS) 51 | list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension}) 52 | endforeach() 53 | endif() 54 | endforeach() 55 | 56 | set(CMAKE_CXX_LINKER_PREFERENCE 30) 57 | set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1) 58 | 59 | # Save compiler ABI information. 60 | set(CMAKE_CXX_SIZEOF_DATA_PTR "8") 61 | set(CMAKE_CXX_COMPILER_ABI "ELF") 62 | set(CMAKE_CXX_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 63 | 64 | if(CMAKE_CXX_SIZEOF_DATA_PTR) 65 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}") 66 | endif() 67 | 68 | if(CMAKE_CXX_COMPILER_ABI) 69 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}") 70 | endif() 71 | 72 | if(CMAKE_CXX_LIBRARY_ARCHITECTURE) 73 | set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") 74 | endif() 75 | 76 | set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "") 77 | if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX) 78 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}") 79 | endif() 80 | 81 | 82 | 83 | 84 | 85 | set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/usr/include/c++/5;/usr/include/x86_64-linux-gnu/c++/5;/usr/include/c++/5/backward;/usr/lib/gcc/x86_64-linux-gnu/5/include;/usr/local/include;/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed;/usr/include/x86_64-linux-gnu;/usr/include") 86 | set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc") 87 | set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/5;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") 88 | set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 89 | -------------------------------------------------------------------------------- /build/CMakeFiles/3.16.6/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zherlock030/YOLOv5_Torchscript/5f2e5e026a76df65f89f7e5bf037c7e81206658f/build/CMakeFiles/3.16.6/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /build/CMakeFiles/3.16.6/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zherlock030/YOLOv5_Torchscript/5f2e5e026a76df65f89f7e5bf037c7e81206658f/build/CMakeFiles/3.16.6/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /build/CMakeFiles/3.16.6/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Linux-4.15.0-118-generic") 2 | set(CMAKE_HOST_SYSTEM_NAME "Linux") 3 | set(CMAKE_HOST_SYSTEM_VERSION "4.15.0-118-generic") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Linux-4.15.0-118-generic") 9 | set(CMAKE_SYSTEM_NAME "Linux") 10 | set(CMAKE_SYSTEM_VERSION "4.15.0-118-generic") 11 | set(CMAKE_SYSTEM_PROCESSOR "x86_64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /build/CMakeFiles/3.16.6/CompilerIdC/CMakeCCompilerId.c: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | # error "A C++ compiler has been selected for C." 3 | #endif 4 | 5 | #if defined(__18CXX) 6 | # define ID_VOID_MAIN 7 | #endif 8 | #if defined(__CLASSIC_C__) 9 | /* cv-qualifiers did not exist in K&R C */ 10 | # define const 11 | # define volatile 12 | #endif 13 | 14 | 15 | /* Version number components: V=Version, R=Revision, P=Patch 16 | Version date components: YYYY=Year, MM=Month, DD=Day */ 17 | 18 | #if defined(__INTEL_COMPILER) || defined(__ICC) 19 | # define COMPILER_ID "Intel" 20 | # if defined(_MSC_VER) 21 | # define SIMULATE_ID "MSVC" 22 | # endif 23 | # if defined(__GNUC__) 24 | # define SIMULATE_ID "GNU" 25 | # endif 26 | /* __INTEL_COMPILER = VRP */ 27 | # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) 28 | # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) 29 | # if defined(__INTEL_COMPILER_UPDATE) 30 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) 31 | # else 32 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) 33 | # endif 34 | # if defined(__INTEL_COMPILER_BUILD_DATE) 35 | /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ 36 | # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) 37 | # endif 38 | # if defined(_MSC_VER) 39 | /* _MSC_VER = VVRR */ 40 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 41 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 42 | # endif 43 | # if defined(__GNUC__) 44 | # define SIMULATE_VERSION_MAJOR DEC(__GNUC__) 45 | # elif defined(__GNUG__) 46 | # define SIMULATE_VERSION_MAJOR DEC(__GNUG__) 47 | # endif 48 | # if defined(__GNUC_MINOR__) 49 | # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__) 50 | # endif 51 | # if defined(__GNUC_PATCHLEVEL__) 52 | # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) 53 | # endif 54 | 55 | #elif defined(__PATHCC__) 56 | # define COMPILER_ID "PathScale" 57 | # define COMPILER_VERSION_MAJOR DEC(__PATHCC__) 58 | # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) 59 | # if defined(__PATHCC_PATCHLEVEL__) 60 | # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) 61 | # endif 62 | 63 | #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) 64 | # define COMPILER_ID "Embarcadero" 65 | # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) 66 | # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) 67 | # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) 68 | 69 | #elif defined(__BORLANDC__) 70 | # define COMPILER_ID "Borland" 71 | /* __BORLANDC__ = 0xVRR */ 72 | # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) 73 | # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) 74 | 75 | #elif defined(__WATCOMC__) && __WATCOMC__ < 1200 76 | # define COMPILER_ID "Watcom" 77 | /* __WATCOMC__ = VVRR */ 78 | # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) 79 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 80 | # if (__WATCOMC__ % 10) > 0 81 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 82 | # endif 83 | 84 | #elif defined(__WATCOMC__) 85 | # define COMPILER_ID "OpenWatcom" 86 | /* __WATCOMC__ = VVRP + 1100 */ 87 | # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) 88 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 89 | # if (__WATCOMC__ % 10) > 0 90 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 91 | # endif 92 | 93 | #elif defined(__SUNPRO_C) 94 | # define COMPILER_ID "SunPro" 95 | # if __SUNPRO_C >= 0x5100 96 | /* __SUNPRO_C = 0xVRRP */ 97 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12) 98 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF) 99 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) 100 | # else 101 | /* __SUNPRO_CC = 0xVRP */ 102 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8) 103 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF) 104 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) 105 | # endif 106 | 107 | #elif defined(__HP_cc) 108 | # define COMPILER_ID "HP" 109 | /* __HP_cc = VVRRPP */ 110 | # define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000) 111 | # define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100) 112 | # define COMPILER_VERSION_PATCH DEC(__HP_cc % 100) 113 | 114 | #elif defined(__DECC) 115 | # define COMPILER_ID "Compaq" 116 | /* __DECC_VER = VVRRTPPPP */ 117 | # define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000) 118 | # define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100) 119 | # define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000) 120 | 121 | #elif defined(__IBMC__) && defined(__COMPILER_VER__) 122 | # define COMPILER_ID "zOS" 123 | /* __IBMC__ = VRP */ 124 | # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) 125 | # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) 126 | # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) 127 | 128 | #elif defined(__ibmxl__) && defined(__clang__) 129 | # define COMPILER_ID "XLClang" 130 | # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) 131 | # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) 132 | # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) 133 | # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) 134 | 135 | 136 | #elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800 137 | # define COMPILER_ID "XL" 138 | /* __IBMC__ = VRP */ 139 | # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) 140 | # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) 141 | # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) 142 | 143 | #elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800 144 | # define COMPILER_ID "VisualAge" 145 | /* __IBMC__ = VRP */ 146 | # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) 147 | # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) 148 | # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) 149 | 150 | #elif defined(__PGI) 151 | # define COMPILER_ID "PGI" 152 | # define COMPILER_VERSION_MAJOR DEC(__PGIC__) 153 | # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) 154 | # if defined(__PGIC_PATCHLEVEL__) 155 | # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) 156 | # endif 157 | 158 | #elif defined(_CRAYC) 159 | # define COMPILER_ID "Cray" 160 | # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) 161 | # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) 162 | 163 | #elif defined(__TI_COMPILER_VERSION__) 164 | # define COMPILER_ID "TI" 165 | /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ 166 | # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) 167 | # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) 168 | # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) 169 | 170 | #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) 171 | # define COMPILER_ID "Fujitsu" 172 | 173 | #elif defined(__ghs__) 174 | # define COMPILER_ID "GHS" 175 | /* __GHS_VERSION_NUMBER = VVVVRP */ 176 | # ifdef __GHS_VERSION_NUMBER 177 | # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100) 178 | # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10) 179 | # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10) 180 | # endif 181 | 182 | #elif defined(__TINYC__) 183 | # define COMPILER_ID "TinyCC" 184 | 185 | #elif defined(__BCC__) 186 | # define COMPILER_ID "Bruce" 187 | 188 | #elif defined(__SCO_VERSION__) 189 | # define COMPILER_ID "SCO" 190 | 191 | #elif defined(__ARMCC_VERSION) && !defined(__clang__) 192 | # define COMPILER_ID "ARMCC" 193 | #if __ARMCC_VERSION >= 1000000 194 | /* __ARMCC_VERSION = VRRPPPP */ 195 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) 196 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) 197 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 198 | #else 199 | /* __ARMCC_VERSION = VRPPPP */ 200 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) 201 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) 202 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 203 | #endif 204 | 205 | 206 | #elif defined(__clang__) && defined(__apple_build_version__) 207 | # define COMPILER_ID "AppleClang" 208 | # if defined(_MSC_VER) 209 | # define SIMULATE_ID "MSVC" 210 | # endif 211 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 212 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 213 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 214 | # if defined(_MSC_VER) 215 | /* _MSC_VER = VVRR */ 216 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 217 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 218 | # endif 219 | # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) 220 | 221 | #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION) 222 | # define COMPILER_ID "ARMClang" 223 | # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000) 224 | # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100) 225 | # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000) 226 | # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION) 227 | 228 | #elif defined(__clang__) 229 | # define COMPILER_ID "Clang" 230 | # if defined(_MSC_VER) 231 | # define SIMULATE_ID "MSVC" 232 | # endif 233 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 234 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 235 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 236 | # if defined(_MSC_VER) 237 | /* _MSC_VER = VVRR */ 238 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 239 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 240 | # endif 241 | 242 | #elif defined(__GNUC__) 243 | # define COMPILER_ID "GNU" 244 | # define COMPILER_VERSION_MAJOR DEC(__GNUC__) 245 | # if defined(__GNUC_MINOR__) 246 | # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) 247 | # endif 248 | # if defined(__GNUC_PATCHLEVEL__) 249 | # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) 250 | # endif 251 | 252 | #elif defined(_MSC_VER) 253 | # define COMPILER_ID "MSVC" 254 | /* _MSC_VER = VVRR */ 255 | # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) 256 | # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) 257 | # if defined(_MSC_FULL_VER) 258 | # if _MSC_VER >= 1400 259 | /* _MSC_FULL_VER = VVRRPPPPP */ 260 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) 261 | # else 262 | /* _MSC_FULL_VER = VVRRPPPP */ 263 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) 264 | # endif 265 | # endif 266 | # if defined(_MSC_BUILD) 267 | # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) 268 | # endif 269 | 270 | #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) 271 | # define COMPILER_ID "ADSP" 272 | #if defined(__VISUALDSPVERSION__) 273 | /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ 274 | # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) 275 | # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) 276 | # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) 277 | #endif 278 | 279 | #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) 280 | # define COMPILER_ID "IAR" 281 | # if defined(__VER__) && defined(__ICCARM__) 282 | # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) 283 | # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) 284 | # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) 285 | # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) 286 | # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__)) 287 | # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100) 288 | # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100)) 289 | # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__) 290 | # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) 291 | # endif 292 | 293 | #elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC) 294 | # define COMPILER_ID "SDCC" 295 | # if defined(__SDCC_VERSION_MAJOR) 296 | # define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR) 297 | # define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR) 298 | # define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH) 299 | # else 300 | /* SDCC = VRP */ 301 | # define COMPILER_VERSION_MAJOR DEC(SDCC/100) 302 | # define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10) 303 | # define COMPILER_VERSION_PATCH DEC(SDCC % 10) 304 | # endif 305 | 306 | 307 | /* These compilers are either not known or too old to define an 308 | identification macro. Try to identify the platform and guess that 309 | it is the native compiler. */ 310 | #elif defined(__hpux) || defined(__hpua) 311 | # define COMPILER_ID "HP" 312 | 313 | #else /* unknown compiler */ 314 | # define COMPILER_ID "" 315 | #endif 316 | 317 | /* Construct the string literal in pieces to prevent the source from 318 | getting matched. Store it in a pointer rather than an array 319 | because some compilers will just produce instructions to fill the 320 | array rather than assigning a pointer to a static array. */ 321 | char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; 322 | #ifdef SIMULATE_ID 323 | char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; 324 | #endif 325 | 326 | #ifdef __QNXNTO__ 327 | char const* qnxnto = "INFO" ":" "qnxnto[]"; 328 | #endif 329 | 330 | #if defined(__CRAYXE) || defined(__CRAYXC) 331 | char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; 332 | #endif 333 | 334 | #define STRINGIFY_HELPER(X) #X 335 | #define STRINGIFY(X) STRINGIFY_HELPER(X) 336 | 337 | /* Identify known platforms by name. */ 338 | #if defined(__linux) || defined(__linux__) || defined(linux) 339 | # define PLATFORM_ID "Linux" 340 | 341 | #elif defined(__CYGWIN__) 342 | # define PLATFORM_ID "Cygwin" 343 | 344 | #elif defined(__MINGW32__) 345 | # define PLATFORM_ID "MinGW" 346 | 347 | #elif defined(__APPLE__) 348 | # define PLATFORM_ID "Darwin" 349 | 350 | #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) 351 | # define PLATFORM_ID "Windows" 352 | 353 | #elif defined(__FreeBSD__) || defined(__FreeBSD) 354 | # define PLATFORM_ID "FreeBSD" 355 | 356 | #elif defined(__NetBSD__) || defined(__NetBSD) 357 | # define PLATFORM_ID "NetBSD" 358 | 359 | #elif defined(__OpenBSD__) || defined(__OPENBSD) 360 | # define PLATFORM_ID "OpenBSD" 361 | 362 | #elif defined(__sun) || defined(sun) 363 | # define PLATFORM_ID "SunOS" 364 | 365 | #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) 366 | # define PLATFORM_ID "AIX" 367 | 368 | #elif defined(__hpux) || defined(__hpux__) 369 | # define PLATFORM_ID "HP-UX" 370 | 371 | #elif defined(__HAIKU__) 372 | # define PLATFORM_ID "Haiku" 373 | 374 | #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) 375 | # define PLATFORM_ID "BeOS" 376 | 377 | #elif defined(__QNX__) || defined(__QNXNTO__) 378 | # define PLATFORM_ID "QNX" 379 | 380 | #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) 381 | # define PLATFORM_ID "Tru64" 382 | 383 | #elif defined(__riscos) || defined(__riscos__) 384 | # define PLATFORM_ID "RISCos" 385 | 386 | #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) 387 | # define PLATFORM_ID "SINIX" 388 | 389 | #elif defined(__UNIX_SV__) 390 | # define PLATFORM_ID "UNIX_SV" 391 | 392 | #elif defined(__bsdos__) 393 | # define PLATFORM_ID "BSDOS" 394 | 395 | #elif defined(_MPRAS) || defined(MPRAS) 396 | # define PLATFORM_ID "MP-RAS" 397 | 398 | #elif defined(__osf) || defined(__osf__) 399 | # define PLATFORM_ID "OSF1" 400 | 401 | #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) 402 | # define PLATFORM_ID "SCO_SV" 403 | 404 | #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) 405 | # define PLATFORM_ID "ULTRIX" 406 | 407 | #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) 408 | # define PLATFORM_ID "Xenix" 409 | 410 | #elif defined(__WATCOMC__) 411 | # if defined(__LINUX__) 412 | # define PLATFORM_ID "Linux" 413 | 414 | # elif defined(__DOS__) 415 | # define PLATFORM_ID "DOS" 416 | 417 | # elif defined(__OS2__) 418 | # define PLATFORM_ID "OS2" 419 | 420 | # elif defined(__WINDOWS__) 421 | # define PLATFORM_ID "Windows3x" 422 | 423 | # else /* unknown platform */ 424 | # define PLATFORM_ID 425 | # endif 426 | 427 | #elif defined(__INTEGRITY) 428 | # if defined(INT_178B) 429 | # define PLATFORM_ID "Integrity178" 430 | 431 | # else /* regular Integrity */ 432 | # define PLATFORM_ID "Integrity" 433 | # endif 434 | 435 | #else /* unknown platform */ 436 | # define PLATFORM_ID 437 | 438 | #endif 439 | 440 | /* For windows compilers MSVC and Intel we can determine 441 | the architecture of the compiler being used. This is because 442 | the compilers do not have flags that can change the architecture, 443 | but rather depend on which compiler is being used 444 | */ 445 | #if defined(_WIN32) && defined(_MSC_VER) 446 | # if defined(_M_IA64) 447 | # define ARCHITECTURE_ID "IA64" 448 | 449 | # elif defined(_M_X64) || defined(_M_AMD64) 450 | # define ARCHITECTURE_ID "x64" 451 | 452 | # elif defined(_M_IX86) 453 | # define ARCHITECTURE_ID "X86" 454 | 455 | # elif defined(_M_ARM64) 456 | # define ARCHITECTURE_ID "ARM64" 457 | 458 | # elif defined(_M_ARM) 459 | # if _M_ARM == 4 460 | # define ARCHITECTURE_ID "ARMV4I" 461 | # elif _M_ARM == 5 462 | # define ARCHITECTURE_ID "ARMV5I" 463 | # else 464 | # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) 465 | # endif 466 | 467 | # elif defined(_M_MIPS) 468 | # define ARCHITECTURE_ID "MIPS" 469 | 470 | # elif defined(_M_SH) 471 | # define ARCHITECTURE_ID "SHx" 472 | 473 | # else /* unknown architecture */ 474 | # define ARCHITECTURE_ID "" 475 | # endif 476 | 477 | #elif defined(__WATCOMC__) 478 | # if defined(_M_I86) 479 | # define ARCHITECTURE_ID "I86" 480 | 481 | # elif defined(_M_IX86) 482 | # define ARCHITECTURE_ID "X86" 483 | 484 | # else /* unknown architecture */ 485 | # define ARCHITECTURE_ID "" 486 | # endif 487 | 488 | #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) 489 | # if defined(__ICCARM__) 490 | # define ARCHITECTURE_ID "ARM" 491 | 492 | # elif defined(__ICCRX__) 493 | # define ARCHITECTURE_ID "RX" 494 | 495 | # elif defined(__ICCRH850__) 496 | # define ARCHITECTURE_ID "RH850" 497 | 498 | # elif defined(__ICCRL78__) 499 | # define ARCHITECTURE_ID "RL78" 500 | 501 | # elif defined(__ICCRISCV__) 502 | # define ARCHITECTURE_ID "RISCV" 503 | 504 | # elif defined(__ICCAVR__) 505 | # define ARCHITECTURE_ID "AVR" 506 | 507 | # elif defined(__ICC430__) 508 | # define ARCHITECTURE_ID "MSP430" 509 | 510 | # elif defined(__ICCV850__) 511 | # define ARCHITECTURE_ID "V850" 512 | 513 | # elif defined(__ICC8051__) 514 | # define ARCHITECTURE_ID "8051" 515 | 516 | # else /* unknown architecture */ 517 | # define ARCHITECTURE_ID "" 518 | # endif 519 | 520 | #elif defined(__ghs__) 521 | # if defined(__PPC64__) 522 | # define ARCHITECTURE_ID "PPC64" 523 | 524 | # elif defined(__ppc__) 525 | # define ARCHITECTURE_ID "PPC" 526 | 527 | # elif defined(__ARM__) 528 | # define ARCHITECTURE_ID "ARM" 529 | 530 | # elif defined(__x86_64__) 531 | # define ARCHITECTURE_ID "x64" 532 | 533 | # elif defined(__i386__) 534 | # define ARCHITECTURE_ID "X86" 535 | 536 | # else /* unknown architecture */ 537 | # define ARCHITECTURE_ID "" 538 | # endif 539 | #else 540 | # define ARCHITECTURE_ID 541 | #endif 542 | 543 | /* Convert integer to decimal digit literals. */ 544 | #define DEC(n) \ 545 | ('0' + (((n) / 10000000)%10)), \ 546 | ('0' + (((n) / 1000000)%10)), \ 547 | ('0' + (((n) / 100000)%10)), \ 548 | ('0' + (((n) / 10000)%10)), \ 549 | ('0' + (((n) / 1000)%10)), \ 550 | ('0' + (((n) / 100)%10)), \ 551 | ('0' + (((n) / 10)%10)), \ 552 | ('0' + ((n) % 10)) 553 | 554 | /* Convert integer to hex digit literals. */ 555 | #define HEX(n) \ 556 | ('0' + ((n)>>28 & 0xF)), \ 557 | ('0' + ((n)>>24 & 0xF)), \ 558 | ('0' + ((n)>>20 & 0xF)), \ 559 | ('0' + ((n)>>16 & 0xF)), \ 560 | ('0' + ((n)>>12 & 0xF)), \ 561 | ('0' + ((n)>>8 & 0xF)), \ 562 | ('0' + ((n)>>4 & 0xF)), \ 563 | ('0' + ((n) & 0xF)) 564 | 565 | /* Construct a string literal encoding the version number components. */ 566 | #ifdef COMPILER_VERSION_MAJOR 567 | char const info_version[] = { 568 | 'I', 'N', 'F', 'O', ':', 569 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', 570 | COMPILER_VERSION_MAJOR, 571 | # ifdef COMPILER_VERSION_MINOR 572 | '.', COMPILER_VERSION_MINOR, 573 | # ifdef COMPILER_VERSION_PATCH 574 | '.', COMPILER_VERSION_PATCH, 575 | # ifdef COMPILER_VERSION_TWEAK 576 | '.', COMPILER_VERSION_TWEAK, 577 | # endif 578 | # endif 579 | # endif 580 | ']','\0'}; 581 | #endif 582 | 583 | /* Construct a string literal encoding the internal version number. */ 584 | #ifdef COMPILER_VERSION_INTERNAL 585 | char const info_version_internal[] = { 586 | 'I', 'N', 'F', 'O', ':', 587 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', 588 | 'i','n','t','e','r','n','a','l','[', 589 | COMPILER_VERSION_INTERNAL,']','\0'}; 590 | #endif 591 | 592 | /* Construct a string literal encoding the version number components. */ 593 | #ifdef SIMULATE_VERSION_MAJOR 594 | char const info_simulate_version[] = { 595 | 'I', 'N', 'F', 'O', ':', 596 | 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', 597 | SIMULATE_VERSION_MAJOR, 598 | # ifdef SIMULATE_VERSION_MINOR 599 | '.', SIMULATE_VERSION_MINOR, 600 | # ifdef SIMULATE_VERSION_PATCH 601 | '.', SIMULATE_VERSION_PATCH, 602 | # ifdef SIMULATE_VERSION_TWEAK 603 | '.', SIMULATE_VERSION_TWEAK, 604 | # endif 605 | # endif 606 | # endif 607 | ']','\0'}; 608 | #endif 609 | 610 | /* Construct the string literal in pieces to prevent the source from 611 | getting matched. Store it in a pointer rather than an array 612 | because some compilers will just produce instructions to fill the 613 | array rather than assigning a pointer to a static array. */ 614 | char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; 615 | char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; 616 | 617 | 618 | 619 | 620 | #if !defined(__STDC__) 621 | # if (defined(_MSC_VER) && !defined(__clang__)) \ 622 | || (defined(__ibmxl__) || defined(__IBMC__)) 623 | # define C_DIALECT "90" 624 | # else 625 | # define C_DIALECT 626 | # endif 627 | #elif __STDC_VERSION__ >= 201000L 628 | # define C_DIALECT "11" 629 | #elif __STDC_VERSION__ >= 199901L 630 | # define C_DIALECT "99" 631 | #else 632 | # define C_DIALECT "90" 633 | #endif 634 | const char* info_language_dialect_default = 635 | "INFO" ":" "dialect_default[" C_DIALECT "]"; 636 | 637 | /*--------------------------------------------------------------------------*/ 638 | 639 | #ifdef ID_VOID_MAIN 640 | void main() {} 641 | #else 642 | # if defined(__CLASSIC_C__) 643 | int main(argc, argv) int argc; char *argv[]; 644 | # else 645 | int main(int argc, char* argv[]) 646 | # endif 647 | { 648 | int require = 0; 649 | require += info_compiler[argc]; 650 | require += info_platform[argc]; 651 | require += info_arch[argc]; 652 | #ifdef COMPILER_VERSION_MAJOR 653 | require += info_version[argc]; 654 | #endif 655 | #ifdef COMPILER_VERSION_INTERNAL 656 | require += info_version_internal[argc]; 657 | #endif 658 | #ifdef SIMULATE_ID 659 | require += info_simulate[argc]; 660 | #endif 661 | #ifdef SIMULATE_VERSION_MAJOR 662 | require += info_simulate_version[argc]; 663 | #endif 664 | #if defined(__CRAYXE) || defined(__CRAYXC) 665 | require += info_cray[argc]; 666 | #endif 667 | require += info_language_dialect_default[argc]; 668 | (void)argv; 669 | return require; 670 | } 671 | #endif 672 | -------------------------------------------------------------------------------- /build/CMakeFiles/3.16.6/CompilerIdC/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zherlock030/YOLOv5_Torchscript/5f2e5e026a76df65f89f7e5bf037c7e81206658f/build/CMakeFiles/3.16.6/CompilerIdC/a.out -------------------------------------------------------------------------------- /build/CMakeFiles/3.16.6/CompilerIdCXX/CMakeCXXCompilerId.cpp: -------------------------------------------------------------------------------- 1 | /* This source file must have a .cpp extension so that all C++ compilers 2 | recognize the extension without flags. Borland does not know .cxx for 3 | example. */ 4 | #ifndef __cplusplus 5 | # error "A C compiler has been selected for C++." 6 | #endif 7 | 8 | 9 | /* Version number components: V=Version, R=Revision, P=Patch 10 | Version date components: YYYY=Year, MM=Month, DD=Day */ 11 | 12 | #if defined(__COMO__) 13 | # define COMPILER_ID "Comeau" 14 | /* __COMO_VERSION__ = VRR */ 15 | # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100) 16 | # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100) 17 | 18 | #elif defined(__INTEL_COMPILER) || defined(__ICC) 19 | # define COMPILER_ID "Intel" 20 | # if defined(_MSC_VER) 21 | # define SIMULATE_ID "MSVC" 22 | # endif 23 | # if defined(__GNUC__) 24 | # define SIMULATE_ID "GNU" 25 | # endif 26 | /* __INTEL_COMPILER = VRP */ 27 | # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) 28 | # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) 29 | # if defined(__INTEL_COMPILER_UPDATE) 30 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) 31 | # else 32 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) 33 | # endif 34 | # if defined(__INTEL_COMPILER_BUILD_DATE) 35 | /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ 36 | # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) 37 | # endif 38 | # if defined(_MSC_VER) 39 | /* _MSC_VER = VVRR */ 40 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 41 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 42 | # endif 43 | # if defined(__GNUC__) 44 | # define SIMULATE_VERSION_MAJOR DEC(__GNUC__) 45 | # elif defined(__GNUG__) 46 | # define SIMULATE_VERSION_MAJOR DEC(__GNUG__) 47 | # endif 48 | # if defined(__GNUC_MINOR__) 49 | # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__) 50 | # endif 51 | # if defined(__GNUC_PATCHLEVEL__) 52 | # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) 53 | # endif 54 | 55 | #elif defined(__PATHCC__) 56 | # define COMPILER_ID "PathScale" 57 | # define COMPILER_VERSION_MAJOR DEC(__PATHCC__) 58 | # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) 59 | # if defined(__PATHCC_PATCHLEVEL__) 60 | # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) 61 | # endif 62 | 63 | #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) 64 | # define COMPILER_ID "Embarcadero" 65 | # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) 66 | # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) 67 | # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) 68 | 69 | #elif defined(__BORLANDC__) 70 | # define COMPILER_ID "Borland" 71 | /* __BORLANDC__ = 0xVRR */ 72 | # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) 73 | # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) 74 | 75 | #elif defined(__WATCOMC__) && __WATCOMC__ < 1200 76 | # define COMPILER_ID "Watcom" 77 | /* __WATCOMC__ = VVRR */ 78 | # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) 79 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 80 | # if (__WATCOMC__ % 10) > 0 81 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 82 | # endif 83 | 84 | #elif defined(__WATCOMC__) 85 | # define COMPILER_ID "OpenWatcom" 86 | /* __WATCOMC__ = VVRP + 1100 */ 87 | # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) 88 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 89 | # if (__WATCOMC__ % 10) > 0 90 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 91 | # endif 92 | 93 | #elif defined(__SUNPRO_CC) 94 | # define COMPILER_ID "SunPro" 95 | # if __SUNPRO_CC >= 0x5100 96 | /* __SUNPRO_CC = 0xVRRP */ 97 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12) 98 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF) 99 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) 100 | # else 101 | /* __SUNPRO_CC = 0xVRP */ 102 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8) 103 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF) 104 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) 105 | # endif 106 | 107 | #elif defined(__HP_aCC) 108 | # define COMPILER_ID "HP" 109 | /* __HP_aCC = VVRRPP */ 110 | # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000) 111 | # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100) 112 | # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100) 113 | 114 | #elif defined(__DECCXX) 115 | # define COMPILER_ID "Compaq" 116 | /* __DECCXX_VER = VVRRTPPPP */ 117 | # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000) 118 | # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100) 119 | # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000) 120 | 121 | #elif defined(__IBMCPP__) && defined(__COMPILER_VER__) 122 | # define COMPILER_ID "zOS" 123 | /* __IBMCPP__ = VRP */ 124 | # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) 125 | # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) 126 | # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) 127 | 128 | #elif defined(__ibmxl__) && defined(__clang__) 129 | # define COMPILER_ID "XLClang" 130 | # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) 131 | # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) 132 | # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) 133 | # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) 134 | 135 | 136 | #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800 137 | # define COMPILER_ID "XL" 138 | /* __IBMCPP__ = VRP */ 139 | # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) 140 | # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) 141 | # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) 142 | 143 | #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800 144 | # define COMPILER_ID "VisualAge" 145 | /* __IBMCPP__ = VRP */ 146 | # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) 147 | # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) 148 | # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) 149 | 150 | #elif defined(__PGI) 151 | # define COMPILER_ID "PGI" 152 | # define COMPILER_VERSION_MAJOR DEC(__PGIC__) 153 | # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) 154 | # if defined(__PGIC_PATCHLEVEL__) 155 | # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) 156 | # endif 157 | 158 | #elif defined(_CRAYC) 159 | # define COMPILER_ID "Cray" 160 | # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) 161 | # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) 162 | 163 | #elif defined(__TI_COMPILER_VERSION__) 164 | # define COMPILER_ID "TI" 165 | /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ 166 | # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) 167 | # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) 168 | # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) 169 | 170 | #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) 171 | # define COMPILER_ID "Fujitsu" 172 | 173 | #elif defined(__ghs__) 174 | # define COMPILER_ID "GHS" 175 | /* __GHS_VERSION_NUMBER = VVVVRP */ 176 | # ifdef __GHS_VERSION_NUMBER 177 | # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100) 178 | # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10) 179 | # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10) 180 | # endif 181 | 182 | #elif defined(__SCO_VERSION__) 183 | # define COMPILER_ID "SCO" 184 | 185 | #elif defined(__ARMCC_VERSION) && !defined(__clang__) 186 | # define COMPILER_ID "ARMCC" 187 | #if __ARMCC_VERSION >= 1000000 188 | /* __ARMCC_VERSION = VRRPPPP */ 189 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) 190 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) 191 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 192 | #else 193 | /* __ARMCC_VERSION = VRPPPP */ 194 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) 195 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) 196 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 197 | #endif 198 | 199 | 200 | #elif defined(__clang__) && defined(__apple_build_version__) 201 | # define COMPILER_ID "AppleClang" 202 | # if defined(_MSC_VER) 203 | # define SIMULATE_ID "MSVC" 204 | # endif 205 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 206 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 207 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 208 | # if defined(_MSC_VER) 209 | /* _MSC_VER = VVRR */ 210 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 211 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 212 | # endif 213 | # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) 214 | 215 | #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION) 216 | # define COMPILER_ID "ARMClang" 217 | # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000) 218 | # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100) 219 | # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000) 220 | # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION) 221 | 222 | #elif defined(__clang__) 223 | # define COMPILER_ID "Clang" 224 | # if defined(_MSC_VER) 225 | # define SIMULATE_ID "MSVC" 226 | # endif 227 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 228 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 229 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 230 | # if defined(_MSC_VER) 231 | /* _MSC_VER = VVRR */ 232 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 233 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 234 | # endif 235 | 236 | #elif defined(__GNUC__) || defined(__GNUG__) 237 | # define COMPILER_ID "GNU" 238 | # if defined(__GNUC__) 239 | # define COMPILER_VERSION_MAJOR DEC(__GNUC__) 240 | # else 241 | # define COMPILER_VERSION_MAJOR DEC(__GNUG__) 242 | # endif 243 | # if defined(__GNUC_MINOR__) 244 | # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) 245 | # endif 246 | # if defined(__GNUC_PATCHLEVEL__) 247 | # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) 248 | # endif 249 | 250 | #elif defined(_MSC_VER) 251 | # define COMPILER_ID "MSVC" 252 | /* _MSC_VER = VVRR */ 253 | # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) 254 | # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) 255 | # if defined(_MSC_FULL_VER) 256 | # if _MSC_VER >= 1400 257 | /* _MSC_FULL_VER = VVRRPPPPP */ 258 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) 259 | # else 260 | /* _MSC_FULL_VER = VVRRPPPP */ 261 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) 262 | # endif 263 | # endif 264 | # if defined(_MSC_BUILD) 265 | # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) 266 | # endif 267 | 268 | #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) 269 | # define COMPILER_ID "ADSP" 270 | #if defined(__VISUALDSPVERSION__) 271 | /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ 272 | # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) 273 | # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) 274 | # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) 275 | #endif 276 | 277 | #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) 278 | # define COMPILER_ID "IAR" 279 | # if defined(__VER__) && defined(__ICCARM__) 280 | # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) 281 | # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) 282 | # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) 283 | # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) 284 | # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__)) 285 | # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100) 286 | # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100)) 287 | # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__) 288 | # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) 289 | # endif 290 | 291 | 292 | /* These compilers are either not known or too old to define an 293 | identification macro. Try to identify the platform and guess that 294 | it is the native compiler. */ 295 | #elif defined(__hpux) || defined(__hpua) 296 | # define COMPILER_ID "HP" 297 | 298 | #else /* unknown compiler */ 299 | # define COMPILER_ID "" 300 | #endif 301 | 302 | /* Construct the string literal in pieces to prevent the source from 303 | getting matched. Store it in a pointer rather than an array 304 | because some compilers will just produce instructions to fill the 305 | array rather than assigning a pointer to a static array. */ 306 | char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; 307 | #ifdef SIMULATE_ID 308 | char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; 309 | #endif 310 | 311 | #ifdef __QNXNTO__ 312 | char const* qnxnto = "INFO" ":" "qnxnto[]"; 313 | #endif 314 | 315 | #if defined(__CRAYXE) || defined(__CRAYXC) 316 | char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; 317 | #endif 318 | 319 | #define STRINGIFY_HELPER(X) #X 320 | #define STRINGIFY(X) STRINGIFY_HELPER(X) 321 | 322 | /* Identify known platforms by name. */ 323 | #if defined(__linux) || defined(__linux__) || defined(linux) 324 | # define PLATFORM_ID "Linux" 325 | 326 | #elif defined(__CYGWIN__) 327 | # define PLATFORM_ID "Cygwin" 328 | 329 | #elif defined(__MINGW32__) 330 | # define PLATFORM_ID "MinGW" 331 | 332 | #elif defined(__APPLE__) 333 | # define PLATFORM_ID "Darwin" 334 | 335 | #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) 336 | # define PLATFORM_ID "Windows" 337 | 338 | #elif defined(__FreeBSD__) || defined(__FreeBSD) 339 | # define PLATFORM_ID "FreeBSD" 340 | 341 | #elif defined(__NetBSD__) || defined(__NetBSD) 342 | # define PLATFORM_ID "NetBSD" 343 | 344 | #elif defined(__OpenBSD__) || defined(__OPENBSD) 345 | # define PLATFORM_ID "OpenBSD" 346 | 347 | #elif defined(__sun) || defined(sun) 348 | # define PLATFORM_ID "SunOS" 349 | 350 | #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) 351 | # define PLATFORM_ID "AIX" 352 | 353 | #elif defined(__hpux) || defined(__hpux__) 354 | # define PLATFORM_ID "HP-UX" 355 | 356 | #elif defined(__HAIKU__) 357 | # define PLATFORM_ID "Haiku" 358 | 359 | #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) 360 | # define PLATFORM_ID "BeOS" 361 | 362 | #elif defined(__QNX__) || defined(__QNXNTO__) 363 | # define PLATFORM_ID "QNX" 364 | 365 | #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) 366 | # define PLATFORM_ID "Tru64" 367 | 368 | #elif defined(__riscos) || defined(__riscos__) 369 | # define PLATFORM_ID "RISCos" 370 | 371 | #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) 372 | # define PLATFORM_ID "SINIX" 373 | 374 | #elif defined(__UNIX_SV__) 375 | # define PLATFORM_ID "UNIX_SV" 376 | 377 | #elif defined(__bsdos__) 378 | # define PLATFORM_ID "BSDOS" 379 | 380 | #elif defined(_MPRAS) || defined(MPRAS) 381 | # define PLATFORM_ID "MP-RAS" 382 | 383 | #elif defined(__osf) || defined(__osf__) 384 | # define PLATFORM_ID "OSF1" 385 | 386 | #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) 387 | # define PLATFORM_ID "SCO_SV" 388 | 389 | #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) 390 | # define PLATFORM_ID "ULTRIX" 391 | 392 | #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) 393 | # define PLATFORM_ID "Xenix" 394 | 395 | #elif defined(__WATCOMC__) 396 | # if defined(__LINUX__) 397 | # define PLATFORM_ID "Linux" 398 | 399 | # elif defined(__DOS__) 400 | # define PLATFORM_ID "DOS" 401 | 402 | # elif defined(__OS2__) 403 | # define PLATFORM_ID "OS2" 404 | 405 | # elif defined(__WINDOWS__) 406 | # define PLATFORM_ID "Windows3x" 407 | 408 | # else /* unknown platform */ 409 | # define PLATFORM_ID 410 | # endif 411 | 412 | #elif defined(__INTEGRITY) 413 | # if defined(INT_178B) 414 | # define PLATFORM_ID "Integrity178" 415 | 416 | # else /* regular Integrity */ 417 | # define PLATFORM_ID "Integrity" 418 | # endif 419 | 420 | #else /* unknown platform */ 421 | # define PLATFORM_ID 422 | 423 | #endif 424 | 425 | /* For windows compilers MSVC and Intel we can determine 426 | the architecture of the compiler being used. This is because 427 | the compilers do not have flags that can change the architecture, 428 | but rather depend on which compiler is being used 429 | */ 430 | #if defined(_WIN32) && defined(_MSC_VER) 431 | # if defined(_M_IA64) 432 | # define ARCHITECTURE_ID "IA64" 433 | 434 | # elif defined(_M_X64) || defined(_M_AMD64) 435 | # define ARCHITECTURE_ID "x64" 436 | 437 | # elif defined(_M_IX86) 438 | # define ARCHITECTURE_ID "X86" 439 | 440 | # elif defined(_M_ARM64) 441 | # define ARCHITECTURE_ID "ARM64" 442 | 443 | # elif defined(_M_ARM) 444 | # if _M_ARM == 4 445 | # define ARCHITECTURE_ID "ARMV4I" 446 | # elif _M_ARM == 5 447 | # define ARCHITECTURE_ID "ARMV5I" 448 | # else 449 | # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) 450 | # endif 451 | 452 | # elif defined(_M_MIPS) 453 | # define ARCHITECTURE_ID "MIPS" 454 | 455 | # elif defined(_M_SH) 456 | # define ARCHITECTURE_ID "SHx" 457 | 458 | # else /* unknown architecture */ 459 | # define ARCHITECTURE_ID "" 460 | # endif 461 | 462 | #elif defined(__WATCOMC__) 463 | # if defined(_M_I86) 464 | # define ARCHITECTURE_ID "I86" 465 | 466 | # elif defined(_M_IX86) 467 | # define ARCHITECTURE_ID "X86" 468 | 469 | # else /* unknown architecture */ 470 | # define ARCHITECTURE_ID "" 471 | # endif 472 | 473 | #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) 474 | # if defined(__ICCARM__) 475 | # define ARCHITECTURE_ID "ARM" 476 | 477 | # elif defined(__ICCRX__) 478 | # define ARCHITECTURE_ID "RX" 479 | 480 | # elif defined(__ICCRH850__) 481 | # define ARCHITECTURE_ID "RH850" 482 | 483 | # elif defined(__ICCRL78__) 484 | # define ARCHITECTURE_ID "RL78" 485 | 486 | # elif defined(__ICCRISCV__) 487 | # define ARCHITECTURE_ID "RISCV" 488 | 489 | # elif defined(__ICCAVR__) 490 | # define ARCHITECTURE_ID "AVR" 491 | 492 | # elif defined(__ICC430__) 493 | # define ARCHITECTURE_ID "MSP430" 494 | 495 | # elif defined(__ICCV850__) 496 | # define ARCHITECTURE_ID "V850" 497 | 498 | # elif defined(__ICC8051__) 499 | # define ARCHITECTURE_ID "8051" 500 | 501 | # else /* unknown architecture */ 502 | # define ARCHITECTURE_ID "" 503 | # endif 504 | 505 | #elif defined(__ghs__) 506 | # if defined(__PPC64__) 507 | # define ARCHITECTURE_ID "PPC64" 508 | 509 | # elif defined(__ppc__) 510 | # define ARCHITECTURE_ID "PPC" 511 | 512 | # elif defined(__ARM__) 513 | # define ARCHITECTURE_ID "ARM" 514 | 515 | # elif defined(__x86_64__) 516 | # define ARCHITECTURE_ID "x64" 517 | 518 | # elif defined(__i386__) 519 | # define ARCHITECTURE_ID "X86" 520 | 521 | # else /* unknown architecture */ 522 | # define ARCHITECTURE_ID "" 523 | # endif 524 | #else 525 | # define ARCHITECTURE_ID 526 | #endif 527 | 528 | /* Convert integer to decimal digit literals. */ 529 | #define DEC(n) \ 530 | ('0' + (((n) / 10000000)%10)), \ 531 | ('0' + (((n) / 1000000)%10)), \ 532 | ('0' + (((n) / 100000)%10)), \ 533 | ('0' + (((n) / 10000)%10)), \ 534 | ('0' + (((n) / 1000)%10)), \ 535 | ('0' + (((n) / 100)%10)), \ 536 | ('0' + (((n) / 10)%10)), \ 537 | ('0' + ((n) % 10)) 538 | 539 | /* Convert integer to hex digit literals. */ 540 | #define HEX(n) \ 541 | ('0' + ((n)>>28 & 0xF)), \ 542 | ('0' + ((n)>>24 & 0xF)), \ 543 | ('0' + ((n)>>20 & 0xF)), \ 544 | ('0' + ((n)>>16 & 0xF)), \ 545 | ('0' + ((n)>>12 & 0xF)), \ 546 | ('0' + ((n)>>8 & 0xF)), \ 547 | ('0' + ((n)>>4 & 0xF)), \ 548 | ('0' + ((n) & 0xF)) 549 | 550 | /* Construct a string literal encoding the version number components. */ 551 | #ifdef COMPILER_VERSION_MAJOR 552 | char const info_version[] = { 553 | 'I', 'N', 'F', 'O', ':', 554 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', 555 | COMPILER_VERSION_MAJOR, 556 | # ifdef COMPILER_VERSION_MINOR 557 | '.', COMPILER_VERSION_MINOR, 558 | # ifdef COMPILER_VERSION_PATCH 559 | '.', COMPILER_VERSION_PATCH, 560 | # ifdef COMPILER_VERSION_TWEAK 561 | '.', COMPILER_VERSION_TWEAK, 562 | # endif 563 | # endif 564 | # endif 565 | ']','\0'}; 566 | #endif 567 | 568 | /* Construct a string literal encoding the internal version number. */ 569 | #ifdef COMPILER_VERSION_INTERNAL 570 | char const info_version_internal[] = { 571 | 'I', 'N', 'F', 'O', ':', 572 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', 573 | 'i','n','t','e','r','n','a','l','[', 574 | COMPILER_VERSION_INTERNAL,']','\0'}; 575 | #endif 576 | 577 | /* Construct a string literal encoding the version number components. */ 578 | #ifdef SIMULATE_VERSION_MAJOR 579 | char const info_simulate_version[] = { 580 | 'I', 'N', 'F', 'O', ':', 581 | 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', 582 | SIMULATE_VERSION_MAJOR, 583 | # ifdef SIMULATE_VERSION_MINOR 584 | '.', SIMULATE_VERSION_MINOR, 585 | # ifdef SIMULATE_VERSION_PATCH 586 | '.', SIMULATE_VERSION_PATCH, 587 | # ifdef SIMULATE_VERSION_TWEAK 588 | '.', SIMULATE_VERSION_TWEAK, 589 | # endif 590 | # endif 591 | # endif 592 | ']','\0'}; 593 | #endif 594 | 595 | /* Construct the string literal in pieces to prevent the source from 596 | getting matched. Store it in a pointer rather than an array 597 | because some compilers will just produce instructions to fill the 598 | array rather than assigning a pointer to a static array. */ 599 | char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; 600 | char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; 601 | 602 | 603 | 604 | 605 | #if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L 606 | # if defined(__INTEL_CXX11_MODE__) 607 | # if defined(__cpp_aggregate_nsdmi) 608 | # define CXX_STD 201402L 609 | # else 610 | # define CXX_STD 201103L 611 | # endif 612 | # else 613 | # define CXX_STD 199711L 614 | # endif 615 | #elif defined(_MSC_VER) && defined(_MSVC_LANG) 616 | # define CXX_STD _MSVC_LANG 617 | #else 618 | # define CXX_STD __cplusplus 619 | #endif 620 | 621 | const char* info_language_dialect_default = "INFO" ":" "dialect_default[" 622 | #if CXX_STD > 201703L 623 | "20" 624 | #elif CXX_STD >= 201703L 625 | "17" 626 | #elif CXX_STD >= 201402L 627 | "14" 628 | #elif CXX_STD >= 201103L 629 | "11" 630 | #else 631 | "98" 632 | #endif 633 | "]"; 634 | 635 | /*--------------------------------------------------------------------------*/ 636 | 637 | int main(int argc, char* argv[]) 638 | { 639 | int require = 0; 640 | require += info_compiler[argc]; 641 | require += info_platform[argc]; 642 | #ifdef COMPILER_VERSION_MAJOR 643 | require += info_version[argc]; 644 | #endif 645 | #ifdef COMPILER_VERSION_INTERNAL 646 | require += info_version_internal[argc]; 647 | #endif 648 | #ifdef SIMULATE_ID 649 | require += info_simulate[argc]; 650 | #endif 651 | #ifdef SIMULATE_VERSION_MAJOR 652 | require += info_simulate_version[argc]; 653 | #endif 654 | #if defined(__CRAYXE) || defined(__CRAYXC) 655 | require += info_cray[argc]; 656 | #endif 657 | require += info_language_dialect_default[argc]; 658 | (void)argv; 659 | return require; 660 | } 661 | -------------------------------------------------------------------------------- /build/CMakeFiles/3.16.6/CompilerIdCXX/a.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zherlock030/YOLOv5_Torchscript/5f2e5e026a76df65f89f7e5bf037c7e81206658f/build/CMakeFiles/3.16.6/CompilerIdCXX/a.out -------------------------------------------------------------------------------- /build/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.16 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/zherlock/c++ example/object detection") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/zherlock/c++ example/object detection/build") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /build/CMakeFiles/CMakeError.log: -------------------------------------------------------------------------------- 1 | Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: 2 | Change Dir: /home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp 3 | 4 | Run Build Command(s):/usr/bin/make cmTC_224b5/fast && /usr/bin/make -f CMakeFiles/cmTC_224b5.dir/build.make CMakeFiles/cmTC_224b5.dir/build 5 | make[1]: Entering directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 6 | Building C object CMakeFiles/cmTC_224b5.dir/src.c.o 7 | /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_224b5.dir/src.c.o -c "/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp/src.c" 8 | Linking C executable cmTC_224b5 9 | /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_224b5.dir/link.txt --verbose=1 10 | /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -rdynamic CMakeFiles/cmTC_224b5.dir/src.c.o -o cmTC_224b5 11 | CMakeFiles/cmTC_224b5.dir/src.c.o:在函数‘main’中: 12 | src.c:(.text+0x3c):对‘pthread_create’未定义的引用 13 | src.c:(.text+0x48):对‘pthread_detach’未定义的引用 14 | src.c:(.text+0x59):对‘pthread_join’未定义的引用 15 | src.c:(.text+0x6d):对‘pthread_atfork’未定义的引用 16 | collect2: error: ld returned 1 exit status 17 | CMakeFiles/cmTC_224b5.dir/build.make:89: recipe for target 'cmTC_224b5' failed 18 | make[1]: *** [cmTC_224b5] Error 1 19 | make[1]: Leaving directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 20 | Makefile:124: recipe for target 'cmTC_224b5/fast' failed 21 | make: *** [cmTC_224b5/fast] Error 2 22 | 23 | 24 | Source file was: 25 | #include 26 | 27 | void* test_func(void* data) 28 | { 29 | return data; 30 | } 31 | 32 | int main(void) 33 | { 34 | pthread_t thread; 35 | pthread_create(&thread, NULL, test_func, NULL); 36 | pthread_detach(thread); 37 | pthread_join(thread, NULL); 38 | pthread_atfork(NULL, NULL, NULL); 39 | pthread_exit(NULL); 40 | 41 | return 0; 42 | } 43 | 44 | Determining if the function pthread_create exists in the pthreads failed with the following output: 45 | Change Dir: /home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp 46 | 47 | Run Build Command(s):/usr/bin/make cmTC_af6e9/fast && /usr/bin/make -f CMakeFiles/cmTC_af6e9.dir/build.make CMakeFiles/cmTC_af6e9.dir/build 48 | make[1]: Entering directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 49 | Building C object CMakeFiles/cmTC_af6e9.dir/CheckFunctionExists.c.o 50 | /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_af6e9.dir/CheckFunctionExists.c.o -c /home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CheckFunctionExists.c 51 | Linking C executable cmTC_af6e9 52 | /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_af6e9.dir/link.txt --verbose=1 53 | /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_af6e9.dir/CheckFunctionExists.c.o -o cmTC_af6e9 -lpthreads 54 | /usr/bin/ld: 找不到 -lpthreads 55 | collect2: error: ld returned 1 exit status 56 | CMakeFiles/cmTC_af6e9.dir/build.make:89: recipe for target 'cmTC_af6e9' failed 57 | make[1]: *** [cmTC_af6e9] Error 1 58 | make[1]: Leaving directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 59 | Makefile:124: recipe for target 'cmTC_af6e9/fast' failed 60 | make: *** [cmTC_af6e9/fast] Error 2 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /build/CMakeFiles/CMakeOutput.log: -------------------------------------------------------------------------------- 1 | The system is: Linux - 4.15.0-118-generic - x86_64 2 | Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. 3 | Compiler: /usr/bin/cc 4 | Build flags: 5 | Id flags: 6 | 7 | The output was: 8 | 0 9 | 10 | 11 | Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" 12 | 13 | The C compiler identification is GNU, found in "/home/zherlock/c++ example/object detection/build/CMakeFiles/3.16.6/CompilerIdC/a.out" 14 | 15 | Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. 16 | Compiler: /usr/bin/c++ 17 | Build flags: 18 | Id flags: 19 | 20 | The output was: 21 | 0 22 | 23 | 24 | Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" 25 | 26 | The CXX compiler identification is GNU, found in "/home/zherlock/c++ example/object detection/build/CMakeFiles/3.16.6/CompilerIdCXX/a.out" 27 | 28 | Determining if the C compiler works passed with the following output: 29 | Change Dir: /home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp 30 | 31 | Run Build Command(s):/usr/bin/make cmTC_bb1fc/fast && /usr/bin/make -f CMakeFiles/cmTC_bb1fc.dir/build.make CMakeFiles/cmTC_bb1fc.dir/build 32 | make[1]: Entering directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 33 | Building C object CMakeFiles/cmTC_bb1fc.dir/testCCompiler.c.o 34 | /usr/bin/cc -o CMakeFiles/cmTC_bb1fc.dir/testCCompiler.c.o -c "/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp/testCCompiler.c" 35 | Linking C executable cmTC_bb1fc 36 | /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_bb1fc.dir/link.txt --verbose=1 37 | /usr/bin/cc -rdynamic CMakeFiles/cmTC_bb1fc.dir/testCCompiler.c.o -o cmTC_bb1fc 38 | make[1]: Leaving directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 39 | 40 | 41 | 42 | Detecting C compiler ABI info compiled with the following output: 43 | Change Dir: /home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp 44 | 45 | Run Build Command(s):/usr/bin/make cmTC_543d1/fast && /usr/bin/make -f CMakeFiles/cmTC_543d1.dir/build.make CMakeFiles/cmTC_543d1.dir/build 46 | make[1]: Entering directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 47 | Building C object CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o 48 | /usr/bin/cc -v -o CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o -c /home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeCCompilerABI.c 49 | Using built-in specs. 50 | COLLECT_GCC=/usr/bin/cc 51 | Target: x86_64-linux-gnu 52 | Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu 53 | Thread model: posix 54 | gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 55 | COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' 56 | /usr/lib/gcc/x86_64-linux-gnu/5/cc1 -quiet -v -imultiarch x86_64-linux-gnu /home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o -version -fstack-protector-strong -Wformat -Wformat-security -o /tmp/cc0Tnhxm.s 57 | GNU C11 (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu) 58 | compiled by GNU C version 5.4.0 20160609, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3 59 | GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 60 | ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" 61 | ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/5/../../../../x86_64-linux-gnu/include" 62 | #include "..." search starts here: 63 | #include <...> search starts here: 64 | /usr/lib/gcc/x86_64-linux-gnu/5/include 65 | /usr/local/include 66 | /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed 67 | /usr/include/x86_64-linux-gnu 68 | /usr/include 69 | End of search list. 70 | GNU C11 (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu) 71 | compiled by GNU C version 5.4.0 20160609, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3 72 | GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 73 | Compiler executable checksum: 8087146d2ee737d238113fb57fabb1f2 74 | COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' 75 | as -v --64 -o CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o /tmp/cc0Tnhxm.s 76 | GNU assembler version 2.26.1 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.26.1 77 | COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/ 78 | LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/ 79 | COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' 80 | Linking C executable cmTC_543d1 81 | /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_543d1.dir/link.txt --verbose=1 82 | /usr/bin/cc -v -rdynamic CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o -o cmTC_543d1 83 | Using built-in specs. 84 | COLLECT_GCC=/usr/bin/cc 85 | COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper 86 | Target: x86_64-linux-gnu 87 | Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu 88 | Thread model: posix 89 | gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 90 | COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/ 91 | LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/ 92 | COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_543d1' '-mtune=generic' '-march=x86-64' 93 | /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/cc2YK7Qp.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_543d1 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o 94 | make[1]: Leaving directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 95 | 96 | 97 | 98 | Parsed C implicit include dir info from above output: rv=done 99 | found start of include info 100 | found start of implicit include info 101 | add: [/usr/lib/gcc/x86_64-linux-gnu/5/include] 102 | add: [/usr/local/include] 103 | add: [/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed] 104 | add: [/usr/include/x86_64-linux-gnu] 105 | add: [/usr/include] 106 | end of search list found 107 | collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/5/include] ==> [/usr/lib/gcc/x86_64-linux-gnu/5/include] 108 | collapse include dir [/usr/local/include] ==> [/usr/local/include] 109 | collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed] ==> [/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed] 110 | collapse include dir [/usr/include/x86_64-linux-gnu] ==> [/usr/include/x86_64-linux-gnu] 111 | collapse include dir [/usr/include] ==> [/usr/include] 112 | implicit include dirs: [/usr/lib/gcc/x86_64-linux-gnu/5/include;/usr/local/include;/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed;/usr/include/x86_64-linux-gnu;/usr/include] 113 | 114 | 115 | Parsed C implicit link information from above output: 116 | link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] 117 | ignore line: [Change Dir: /home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp] 118 | ignore line: [] 119 | ignore line: [Run Build Command(s):/usr/bin/make cmTC_543d1/fast && /usr/bin/make -f CMakeFiles/cmTC_543d1.dir/build.make CMakeFiles/cmTC_543d1.dir/build] 120 | ignore line: [make[1]: Entering directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp'] 121 | ignore line: [Building C object CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o] 122 | ignore line: [/usr/bin/cc -v -o CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o -c /home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeCCompilerABI.c] 123 | ignore line: [Using built-in specs.] 124 | ignore line: [COLLECT_GCC=/usr/bin/cc] 125 | ignore line: [Target: x86_64-linux-gnu] 126 | ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c ada c++ java go d fortran objc obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu] 127 | ignore line: [Thread model: posix] 128 | ignore line: [gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ] 129 | ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'] 130 | ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/5/cc1 -quiet -v -imultiarch x86_64-linux-gnu /home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o -version -fstack-protector-strong -Wformat -Wformat-security -o /tmp/cc0Tnhxm.s] 131 | ignore line: [GNU C11 (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu)] 132 | ignore line: [ compiled by GNU C version 5.4.0 20160609 GMP version 6.1.0 MPFR version 3.1.4 MPC version 1.0.3] 133 | ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072] 134 | ignore line: [ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"] 135 | ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/5/../../../../x86_64-linux-gnu/include"] 136 | ignore line: [#include "..." search starts here:] 137 | ignore line: [#include <...> search starts here:] 138 | ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/5/include] 139 | ignore line: [ /usr/local/include] 140 | ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed] 141 | ignore line: [ /usr/include/x86_64-linux-gnu] 142 | ignore line: [ /usr/include] 143 | ignore line: [End of search list.] 144 | ignore line: [GNU C11 (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu)] 145 | ignore line: [ compiled by GNU C version 5.4.0 20160609 GMP version 6.1.0 MPFR version 3.1.4 MPC version 1.0.3] 146 | ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072] 147 | ignore line: [Compiler executable checksum: 8087146d2ee737d238113fb57fabb1f2] 148 | ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'] 149 | ignore line: [ as -v --64 -o CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o /tmp/cc0Tnhxm.s] 150 | ignore line: [GNU assembler version 2.26.1 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.26.1] 151 | ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/] 152 | ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/] 153 | ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'] 154 | ignore line: [Linking C executable cmTC_543d1] 155 | ignore line: [/home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_543d1.dir/link.txt --verbose=1] 156 | ignore line: [/usr/bin/cc -v -rdynamic CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o -o cmTC_543d1 ] 157 | ignore line: [Using built-in specs.] 158 | ignore line: [COLLECT_GCC=/usr/bin/cc] 159 | ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] 160 | ignore line: [Target: x86_64-linux-gnu] 161 | ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c ada c++ java go d fortran objc obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu] 162 | ignore line: [Thread model: posix] 163 | ignore line: [gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ] 164 | ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/] 165 | ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/] 166 | ignore line: [COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_543d1' '-mtune=generic' '-march=x86-64'] 167 | link line: [ /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/cc2YK7Qp.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_543d1 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o] 168 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/collect2] ==> ignore 169 | arg [-plugin] ==> ignore 170 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so] ==> ignore 171 | arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] ==> ignore 172 | arg [-plugin-opt=-fresolution=/tmp/cc2YK7Qp.res] ==> ignore 173 | arg [-plugin-opt=-pass-through=-lgcc] ==> ignore 174 | arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore 175 | arg [-plugin-opt=-pass-through=-lc] ==> ignore 176 | arg [-plugin-opt=-pass-through=-lgcc] ==> ignore 177 | arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore 178 | arg [--sysroot=/] ==> ignore 179 | arg [--build-id] ==> ignore 180 | arg [--eh-frame-hdr] ==> ignore 181 | arg [-m] ==> ignore 182 | arg [elf_x86_64] ==> ignore 183 | arg [--hash-style=gnu] ==> ignore 184 | arg [--as-needed] ==> ignore 185 | arg [-export-dynamic] ==> ignore 186 | arg [-dynamic-linker] ==> ignore 187 | arg [/lib64/ld-linux-x86-64.so.2] ==> ignore 188 | arg [-zrelro] ==> ignore 189 | arg [-o] ==> ignore 190 | arg [cmTC_543d1] ==> ignore 191 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o] ==> ignore 192 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o] ==> ignore 193 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o] ==> ignore 194 | arg [-L/usr/lib/gcc/x86_64-linux-gnu/5] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5] 195 | arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu] 196 | arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib] 197 | arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu] 198 | arg [-L/lib/../lib] ==> dir [/lib/../lib] 199 | arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] 200 | arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] 201 | arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..] 202 | arg [CMakeFiles/cmTC_543d1.dir/CMakeCCompilerABI.c.o] ==> ignore 203 | arg [-lgcc] ==> lib [gcc] 204 | arg [--as-needed] ==> ignore 205 | arg [-lgcc_s] ==> lib [gcc_s] 206 | arg [--no-as-needed] ==> ignore 207 | arg [-lc] ==> lib [c] 208 | arg [-lgcc] ==> lib [gcc] 209 | arg [--as-needed] ==> ignore 210 | arg [-lgcc_s] ==> lib [gcc_s] 211 | arg [--no-as-needed] ==> ignore 212 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtend.o] ==> ignore 213 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o] ==> ignore 214 | collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5] ==> [/usr/lib/gcc/x86_64-linux-gnu/5] 215 | collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] 216 | collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib] ==> [/usr/lib] 217 | collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu] 218 | collapse library dir [/lib/../lib] ==> [/lib] 219 | collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] 220 | collapse library dir [/usr/lib/../lib] ==> [/usr/lib] 221 | collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> [/usr/lib] 222 | implicit libs: [gcc;gcc_s;c;gcc;gcc_s] 223 | implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/5;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib] 224 | implicit fwks: [] 225 | 226 | 227 | Determining if the CXX compiler works passed with the following output: 228 | Change Dir: /home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp 229 | 230 | Run Build Command(s):/usr/bin/make cmTC_c54bd/fast && /usr/bin/make -f CMakeFiles/cmTC_c54bd.dir/build.make CMakeFiles/cmTC_c54bd.dir/build 231 | make[1]: Entering directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 232 | Building CXX object CMakeFiles/cmTC_c54bd.dir/testCXXCompiler.cxx.o 233 | /usr/bin/c++ -o CMakeFiles/cmTC_c54bd.dir/testCXXCompiler.cxx.o -c "/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx" 234 | Linking CXX executable cmTC_c54bd 235 | /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c54bd.dir/link.txt --verbose=1 236 | /usr/bin/c++ -rdynamic CMakeFiles/cmTC_c54bd.dir/testCXXCompiler.cxx.o -o cmTC_c54bd 237 | make[1]: Leaving directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 238 | 239 | 240 | 241 | Detecting CXX compiler ABI info compiled with the following output: 242 | Change Dir: /home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp 243 | 244 | Run Build Command(s):/usr/bin/make cmTC_9f035/fast && /usr/bin/make -f CMakeFiles/cmTC_9f035.dir/build.make CMakeFiles/cmTC_9f035.dir/build 245 | make[1]: Entering directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 246 | Building CXX object CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o 247 | /usr/bin/c++ -v -o CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o -c /home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp 248 | Using built-in specs. 249 | COLLECT_GCC=/usr/bin/c++ 250 | Target: x86_64-linux-gnu 251 | Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu 252 | Thread model: posix 253 | gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 254 | COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64' 255 | /usr/lib/gcc/x86_64-linux-gnu/5/cc1plus -quiet -v -imultiarch x86_64-linux-gnu -D_GNU_SOURCE /home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o -version -fstack-protector-strong -Wformat -Wformat-security -o /tmp/cc8p43Ip.s 256 | GNU C++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu) 257 | compiled by GNU C version 5.4.0 20160609, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3 258 | GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 259 | ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/5" 260 | ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" 261 | ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/5/../../../../x86_64-linux-gnu/include" 262 | #include "..." search starts here: 263 | #include <...> search starts here: 264 | /usr/include/c++/5 265 | /usr/include/x86_64-linux-gnu/c++/5 266 | /usr/include/c++/5/backward 267 | /usr/lib/gcc/x86_64-linux-gnu/5/include 268 | /usr/local/include 269 | /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed 270 | /usr/include/x86_64-linux-gnu 271 | /usr/include 272 | End of search list. 273 | GNU C++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu) 274 | compiled by GNU C version 5.4.0 20160609, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3 275 | GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 276 | Compiler executable checksum: 85af4995304287cdd19cfa43cf5d6cf1 277 | COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64' 278 | as -v --64 -o CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o /tmp/cc8p43Ip.s 279 | GNU assembler version 2.26.1 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.26.1 280 | COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/ 281 | LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/ 282 | COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64' 283 | Linking CXX executable cmTC_9f035 284 | /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9f035.dir/link.txt --verbose=1 285 | /usr/bin/c++ -v -rdynamic CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_9f035 286 | Using built-in specs. 287 | COLLECT_GCC=/usr/bin/c++ 288 | COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper 289 | Target: x86_64-linux-gnu 290 | Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu 291 | Thread model: posix 292 | gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 293 | COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/ 294 | LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/ 295 | COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_9f035' '-shared-libgcc' '-mtune=generic' '-march=x86-64' 296 | /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccE8Evjo.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_9f035 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o 297 | make[1]: Leaving directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 298 | 299 | 300 | 301 | Parsed CXX implicit include dir info from above output: rv=done 302 | found start of include info 303 | found start of implicit include info 304 | add: [/usr/include/c++/5] 305 | add: [/usr/include/x86_64-linux-gnu/c++/5] 306 | add: [/usr/include/c++/5/backward] 307 | add: [/usr/lib/gcc/x86_64-linux-gnu/5/include] 308 | add: [/usr/local/include] 309 | add: [/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed] 310 | add: [/usr/include/x86_64-linux-gnu] 311 | add: [/usr/include] 312 | end of search list found 313 | collapse include dir [/usr/include/c++/5] ==> [/usr/include/c++/5] 314 | collapse include dir [/usr/include/x86_64-linux-gnu/c++/5] ==> [/usr/include/x86_64-linux-gnu/c++/5] 315 | collapse include dir [/usr/include/c++/5/backward] ==> [/usr/include/c++/5/backward] 316 | collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/5/include] ==> [/usr/lib/gcc/x86_64-linux-gnu/5/include] 317 | collapse include dir [/usr/local/include] ==> [/usr/local/include] 318 | collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed] ==> [/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed] 319 | collapse include dir [/usr/include/x86_64-linux-gnu] ==> [/usr/include/x86_64-linux-gnu] 320 | collapse include dir [/usr/include] ==> [/usr/include] 321 | implicit include dirs: [/usr/include/c++/5;/usr/include/x86_64-linux-gnu/c++/5;/usr/include/c++/5/backward;/usr/lib/gcc/x86_64-linux-gnu/5/include;/usr/local/include;/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed;/usr/include/x86_64-linux-gnu;/usr/include] 322 | 323 | 324 | Parsed CXX implicit link information from above output: 325 | link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] 326 | ignore line: [Change Dir: /home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp] 327 | ignore line: [] 328 | ignore line: [Run Build Command(s):/usr/bin/make cmTC_9f035/fast && /usr/bin/make -f CMakeFiles/cmTC_9f035.dir/build.make CMakeFiles/cmTC_9f035.dir/build] 329 | ignore line: [make[1]: Entering directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp'] 330 | ignore line: [Building CXX object CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o] 331 | ignore line: [/usr/bin/c++ -v -o CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o -c /home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp] 332 | ignore line: [Using built-in specs.] 333 | ignore line: [COLLECT_GCC=/usr/bin/c++] 334 | ignore line: [Target: x86_64-linux-gnu] 335 | ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c ada c++ java go d fortran objc obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu] 336 | ignore line: [Thread model: posix] 337 | ignore line: [gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ] 338 | ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] 339 | ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/5/cc1plus -quiet -v -imultiarch x86_64-linux-gnu -D_GNU_SOURCE /home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o -version -fstack-protector-strong -Wformat -Wformat-security -o /tmp/cc8p43Ip.s] 340 | ignore line: [GNU C++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu)] 341 | ignore line: [ compiled by GNU C version 5.4.0 20160609 GMP version 6.1.0 MPFR version 3.1.4 MPC version 1.0.3] 342 | ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072] 343 | ignore line: [ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/5"] 344 | ignore line: [ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"] 345 | ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/5/../../../../x86_64-linux-gnu/include"] 346 | ignore line: [#include "..." search starts here:] 347 | ignore line: [#include <...> search starts here:] 348 | ignore line: [ /usr/include/c++/5] 349 | ignore line: [ /usr/include/x86_64-linux-gnu/c++/5] 350 | ignore line: [ /usr/include/c++/5/backward] 351 | ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/5/include] 352 | ignore line: [ /usr/local/include] 353 | ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed] 354 | ignore line: [ /usr/include/x86_64-linux-gnu] 355 | ignore line: [ /usr/include] 356 | ignore line: [End of search list.] 357 | ignore line: [GNU C++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu)] 358 | ignore line: [ compiled by GNU C version 5.4.0 20160609 GMP version 6.1.0 MPFR version 3.1.4 MPC version 1.0.3] 359 | ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072] 360 | ignore line: [Compiler executable checksum: 85af4995304287cdd19cfa43cf5d6cf1] 361 | ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] 362 | ignore line: [ as -v --64 -o CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o /tmp/cc8p43Ip.s] 363 | ignore line: [GNU assembler version 2.26.1 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.26.1] 364 | ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/] 365 | ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/] 366 | ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] 367 | ignore line: [Linking CXX executable cmTC_9f035] 368 | ignore line: [/home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9f035.dir/link.txt --verbose=1] 369 | ignore line: [/usr/bin/c++ -v -rdynamic CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_9f035 ] 370 | ignore line: [Using built-in specs.] 371 | ignore line: [COLLECT_GCC=/usr/bin/c++] 372 | ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] 373 | ignore line: [Target: x86_64-linux-gnu] 374 | ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c ada c++ java go d fortran objc obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu] 375 | ignore line: [Thread model: posix] 376 | ignore line: [gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ] 377 | ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/] 378 | ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/5/../../../:/lib/:/usr/lib/] 379 | ignore line: [COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_9f035' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] 380 | link line: [ /usr/lib/gcc/x86_64-linux-gnu/5/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/ccE8Evjo.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o cmTC_9f035 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o] 381 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/collect2] ==> ignore 382 | arg [-plugin] ==> ignore 383 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so] ==> ignore 384 | arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper] ==> ignore 385 | arg [-plugin-opt=-fresolution=/tmp/ccE8Evjo.res] ==> ignore 386 | arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore 387 | arg [-plugin-opt=-pass-through=-lgcc] ==> ignore 388 | arg [-plugin-opt=-pass-through=-lc] ==> ignore 389 | arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore 390 | arg [-plugin-opt=-pass-through=-lgcc] ==> ignore 391 | arg [--sysroot=/] ==> ignore 392 | arg [--build-id] ==> ignore 393 | arg [--eh-frame-hdr] ==> ignore 394 | arg [-m] ==> ignore 395 | arg [elf_x86_64] ==> ignore 396 | arg [--hash-style=gnu] ==> ignore 397 | arg [--as-needed] ==> ignore 398 | arg [-export-dynamic] ==> ignore 399 | arg [-dynamic-linker] ==> ignore 400 | arg [/lib64/ld-linux-x86-64.so.2] ==> ignore 401 | arg [-zrelro] ==> ignore 402 | arg [-o] ==> ignore 403 | arg [cmTC_9f035] ==> ignore 404 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o] ==> ignore 405 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o] ==> ignore 406 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o] ==> ignore 407 | arg [-L/usr/lib/gcc/x86_64-linux-gnu/5] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5] 408 | arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu] 409 | arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib] 410 | arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu] 411 | arg [-L/lib/../lib] ==> dir [/lib/../lib] 412 | arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] 413 | arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] 414 | arg [-L/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..] 415 | arg [CMakeFiles/cmTC_9f035.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore 416 | arg [-lstdc++] ==> lib [stdc++] 417 | arg [-lm] ==> lib [m] 418 | arg [-lgcc_s] ==> lib [gcc_s] 419 | arg [-lgcc] ==> lib [gcc] 420 | arg [-lc] ==> lib [c] 421 | arg [-lgcc_s] ==> lib [gcc_s] 422 | arg [-lgcc] ==> lib [gcc] 423 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/crtend.o] ==> ignore 424 | arg [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o] ==> ignore 425 | collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5] ==> [/usr/lib/gcc/x86_64-linux-gnu/5] 426 | collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] 427 | collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib] ==> [/usr/lib] 428 | collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu] 429 | collapse library dir [/lib/../lib] ==> [/lib] 430 | collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] 431 | collapse library dir [/usr/lib/../lib] ==> [/usr/lib] 432 | collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/5/../../..] ==> [/usr/lib] 433 | implicit libs: [stdc++;m;gcc_s;gcc;c;gcc_s;gcc] 434 | implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/5;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib] 435 | implicit fwks: [] 436 | 437 | 438 | Determining if the include file pthread.h exists passed with the following output: 439 | Change Dir: /home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp 440 | 441 | Run Build Command(s):/usr/bin/make cmTC_142c6/fast && /usr/bin/make -f CMakeFiles/cmTC_142c6.dir/build.make CMakeFiles/cmTC_142c6.dir/build 442 | make[1]: Entering directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 443 | Building C object CMakeFiles/cmTC_142c6.dir/CheckIncludeFile.c.o 444 | /usr/bin/cc -o CMakeFiles/cmTC_142c6.dir/CheckIncludeFile.c.o -c "/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c" 445 | Linking C executable cmTC_142c6 446 | /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_142c6.dir/link.txt --verbose=1 447 | /usr/bin/cc -rdynamic CMakeFiles/cmTC_142c6.dir/CheckIncludeFile.c.o -o cmTC_142c6 448 | make[1]: Leaving directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 449 | 450 | 451 | 452 | Determining if the function pthread_create exists in the pthread passed with the following output: 453 | Change Dir: /home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp 454 | 455 | Run Build Command(s):/usr/bin/make cmTC_2b426/fast && /usr/bin/make -f CMakeFiles/cmTC_2b426.dir/build.make CMakeFiles/cmTC_2b426.dir/build 456 | make[1]: Entering directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 457 | Building C object CMakeFiles/cmTC_2b426.dir/CheckFunctionExists.c.o 458 | /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_2b426.dir/CheckFunctionExists.c.o -c /home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CheckFunctionExists.c 459 | Linking C executable cmTC_2b426 460 | /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2b426.dir/link.txt --verbose=1 461 | /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_2b426.dir/CheckFunctionExists.c.o -o cmTC_2b426 -lpthread 462 | make[1]: Leaving directory '/home/zherlock/c++ example/object detection/build/CMakeFiles/CMakeTmp' 463 | 464 | 465 | 466 | -------------------------------------------------------------------------------- /build/CMakeFiles/Makefile.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.16 3 | 4 | # The generator used is: 5 | set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") 6 | 7 | # The top level Makefile was generated from the following files: 8 | set(CMAKE_MAKEFILE_DEPENDS 9 | "CMakeCache.txt" 10 | "/home/zherlock/SLAM/libtorch/libtorch-abi/share/cmake/Caffe2/Caffe2Config.cmake" 11 | "/home/zherlock/SLAM/libtorch/libtorch-abi/share/cmake/Caffe2/Caffe2ConfigVersion.cmake" 12 | "/home/zherlock/SLAM/libtorch/libtorch-abi/share/cmake/Caffe2/Caffe2Targets-release.cmake" 13 | "/home/zherlock/SLAM/libtorch/libtorch-abi/share/cmake/Caffe2/Caffe2Targets.cmake" 14 | "/home/zherlock/SLAM/libtorch/libtorch-abi/share/cmake/Caffe2/public/mkl.cmake" 15 | "/home/zherlock/SLAM/libtorch/libtorch-abi/share/cmake/Caffe2/public/mkldnn.cmake" 16 | "/home/zherlock/SLAM/libtorch/libtorch-abi/share/cmake/Caffe2/public/threads.cmake" 17 | "/home/zherlock/SLAM/libtorch/libtorch-abi/share/cmake/Caffe2/public/utils.cmake" 18 | "/home/zherlock/SLAM/libtorch/libtorch-abi/share/cmake/Torch/TorchConfig.cmake" 19 | "/home/zherlock/SLAM/libtorch/libtorch-abi/share/cmake/Torch/TorchConfigVersion.cmake" 20 | "../CMakeLists.txt" 21 | "CMakeFiles/3.16.6/CMakeCCompiler.cmake" 22 | "CMakeFiles/3.16.6/CMakeCXXCompiler.cmake" 23 | "CMakeFiles/3.16.6/CMakeSystem.cmake" 24 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeCInformation.cmake" 25 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeCXXInformation.cmake" 26 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake" 27 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeCommonLanguageInclude.cmake" 28 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeGenericSystem.cmake" 29 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeInitializeConfigs.cmake" 30 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeLanguageInformation.cmake" 31 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeSystemSpecificInformation.cmake" 32 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CMakeSystemSpecificInitialize.cmake" 33 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CheckCSourceCompiles.cmake" 34 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CheckIncludeFile.cmake" 35 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/CheckLibraryExists.cmake" 36 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/Compiler/CMakeCommonCompilerMacros.cmake" 37 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/Compiler/GNU-C.cmake" 38 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/Compiler/GNU-CXX.cmake" 39 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/Compiler/GNU.cmake" 40 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake" 41 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/FindPackageMessage.cmake" 42 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/FindThreads.cmake" 43 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/Internal/CMakeCheckCompilerFlag.cmake" 44 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/Platform/Linux-GNU-C.cmake" 45 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/Platform/Linux-GNU-CXX.cmake" 46 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/Platform/Linux-GNU.cmake" 47 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/Platform/Linux.cmake" 48 | "/home/zherlock/cmake-3.16.6-Linux-x86_64/share/cmake-3.16/Modules/Platform/UnixPaths.cmake" 49 | "/home/zherlock/opencv-2.4.9/build/OpenCVConfig-version.cmake" 50 | "/home/zherlock/opencv-2.4.9/build/OpenCVConfig.cmake" 51 | "/home/zherlock/opencv-2.4.9/build/OpenCVModules.cmake" 52 | ) 53 | 54 | # The corresponding makefile is: 55 | set(CMAKE_MAKEFILE_OUTPUTS 56 | "Makefile" 57 | "CMakeFiles/cmake.check_cache" 58 | ) 59 | 60 | # Byproducts of CMake generate step: 61 | set(CMAKE_MAKEFILE_PRODUCTS 62 | "CMakeFiles/CMakeDirectoryInformation.cmake" 63 | ) 64 | 65 | # Dependency information for all targets: 66 | set(CMAKE_DEPEND_INFO_FILES 67 | "CMakeFiles/yolov5s.dir/DependInfo.cmake" 68 | ) 69 | -------------------------------------------------------------------------------- /build/CMakeFiles/Makefile2: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.16 3 | 4 | # Default target executed when no arguments are given to make. 5 | default_target: all 6 | 7 | .PHONY : default_target 8 | 9 | #============================================================================= 10 | # Special targets provided by cmake. 11 | 12 | # Disable implicit rules so canonical targets will work. 13 | .SUFFIXES: 14 | 15 | 16 | # Remove some rules from gmake that .SUFFIXES does not remove. 17 | SUFFIXES = 18 | 19 | .SUFFIXES: .hpux_make_needs_suffix_list 20 | 21 | 22 | # Command-line flag to silence nested $(MAKE). 23 | $(VERBOSE)MAKESILENT = -s 24 | 25 | # Suppress display of executed commands. 26 | $(VERBOSE).SILENT: 27 | 28 | 29 | # A target that is always out of date. 30 | cmake_force: 31 | 32 | .PHONY : cmake_force 33 | 34 | #============================================================================= 35 | # Set environment variables for the build. 36 | 37 | # The shell in which to execute make rules. 38 | SHELL = /bin/sh 39 | 40 | # The CMake executable. 41 | CMAKE_COMMAND = /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake 42 | 43 | # The command to remove a file. 44 | RM = /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake -E remove -f 45 | 46 | # Escaping for special characters. 47 | EQUALS = = 48 | 49 | # The top-level source directory on which CMake was run. 50 | CMAKE_SOURCE_DIR = "/home/zherlock/c++ example/object detection" 51 | 52 | # The top-level build directory on which CMake was run. 53 | CMAKE_BINARY_DIR = "/home/zherlock/c++ example/object detection/build" 54 | 55 | #============================================================================= 56 | # Directory level rules for the build root directory 57 | 58 | # The main recursive "all" target. 59 | all: CMakeFiles/yolov5s.dir/all 60 | 61 | .PHONY : all 62 | 63 | # The main recursive "preinstall" target. 64 | preinstall: 65 | 66 | .PHONY : preinstall 67 | 68 | # The main recursive "clean" target. 69 | clean: CMakeFiles/yolov5s.dir/clean 70 | 71 | .PHONY : clean 72 | 73 | #============================================================================= 74 | # Target rules for target CMakeFiles/yolov5s.dir 75 | 76 | # All Build rule for target. 77 | CMakeFiles/yolov5s.dir/all: 78 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/depend 79 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/build 80 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir="/home/zherlock/c++ example/object detection/build/CMakeFiles" --progress-num=1,2,3,4,5 "Built target yolov5s" 81 | .PHONY : CMakeFiles/yolov5s.dir/all 82 | 83 | # Build rule for subdir invocation for target. 84 | CMakeFiles/yolov5s.dir/rule: cmake_check_build_system 85 | $(CMAKE_COMMAND) -E cmake_progress_start "/home/zherlock/c++ example/object detection/build/CMakeFiles" 5 86 | $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 CMakeFiles/yolov5s.dir/all 87 | $(CMAKE_COMMAND) -E cmake_progress_start "/home/zherlock/c++ example/object detection/build/CMakeFiles" 0 88 | .PHONY : CMakeFiles/yolov5s.dir/rule 89 | 90 | # Convenience name for target. 91 | yolov5s: CMakeFiles/yolov5s.dir/rule 92 | 93 | .PHONY : yolov5s 94 | 95 | # clean rule for target. 96 | CMakeFiles/yolov5s.dir/clean: 97 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/clean 98 | .PHONY : CMakeFiles/yolov5s.dir/clean 99 | 100 | #============================================================================= 101 | # Special targets to cleanup operation of make. 102 | 103 | # Special rule to run CMake to check the build system integrity. 104 | # No rule that depends on this can have commands that come from listfiles 105 | # because they might be regenerated. 106 | cmake_check_build_system: 107 | $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 108 | .PHONY : cmake_check_build_system 109 | 110 | -------------------------------------------------------------------------------- /build/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /home/zherlock/c++ example/object detection/build/CMakeFiles/rebuild_cache.dir 2 | /home/zherlock/c++ example/object detection/build/CMakeFiles/edit_cache.dir 3 | /home/zherlock/c++ example/object detection/build/CMakeFiles/yolov5s.dir 4 | -------------------------------------------------------------------------------- /build/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /build/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /build/CMakeFiles/yolov5s.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "/home/zherlock/c++ example/object detection/src/main.cpp" "/home/zherlock/c++ example/object detection/build/CMakeFiles/yolov5s.dir/src/main.cpp.o" 8 | "/home/zherlock/c++ example/object detection/src/nms.cpp" "/home/zherlock/c++ example/object detection/build/CMakeFiles/yolov5s.dir/src/nms.cpp.o" 9 | "/home/zherlock/c++ example/object detection/src/src.cpp" "/home/zherlock/c++ example/object detection/build/CMakeFiles/yolov5s.dir/src/src.cpp.o" 10 | "/home/zherlock/c++ example/object detection/src/yolo.cpp" "/home/zherlock/c++ example/object detection/build/CMakeFiles/yolov5s.dir/src/yolo.cpp.o" 11 | ) 12 | set(CMAKE_CXX_COMPILER_ID "GNU") 13 | 14 | # Preprocessor definitions for this target. 15 | set(CMAKE_TARGET_DEFINITIONS_CXX 16 | "AT_PARALLEL_OPENMP=1" 17 | ) 18 | 19 | # The include file search paths: 20 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 21 | "/home/zherlock/torchvision-abi/include" 22 | "/home/zherlock/torchvision-abi/include/torchvision" 23 | "/home/zherlock/anaconda3/envs/detectron2/include/python3.7m" 24 | "../include" 25 | "/home/zherlock/opencv-2.4.9/build" 26 | "/home/zherlock/opencv-2.4.9/include" 27 | "/home/zherlock/opencv-2.4.9/include/opencv" 28 | "/home/zherlock/opencv-2.4.9/modules/core/include" 29 | "/home/zherlock/opencv-2.4.9/modules/flann/include" 30 | "/home/zherlock/opencv-2.4.9/modules/imgproc/include" 31 | "/home/zherlock/opencv-2.4.9/modules/highgui/include" 32 | "/home/zherlock/opencv-2.4.9/modules/features2d/include" 33 | "/home/zherlock/opencv-2.4.9/modules/calib3d/include" 34 | "/home/zherlock/opencv-2.4.9/modules/ml/include" 35 | "/home/zherlock/opencv-2.4.9/modules/video/include" 36 | "/home/zherlock/opencv-2.4.9/modules/legacy/include" 37 | "/home/zherlock/opencv-2.4.9/modules/objdetect/include" 38 | "/home/zherlock/opencv-2.4.9/modules/photo/include" 39 | "/home/zherlock/opencv-2.4.9/modules/gpu/include" 40 | "/home/zherlock/opencv-2.4.9/modules/ocl/include" 41 | "/home/zherlock/opencv-2.4.9/modules/nonfree/include" 42 | "/home/zherlock/opencv-2.4.9/modules/contrib/include" 43 | "/home/zherlock/opencv-2.4.9/modules/stitching/include" 44 | "/home/zherlock/opencv-2.4.9/modules/superres/include" 45 | "/home/zherlock/opencv-2.4.9/modules/ts/include" 46 | "/home/zherlock/opencv-2.4.9/modules/videostab/include" 47 | "/home/zherlock/SLAM/libtorch/libtorch-abi/include/torch/csrc/api/include" 48 | "/home/zherlock/SLAM/libtorch/libtorch-abi/include" 49 | ) 50 | 51 | # Targets to which this target links. 52 | set(CMAKE_TARGET_LINKED_INFO_FILES 53 | ) 54 | 55 | # Fortran module output directory. 56 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 57 | -------------------------------------------------------------------------------- /build/CMakeFiles/yolov5s.dir/build.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.16 3 | 4 | # Delete rule output on recipe failure. 5 | .DELETE_ON_ERROR: 6 | 7 | 8 | #============================================================================= 9 | # Special targets provided by cmake. 10 | 11 | # Disable implicit rules so canonical targets will work. 12 | .SUFFIXES: 13 | 14 | 15 | # Remove some rules from gmake that .SUFFIXES does not remove. 16 | SUFFIXES = 17 | 18 | .SUFFIXES: .hpux_make_needs_suffix_list 19 | 20 | 21 | # Command-line flag to silence nested $(MAKE). 22 | $(VERBOSE)MAKESILENT = -s 23 | 24 | # Suppress display of executed commands. 25 | $(VERBOSE).SILENT: 26 | 27 | 28 | # A target that is always out of date. 29 | cmake_force: 30 | 31 | .PHONY : cmake_force 32 | 33 | #============================================================================= 34 | # Set environment variables for the build. 35 | 36 | # The shell in which to execute make rules. 37 | SHELL = /bin/sh 38 | 39 | # The CMake executable. 40 | CMAKE_COMMAND = /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake 41 | 42 | # The command to remove a file. 43 | RM = /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake -E remove -f 44 | 45 | # Escaping for special characters. 46 | EQUALS = = 47 | 48 | # The top-level source directory on which CMake was run. 49 | CMAKE_SOURCE_DIR = "/home/zherlock/c++ example/object detection" 50 | 51 | # The top-level build directory on which CMake was run. 52 | CMAKE_BINARY_DIR = "/home/zherlock/c++ example/object detection/build" 53 | 54 | # Include any dependencies generated for this target. 55 | include CMakeFiles/yolov5s.dir/depend.make 56 | 57 | # Include the progress variables for this target. 58 | include CMakeFiles/yolov5s.dir/progress.make 59 | 60 | # Include the compile flags for this target's objects. 61 | include CMakeFiles/yolov5s.dir/flags.make 62 | 63 | CMakeFiles/yolov5s.dir/src/main.cpp.o: CMakeFiles/yolov5s.dir/flags.make 64 | CMakeFiles/yolov5s.dir/src/main.cpp.o: ../src/main.cpp 65 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir="/home/zherlock/c++ example/object detection/build/CMakeFiles" --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/yolov5s.dir/src/main.cpp.o" 66 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/yolov5s.dir/src/main.cpp.o -c "/home/zherlock/c++ example/object detection/src/main.cpp" 67 | 68 | CMakeFiles/yolov5s.dir/src/main.cpp.i: cmake_force 69 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/yolov5s.dir/src/main.cpp.i" 70 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E "/home/zherlock/c++ example/object detection/src/main.cpp" > CMakeFiles/yolov5s.dir/src/main.cpp.i 71 | 72 | CMakeFiles/yolov5s.dir/src/main.cpp.s: cmake_force 73 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/yolov5s.dir/src/main.cpp.s" 74 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S "/home/zherlock/c++ example/object detection/src/main.cpp" -o CMakeFiles/yolov5s.dir/src/main.cpp.s 75 | 76 | CMakeFiles/yolov5s.dir/src/nms.cpp.o: CMakeFiles/yolov5s.dir/flags.make 77 | CMakeFiles/yolov5s.dir/src/nms.cpp.o: ../src/nms.cpp 78 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir="/home/zherlock/c++ example/object detection/build/CMakeFiles" --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object CMakeFiles/yolov5s.dir/src/nms.cpp.o" 79 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/yolov5s.dir/src/nms.cpp.o -c "/home/zherlock/c++ example/object detection/src/nms.cpp" 80 | 81 | CMakeFiles/yolov5s.dir/src/nms.cpp.i: cmake_force 82 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/yolov5s.dir/src/nms.cpp.i" 83 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E "/home/zherlock/c++ example/object detection/src/nms.cpp" > CMakeFiles/yolov5s.dir/src/nms.cpp.i 84 | 85 | CMakeFiles/yolov5s.dir/src/nms.cpp.s: cmake_force 86 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/yolov5s.dir/src/nms.cpp.s" 87 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S "/home/zherlock/c++ example/object detection/src/nms.cpp" -o CMakeFiles/yolov5s.dir/src/nms.cpp.s 88 | 89 | CMakeFiles/yolov5s.dir/src/src.cpp.o: CMakeFiles/yolov5s.dir/flags.make 90 | CMakeFiles/yolov5s.dir/src/src.cpp.o: ../src/src.cpp 91 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir="/home/zherlock/c++ example/object detection/build/CMakeFiles" --progress-num=$(CMAKE_PROGRESS_3) "Building CXX object CMakeFiles/yolov5s.dir/src/src.cpp.o" 92 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/yolov5s.dir/src/src.cpp.o -c "/home/zherlock/c++ example/object detection/src/src.cpp" 93 | 94 | CMakeFiles/yolov5s.dir/src/src.cpp.i: cmake_force 95 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/yolov5s.dir/src/src.cpp.i" 96 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E "/home/zherlock/c++ example/object detection/src/src.cpp" > CMakeFiles/yolov5s.dir/src/src.cpp.i 97 | 98 | CMakeFiles/yolov5s.dir/src/src.cpp.s: cmake_force 99 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/yolov5s.dir/src/src.cpp.s" 100 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S "/home/zherlock/c++ example/object detection/src/src.cpp" -o CMakeFiles/yolov5s.dir/src/src.cpp.s 101 | 102 | CMakeFiles/yolov5s.dir/src/yolo.cpp.o: CMakeFiles/yolov5s.dir/flags.make 103 | CMakeFiles/yolov5s.dir/src/yolo.cpp.o: ../src/yolo.cpp 104 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir="/home/zherlock/c++ example/object detection/build/CMakeFiles" --progress-num=$(CMAKE_PROGRESS_4) "Building CXX object CMakeFiles/yolov5s.dir/src/yolo.cpp.o" 105 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/yolov5s.dir/src/yolo.cpp.o -c "/home/zherlock/c++ example/object detection/src/yolo.cpp" 106 | 107 | CMakeFiles/yolov5s.dir/src/yolo.cpp.i: cmake_force 108 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/yolov5s.dir/src/yolo.cpp.i" 109 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E "/home/zherlock/c++ example/object detection/src/yolo.cpp" > CMakeFiles/yolov5s.dir/src/yolo.cpp.i 110 | 111 | CMakeFiles/yolov5s.dir/src/yolo.cpp.s: cmake_force 112 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/yolov5s.dir/src/yolo.cpp.s" 113 | /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S "/home/zherlock/c++ example/object detection/src/yolo.cpp" -o CMakeFiles/yolov5s.dir/src/yolo.cpp.s 114 | 115 | # Object files for target yolov5s 116 | yolov5s_OBJECTS = \ 117 | "CMakeFiles/yolov5s.dir/src/main.cpp.o" \ 118 | "CMakeFiles/yolov5s.dir/src/nms.cpp.o" \ 119 | "CMakeFiles/yolov5s.dir/src/src.cpp.o" \ 120 | "CMakeFiles/yolov5s.dir/src/yolo.cpp.o" 121 | 122 | # External object files for target yolov5s 123 | yolov5s_EXTERNAL_OBJECTS = 124 | 125 | ../bin/yolov5s: CMakeFiles/yolov5s.dir/src/main.cpp.o 126 | ../bin/yolov5s: CMakeFiles/yolov5s.dir/src/nms.cpp.o 127 | ../bin/yolov5s: CMakeFiles/yolov5s.dir/src/src.cpp.o 128 | ../bin/yolov5s: CMakeFiles/yolov5s.dir/src/yolo.cpp.o 129 | ../bin/yolov5s: CMakeFiles/yolov5s.dir/build.make 130 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_videostab.so.2.4.9 131 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_ts.a 132 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_superres.so.2.4.9 133 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_stitching.so.2.4.9 134 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_contrib.so.2.4.9 135 | ../bin/yolov5s: /home/zherlock/SLAM/libtorch/libtorch-abi/lib/libtorch.so 136 | ../bin/yolov5s: /home/zherlock/SLAM/libtorch/libtorch-abi/lib/libc10.so 137 | ../bin/yolov5s: /home/zherlock/torchvision-abi/lib/libtorchvision.so 138 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_nonfree.so.2.4.9 139 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_ocl.so.2.4.9 140 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_gpu.so.2.4.9 141 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_photo.so.2.4.9 142 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_objdetect.so.2.4.9 143 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_legacy.so.2.4.9 144 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_video.so.2.4.9 145 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_ml.so.2.4.9 146 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_calib3d.so.2.4.9 147 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_features2d.so.2.4.9 148 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_highgui.so.2.4.9 149 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_imgproc.so.2.4.9 150 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_flann.so.2.4.9 151 | ../bin/yolov5s: /home/zherlock/opencv-2.4.9/build/lib/libopencv_core.so.2.4.9 152 | ../bin/yolov5s: /home/zherlock/SLAM/libtorch/libtorch-abi/lib/libc10.so 153 | ../bin/yolov5s: CMakeFiles/yolov5s.dir/link.txt 154 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir="/home/zherlock/c++ example/object detection/build/CMakeFiles" --progress-num=$(CMAKE_PROGRESS_5) "Linking CXX executable ../bin/yolov5s" 155 | $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/yolov5s.dir/link.txt --verbose=$(VERBOSE) 156 | 157 | # Rule to build all files generated by this target. 158 | CMakeFiles/yolov5s.dir/build: ../bin/yolov5s 159 | 160 | .PHONY : CMakeFiles/yolov5s.dir/build 161 | 162 | CMakeFiles/yolov5s.dir/clean: 163 | $(CMAKE_COMMAND) -P CMakeFiles/yolov5s.dir/cmake_clean.cmake 164 | .PHONY : CMakeFiles/yolov5s.dir/clean 165 | 166 | CMakeFiles/yolov5s.dir/depend: 167 | cd "/home/zherlock/c++ example/object detection/build" && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" "/home/zherlock/c++ example/object detection" "/home/zherlock/c++ example/object detection" "/home/zherlock/c++ example/object detection/build" "/home/zherlock/c++ example/object detection/build" "/home/zherlock/c++ example/object detection/build/CMakeFiles/yolov5s.dir/DependInfo.cmake" --color=$(COLOR) 168 | .PHONY : CMakeFiles/yolov5s.dir/depend 169 | 170 | -------------------------------------------------------------------------------- /build/CMakeFiles/yolov5s.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "../bin/yolov5s" 3 | "../bin/yolov5s.pdb" 4 | "CMakeFiles/yolov5s.dir/src/main.cpp.o" 5 | "CMakeFiles/yolov5s.dir/src/nms.cpp.o" 6 | "CMakeFiles/yolov5s.dir/src/src.cpp.o" 7 | "CMakeFiles/yolov5s.dir/src/yolo.cpp.o" 8 | ) 9 | 10 | # Per-language clean rules from dependency scanning. 11 | foreach(lang CXX) 12 | include(CMakeFiles/yolov5s.dir/cmake_clean_${lang}.cmake OPTIONAL) 13 | endforeach() 14 | -------------------------------------------------------------------------------- /build/CMakeFiles/yolov5s.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.16 3 | 4 | # compile CXX with /usr/bin/c++ 5 | CXX_FLAGS = -O3 -DNDEBUG -std=c++14 -D_GLIBCXX_USE_CXX11_ABI=1 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-write-strings -Wno-unknown-pragmas -Wno-missing-braces -fopenmp 6 | 7 | CXX_DEFINES = -DAT_PARALLEL_OPENMP=1 8 | 9 | CXX_INCLUDES = -I/home/zherlock/torchvision-abi/include -I/home/zherlock/torchvision-abi/include/torchvision -I/home/zherlock/anaconda3/envs/detectron2/include/python3.7m -I"/home/zherlock/c++ example/object detection/include" -I/home/zherlock/opencv-2.4.9/build -I/home/zherlock/opencv-2.4.9/include -I/home/zherlock/opencv-2.4.9/include/opencv -I/home/zherlock/opencv-2.4.9/modules/core/include -I/home/zherlock/opencv-2.4.9/modules/flann/include -I/home/zherlock/opencv-2.4.9/modules/imgproc/include -I/home/zherlock/opencv-2.4.9/modules/highgui/include -I/home/zherlock/opencv-2.4.9/modules/features2d/include -I/home/zherlock/opencv-2.4.9/modules/calib3d/include -I/home/zherlock/opencv-2.4.9/modules/ml/include -I/home/zherlock/opencv-2.4.9/modules/video/include -I/home/zherlock/opencv-2.4.9/modules/legacy/include -I/home/zherlock/opencv-2.4.9/modules/objdetect/include -I/home/zherlock/opencv-2.4.9/modules/photo/include -I/home/zherlock/opencv-2.4.9/modules/gpu/include -I/home/zherlock/opencv-2.4.9/modules/ocl/include -I/home/zherlock/opencv-2.4.9/modules/nonfree/include -I/home/zherlock/opencv-2.4.9/modules/contrib/include -I/home/zherlock/opencv-2.4.9/modules/stitching/include -I/home/zherlock/opencv-2.4.9/modules/superres/include -I/home/zherlock/opencv-2.4.9/modules/ts/include -I/home/zherlock/opencv-2.4.9/modules/videostab/include -isystem /home/zherlock/SLAM/libtorch/libtorch-abi/include/torch/csrc/api/include -isystem /home/zherlock/SLAM/libtorch/libtorch-abi/include 10 | 11 | -------------------------------------------------------------------------------- /build/CMakeFiles/yolov5s.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/c++ -O3 -DNDEBUG -rdynamic CMakeFiles/yolov5s.dir/src/main.cpp.o CMakeFiles/yolov5s.dir/src/nms.cpp.o CMakeFiles/yolov5s.dir/src/src.cpp.o CMakeFiles/yolov5s.dir/src/yolo.cpp.o -o ../bin/yolov5s -Wl,-rpath,/home/zherlock/opencv-2.4.9/build/lib:/home/zherlock/SLAM/libtorch/libtorch-abi/lib:/home/zherlock/torchvision-abi/lib /home/zherlock/opencv-2.4.9/build/lib/libopencv_videostab.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_ts.a /home/zherlock/opencv-2.4.9/build/lib/libopencv_superres.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_stitching.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_contrib.so.2.4.9 /home/zherlock/SLAM/libtorch/libtorch-abi/lib/libtorch.so /home/zherlock/SLAM/libtorch/libtorch-abi/lib/libc10.so /home/zherlock/torchvision-abi/lib/libtorchvision.so -ldl -lm -lpthread -lrt /home/zherlock/opencv-2.4.9/build/lib/libopencv_nonfree.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_ocl.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_gpu.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_photo.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_objdetect.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_legacy.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_video.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_ml.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_calib3d.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_features2d.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_highgui.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_imgproc.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_flann.so.2.4.9 /home/zherlock/opencv-2.4.9/build/lib/libopencv_core.so.2.4.9 -Wl,--no-as-needed,/home/zherlock/SLAM/libtorch/libtorch-abi/lib/libtorch_cpu.so -Wl,--as-needed /home/zherlock/SLAM/libtorch/libtorch-abi/lib/libc10.so -lpthread -Wl,--no-as-needed,/home/zherlock/SLAM/libtorch/libtorch-abi/lib/libtorch.so -Wl,--as-needed 2 | -------------------------------------------------------------------------------- /build/CMakeFiles/yolov5s.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | CMAKE_PROGRESS_4 = 4 5 | CMAKE_PROGRESS_5 = 5 6 | 7 | -------------------------------------------------------------------------------- /build/CMakeFiles/yolov5s.dir/src/main.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zherlock030/YOLOv5_Torchscript/5f2e5e026a76df65f89f7e5bf037c7e81206658f/build/CMakeFiles/yolov5s.dir/src/main.cpp.o -------------------------------------------------------------------------------- /build/CMakeFiles/yolov5s.dir/src/nms.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zherlock030/YOLOv5_Torchscript/5f2e5e026a76df65f89f7e5bf037c7e81206658f/build/CMakeFiles/yolov5s.dir/src/nms.cpp.o -------------------------------------------------------------------------------- /build/CMakeFiles/yolov5s.dir/src/src.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zherlock030/YOLOv5_Torchscript/5f2e5e026a76df65f89f7e5bf037c7e81206658f/build/CMakeFiles/yolov5s.dir/src/src.cpp.o -------------------------------------------------------------------------------- /build/CMakeFiles/yolov5s.dir/src/yolo.cpp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zherlock030/YOLOv5_Torchscript/5f2e5e026a76df65f89f7e5bf037c7e81206658f/build/CMakeFiles/yolov5s.dir/src/yolo.cpp.o -------------------------------------------------------------------------------- /build/Makefile: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.16 3 | 4 | # Default target executed when no arguments are given to make. 5 | default_target: all 6 | 7 | .PHONY : default_target 8 | 9 | # Allow only one "make -f Makefile2" at a time, but pass parallelism. 10 | .NOTPARALLEL: 11 | 12 | 13 | #============================================================================= 14 | # Special targets provided by cmake. 15 | 16 | # Disable implicit rules so canonical targets will work. 17 | .SUFFIXES: 18 | 19 | 20 | # Remove some rules from gmake that .SUFFIXES does not remove. 21 | SUFFIXES = 22 | 23 | .SUFFIXES: .hpux_make_needs_suffix_list 24 | 25 | 26 | # Command-line flag to silence nested $(MAKE). 27 | $(VERBOSE)MAKESILENT = -s 28 | 29 | # Suppress display of executed commands. 30 | $(VERBOSE).SILENT: 31 | 32 | 33 | # A target that is always out of date. 34 | cmake_force: 35 | 36 | .PHONY : cmake_force 37 | 38 | #============================================================================= 39 | # Set environment variables for the build. 40 | 41 | # The shell in which to execute make rules. 42 | SHELL = /bin/sh 43 | 44 | # The CMake executable. 45 | CMAKE_COMMAND = /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake 46 | 47 | # The command to remove a file. 48 | RM = /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake -E remove -f 49 | 50 | # Escaping for special characters. 51 | EQUALS = = 52 | 53 | # The top-level source directory on which CMake was run. 54 | CMAKE_SOURCE_DIR = "/home/zherlock/c++ example/object detection" 55 | 56 | # The top-level build directory on which CMake was run. 57 | CMAKE_BINARY_DIR = "/home/zherlock/c++ example/object detection/build" 58 | 59 | #============================================================================= 60 | # Targets provided globally by CMake. 61 | 62 | # Special rule for the target rebuild_cache 63 | rebuild_cache: 64 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." 65 | /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/cmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) 66 | .PHONY : rebuild_cache 67 | 68 | # Special rule for the target rebuild_cache 69 | rebuild_cache/fast: rebuild_cache 70 | 71 | .PHONY : rebuild_cache/fast 72 | 73 | # Special rule for the target edit_cache 74 | edit_cache: 75 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." 76 | /home/zherlock/cmake-3.16.6-Linux-x86_64/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) 77 | .PHONY : edit_cache 78 | 79 | # Special rule for the target edit_cache 80 | edit_cache/fast: edit_cache 81 | 82 | .PHONY : edit_cache/fast 83 | 84 | # The main all target 85 | all: cmake_check_build_system 86 | $(CMAKE_COMMAND) -E cmake_progress_start "/home/zherlock/c++ example/object detection/build/CMakeFiles" "/home/zherlock/c++ example/object detection/build/CMakeFiles/progress.marks" 87 | $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 all 88 | $(CMAKE_COMMAND) -E cmake_progress_start "/home/zherlock/c++ example/object detection/build/CMakeFiles" 0 89 | .PHONY : all 90 | 91 | # The main clean target 92 | clean: 93 | $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean 94 | .PHONY : clean 95 | 96 | # The main clean target 97 | clean/fast: clean 98 | 99 | .PHONY : clean/fast 100 | 101 | # Prepare targets for installation. 102 | preinstall: all 103 | $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall 104 | .PHONY : preinstall 105 | 106 | # Prepare targets for installation. 107 | preinstall/fast: 108 | $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall 109 | .PHONY : preinstall/fast 110 | 111 | # clear depends 112 | depend: 113 | $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 114 | .PHONY : depend 115 | 116 | #============================================================================= 117 | # Target rules for targets named yolov5s 118 | 119 | # Build rule for target. 120 | yolov5s: cmake_check_build_system 121 | $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 yolov5s 122 | .PHONY : yolov5s 123 | 124 | # fast build rule for target. 125 | yolov5s/fast: 126 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/build 127 | .PHONY : yolov5s/fast 128 | 129 | src/main.o: src/main.cpp.o 130 | 131 | .PHONY : src/main.o 132 | 133 | # target to build an object file 134 | src/main.cpp.o: 135 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/src/main.cpp.o 136 | .PHONY : src/main.cpp.o 137 | 138 | src/main.i: src/main.cpp.i 139 | 140 | .PHONY : src/main.i 141 | 142 | # target to preprocess a source file 143 | src/main.cpp.i: 144 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/src/main.cpp.i 145 | .PHONY : src/main.cpp.i 146 | 147 | src/main.s: src/main.cpp.s 148 | 149 | .PHONY : src/main.s 150 | 151 | # target to generate assembly for a file 152 | src/main.cpp.s: 153 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/src/main.cpp.s 154 | .PHONY : src/main.cpp.s 155 | 156 | src/nms.o: src/nms.cpp.o 157 | 158 | .PHONY : src/nms.o 159 | 160 | # target to build an object file 161 | src/nms.cpp.o: 162 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/src/nms.cpp.o 163 | .PHONY : src/nms.cpp.o 164 | 165 | src/nms.i: src/nms.cpp.i 166 | 167 | .PHONY : src/nms.i 168 | 169 | # target to preprocess a source file 170 | src/nms.cpp.i: 171 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/src/nms.cpp.i 172 | .PHONY : src/nms.cpp.i 173 | 174 | src/nms.s: src/nms.cpp.s 175 | 176 | .PHONY : src/nms.s 177 | 178 | # target to generate assembly for a file 179 | src/nms.cpp.s: 180 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/src/nms.cpp.s 181 | .PHONY : src/nms.cpp.s 182 | 183 | src/src.o: src/src.cpp.o 184 | 185 | .PHONY : src/src.o 186 | 187 | # target to build an object file 188 | src/src.cpp.o: 189 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/src/src.cpp.o 190 | .PHONY : src/src.cpp.o 191 | 192 | src/src.i: src/src.cpp.i 193 | 194 | .PHONY : src/src.i 195 | 196 | # target to preprocess a source file 197 | src/src.cpp.i: 198 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/src/src.cpp.i 199 | .PHONY : src/src.cpp.i 200 | 201 | src/src.s: src/src.cpp.s 202 | 203 | .PHONY : src/src.s 204 | 205 | # target to generate assembly for a file 206 | src/src.cpp.s: 207 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/src/src.cpp.s 208 | .PHONY : src/src.cpp.s 209 | 210 | src/yolo.o: src/yolo.cpp.o 211 | 212 | .PHONY : src/yolo.o 213 | 214 | # target to build an object file 215 | src/yolo.cpp.o: 216 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/src/yolo.cpp.o 217 | .PHONY : src/yolo.cpp.o 218 | 219 | src/yolo.i: src/yolo.cpp.i 220 | 221 | .PHONY : src/yolo.i 222 | 223 | # target to preprocess a source file 224 | src/yolo.cpp.i: 225 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/src/yolo.cpp.i 226 | .PHONY : src/yolo.cpp.i 227 | 228 | src/yolo.s: src/yolo.cpp.s 229 | 230 | .PHONY : src/yolo.s 231 | 232 | # target to generate assembly for a file 233 | src/yolo.cpp.s: 234 | $(MAKE) $(MAKESILENT) -f CMakeFiles/yolov5s.dir/build.make CMakeFiles/yolov5s.dir/src/yolo.cpp.s 235 | .PHONY : src/yolo.cpp.s 236 | 237 | # Help Target 238 | help: 239 | @echo "The following are some of the valid targets for this Makefile:" 240 | @echo "... all (the default if no target is provided)" 241 | @echo "... clean" 242 | @echo "... depend" 243 | @echo "... rebuild_cache" 244 | @echo "... edit_cache" 245 | @echo "... yolov5s" 246 | @echo "... src/main.o" 247 | @echo "... src/main.i" 248 | @echo "... src/main.s" 249 | @echo "... src/nms.o" 250 | @echo "... src/nms.i" 251 | @echo "... src/nms.s" 252 | @echo "... src/src.o" 253 | @echo "... src/src.i" 254 | @echo "... src/src.s" 255 | @echo "... src/yolo.o" 256 | @echo "... src/yolo.i" 257 | @echo "... src/yolo.s" 258 | .PHONY : help 259 | 260 | 261 | 262 | #============================================================================= 263 | # Special targets to cleanup operation of make. 264 | 265 | # Special rule to run CMake to check the build system integrity. 266 | # No rule that depends on this can have commands that come from listfiles 267 | # because they might be regenerated. 268 | cmake_check_build_system: 269 | $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 270 | .PHONY : cmake_check_build_system 271 | 272 | -------------------------------------------------------------------------------- /build/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /home/zherlock/c++ example/object detection 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Release") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Install shared libraries without execute permission? 31 | if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) 32 | set(CMAKE_INSTALL_SO_NO_EXE "1") 33 | endif() 34 | 35 | # Is this installation the result of a crosscompile? 36 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 37 | set(CMAKE_CROSSCOMPILING "FALSE") 38 | endif() 39 | 40 | if(CMAKE_INSTALL_COMPONENT) 41 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 42 | else() 43 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 44 | endif() 45 | 46 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 47 | "${CMAKE_INSTALL_MANIFEST_FILES}") 48 | file(WRITE "/home/zherlock/c++ example/object detection/build/${CMAKE_INSTALL_MANIFEST}" 49 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 50 | -------------------------------------------------------------------------------- /files/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zherlock030/YOLOv5_Torchscript/5f2e5e026a76df65f89f7e5bf037c7e81206658f/files/1.png -------------------------------------------------------------------------------- /files/anchor_grid.txt: -------------------------------------------------------------------------------- 1 | 0,0,0,0,0,0,10 2 | 0,0,0,0,0,1,13 3 | 0,0,1,0,0,0,16 4 | 0,0,1,0,0,1,30 5 | 0,0,2,0,0,0,33 6 | 0,0,2,0,0,1,23 7 | 1,0,0,0,0,0,30 8 | 1,0,0,0,0,1,61 9 | 1,0,1,0,0,0,62 10 | 1,0,1,0,0,1,45 11 | 1,0,2,0,0,0,59 12 | 1,0,2,0,0,1,119 13 | 2,0,0,0,0,0,116 14 | 2,0,0,0,0,1,90 15 | 2,0,1,0,0,0,156 16 | 2,0,1,0,0,1,198 17 | 2,0,2,0,0,0,373 18 | 2,0,2,0,0,1,326 19 | -------------------------------------------------------------------------------- /files/go.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zherlock030/YOLOv5_Torchscript/5f2e5e026a76df65f89f7e5bf037c7e81206658f/files/go.png -------------------------------------------------------------------------------- /files/labels.txt: -------------------------------------------------------------------------------- 1 | person 2 | bicycle 3 | car 4 | motorcycle 5 | airplane 6 | bus 7 | train 8 | truck 9 | boat 10 | traffic light 11 | fire hydrant 12 | stop sign 13 | parking meter 14 | bench 15 | bird 16 | cat 17 | dog 18 | horse 19 | sheep 20 | cow 21 | elephant 22 | bear 23 | zebra 24 | giraffe 25 | backpack 26 | umbrella 27 | handbag 28 | tie 29 | suitcase 30 | frisbee 31 | skis 32 | snowboard 33 | sports ball 34 | kite 35 | baseball bat 36 | baseball glove 37 | skateboard 38 | surfboard 39 | tennis racket 40 | bottle 41 | wine glass 42 | cup 43 | fork 44 | knife 45 | spoon 46 | bowl 47 | banana 48 | apple 49 | sandwich 50 | orange 51 | broccoli 52 | carrot 53 | hot dog 54 | pizza 55 | donut 56 | cake 57 | chair 58 | couch 59 | potted plant 60 | bed 61 | dining table 62 | toilet 63 | tv 64 | laptop 65 | mouse 66 | remote 67 | keyboard 68 | cell phone 69 | microwave 70 | oven 71 | toaster 72 | sink 73 | refrigerator 74 | book 75 | clock 76 | vase 77 | scissors 78 | teddy bear 79 | hair drier 80 | toothbrush -------------------------------------------------------------------------------- /files/test-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zherlock030/YOLOv5_Torchscript/5f2e5e026a76df65f89f7e5bf037c7e81206658f/files/test-1.png -------------------------------------------------------------------------------- /files/test-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zherlock030/YOLOv5_Torchscript/5f2e5e026a76df65f89f7e5bf037c7e81206658f/files/test-8.png -------------------------------------------------------------------------------- /files/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zherlock030/YOLOv5_Torchscript/5f2e5e026a76df65f89f7e5bf037c7e81206658f/files/test.png -------------------------------------------------------------------------------- /files/yolov5s.torchscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zherlock030/YOLOv5_Torchscript/5f2e5e026a76df65f89f7e5bf037c7e81206658f/files/yolov5s.torchscript -------------------------------------------------------------------------------- /include/nms.h: -------------------------------------------------------------------------------- 1 | //#pragma once 2 | #ifndef NMS_H 3 | #define NMS_H 4 | 5 | #include "cpu/vision_cpu.h" 6 | 7 | #ifdef WITH_CUDA 8 | #include "cuda/vision_cuda.h" 9 | #endif 10 | #ifdef WITH_HIP 11 | #include "hip/vision_cuda.h" 12 | #endif 13 | 14 | at::Tensor nms( 15 | const at::Tensor& dets, 16 | const at::Tensor& scores, 17 | const double iou_threshold) { 18 | if (dets.is_cuda()) { 19 | #if defined(WITH_CUDA) 20 | if (dets.numel() == 0) { 21 | at::cuda::CUDAGuard device_guard(dets.device()); 22 | return at::empty({0}, dets.options().dtype(at::kLong)); 23 | } 24 | return nms_cuda(dets, scores, iou_threshold); 25 | #elif defined(WITH_HIP) 26 | if (dets.numel() == 0) { 27 | at::cuda::HIPGuard device_guard(dets.device()); 28 | return at::empty({0}, dets.options().dtype(at::kLong)); 29 | } 30 | return nms_cuda(dets, scores, iou_threshold); 31 | #else 32 | AT_ERROR("Not compiled with GPU support"); 33 | #endif 34 | } 35 | 36 | at::Tensor result = nms_cpu(dets, scores, iou_threshold); 37 | return result; 38 | } 39 | #endif //IFNDEF 40 | -------------------------------------------------------------------------------- /include/yolo.h: -------------------------------------------------------------------------------- 1 | #ifndef YOLO_H 2 | #define YOLO_H 3 | 4 | #include 5 | #include 6 | #include "torchvision/vision.h" 7 | #include "torch/torch.h" 8 | #include "torchvision/nms.h" 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include "sys/time.h" 16 | #include 17 | #include 18 | #include 19 | 20 | class YOLO{ 21 | public: 22 | YOLO(std::string ModelPath); // 23 | at::Tensor box_area(at::Tensor box); // 返回矩形面积 24 | at::Tensor box_iou(at::Tensor box1, at::Tensor box2); // 返回两个矩形iou 25 | at::Tensor xywh2xyxy(at::Tensor x); // 26 | at::Tensor non_max_suppression(at::Tensor pred, std::vector labels, float conf_thres, float iou_thres, 27 | bool merge, bool agnostic); // nms 28 | at::Tensor make_grid(int nx, int ny); // 29 | cv::Mat letterbox(cv::Mat img, int new_height, int new_width, cv::Scalar color, bool autos, bool scaleFill, bool scaleup); //modify img shape 30 | at::Tensor clip_coords(at::Tensor boxes, auto img_shape); // 31 | float max_shape(int shape[], int len); // 32 | at::Tensor scale_coords(int img1_shape[], at::Tensor coords, int img0_shape[]); // 33 | void readmat(std::string ImgPath); 34 | void readmat(cv::Mat &mat); 35 | void init_model(std::string ModelPath); 36 | int inference(std::string ImgPath); 37 | int inference(cv::Mat &mat); 38 | int inference(); 39 | void show(); 40 | void preprocess(); 41 | 42 | 43 | protected: 44 | float conf_thres; 45 | float iou_thres; 46 | bool merge; 47 | bool agnostic; 48 | std::string model_path; 49 | std::string img_path; 50 | cv::Mat img; 51 | cv::Mat im0; 52 | //auto tensor_img; 53 | at::Tensor tensor_img; 54 | std::vector inputs; 55 | torch::jit::script::Module model; 56 | long start, end; 57 | at::Tensor anchor_grid; 58 | int ny, nx; 59 | int na = 3;int no = 85;int bs = 1; 60 | at::Tensor grid; 61 | at::Tensor op; 62 | at::Tensor y_0, y_1, y_2, y; 63 | std::vector labels; 64 | }; 65 | 66 | 67 | long time_in_ms(); // 返回当前时间 68 | std::vector split(const std::string& str, const std::string& delim); // 将字符串根据delim分割为vector 69 | #endif 70 | 71 | -------------------------------------------------------------------------------- /src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "yolo.h" 2 | 3 | using namespace std; 4 | using namespace cv; 5 | 6 | int main(){ 7 | string model_path = "/home/zherlock/c++ example/object detection/files/yolov5s.torchscript"; 8 | YOLO detector = YOLO(model_path); 9 | string img_path = "/home/zherlock/c++ example/object detection/files/test.png"; 10 | Mat img = imread(img_path); 11 | //detector.inference(img_path); 12 | detector.inference(img); 13 | 14 | } -------------------------------------------------------------------------------- /src/nms.cpp: -------------------------------------------------------------------------------- 1 | #include "nms.h" 2 | 3 | at::Tensor nms( 4 | const at::Tensor& dets, 5 | const at::Tensor& scores, 6 | const double iou_threshold) { 7 | if (dets.is_cuda()) { 8 | #if defined(WITH_CUDA) 9 | if (dets.numel() == 0) { 10 | at::cuda::CUDAGuard device_guard(dets.device()); 11 | return at::empty({0}, dets.options().dtype(at::kLong)); 12 | } 13 | return nms_cuda(dets, scores, iou_threshold); 14 | #elif defined(WITH_HIP) 15 | if (dets.numel() == 0) { 16 | at::cuda::HIPGuard device_guard(dets.device()); 17 | return at::empty({0}, dets.options().dtype(at::kLong)); 18 | } 19 | return nms_cuda(dets, scores, iou_threshold); 20 | #else 21 | AT_ERROR("Not compiled with GPU support"); 22 | #endif 23 | } 24 | 25 | at::Tensor result = nms_cpu(dets, scores, iou_threshold); 26 | return result; 27 | } 28 | -------------------------------------------------------------------------------- /src/src.cpp: -------------------------------------------------------------------------------- 1 | // //yolov5s的调用 2 | // //删除冗余注释,优化代码, 3 | 4 | // #include 5 | // #include 6 | // #include "torchvision/vision.h" 7 | // #include "torch/torch.h" 8 | // #include "torchvision/nms.h" 9 | // #include 10 | // #include 11 | // #include 12 | // #include 13 | // #include 14 | // #include 15 | // #include "sys/time.h" 16 | // #include 17 | // #include 18 | 19 | // using namespace std; 20 | // using namespace cv; 21 | // using namespace torch::indexing; 22 | 23 | 24 | // vector split(const string& str, const string& delim) { 25 | // vector res; 26 | // if("" == str) return res; 27 | // char * strs = new char[str.length() + 1] ; 28 | // strcpy(strs, str.c_str()); 29 | 30 | // char * d = new char[delim.length() + 1]; 31 | // strcpy(d, delim.c_str()); 32 | 33 | // char *p = strtok(strs, d); 34 | // while(p) { 35 | // string s = p; 36 | // res.push_back(s); 37 | // p = strtok(NULL, d); 38 | // } 39 | // return res; 40 | // } 41 | 42 | // long time_in_ms(){ 43 | // struct timeval t; 44 | // gettimeofday(&t, NULL); 45 | // long time_ms = ((long)t.tv_sec)*1000+(long)t.tv_usec/1000; 46 | // return time_ms; 47 | // } 48 | 49 | // at::Tensor box_area(at::Tensor box) 50 | // { 51 | // return (box.index({2}) - box.index({0})) * (box.index({3}) - box.index({1})); 52 | // } 53 | 54 | // at::Tensor box_iou(at::Tensor box1, at::Tensor box2) 55 | // { 56 | // at::Tensor area1 = box_area(box1.t()); 57 | // at::Tensor area2 = box_area(box2.t()); 58 | 59 | // at::Tensor inter = ( torch::min( box1.index({Slice(), {None}, Slice(2,None)}), box2.index({Slice(), Slice(2,None)})) 60 | // - torch::max( box1.index({Slice(), {None}, Slice(None,2)}), box2.index({Slice(), Slice(None,2)})) ).clamp(0).prod(2); 61 | // return inter / (area1.index({Slice(), {None}}) + area2 - inter); 62 | 63 | // } 64 | 65 | // //Convert nx4 boxes from [x, y, w, h] to [x1, y1, x2, y2] where xy1=top-left, xy2=bottom-right 66 | // at::Tensor xywh2xyxy(at::Tensor x) 67 | // { 68 | // at::Tensor y = torch::zeros_like(x); 69 | // y.index({Slice(), 0}) = x.index({Slice(), 0}) - x.index({Slice(), 2}) / 2; // # top left x 70 | // y.index({Slice(), 1}) = x.index({Slice(), 1}) - x.index({Slice(), 3}) / 2; 71 | // y.index({Slice(), 2}) = x.index({Slice(), 0}) + x.index({Slice(), 2}) / 2; 72 | // y.index({Slice(), 3}) = x.index({Slice(), 1}) + x.index({Slice(), 3}) / 2; 73 | 74 | // return y; 75 | // } 76 | 77 | 78 | 79 | // at::Tensor non_max_suppression(at::Tensor pred, std::vector labels, float conf_thres = 0.1, float iou_thres = 0.6, 80 | // bool merge=false, bool agnostic=false) 81 | // { 82 | // int nc = pred.sizes()[1] - 5; 83 | // at::Tensor xc = pred.index({Slice(None), 4}) > conf_thres; // # candidates, 84 | // //cout << "line 85, " << xc.sizes() << endl; 85 | 86 | // int min_wh = 2; 87 | // int max_wh = 4096; 88 | // int max_det = 300; 89 | // float time_limit = 10.0; 90 | // bool redundant = true; //require redundant detections 91 | // bool multi_label = true; 92 | // at::Tensor output; 93 | 94 | // at::Tensor x; 95 | // x = pred.index({xc}); 96 | 97 | // try{ 98 | // at::Tensor temp = x.index({0}); 99 | // }catch(...){ 100 | // cout << "no objects, line 138 " << endl; 101 | // at::Tensor temp; 102 | // return temp; 103 | // } 104 | 105 | // x.index({Slice(),Slice(5,None)}) *= x.index({Slice(), Slice(4,5)}); 106 | // //cout << "line 106, " << x.sizes() << endl; 107 | // //cout << "line 106, " << x.index({10,0}) << endl; 108 | 109 | // at::Tensor box = xywh2xyxy(x.index({Slice(), Slice(None,4)})); 110 | // if(true){ //here mulit label in python code 111 | // //i, j = (x[:, 5:] > conf_thres).nonzero().t() 112 | // auto temp = (x.index({Slice(), Slice(5,None)}) > conf_thres).nonzero().t(); 113 | // at::Tensor i = temp[0]; 114 | // at::Tensor j = temp[1]; 115 | // x = torch::cat({ box.index({i}), x.index({i,j+5,{None}}), j.index({Slice(),{None}}).toType(torch::kFloat) }, 1); 116 | // } 117 | 118 | // try{ 119 | // at::Tensor temp = x.index({0}); 120 | // }catch(...){ 121 | // cout << "no objects, line 187 " << endl; 122 | // at::Tensor temp; 123 | // return temp; 124 | // } 125 | 126 | // int n = x.sizes()[0]; 127 | // at::Tensor c = x.index({Slice(), Slice(5,6)}) * max_wh; 128 | // at::Tensor boxes = x.index({Slice(), Slice(None, 4)}) + c; 129 | // at::Tensor scores = x.index({Slice(),4}); 130 | 131 | // //cout << "line 128 boxes are " << boxes.sizes() << endl; 132 | // //cout << "line 128 boxes are " << boxes << endl; 133 | 134 | // at::Tensor i = nms(boxes, scores, iou_thres); 135 | // //cout << "line 128 nmsi are " << i.sizes() << endl; 136 | // //cout << "line 128 nmsi are " << i << endl; 137 | 138 | // if(i.sizes()[0] > max_det){ 139 | // i = i.index({Slice(0,max_det)}); 140 | // } 141 | 142 | // if(merge){ 143 | // if( n > 1 && n < 3000){ 144 | // //cout << "here weeeeeeeeeeeeeeeeeeeeee merge" << endl; 145 | // at::Tensor iou = box_iou(boxes.index({i}), boxes) > iou_thres; 146 | // at::Tensor weights = iou * scores.index({ {None} }); 147 | // at::Tensor temp1 = torch::mm(weights, x.index({Slice(), Slice(None, 4)})).toType(torch::kFloat); 148 | // at::Tensor temp2 = weights.sum(1, true); 149 | // at::Tensor tempres = temp1 / temp2; 150 | // x.index_put_({i, Slice(None, 4)}, tempres); 151 | // if(redundant){ 152 | // i = i.index({iou.sum(1) > 1}); 153 | // } 154 | // } 155 | // } 156 | // output = x.index({i}); 157 | // //cout << "line 153 output is " << output << endl; 158 | // return output; 159 | // } 160 | 161 | 162 | // cv::Mat letterbox(Mat img, int new_height = 640, int new_width = 640, Scalar color = (114,114,114), bool autos = true, bool scaleFill=false, bool scaleup=true){ 163 | // int width = img.cols; 164 | // int height = img.rows; 165 | // float rh = float(new_height) / height; 166 | // float rw = float(new_width) / width; 167 | // float ratio; 168 | // if(rw < rh){ 169 | // ratio = rw;} 170 | // else{ 171 | // ratio = rh;} 172 | // if (!scaleup){ 173 | // if(ratio >= 1.0){ 174 | // ratio = 1.0; 175 | // } 176 | // } 177 | // int new_unpad_h = int(round(height * ratio)); 178 | // int new_unpad_w = int(round(width * ratio)); 179 | // int dh = new_height - new_unpad_h; 180 | // int dw = new_width - new_unpad_w; 181 | 182 | // if(autos){ 183 | // dw = dw % 64; 184 | // dh = dh % 64; 185 | // } 186 | 187 | // dw /= 2; 188 | // dh /= 2;//默认被二整除吧 189 | // if( height != new_height or width != new_width){ 190 | // resize(img, img, Size(new_unpad_w, new_unpad_h), 0, 0, cv::INTER_LINEAR); 191 | // } 192 | // int top = int(round(dh - 0.1)); 193 | // int bottom = int(round(dh + 0.1)); 194 | // int left = int(round(dw - 0.1)); 195 | // int right = int(round(dw + 0.1)); 196 | 197 | // cv::copyMakeBorder(img, img, top, bottom, left, right, cv::BORDER_CONSTANT, Scalar(114,114,114)); 198 | 199 | // return img; 200 | // } 201 | 202 | 203 | // at::Tensor make_grid(int nx = 20, int ny = 20){ 204 | // std::vector temp = torch::meshgrid({torch::arange(ny), torch::arange(nx)}); 205 | // at::Tensor yv = temp[0]; 206 | // at::Tensor xv = temp[1]; 207 | // at::Tensor retu = torch::stack({xv, yv},2).view({1,1,ny,nx,2}).toType(torch::kFloat); 208 | // return retu; 209 | // } 210 | 211 | // at::Tensor clip_coords(at::Tensor boxes, auto img_shape){ 212 | // boxes.index({Slice(), 0}).clamp_(0, img_shape[1]); 213 | // boxes.index({Slice(), 1}).clamp_(0, img_shape[0]); 214 | // boxes.index({Slice(), 2}).clamp_(0, img_shape[1]); 215 | // boxes.index({Slice(), 3}).clamp_(0, img_shape[0]); 216 | // return boxes; 217 | // } 218 | 219 | // float max_shape(int shape[], int len){ 220 | // float max = -10000; 221 | // for(int i = 0; i < len; i++){ 222 | // if (shape[i] > max){ 223 | // max = shape[i]; 224 | // } 225 | // } 226 | // return max; 227 | // } 228 | 229 | 230 | // at::Tensor scale_coords(int img1_shape[], at::Tensor coords, int img0_shape[]){ 231 | // float gain = max_shape(img1_shape, 2) / max_shape(img0_shape, 3); 232 | // float padw = (img1_shape[1] - img0_shape[1] * gain ) / 2.0; 233 | // float padh = (img1_shape[0] - img0_shape[0] * gain ) / 2.0; 234 | 235 | // coords.index_put_({Slice(), 0}, coords.index({Slice(), 0}) - padw); 236 | // coords.index_put_({Slice(), 2}, coords.index({Slice(), 2}) - padw); 237 | // coords.index_put_({Slice(), 1}, coords.index({Slice(), 1}) - padh); 238 | // coords.index_put_({Slice(), 3}, coords.index({Slice(), 3}) - padh); 239 | // coords.index_put_({Slice(), Slice(None, 4)}, coords.index({Slice(), Slice(None, 4)}) / gain); 240 | // clip_coords(coords, img0_shape); 241 | // return coords; 242 | // } 243 | 244 | // int main(int argc,char * argv[]){ 245 | 246 | // string modelpath = "/home/zherlock/c++ example/object detection/files/yolov5s.torchscript"; 247 | // long start = time_in_ms(); 248 | // torch::jit::script::Module model = torch::jit::load(modelpath); 249 | // cout << "it took " << time_in_ms() - start << " ms to load the model" << endl; 250 | // torch::jit::getProfilingMode() = false; 251 | // torch::jit::getExecutorMode() = false; 252 | // torch::jit::setGraphExecutorOptimize(false); 253 | 254 | 255 | // string img_path = "/home/zherlock/c++ example/object detection/files/test.png"; 256 | // //string img_path = "/home/zherlock/InstanceDetection/yolov5_old/test.png"; 257 | // Mat img = imread(img_path); 258 | // Mat im0 = imread(img_path); 259 | // auto tim0 = torch::from_blob(img.data, {img.rows, img.cols, img.channels()}); 260 | // img = letterbox(img);//zh,,resize 261 | // cvtColor(img, img, CV_BGR2RGB);//***zh, bgr->rgb 262 | // start = time_in_ms(); 263 | // img.convertTo(img, CV_32FC3, 1.0f / 255.0f);//zh, 1/255 264 | // auto tensor_img = torch::from_blob(img.data, {img.rows, img.cols, img.channels()}); 265 | // tensor_img = tensor_img.permute({2, 0, 1}); 266 | // tensor_img = tensor_img.unsqueeze(0); 267 | // std::vector inputs; 268 | // inputs.push_back(tensor_img); 269 | // cout << "it took " << time_in_ms() - start << " ms to preprocess image" << endl; 270 | // start = time_in_ms(); 271 | // torch::jit::IValue output = model.forward(inputs); 272 | // cout << "it took " << time_in_ms() - start << " ms to model forward" << endl; 273 | 274 | 275 | // //Detect layer 276 | // //set parameters 277 | // int ny, nx; 278 | // int na = 3;int no = 85;int bs = 1; 279 | // at::Tensor op; 280 | // at::Tensor y_0, y_1, y_2, y; 281 | // at::Tensor grid_1, grid_2, grid_3, grid; 282 | // float stride[3] = {8.0, 16.0, 32.0}; 283 | // at::Tensor anchor_grid = torch::ones({3, 1, 3, 1, 1, 2}); 284 | 285 | 286 | // //read anchor_grid 287 | // ifstream f; 288 | // string gridpath = "/home/zherlock/c++ example/object detection/files/anchor_grid.txt"; 289 | // f.open(gridpath); 290 | // string str; 291 | // while (std::getline(f,str)){ 292 | // vector mp = split(str,","); 293 | // anchor_grid.index_put_({stoi(mp[0]),stoi(mp[1]),stoi(mp[2]),stoi(mp[3]),stoi(mp[4]),stoi(mp[5])}, torch::ones({1}) * stof(mp[6]) ); 294 | // } 295 | // f.close(); 296 | 297 | // //run 298 | // for(int i = 0; i < 3; i++){ 299 | // op = output.toList().get(i).toTensor().contiguous(); 300 | // bs = op.sizes()[0]; ny = op.sizes()[2]; nx = op.sizes()[3]; 301 | // op = op.view({bs, na, no, ny, nx}).permute({0, 1, 3, 4, 2}).contiguous(); 302 | // grid = make_grid(nx, ny); 303 | // y = op.sigmoid(); 304 | // at::Tensor test = y.index({Slice(),Slice(), Slice(),Slice(), Slice(0, 2)}) * 2.0 - 0.5; 305 | // test = y.index({Slice(),Slice(), Slice(),Slice(), Slice(0, 2)}) * 2.0 - 0.5 + grid; 306 | // at::Tensor temp = (y.index({Slice(),Slice(), Slice(),Slice(), Slice(0, 2)}) * 2.0 - 0.5 + grid) * stride[i]; 307 | // y.index_put_({Slice(),Slice(), Slice(),Slice(), Slice(0, 2)}, temp); 308 | // temp = (2.0 * y.index({Slice(),Slice(), Slice(),Slice(), Slice(2, 4)})).pow(2) * anchor_grid.index({i}); 309 | // y.index_put_({Slice(),Slice(), Slice(),Slice(), Slice(2, 4)}, temp); 310 | // y = y.view({bs, -1, no}); 311 | // if(i == 0){ 312 | // y_0 = y; 313 | // } 314 | // else if (i == 1){ 315 | // y_1 = y; 316 | // } 317 | // else{ 318 | // y_2 = y; 319 | // } 320 | // } 321 | 322 | // op = torch::cat({y_0, y_1,y_2}, 1); 323 | // op = op.view({-1, op.sizes()[2]}); 324 | // //cout << "line 313 op shape is " << op.sizes() << endl; 325 | // //cout << "op[0,0] is " << op.index({300,0}) << endl; 326 | 327 | // //read label information 328 | // std::vector labels; 329 | // string labelpath = "/home/zherlock/c++ example/object detection/files/labels.txt"; 330 | // f.open(labelpath); 331 | // while (std::getline(f,str)){ 332 | // labels.push_back(str); 333 | // } 334 | // f.close(); 335 | 336 | // start = time_in_ms(); 337 | // float conf = 0.4; 338 | // op = non_max_suppression(op, labels, conf, 0.5, false, false); 339 | // cout << "it took " << time_in_ms() - start << " ms to non_max_suppression" << endl; 340 | // try{ 341 | // at::Tensor temp = op.index({0}); 342 | // }catch(...){ 343 | // cout << "no objects, line 401 " << endl; 344 | // return -1; 345 | // } 346 | 347 | 348 | // int img_shape[2] = {tensor_img.sizes()[2], tensor_img.sizes()[3]}; 349 | // int im0_shape[3] = {im0.rows, im0.cols, im0.channels()}; 350 | // at::Tensor temp; 351 | // temp = scale_coords(img_shape, op.index({Slice(), Slice(None, 4)}), im0_shape).round(); 352 | // op.index_put_({Slice(), Slice(None, 4)}, temp); 353 | 354 | 355 | // for( int i = 0; i < op.sizes()[0]; i++ ){ 356 | 357 | // cout << "start of object " << i+1 << endl; 358 | 359 | // at::Tensor opi = op.index({i}); 360 | 361 | // int op_class = opi.index({5}).item().toInt(); 362 | // cout << " op_class is " << op_class << ", and it's " << labels[op_class] << endl; 363 | 364 | // int x1 = opi.index({0}).item().toInt(); 365 | // int y1 = opi.index({1}).item().toInt(); 366 | 367 | // int x2 = opi.index({2}).item().toInt(); 368 | // int y2 = opi.index({3}).item().toInt(); 369 | 370 | // cout << " the bounding box is x1 = " << x1 << ", and y1 = " << y1 << ", and x2 = " << x2 << ", and y2 = " << y2 << endl; 371 | 372 | // cv::rectangle(im0, Point(x1,y1), Point(x2,y2), Scalar(0,0,255), 2, 8, 0); 373 | // cv::putText(im0,labels[op_class],Point(x1,y1),1,1.0,cv::Scalar(0,255,0),1); 374 | // } 375 | 376 | // imshow("test image", im0); 377 | // waitKey(); 378 | 379 | // return 0; 380 | // } 381 | -------------------------------------------------------------------------------- /src/yolo.cpp: -------------------------------------------------------------------------------- 1 | #include "yolo.h" 2 | 3 | using namespace std; 4 | using namespace cv; 5 | using namespace torch::indexing; 6 | 7 | 8 | vector split(const string& str, const string& delim) { 9 | vector res; 10 | if("" == str) return res; 11 | char * strs = new char[str.length() + 1] ; 12 | strcpy(strs, str.c_str()); 13 | 14 | char * d = new char[delim.length() + 1]; 15 | strcpy(d, delim.c_str()); 16 | 17 | char *p = strtok(strs, d); 18 | while(p) { 19 | string s = p; 20 | res.push_back(s); 21 | p = strtok(NULL, d); 22 | } 23 | return res; 24 | } 25 | 26 | long time_in_ms(){ 27 | struct timeval t; 28 | gettimeofday(&t, NULL); 29 | long time_ms = ((long)t.tv_sec)*1000+(long)t.tv_usec/1000; 30 | return time_ms; 31 | } 32 | 33 | at::Tensor YOLO::box_area(at::Tensor box) 34 | { 35 | return (box.index({2}) - box.index({0})) * (box.index({3}) - box.index({1})); 36 | } 37 | 38 | at::Tensor YOLO::box_iou(at::Tensor box1, at::Tensor box2) 39 | { 40 | at::Tensor area1 = box_area(box1.t()); 41 | at::Tensor area2 = box_area(box2.t()); 42 | 43 | at::Tensor inter = ( torch::min( box1.index({Slice(), {None}, Slice(2,None)}), box2.index({Slice(), Slice(2,None)})) 44 | - torch::max( box1.index({Slice(), {None}, Slice(None,2)}), box2.index({Slice(), Slice(None,2)})) ).clamp(0).prod(2); 45 | return inter / (area1.index({Slice(), {None}}) + area2 - inter); 46 | 47 | } 48 | 49 | //Convert nx4 boxes from [x, y, w, h] to [x1, y1, x2, y2] where xy1=top-left, xy2=bottom-right 50 | at::Tensor YOLO::xywh2xyxy(at::Tensor x) 51 | { 52 | at::Tensor y = torch::zeros_like(x); 53 | y.index({Slice(), 0}) = x.index({Slice(), 0}) - x.index({Slice(), 2}) / 2; // # top left x 54 | y.index({Slice(), 1}) = x.index({Slice(), 1}) - x.index({Slice(), 3}) / 2; 55 | y.index({Slice(), 2}) = x.index({Slice(), 0}) + x.index({Slice(), 2}) / 2; 56 | y.index({Slice(), 3}) = x.index({Slice(), 1}) + x.index({Slice(), 3}) / 2; 57 | 58 | return y; 59 | } 60 | 61 | 62 | 63 | at::Tensor YOLO::non_max_suppression(at::Tensor pred, std::vector labels, float conf_thres = 0.1, float iou_thres = 0.6, 64 | bool merge=false, bool agnostic=false) // nms 65 | { 66 | int nc = pred.sizes()[1] - 5; 67 | at::Tensor xc = pred.index({Slice(None), 4}) > conf_thres; // # candidates, 68 | //cout << "line 85, " << xc.sizes() << endl; 69 | 70 | int min_wh = 2; 71 | int max_wh = 4096; 72 | int max_det = 300; 73 | float time_limit = 10.0; 74 | bool redundant = true; //require redundant detections 75 | bool multi_label = true; 76 | at::Tensor output; 77 | 78 | at::Tensor x; 79 | x = pred.index({xc}); 80 | 81 | try{ 82 | at::Tensor temp = x.index({0}); 83 | }catch(...){ 84 | cout << "no objects, line 138 " << endl; 85 | at::Tensor temp; 86 | return temp; 87 | } 88 | 89 | x.index({Slice(),Slice(5,None)}) *= x.index({Slice(), Slice(4,5)}); 90 | //cout << "line 106, " << x.sizes() << endl; 91 | //cout << "line 106, " << x.index({10,0}) << endl; 92 | 93 | at::Tensor box = xywh2xyxy(x.index({Slice(), Slice(None,4)})); 94 | if(true){ //here mulit label in python code 95 | //i, j = (x[:, 5:] > conf_thres).nonzero().t() 96 | auto temp = (x.index({Slice(), Slice(5,None)}) > conf_thres).nonzero().t(); 97 | at::Tensor i = temp[0]; 98 | at::Tensor j = temp[1]; 99 | x = torch::cat({ box.index({i}), x.index({i,j+5,{None}}), j.index({Slice(),{None}}).toType(torch::kFloat) }, 1); 100 | } 101 | 102 | try{ 103 | at::Tensor temp = x.index({0}); 104 | }catch(...){ 105 | cout << "no objects, line 187 " << endl; 106 | at::Tensor temp; 107 | return temp; 108 | } 109 | 110 | int n = x.sizes()[0]; 111 | at::Tensor c = x.index({Slice(), Slice(5,6)}) * max_wh; 112 | at::Tensor boxes = x.index({Slice(), Slice(None, 4)}) + c; 113 | at::Tensor scores = x.index({Slice(),4}); 114 | 115 | //cout << "line 128 boxes are " << boxes.sizes() << endl; 116 | //cout << "line 128 boxes are " << boxes << endl; 117 | 118 | at::Tensor i = nms(boxes, scores, iou_thres); 119 | //cout << "line 128 nmsi are " << i.sizes() << endl; 120 | //cout << "line 128 nmsi are " << i << endl; 121 | 122 | if(i.sizes()[0] > max_det){ 123 | i = i.index({Slice(0,max_det)}); 124 | } 125 | 126 | if(merge){ 127 | if( n > 1 && n < 3000){ 128 | //cout << "here weeeeeeeeeeeeeeeeeeeeee merge" << endl; 129 | at::Tensor iou = box_iou(boxes.index({i}), boxes) > iou_thres; 130 | at::Tensor weights = iou * scores.index({ {None} }); 131 | at::Tensor temp1 = torch::mm(weights, x.index({Slice(), Slice(None, 4)})).toType(torch::kFloat); 132 | at::Tensor temp2 = weights.sum(1, true); 133 | at::Tensor tempres = temp1 / temp2; 134 | x.index_put_({i, Slice(None, 4)}, tempres); 135 | if(redundant){ 136 | i = i.index({iou.sum(1) > 1}); 137 | } 138 | } 139 | } 140 | output = x.index({i}); 141 | //cout << "line 153 output is " << output << endl; 142 | return output; 143 | } 144 | 145 | 146 | cv::Mat YOLO::letterbox(Mat img, int new_height = 640, int new_width = 640, Scalar color = (114,114,114), bool autos = true, bool scaleFill=false, bool scaleup=true){ 147 | int width = img.cols; 148 | int height = img.rows; 149 | float rh = float(new_height) / height; 150 | float rw = float(new_width) / width; 151 | float ratio; 152 | if(rw < rh){ 153 | ratio = rw;} 154 | else{ 155 | ratio = rh;} 156 | if (!scaleup){ 157 | if(ratio >= 1.0){ 158 | ratio = 1.0; 159 | } 160 | } 161 | int new_unpad_h = int(round(height * ratio)); 162 | int new_unpad_w = int(round(width * ratio)); 163 | int dh = new_height - new_unpad_h; 164 | int dw = new_width - new_unpad_w; 165 | 166 | if(autos){ 167 | dw = dw % 64; 168 | dh = dh % 64; 169 | } 170 | 171 | dw /= 2; 172 | dh /= 2;//默认被二整除吧 173 | if( height != new_height or width != new_width){ 174 | resize(img, img, Size(new_unpad_w, new_unpad_h), 0, 0, cv::INTER_LINEAR); 175 | } 176 | int top = int(round(dh - 0.1)); 177 | int bottom = int(round(dh + 0.1)); 178 | int left = int(round(dw - 0.1)); 179 | int right = int(round(dw + 0.1)); 180 | 181 | cv::copyMakeBorder(img, img, top, bottom, left, right, cv::BORDER_CONSTANT, Scalar(114,114,114)); 182 | 183 | return img; 184 | } 185 | 186 | 187 | at::Tensor YOLO::make_grid(int nx = 20, int ny = 20){ 188 | std::vector temp = torch::meshgrid({torch::arange(ny), torch::arange(nx)}); 189 | at::Tensor yv = temp[0]; 190 | at::Tensor xv = temp[1]; 191 | at::Tensor retu = torch::stack({xv, yv},2).view({1,1,ny,nx,2}).toType(torch::kFloat); 192 | return retu; 193 | } 194 | 195 | at::Tensor YOLO::clip_coords(at::Tensor boxes, auto img_shape){ 196 | boxes.index({Slice(), 0}).clamp_(0, img_shape[1]); 197 | boxes.index({Slice(), 1}).clamp_(0, img_shape[0]); 198 | boxes.index({Slice(), 2}).clamp_(0, img_shape[1]); 199 | boxes.index({Slice(), 3}).clamp_(0, img_shape[0]); 200 | return boxes; 201 | } 202 | 203 | float YOLO::max_shape(int shape[], int len){ 204 | float max = -10000; 205 | for(int i = 0; i < len; i++){ 206 | if (shape[i] > max){ 207 | max = shape[i]; 208 | } 209 | } 210 | return max; 211 | } 212 | 213 | 214 | at::Tensor YOLO::scale_coords(int img1_shape[], at::Tensor coords, int img0_shape[]){ 215 | float gain = max_shape(img1_shape, 2) / max_shape(img0_shape, 3); 216 | float padw = (img1_shape[1] - img0_shape[1] * gain ) / 2.0; 217 | float padh = (img1_shape[0] - img0_shape[0] * gain ) / 2.0; 218 | 219 | coords.index_put_({Slice(), 0}, coords.index({Slice(), 0}) - padw); 220 | coords.index_put_({Slice(), 2}, coords.index({Slice(), 2}) - padw); 221 | coords.index_put_({Slice(), 1}, coords.index({Slice(), 1}) - padh); 222 | coords.index_put_({Slice(), 3}, coords.index({Slice(), 3}) - padh); 223 | coords.index_put_({Slice(), Slice(None, 4)}, coords.index({Slice(), Slice(None, 4)}) / gain); 224 | clip_coords(coords, img0_shape); 225 | return coords; 226 | } 227 | 228 | YOLO::YOLO(string ModelPath){ 229 | model_path = ModelPath; 230 | 231 | // model initialization 232 | torch::jit::getProfilingMode() = false; 233 | torch::jit::getExecutorMode() = false; 234 | torch::jit::setGraphExecutorOptimize(false); 235 | start = time_in_ms(); 236 | //torch::jit::script::Module model = torch::jit::load(model_path); 237 | model = torch::jit::load(model_path); 238 | cout << "it took " << time_in_ms() - start << " ms to load the model" << endl; 239 | 240 | //use temp inputs for model initialization 241 | std::vector temp_inputs; 242 | temp_inputs.push_back(torch::ones({1, 3, 32, 32})); 243 | //at::Tensor test_input = torch::ones({1, 1, 32, 32}); 244 | auto op = model.forward(temp_inputs); 245 | 246 | 247 | 248 | //Detect layer 249 | //set parameters 250 | // int ny, nx; 251 | // int na = 3;int no = 85;int bs = 1; 252 | // at::Tensor op; 253 | // at::Tensor y_0, y_1, y_2, y; 254 | //at::Tensor grid_1, grid_2, grid_3, grid; 255 | //float stride[3] = {8.0, 16.0, 32.0}; 256 | anchor_grid = torch::ones({3, 1, 3, 1, 1, 2}); 257 | //at::Tensor anchor_grid = torch::ones({3, 1, 3, 1, 1, 2}); 258 | 259 | //read anchor_grid 260 | ifstream f; 261 | string gridpath = "/home/zherlock/c++ example/object detection/files/anchor_grid.txt"; 262 | f.open(gridpath); 263 | string str; 264 | while (std::getline(f,str)){ 265 | vector mp = split(str,","); 266 | anchor_grid.index_put_({stoi(mp[0]),stoi(mp[1]),stoi(mp[2]),stoi(mp[3]),stoi(mp[4]),stoi(mp[5])}, torch::ones({1}) * stof(mp[6]) ); 267 | } 268 | f.close(); 269 | 270 | string labelpath = "/home/zherlock/c++ example/object detection/files/labels.txt"; 271 | f.open(labelpath); 272 | while (std::getline(f,str)){ 273 | labels.push_back(str); 274 | } 275 | f.close(); 276 | 277 | } 278 | 279 | void YOLO::preprocess(){ 280 | auto tim0 = torch::from_blob(img.data, {img.rows, img.cols, img.channels()}); 281 | img = letterbox(img); //zh,,resize 282 | cvtColor(img, img, CV_BGR2RGB); //***zh, bgr->rgb 283 | start = time_in_ms(); 284 | img.convertTo(img, CV_32FC3, 1.0f / 255.0f);//zh, 1/255 285 | //auto tensor_img = torch::from_blob(img.data, {img.rows, img.cols, img.channels()}); 286 | tensor_img = torch::from_blob(img.data, {img.rows, img.cols, img.channels()}); 287 | tensor_img = tensor_img.permute({2, 0, 1}); 288 | tensor_img = tensor_img.unsqueeze(0); 289 | //std::vector inputs; 290 | inputs.push_back(tensor_img); 291 | } 292 | 293 | 294 | void YOLO::readmat(Mat &mat){ 295 | img = mat.clone(); 296 | im0 = mat.clone(); 297 | } 298 | 299 | void YOLO::readmat(string ImgPath){ 300 | // read a mat into inputs 301 | img_path = ImgPath; 302 | im0 = imread(img_path); 303 | 304 | } 305 | 306 | void YOLO::init_model(string ModelPath){ 307 | model_path = ModelPath; 308 | 309 | // model initialization 310 | torch::jit::getProfilingMode() = false; 311 | torch::jit::getExecutorMode() = false; 312 | torch::jit::setGraphExecutorOptimize(false); 313 | start = time_in_ms(); 314 | //torch::jit::script::Module model = torch::jit::load(model_path); 315 | model = torch::jit::load(model_path); 316 | cout << "it took " << time_in_ms() - start << " ms to load the model" << endl; 317 | 318 | //use temp inputs for model initialization 319 | std::vector temp_inputs; 320 | temp_inputs.push_back(torch::ones({1, 3, 32, 32})); 321 | //at::Tensor test_input = torch::ones({1, 1, 32, 32}); 322 | auto op = model.forward(temp_inputs); 323 | 324 | 325 | 326 | //Detect layer 327 | //set parameters 328 | // int ny, nx; 329 | // int na = 3;int no = 85;int bs = 1; 330 | // at::Tensor op; 331 | // at::Tensor y_0, y_1, y_2, y; 332 | //at::Tensor grid_1, grid_2, grid_3, grid; 333 | //float stride[3] = {8.0, 16.0, 32.0}; 334 | anchor_grid = torch::ones({3, 1, 3, 1, 1, 2}); 335 | //at::Tensor anchor_grid = torch::ones({3, 1, 3, 1, 1, 2}); 336 | 337 | //read anchor_grid 338 | ifstream f; 339 | string gridpath = "/home/zherlock/c++ example/object detection/files/anchor_grid.txt"; 340 | f.open(gridpath); 341 | string str; 342 | while (std::getline(f,str)){ 343 | vector mp = split(str,","); 344 | anchor_grid.index_put_({stoi(mp[0]),stoi(mp[1]),stoi(mp[2]),stoi(mp[3]),stoi(mp[4]),stoi(mp[5])}, torch::ones({1}) * stof(mp[6]) ); 345 | } 346 | f.close(); 347 | 348 | string labelpath = "/home/zherlock/c++ example/object detection/files/labels.txt"; 349 | f.open(labelpath); 350 | while (std::getline(f,str)){ 351 | labels.push_back(str); 352 | } 353 | f.close(); 354 | 355 | } 356 | 357 | 358 | void YOLO::show(){ 359 | // show the detection results in a mat 360 | for( int i = 0; i < op.sizes()[0]; i++ ){ 361 | 362 | cout << "start of object " << i+1 << endl; 363 | 364 | at::Tensor opi = op.index({i}); 365 | 366 | int op_class = opi.index({5}).item().toInt(); 367 | cout << " op_class is " << op_class << ", and it's " << labels[op_class] << endl; 368 | 369 | int x1 = opi.index({0}).item().toInt(); 370 | int y1 = opi.index({1}).item().toInt(); 371 | 372 | int x2 = opi.index({2}).item().toInt(); 373 | int y2 = opi.index({3}).item().toInt(); 374 | 375 | cout << " the bounding box is x1 = " << x1 << ", and y1 = " << y1 << ", and x2 = " << x2 << ", and y2 = " << y2 << endl; 376 | 377 | cv::rectangle(im0, Point(x1,y1), Point(x2,y2), Scalar(0,0,255), 2, 8, 0); 378 | cv::putText(im0,labels[op_class],Point(x1,y1),1,1.0,cv::Scalar(0,255,0),1); 379 | } 380 | 381 | imshow("test image", im0); 382 | waitKey(); 383 | } 384 | 385 | 386 | int YOLO::inference(string ImgPath){ 387 | //read mat 388 | readmat(ImgPath); 389 | return inference(); 390 | } 391 | 392 | int YOLO::inference(Mat &mat){ 393 | //read mat 394 | readmat(mat); 395 | return inference(); 396 | } 397 | 398 | 399 | int YOLO::inference(){ 400 | //preprocess 401 | preprocess(); 402 | 403 | start = time_in_ms(); 404 | cout << "good" << endl; 405 | torch::jit::IValue output = model.forward(inputs); 406 | cout << "it took " << time_in_ms() - start << " ms to model forward" << endl; 407 | 408 | //run 409 | float stride[3] = {8.0, 16.0, 32.0}; 410 | for(int i = 0; i < 3; i++){ 411 | op = output.toList().get(i).toTensor().contiguous(); 412 | bs = op.sizes()[0]; ny = op.sizes()[2]; nx = op.sizes()[3]; 413 | op = op.view({bs, na, no, ny, nx}).permute({0, 1, 3, 4, 2}).contiguous(); 414 | grid = make_grid(nx, ny); 415 | y = op.sigmoid(); 416 | at::Tensor test = y.index({Slice(),Slice(), Slice(),Slice(), Slice(0, 2)}) * 2.0 - 0.5; 417 | test = y.index({Slice(),Slice(), Slice(),Slice(), Slice(0, 2)}) * 2.0 - 0.5 + grid; 418 | at::Tensor temp = (y.index({Slice(),Slice(), Slice(),Slice(), Slice(0, 2)}) * 2.0 - 0.5 + grid) * stride[i]; 419 | y.index_put_({Slice(),Slice(), Slice(),Slice(), Slice(0, 2)}, temp); 420 | temp = (2.0 * y.index({Slice(),Slice(), Slice(),Slice(), Slice(2, 4)})).pow(2) * anchor_grid.index({i}); 421 | y.index_put_({Slice(),Slice(), Slice(),Slice(), Slice(2, 4)}, temp); 422 | y = y.view({bs, -1, no}); 423 | if(i == 0){ 424 | y_0 = y; 425 | } 426 | else if (i == 1){ 427 | y_1 = y; 428 | } 429 | else{ 430 | y_2 = y; 431 | } 432 | } 433 | 434 | op = torch::cat({y_0, y_1,y_2}, 1); 435 | op = op.view({-1, op.sizes()[2]}); 436 | 437 | start = time_in_ms(); 438 | float conf = 0.4; 439 | op = non_max_suppression(op, labels, conf, 0.5, false, false); 440 | cout << "it took " << time_in_ms() - start << " ms to non_max_suppression" << endl; 441 | try{ 442 | at::Tensor temp = op.index({0}); 443 | }catch(...){ 444 | cout << "no objects, line 401 " << endl; 445 | return 1; 446 | } 447 | 448 | int img_shape[2] = {tensor_img.sizes()[2], tensor_img.sizes()[3]}; 449 | int im0_shape[3] = {im0.rows, im0.cols, im0.channels()}; 450 | at::Tensor temp; 451 | temp = scale_coords(img_shape, op.index({Slice(), Slice(None, 4)}), im0_shape).round(); 452 | op.index_put_({Slice(), Slice(None, 4)}, temp); 453 | 454 | show(); 455 | return 0; 456 | } 457 | --------------------------------------------------------------------------------