[Qt-creator] Deploying to remote linux device

Egor egor.zhuk at gmail.com
Tue Mar 20 20:25:54 CET 2012


On Tue, 20 Mar 2012 21:14:50 +0300, Duane <duane.hebert at group-upc.com>  
wrote:

> On 03/20/2012 01:40 PM, Christian Kandeler wrote:
>> On 03/20/2012 05:53 PM, ext Duane wrote:
>>> Using QtCreator with Qt4.7.4 or 4.8 on Fedora 16.
>>>
>>> I can create my project and get it to deploy the binary to a remote
>>> device and it will run if the remote device has the dependencies.  But
>>> I want to also deploy a few shared libs like libboost_date_time.so.   
>>> How
>>> can I specify these?
>>
>> You would specify them the same way as your binary, i.e. using the
>> INSTALLS variable:
>>       mylibs.files = lib1.so lib2.so ... libn.so
>>       mylibs.path =<path on the device where they can be found by your
>> application>
>>       INSTALLS += mylibs
>>    But are you sure that's what you want? What is your target system?
>> Where do you get the shared libraries from? Why are they not on the
>> target system already? Won't they have dependencies themselves? Etc. pp.
>> In short, I have a suspicion that you'd be better off linking your
>> executable statically.
>
> We have custom libs to deploy along with our app and I just want to see
> them show up.  I'm trying with a couple of boost libs.
>
> When I add to my .pro file:
>
> linux-* {
>
>       target.path = /home/someuser/myprogram
>       INSTALLS += target
>
>
> }
>
> in Creator, I see the deploy step and when I run from creator, the app
> gets deployed there.  Adding files doesn't seem to work.
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

Try to use DEPLOYMENT qmake variable instead INSTALLS. There is some  
examples in qmake documentation -  
http://qt-project.org/doc/qt-4.8/qmake-variable-reference.html#deployment



More information about the Qt-creator mailing list