Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Can not double click to open executable file when using Pylon Basler Camera SDK C++
Forum Update on Monday, May 27th 2025

Can not double click to open executable file when using Pylon Basler Camera SDK C++

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
17 Posts 3 Posters 916 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.
  • I Offline
    I Offline
    Iric
    wrote on 16 Mar 2022, 05:09 last edited by
    #1

    Hi every body, my english not well so i'm using google translator write this post.
    I have a project with QtQuick - QML which use Basler SDK C++. The application have done. I want to run this executable file by double click ( not ./myapplication on terminal) but the application don't open.
    I develop application on Ubuntu 18.04, Qt 5.9.5, Pylon SDK 5.0.12
    I'm sure that i can run my application in terminal without meet any error ( like miss .so, miss libary) and i have add QMAKE_LFLAGS += -no-pie in .pro file too.
    Why i know the reason because Basler Libary. Because if i comment (don't use but still include header file) all function or class related to Basler, I can run my app by double click.
    Anyone who meet this same problem can suggest me about situation? I'm newbie in desgined app on linux. So i have less experience.
    ~Thanks all for reading.

    No one can make you feel inferior without your consent

    1 Reply Last reply
    0
    • I Offline
      I Offline
      Iric
      wrote on 17 Mar 2022, 05:07 last edited by
      #2

      Please help me !! I can't solve it for 4 days.

      No one can make you feel inferior without your consent

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 17 Mar 2022, 07:27 last edited by
        #3

        Hi and welcome to devnet,

        Did you modify your LD_LIBRARY_PATH environment variable ?
        Did you check with ldd where the libraries are loaded from ?

        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
        1
        • I Offline
          I Offline
          Iric
          wrote on 17 Mar 2022, 10:25 last edited by
          #4

          Yes, I using ldd ./myapplication and i don't see any file .so missing linking.
          I have too modify LD_LIBRARY_PATH in ~/.bashrc. So that i can run my app in terminal without error.
          I think there are different between run ./ in terminal and double click on excecutable file.
          Something i discovery in past 4 days: when i run in terminal, i think this mean bash shell auto setup my environment by read .bashrc. But when i double click direct into executable, another bash shell have active to run. Because this shell is not been activated by terminal, the environment not auto setup for me. So can not open my application and i can't see any error (no terminal show to debug )
          Do you have idea for that? . I know in window os have systems environment. So in linux os (ubuntu) have systems environment? The ~/.bashrc only setup when i using terminal default (GNOME, GUI).

          No one can make you feel inferior without your consent

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 17 Mar 2022, 19:50 last edited by
            #5

            Where did you store these librairies ?

            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
            • I Offline
              I Offline
              Iric
              wrote on 18 Mar 2022, 02:44 last edited by Iric
              #6

              Actually, I build pylon (basler libary) from source and i have two location for this. One in ~/Download/pylon-5.0.12-SDK...../pylon5/lib64. This folder have exists when i donwload from their web site. The second in /opt/pylon5/lib64 . This folder appear when i install pylon in to my computer.
              Addtion, i have use some libary:

              • TensorRT in ~/TensorRT/lib/
              • OpenCV in /usr/local/lib/

              No one can make you feel inferior without your consent

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 18 Mar 2022, 21:30 last edited by
                #7

                Which desktop environment are you using ?

                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
                • I Offline
                  I Offline
                  Iric
                  wrote on 21 Mar 2022, 10:35 last edited by
                  #8

                  I use ubuntu 18.04 Desktop sir.

                  No one can make you feel inferior without your consent

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 21 Mar 2022, 19:59 last edited by
                    #9

                    One way is to add .conf files in /etc/ld.so.conf.d/ with the paths to your custom libraries. Then you have to call ldconfig as root.

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

                    I 1 Reply Last reply 30 Mar 2022, 03:00
                    0
                    • I Offline
                      I Offline
                      Iric
                      wrote on 23 Mar 2022, 02:26 last edited by
                      #10

                      Thanks you very much ! I will try and noitice for you later.

                      No one can make you feel inferior without your consent

                      1 Reply Last reply
                      0
                      • S SGaist
                        21 Mar 2022, 19:59

                        One way is to add .conf files in /etc/ld.so.conf.d/ with the paths to your custom libraries. Then you have to call ldconfig as root.

                        I Offline
                        I Offline
                        Iric
                        wrote on 30 Mar 2022, 03:00 last edited by
                        #11

                        @SGaist Thanks you, last week i was verry busy. I already created .conf file in /etc/ld.so.conf.d/ and run ldconfig commanded as root. But i still can't open my app with double click. I have a question about file config. What should be name of the file? Any name i set or specifical name.

                        No one can make you feel inferior without your consent

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 30 Mar 2022, 20:39 last edited by
                          #12

                          Can you show your conf file content ?

                          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
                          • I Offline
                            I Offline
                            Iric
                            wrote on 31 Mar 2022, 03:02 last edited by
                            #13

                            Sure, It here

                            # Config for My Application
                            /opt/pylon5/lib64
                            /home/user/TensorRT-8.2.2.1/lib
                            /usr/local/cuda/lib64
                            /home/user/opencv_build/opencv/build/lib
                            

                            This is all of libary my app need to run

                            No one can make you feel inferior without your consent

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on 31 Mar 2022, 19:17 last edited by
                              #14

                              How did you name the file ?

                              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
                              • I Offline
                                I Offline
                                Iric
                                wrote on 14 Apr 2022, 01:37 last edited by
                                #15

                                Sorry for this delay,
                                I don't know what is the name i should be set for this file. I set the random name is myapp.conf

                                No one can make you feel inferior without your consent

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on 14 Apr 2022, 20:09 last edited by
                                  #16

                                  Might be a silly question but does /etc/ld.so.conf load the content of the /etc/ld.so.conf.d folder ?

                                  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
                                  • J Offline
                                    J Offline
                                    junjia
                                    wrote on 28 Feb 2023, 09:01 last edited by
                                    #17

                                    Hi, I have the same problem! Have you found any solution?

                                    1 Reply Last reply
                                    0

                                    • Login

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