Can not double click to open executable file when using Pylon Basler Camera SDK C++
-
wrote on 16 Mar 2022, 05:09 last edited by
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. -
wrote on 17 Mar 2022, 05:07 last edited by
Please help me !! I can't solve it for 4 days.
-
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 ? -
wrote on 17 Mar 2022, 10:25 last edited by
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). -
Where did you store these librairies ?
-
wrote on 18 Mar 2022, 02:44 last edited by Iric
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/
-
Which desktop environment are you using ?
-
wrote on 21 Mar 2022, 10:35 last edited by
I use ubuntu 18.04 Desktop sir.
-
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. -
wrote on 23 Mar 2022, 02:26 last edited by
Thanks you very much ! I will try and noitice for you later.
-
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.wrote on 30 Mar 2022, 03:00 last edited by@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.
-
Can you show your conf file content ?
-
wrote on 31 Mar 2022, 03:02 last edited by
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
-
How did you name the file ?
-
wrote on 14 Apr 2022, 01:37 last edited by
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 -
Might be a silly question but does /etc/ld.so.conf load the content of the /etc/ld.so.conf.d folder ?
-
wrote on 28 Feb 2023, 09:01 last edited by
Hi, I have the same problem! Have you found any solution?