Odd behaviour on Ubuntu
-
Hi All,
I'm having a very strange behaviour building a release executable file on ubuntu. The problem: I made the executable file using the make button ("the hammer") on Qt, the executable file has been created and if I launch it using the run button by Qt it seems to work properly but, when I go to the folder where it was created and I try to launch it double clicking on its icon it doesn't start. Nothing happen! Does anyone know why?
Note: I have got the admin privileges on the PC.
-
I did it. I've launched the app, writing on the terminal the name of the executable starting from the path of the executable file after I'd done what you've suggested doing and the result was nothing. The app wasn't launched! I also tried to launch the app by double clicking on its icon and I got the same result.
This problem starts to make me crazy!!!!
-
Do you have in your path the Qt libraries included? If not, in your console try: (suppose your Qt libraries .a and .so are in /usr/Qt/4.8.4/lib)
@export LD_LIBRARY_PATH=/usr/Qt/4.8.4/lib:$LD_LIBRARY_PATH@
After that try to execute (from console). Does it work?
-
What command do you use to execute the program?
It must be
@./yourbinaryfile@
Note the "./" indicating the current working directory. If you just want to be able to enter the name of the binary, like a bash command, you must move your binary to one of the "bin" directories, or at least make a softlink there.