Qt Creator with pylon
Unsolved
3rd Party Software
-
wrote 21 days ago last edited by
Hi everyone,
I'm trying to use pylon library with QtCreator for Windows.
I introdudced in CMakeinclude_directories(${PYLON_DEV_DIR}/include) find_package(pylon 8.0.1 REQUIRED) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) add_executable(Fagot main.cpp) target_link_libraries(Fagot pylon::pylon)
It seems to be OK but in include line
`#include <pylon/PylonBase.h> `` I have error: In included file: Unsupported platform C:\Program Files\Basler\pulon 8\Development\include\pylon/Platform.h:126. Any idea how to resolve it Best Miłosz
-
Which windows version are you using?
-
Which windows version are you using?
wrote 21 days ago last edited by Milosz@Axel-Spoerl win 11 pro
-
That should be supported by Pylon 8.
IIRC, Pylon doesn't perform any platform detection by itself.
You need to define a platform macro before the include.
I think on Windows it's#define PYLON_WIN_BUILD #include <pylon/PylonBase.h>
-
wrote 21 days ago last edited by
@Axel-Spoerl said in Qt Creator with pylon:
PYLON_WIN_BUILD
Thanks Axel but it doesn't operate. It seems that include pylon into project not supported by MSVS is impossible
-
Hi,
Did you try to build one of the pylon examples ?
1/6