Ask Your Question
0

Selecting the name of the package to be created during the building process compiled OpenCV.

asked 2016-10-16 10:58:52 -0600

updated 2016-10-16 11:16:26 -0600

The packet creating proceso for distribution creates three packets being two type tar and a third compressed binary type in a shell file.

how can I select the name of these files created or intervene in this name.

For example, this were created in my build configured with the make command:

  • OpenCV-unknown-armv7l.sh
  • OpenCV-unknown-armv7l.tar.gz
  • OpenCV-unknown-armv7l.tar.Z

Comando usado para configuração:

cmake -G "Unix Makefiles" \
 -D CMAKE_CXX_COMPILER=/usr/bin/arm-linux-gnueabihf-g++ \
 -D CMAKE_C_COMPILER=/usr/bin/arm-linux-gnueabihf-gcc \
 -D CMAKE_BUILD_TYPE=RELEASE-NANOPI \
 -D CMAKE_INSTALL_PREFIX=/usr/local \
 -D WITH_TBB=ON \
 -D WITH_V4L=ON \
 -D WITH_QT=ON \
 -D WITH_OPENGL=ON \
 -D WITH_IMAGEIO=ON \
 -D WITH_GSTREAMER=ON \
 -D ENABLE_NEON=ON \
 -D ENABLE_FAST_MATH=ON \
 -D BUILD_SHARED_LIBS=OFF \
 -D BUILD_NEW_PYTHON_SUPPORT=OFF \
 -D BUILD_EXAMPLES=OFF \
 -D BUILD_FAT_JAVA_LIB=OFF \
 -D BUILD_TBB=ON \
 -D BUILD_opencv_apps=OFF -D BUILD_opencv_nofree=OFF -D BUILD_opencv_java=OFF \
 -D BUILD_opencv_objdetect=ON -D BUILD_opencv_core=ON -D BUILD_opencv_imgproc=ON -D BUILD_opencv_ml=ON -D BUILD_opencv_flann=OFF \
 -D BUILD_opencv_highgui=ON \
 -D BUILD_OPTIONAL=Off  \
 -D BUILD_DOCS=OFF \
 -D INSTALL_C_EXAMPLES=OF \
 -D INSTALL_PYTHON_EXAMPLES=OFF \
 -D INSTALL_TO_MANGLED_PATHS=ON \
 -D INSTALL_CREATE_DISTRIB=ON \
 -D INSTALL_TESTS=OFF \
 -D CMAKE_VERBOSE=ON \
 ..
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2016-10-18 12:24:36 -0600

updated 2016-10-18 12:38:38 -0600

The choice of the package name is made by use of the variable

CPACK_PACKAGE_FILE_NAME

You can use other variables to help you compose your package, such as:

CPACK_PACKAGE_FILE_NAME = $ {CPACK_PACKAGE_NAME} - $ {} CPACK_PACKAGE_VERSION -NanoPI-M3-Cortex-A53-ARMv8-A - $ {} CMAKE_BUILD_TYPE
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-10-16 10:58:52 -0600

Seen: 380 times

Last updated: Oct 18 '16