Jetson TX1
(Ubuntu 16.04)으로 인터페이스 된 Basler 카메라의 이미지에 액세스하려고합니다. 나는 OpenCV-C++
과 함께 Pylon
라이브러리를 사용하고 있습니다. cmake
을 사용하여 Pylon
을 연결하려고합니다.CMake - OpenCV-C++ 프로젝트에 Pylon 라이브러리를 포함하고 링크하는 방법
cmake_minimum_required(VERSION 3.5.1)
project(basler_test)
set(CMAKE_CXX_STANDARD 14)
#set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl, -E")
find_package(OpenCV REQUIRED)
include_directories(/opt/pylon5/include)
link_directories(/opt/pylon5/lib64)
add_executable(basler_test basler_test.cpp)
target_link_libraries(basler_test ${OpenCV_LIBS} /opt/pylon5/include/pylon/PylonIncludes.h)
cmake .
명령은 잘 작동하지만 make
을 수행 할 때, 그것은 제공 : 나는 다음과 같은 CMakeLists.txt
파일이
fatal error: pylon/Platform.h: No such file or directory compilation terminated
와 동일한에 존재 디렉토리는 PylonIncludes.h
입니다. 따라서이 오류는 CMakeLists.txt
에서 제대로 설정되지 않았기 때문에 발생한다고 생각합니다. 나는 무엇이 잘못되었는지를 식별 할 수있는 충분한 경험이 없습니다. 친절하게 도와주세요. 내가 카메라 작동을 가지고 basler_test.cpp
//This is a test program to check the functionality of Basler dart daA2500-14uc Camera.
#define saveImages 0
#define recordVideo 1
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/video/video.hpp>
#include <pylon/PylonIncludes.h>
#ifdef PYLON_WIN_BUILD
#include <pylon/PylonGUI.h>
#endif
static const uint32_t c_countOfImagesToGrab = 10;
int main(int argc, char* argv[])
{
...................................
..................................
}