Unsolved Problem in Deploying and Running Application on Ubuntu.
-
should i create another directory named resources under soduku-solver deploy folder and place all graphic image under it? and gives that path in our code with respect to binary. @p3c0
-
@Girishkuniyal No problem for now. But remember using Qt's Resource system in the future to avoid cross deployment problems.
-
@Girishkuniyal You could also check using
strace
to check what files are being opened and that they are found. Try this:
strace -e open yourbinary
-
-
@Girishkuniyal No.. Run it on your binary and not your script. Put that inside your shell script.
-
Now Output is http://paste.ubuntu.com/23202346/ @p3c0
-
@Girishkuniyal I had said to put it inside your script because you set
LD_LIBRARY_PATH
there. Due to this you can see the binary was not able to resolve the Qt library paths.
Anyway if you decide to run it directly make sure you exportLD_LIBRARY_PATH
on the terminal just before running thestrace
. This will make sure the library path is set.
Paste that output.
i.e whatever you do inside the script, run that directly on the terminal line by line except the first line#!/bin/sh
-
Now The Output is http://paste.ubuntu.com/23202369/
-
Something is wrong. It should have printed all the
open
calls on the terminal like it printed as seen in the last screenshot that you posted. Can you check again whats wrong? -
are you know . I am running all this in my virtual machine different from development machine? @p3c0
-
@Girishkuniyal It doesn't matter if your deployment machine is a virtual machine or a physical machine as long as the application requirements are satisfied.
-
Now what to do ? where is the problem ? @p3c0
Please help me to deploy this app. -
@Girishkuniyal Did you replace all hardcoded paths with paths present on deployment system and test ?
-
I gave path relative to binary . @p3c0 I updated github repo after alter the code
-
@Girishkuniyal so is it still the same error ? Did you try
strace
from outside ? -
I updated my git repo after code changed @p3c0 I used after export inside bash script
-
Sorry @Girishkuniyal unfortunately I cant go through your whole code. You should somehow find a way to get output from strace. Please go through the steps I posted earlier. Post the strace output for that binary with Qt librarys all set.
-
I get same output . I cant find any error. @p3c0
-
@p3c0 above Problem is solved.
I first runing ldd libqxcb.so and copy all dependencies on Qt_Libraries folder.
then In script I added
export QT_QPA_PLATFORM_PLUGIN_PATH=$PWD/Qt_Libraries
and application starts running. :) -
But Now the total size of application folded become 64 Mb just for a very small application how can i reduced that size ??? @p3c0