Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Qt Creator with pylon
QtWS25 Last Chance

Qt Creator with pylon

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
6 Posts 3 Posters 153 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Milosz
    wrote 23 days ago last edited by
    #1

    Hi everyone,

    I'm trying to use pylon library with QtCreator for Windows.
    I introdudced in CMake

    include_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
    1 Reply Last reply
    0
    • A Offline
      A Offline
      Axel Spoerl
      Moderators
      wrote 23 days ago last edited by
      #2

      Which windows version are you using?

      Software Engineer
      The Qt Company, Oslo

      M 1 Reply Last reply 23 days ago
      0
      • A Axel Spoerl
        23 days ago

        Which windows version are you using?

        M Offline
        M Offline
        Milosz
        wrote 23 days ago last edited by Milosz
        #3

        @Axel-Spoerl win 11 pro

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Axel Spoerl
          Moderators
          wrote 23 days ago last edited by
          #4

          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>
          

          Software Engineer
          The Qt Company, Oslo

          1 Reply Last reply
          1
          • M Offline
            M Offline
            Milosz
            wrote 23 days ago last edited by
            #5

            @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

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote 21 days ago last edited by
              #6

              Hi,

              Did you try to build one of the pylon examples ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              1/6

              16 Apr 2025, 12:21

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved