-
Hi everyone! I am now trying to build the program from the provided source code. The machine is running Windows 8.1 x64. I am trying to build with MSVC, "Visual Studio Build Tools 2017 Release - amd64" kit. Build halts when trying to link the pylon library: Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
There is no need to change the path of Pylon. It is recommended to install Pylon in the program files folder as in the provided cmake file the standard path is already adjusted for you. Furthermore, as vcpkg manifest is used for the libs, everything should work if you follow the tutorial. Please follow every step described in the tutorial (see here), which is provided in the section "3.0 Build PupilEXT with vcpkg manifest (recommended)". If only the link failed (at the very end of the build), it might have to do with the fact that the Pylon libs are not adjusted into your system variables. See the attached image how it should look like. On this page (Link), there is a tutorial on how adding a folder to the system variables of windows. In the section "system variables", go to the line "path", press edit and add the Pylon folder as shown in the upper image to the other listed elements. It should work. |
Beta Was this translation helpful? Give feedback.
-
I mistakenly installed Basler Camera software suite v6.3.0 instead of v6.0.1, that was the reason! |
Beta Was this translation helpful? Give feedback.
-
I checked again the source code of PupilEXT because usually, it should not matter which pylon version you use if you build PupilEXT from the source. The statement in the readme about using Pylon 6.0.1. was just for the pre-compiled binaries. It turns out that the problem relies on the set(PYLON_LIB_SEARCH_PATH "${PYLON_HOME}/lib/x64")
find_library(PYLON_BASE_LIBRARY
NAMES PylonBase_v6_0.lib
PATHS ${PYLON_LIB_SEARCH_PATH})
find_library(PYLON_GCBASE_LIBRARY
NAMES GCBase_MD_VC141_v3_1_Basler_pylon.lib
PATHS ${PYLON_LIB_SEARCH_PATH})
find_library(PYLON_GENAPI_LIBRARY
NAMES GenApi_MD_VC141_v3_1_Basler_pylon.lib
PATHS ${PYLON_LIB_SEARCH_PATH})
find_library(PYLON_UTILITY_LIBRARY
NAMES PylonUtility_v6_0.lib
PATHS ${PYLON_LIB_SEARCH_PATH})
find_library(PYLON_GUI_LIBRARY
NAMES PylonGUI_v6_0.lib
PATHS ${PYLON_LIB_SEARCH_PATH}) As only Pylon 6.0.1 is specified in I will add a remark into the readme about this topic. |
Beta Was this translation helpful? Give feedback.
I checked again the source code of PupilEXT because usually, it should not matter which pylon version you use if you build PupilEXT from the source. The statement in the readme about using Pylon 6.0.1. was just for the pre-compiled binaries.
It turns out that the problem relies on the
Open-PupilEXT/cmake/FindPylon.cmake
file, which is used to find the pylon installation on your local PC when building from the source. In the file's lines 40 to 56, there is the following code