Open D0CX4ND3R opened 6 years ago
I solved the camera problem. But the hunter compile problem in P.S. is still there. How can I add the cmake parameters. Thank you.
I solved the camera problem.
👍
But the hunter compile problem in P.S. is still there.
~What do you mean by "P.S."?~ [UPDATE: Why don't you use the OpenGL window created in the project for this? It should be much more efficient, since the texture is already in the gpgpu pipeline (i.e., --window
)]
Okay, but usually build problems are related to the package + compiler combinations, not really Hunter itself (i.e., they would occur if you weren't using Hunter to manage the build).
How can I add the cmake parameters
You can set CMake options in your local configuration hunter_config()
commands using the CMAKE_ARGS
tag, like:
hunter_config(foo VERSION v1.0.0 CMAKE_ARGS OPTION1=ON OPTION2=OFF)
in the LOCAL
config of your top level project. This will be used if you specify a LOCAL
argument in your top HunterGate()
call which will tell it to look incmake/Hunter/config.cmake
. This will override default settings associated with the Hunter release you are using. That's where you can customize things on a per package basis (both VERSION|GIT_SUBMODULE and CMAKE_ARGS).
Example:
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.20.72.tar.gz"
SHA1 "bd3cb40902ccf2fdde1d0cc71d5a7acd24a0696c"
LOCAL # load `${CMAKE_CURRENT_LIST_DIR}/cmake/Hunter/config.cmake`
)
You can take a look at the LOCAL configuration in this repo, for example:
if(IOS OR ANDROID)
# local workaround for protobuf compiler crash with Xcode 8.1
# see https://github.com/elucideye/acf/issues/41
set(opencv_cmake_args
WITH_PROTOBUF=OFF
BUILD_PROTOBUF=OFF
BUILD_LIBPROTOBUF_FROM_SOURCES=NO
BUILD_opencv_dnn=OFF
WITH_JASPER=OFF
BUILD_JASPER=OFF
)
hunter_config(OpenCV VERSION ${HUNTER_OpenCV_VERSION} CMAKE_ARGS ${opencv_cmake_args})
endif()
### ogles_gpgpu ###
set(ogles_gpgpu_cmake_args
OGLES_GPGPU_VERBOSE=OFF
OGLES_GPGPU_OPENGL_ES3=${ACF_OPENGL_ES3}
)
hunter_config(ogles_gpgpu VERSION ${HUNTER_ogles_gpgpu_VERSION} CMAKE_ARGS ${ogles_gpgpu_cmake_args})
Terga TX2 with a ZED Camera
I'm curious to see how this runs actually. I haven't found time to make this pipeline ready for the main lib yet, but I plan to.
Hi, I run the pipeline on Terga TX2 with a ZED Camera, but a problem occurred. To promise the ZED Camera can be used, I modified the structure Application as follow:
The program is compiled successfully, but no image in window, only a black frame. Does the code has any mistakes? Thank you for help me.
P.S. Another question, when I run the project acf-detect, I want show the capture frame in real time, but a opencv error is occurred as follow:
How can I add the two libraries during the hunter compile. Thank you.