How to Compile and Distruite your application
-
For each plataform I will need copy the code, compile and test?
I mean, in Linux 32bits and Linux 64bits I will need to compile for each platform... that's right?
On windows 7 is the same thing? -
Applications developed for 32bits can be executed on windows 64 bits. This also applies to almost all 64 bits linux distributions.
-
It's possible to me compile the application to Linux 32bits?
My computer is 64bits, it's possible to compile to both platform in my environment? -
Yes. Install QtSDK for linux 32 bits in your 64 bits environment.
-
Simple.
Thanks, I have have more problems I will ask here. -
OK compiled in 32bits, and works fine on 64bits!
But When I copy the application to another computer, I got this message:./InoveSATBV: error while loading shared libraries: libqextserialport-1.2.so.1: cannot open shared object file: No such file or directory
-
Can I embed this ".so" file in my binary?
-
[quote author="dcbasso" date="1344085828"]Can I embed this ".so" file in my binary?[/quote]
Yes if you build libqextserialport as static library.
[quote author="dcbasso" date="1344085378"]./InoveSATBV: error while loading shared libraries: libqextserialport-1.2.so.1: cannot open shared object file: No such file or directory[/quote]
Well, did you build libqextserialport yourself, or did you installed as part as your linux libraries packages ?
What is the result of
@
ldd InoveSATBV
@command on client machine ?
-
I fix the problem using a runner to my application.
I don't really like my solution:@
#!/bin/sh
export LD_LIBRARY_PATH=.
./appname $*
@See: http://www.qtcentre.org/wiki/index.php?title=Deploying_Qt_Applications
Static library? I will search for this "resource".
-
Static Lib need to be a File ended with ".a"?
How can I configure the .pro file to differ the compilation for 32bits and 64bits?