Advertisement
Guest User

Untitled

a guest
Jun 26th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.06 KB | None | 0 0
  1. set(CMAKE_SYSTEM_NAME Linux)
  2. set(CMAKE_SYSTEM_VERSION 4.4.9-ti-r25)
  3. set(CMAKE_SYSTEM_PROCESSOR armv7l)
  4.  
  5. set(GCC_COMPILER_VERSION "4.7" CACHE STRING "GCC Compiler version")
  6.  
  7. ####### Architecture ################
  8. set(FLOAT_ABI_SUFFIX "hf")
  9. set(ENABLE_NEON TRUE)
  10.  
  11. ###### Link Compile Path ##############
  12. set(ARM_SYS_ROOT_PATH /mnt/BBB)
  13.  
  14. set(ARM_STD_USR_PATH ${ARM_SYS_ROOT_PATH}/usr )
  15. set(ARM_STD_LIB_PATH ${ARM_SYS_ROOT_PATH}/usr/lib )
  16. set(ARM_SYS_LIB_PATH ${ARM_SYS_ROOT_PATH}/lib )
  17. set(ARM_STD_INC_PATH ${ARM_SYS_ROOT_PATH}/usr/include )
  18. set(GCC_MACHINE_DUMP arm-linux-gnueabihf)
  19. set(CMAKE_INSTALL_PREFIX ${ARM_SYS_ROOT_PATH}/usr/local/OpenCV ) ## install Path
  20.  
  21. set(CMAKE_SYSROOT ${ARM_LINUX_SYSROOT})
  22.  
  23.  
  24. set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT}) ##searchs in X/lib and X/usr/lib
  25. set(CMAKE_INCLUDE_PATH ${ARM_STD_INC_PATH} ; ${ARM_STD_INC_PATH}/${GCC_MACHINE_DUMP} )
  26. set(CMAKE_LIBRARY_PATH ${ARM_STD_LIB_PATH} ; ${ARM_STD_LIB_PATH}/${GCC_MACHINE_DUMP} ; ${ARM_SYS_LIB_PATH} ; ${ARM_SYS_LIB_PATH}/${GCC_MACHINE_DUMP})
  27. set(CMAKE_PROGRAM_PATH ${ARM_SYS_ROOT_PATH}/usr/bin})
  28. ##### Install path ##############
  29. set(CMAKE_INSTALL_PREFIX ${ARM_STD_USR_PATH})
  30.  
  31. ##### Other ###########
  32. set(CMAKE_COLOR_MAKEFILE ON)
  33. set(PKG_CONFIG_EXECUTABLE /usr/bin/pkg-config)
  34. ################# Compiler ##########
  35. set(CMAKE_C_COMPILER "/usr/gcc-linaro-arm-linux-gnueabihf-4.7/bin/arm-linux-gnueabihf-gcc")
  36. set(CMAKE_CXX_COMPILER "/usr/gcc-linaro-arm-linux-gnueabihf-4.7/bin/arm-linux-gnueabihf-g++")
  37. set(CMAKE_AR "/usr/gcc-linaro-arm-linux-gnueabihf-4.7/bin/arm-linux-gnueabihf-ar")
  38. set(CMAKE_RANLIB "/usr/gcc-linaro-arm-linux-gnueabihf-4.7/bin/arm-linux-gnueabihf-ranlib")
  39. set(CMAKE_LINKER "/usr/gcc-linaro-arm-linux-gnueabihf-4.7/bin/arm-linux-gnueabihf-ld")
  40.  
  41. ### C and Cxx Flags ########################
  42. set(DCMAKE_BUILD_TYPE Release)
  43. set(CMAKE_CXX_FLAGS "-isystem /mnt/BBB/lib:/mnt/BBB/lib/arm-linux-gnueabihf:/mnt/BBB/usr/lib/arm-linux-gnueabihf" CACHE STRING "c++ flags")
  44. set(CMAKE_C_FLAGS "-isystem /mnt/BBB/lib:/mnt/BBB/lib/arm-linux-gnueabihf:/mnt/BBB/usr/lib/arm-linux-gnueabihf" CACHE STRING "c flags")
  45. set(CMAKE_SHARED_LINKER_FLAGS "-isystem /mnt/BBB/lib:/mnt/BBB/lib/arm-linux-gnueabihf:/mnt/BBB/usr/lib/arm-linux-gnueabihf" CACHE STRING "shared linker flags")
  46. set(CMAKE_MODULE_LINKER_FLAGS "-isystem /mnt/BBB/lib:/mnt/BBB/lib/arm-linux-gnueabihf:/mnt/BBB/usr/lib/arm-linux-gnueabihf" CACHE STRING "module linker flags")
  47. set(CMAKE_EXE_LINKER_FLAGS "-Wl,-z,-rpath-link" CACHE STRING "executable linker flags")
  48.  
  49. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mthumb -fdata-sections -Wa,--noexecstack -fsigned-char -Wno-psabi")
  50. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mthumb -fdata-sections -Wa,--noexecstack -fsigned-char -Wno-psabi")
  51.  
  52. set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now ${CMAKE_SHARED_LINKER_FLAGS}")
  53. set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now ${CMAKE_MODULE_LINKER_FLAGS}")
  54. set(CMAKE_EXE_LINKER_FLAGS "-Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now ${CMAKE_EXE_LINKER_FLAGS}")
  55.  
  56. ########### Macro to Limit Find path in host and targert ###################
  57. # search for programs in the build host directories
  58. SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  59. # for libraries and headers in the target directories
  60. SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  61. SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
  62.  
  63. General configuration for OpenCV 2.4.11 =====================================
  64. Version control: unknown
  65.  
  66. Platform:
  67. Host: Linux 3.16.0-38-generic x86_64
  68. Target: Linux 4.4.9-ti-r25 armv7l
  69. CMake: 2.8.12.2
  70. CMake generator: Unix Makefiles
  71. CMake build tool: /usr/bin/make
  72. Configuration: Release
  73.  
  74. C/C++:
  75. Built as dynamic libs?: YES
  76. C++ Compiler: /usr/gcc-linaro-arm-linux-gnueabihf-4.7/bin/arm-linux-gnueabihf-g++ (ver 4.7.3)
  77. C++ flags (Release): -isystem /mnt/BBB/lib:/mnt/BBB/lib/arm-linux-gnueabihf:/mnt/BBB/usr/lib/arm-linux-gnueabihf -mthumb -fdata-sections -Wa,--noexecstack -fsigned-char -Wno-psabi -O3 -DNDEBUG -DNDEBUG
  78. C++ flags (Debug): -isystem /mnt/BBB/lib:/mnt/BBB/lib/arm-linux-gnueabihf:/mnt/BBB/usr/lib/arm-linux-gnueabihf -mthumb -fdata-sections -Wa,--noexecstack -fsigned-char -Wno-psabi -g -O0 -DDEBUG -D_DEBUG
  79. C Compiler: /usr/gcc-linaro-arm-linux-gnueabihf-4.7/bin/arm-linux-gnueabihf-gcc
  80. C flags (Release): -isystem /mnt/BBB/lib:/mnt/BBB/lib/arm-linux-gnueabihf:/mnt/BBB/usr/lib/arm-linux-gnueabihf -mthumb -fdata-sections -Wa,--noexecstack -fsigned-char -Wno-psabi -O3 -DNDEBUG -DNDEBUG
  81. C flags (Debug): -isystem /mnt/BBB/lib:/mnt/BBB/lib/arm-linux-gnueabihf:/mnt/BBB/usr/lib/arm-linux-gnueabihf -mthumb -fdata-sections -Wa,--noexecstack -fsigned-char -Wno-psabi -g -O0 -DDEBUG -D_DEBUG
  82. Linker flags (Release): -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -isystem /mnt/BBB/lib:/mnt/BBB/lib/arm-linux-gnueabihf:/mnt/BBB/usr/lib/arm-linux-gnueabihf
  83. Linker flags (Debug): -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -isystem /mnt/BBB/lib:/mnt/BBB/lib/arm-linux-gnueabihf:/mnt/BBB/usr/lib/arm-linux-gnueabihf
  84. Precompiled headers: YES
  85.  
  86. OpenCV modules:
  87. To be built: core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib stitching superres ts videostab
  88. Disabled: world
  89. Disabled by dependency: -
  90. Unavailable: androidcamera dynamicuda java python viz
  91.  
  92. GUI:
  93. QT: NO
  94. GTK+ 2.x: YES (ver 2.24.23)
  95. GThread : YES (ver 2.40.2)
  96. GtkGlExt: NO
  97. OpenGL support: NO
  98. VTK support: NO
  99.  
  100. Media I/O:
  101. ZLib: /mnt/BBB/usr/lib/arm-linux-gnueabihf/libz.so (ver 1.2.8)
  102. JPEG: /mnt/BBB/usr/lib/arm-linux-gnueabihf/libjpeg.so (ver )
  103. PNG: /mnt/BBB/usr/lib/arm-linux-gnueabihf/libpng.so (ver 1.2.50)
  104. TIFF: /mnt/BBB/usr/lib/arm-linux-gnueabihf/libtiff.so (ver 42 - 4.0.3)
  105. JPEG 2000: /mnt/BBB/usr/lib/arm-linux-gnueabihf/libjasper.so (ver 1.900.1)
  106. OpenEXR: /mnt/BBB/usr/lib/arm-linux-gnueabihf/libImath.so /mnt/BBB/usr/lib/arm-linux-gnueabihf/libIlmImf.so /mnt/BBB/usr/lib/arm-linux-gnueabihf/libIex.so /mnt/BBB/usr/lib/arm-linux-gnueabihf/libHalf.so /mnt/BBB/usr/lib/arm-linux-gnueabihf/libIlmThread.so (ver 1.6.1)
  107.  
  108. Video I/O:
  109. DC1394 1.x: NO
  110. DC1394 2.x: NO
  111. FFMPEG: YES
  112. codec: YES (ver 54.35.0)
  113. format: YES (ver 54.20.4)
  114. util: YES (ver 52.3.0)
  115. swscale: YES (ver 2.1.1)
  116. gentoo-style: YES
  117. GStreamer: NO
  118. OpenNI: NO
  119. OpenNI PrimeSensor Modules: NO
  120. PvAPI: NO
  121. GigEVisionSDK: NO
  122. UniCap: NO
  123. UniCap ucil: NO
  124. V4L/V4L2: NO/YES
  125. XIMEA: NO
  126. Xine: NO
  127.  
  128. Other third-party libraries:
  129. Use IPP: NO
  130. Use Eigen: NO
  131. Use TBB: NO
  132. Use OpenMP: NO
  133. Use GCD NO
  134. Use Concurrency NO
  135. Use C=: NO
  136. Use Cuda: NO
  137. Use OpenCL: YES
  138.  
  139. OpenCL:
  140. Version: dynamic
  141. Include path: /home/arash/Desktop/opencv-2.4.11/3rdparty/include/opencl/1.2
  142. Use AMD FFT: NO
  143. Use AMD BLAS: NO
  144.  
  145. Python:
  146. Interpreter: /usr/bin/python2 (ver 2.7.6)
  147.  
  148. Java:
  149. ant: NO
  150. JNI: NO
  151. Java tests: NO
  152.  
  153. Documentation:
  154. Build Documentation: NO
  155. Sphinx: NO
  156. PdfLaTeX compiler: NO
  157. Doxygen: NO
  158.  
  159. Tests and samples:
  160. Tests: YES
  161. Performance tests: YES
  162. C/C++ Examples: NO
  163.  
  164. Install path: /mnt/BBB/usr
  165.  
  166. cvconfig.h is in: /home/arash/Desktop/opencv-2.4.11/buildBBBnew
  167.  
  168. -- General configuration for OpenCV 2.4.11 =====================================
  169. -- Version control: unknown
  170. --
  171. -- Platform:
  172. -- Host: Linux 4.4.9-ti-r25 armv7l
  173. -- CMake: 3.4.1
  174. -- CMake generator: Unix Makefiles
  175. -- CMake build tool: /usr/bin/make
  176. -- Configuration: Release
  177. --
  178. -- C/C++:
  179. -- Built as dynamic libs?: YES
  180. -- C++ Compiler: /usr/bin/c++ (ver 4.9.2)
  181. -- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -O3 -DNDEBUG -DNDEBUG
  182. -- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -g -O0 -DDEBUG -D_DEBUG
  183. -- C Compiler: /usr/bin/cc
  184. -- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -O3 -DNDEBUG -DNDEBUG
  185. -- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -g -O0 -DDEBUG -D_DEBUG
  186. -- Linker flags (Release):
  187. -- Linker flags (Debug):
  188. -- Precompiled headers: YES
  189. --
  190. -- OpenCV modules:
  191. -- To be built: core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib python stitching superres ts videostab
  192. -- Disabled: world
  193. -- Disabled by dependency: -
  194. -- Unavailable: androidcamera dynamicuda java viz
  195. --
  196. -- GUI:
  197. -- QT: NO
  198. -- GTK+ 2.x: YES (ver 2.24.25)
  199. -- GThread : YES (ver 2.42.1)
  200. -- GtkGlExt: NO
  201. -- OpenGL support: NO
  202. -- VTK support: NO
  203. --
  204. -- Media I/O:
  205. -- ZLib: /usr/lib/arm-linux-gnueabihf/libz.so (ver 1.2.8)
  206. -- JPEG: /usr/lib/arm-linux-gnueabihf/libjpeg.so (ver )
  207. -- PNG: /usr/lib/arm-linux-gnueabihf/libpng.so (ver 1.2.50)
  208. -- TIFF: /usr/lib/arm-linux-gnueabihf/libtiff.so (ver 42 - 4.0.3)
  209. -- JPEG 2000: /usr/lib/arm-linux-gnueabihf/libjasper.so (ver 1.900.1)
  210. -- OpenEXR: /usr/lib/arm-linux-gnueabihf/libImath.so /usr/lib/arm-linux-gnueabihf/libIlmImf.so /usr/lib/arm-linux-gnueabihf/libIex.so /usr/lib/arm-linux-gnueabihf/libHalf.so /usr/lib/arm-linux-gnueabihf/libIlmThread.so (ver 1.6.1)
  211. --
  212. -- Video I/O:
  213. -- DC1394 1.x: NO
  214. -- DC1394 2.x: YES (ver 2.2.3)
  215. -- FFMPEG: YES
  216. -- codec: YES (ver 56.1.0)
  217. -- format: YES (ver 56.1.0)
  218. -- util: YES (ver 54.3.0)
  219. -- swscale: YES (ver 3.0.0)
  220. -- gentoo-style: YES
  221. -- GStreamer:
  222. -- base: YES (ver 1.4.4)
  223. -- video: YES (ver 1.4.4)
  224. -- app: YES (ver 1.4.4)
  225. -- riff: YES (ver 1.4.4)
  226. -- pbutils: YES (ver 1.4.4)
  227. -- OpenNI: NO
  228. -- OpenNI PrimeSensor Modules: NO
  229. -- PvAPI: NO
  230. -- GigEVisionSDK: NO
  231. -- UniCap: NO
  232. -- UniCap ucil: NO
  233. -- V4L/V4L2: Using libv4l1 (ver 1.6.0) / libv4l2 (ver 1.6.0)
  234. -- XIMEA: NO
  235. -- Xine: NO
  236. --
  237. -- Other third-party libraries:
  238. -- Use IPP: NO
  239. -- Use Eigen: NO
  240. -- Use TBB: NO
  241. -- Use OpenMP: NO
  242. -- Use GCD NO /mnt/BBB/usr/lib/mnt/BBB/usr/lib/arm-linux-gnueabihf/mnt/BBB/lib/mnt/BBB/lib/arm-linux-gnueabihf
  243.  
  244. -- Use Concurrency NO
  245. -- Use C=: NO
  246. -- Use Cuda: NO
  247. -- Use OpenCL: YES
  248. --
  249. -- OpenCL:
  250. -- Version: dynamic
  251. -- Include path: /home/debian/Desktop/opencv-2.4.11/3rdparty/include/opencl/1.2
  252. -- Use AMD FFT: NO
  253. -- Use AMD BLAS: NO
  254. --
  255. -- Python:
  256. -- Interpreter: /usr/bin/python2 (ver 2.7.9)
  257. -- Libraries: /usr/lib/arm-linux-gnueabihf/libpython2.7.so (ver 2.7.9)
  258. -- numpy: /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.8.2)
  259. -- packages path: lib/python2.7/dist-packages
  260. --
  261. -- Java:
  262. -- ant: NO
  263. -- JNI: NO
  264. -- Java tests: NO
  265. --
  266. -- Documentation:
  267. -- Build Documentation: NO
  268. -- Sphinx: NO
  269. -- PdfLaTeX compiler: NO
  270. -- Doxygen: NO
  271. --
  272. -- Tests and samples:
  273. -- Tests: YES
  274. -- Performance tests: YES
  275. -- C/C++ Examples: NO
  276. --
  277. -- Install path: /usr/local
  278. --
  279. -- cvconfig.h is in: /home/debian/Desktop/opencv-2.4.11/build
  280. -- -----------------------------------------------------------------
  281. --
  282. -- Configuring done
  283. -- Generating done
  284. -- Build files have been written to: /home/debian/Desktop/opencv-2.4.11/build
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement