[SailfishDevel] Third party modules / header files

Putze Sven sailfish.os at hardcodes.de
Tue Nov 26 14:53:12 UTC 2013


Hi Christopher,

> 
> http://flyingsheeponsailfish.blogspot.ch/2013/11/deploying-additional-packages-to.html
Thanks for the read. So I am not so wrong at all :-)

> You should not need to map any additional drives for Qt Creator to find headers, the SDK VM already has shared folders that access you home drive (within which you have to install the Sailfish SDK).
> 
If my understanding of the official documentation is right, then the home folder of my development machine (where QtCreator runs) is shared with the VM. This way the compiler can access the source.
But I want the other way around. Re-using header files already there on the SDK machine (the headless one). Is there a drive mapped into my home folder? And if yes, where?

> One point additional point discussed in many mails over the past few weeks is what / where can you install shared libraries to make your app compliant with the rules of the Jolla Harbour app store. My (shaky) understanding  is that while technically you can use the Yaml / spec file to automatically install additional packages, for the app store you will have to bundle these with your app (i.e. not shared).

Hm, so far I thought that this is true for everything that is _not_ available as RPM package in the NEMO repository.

BR.
Sven

> 
> mfg
> 
> Chris
> 
> Zitat von "Putze Sven" <sailfish.os at hardcodes.de>:
> 
>> Hi there,
>> 
>> For some time now I am wondering what the best practice would be for using third party components. First off all I want to sketch my understanding so far:
>> 
>> # I can use any RPM package that is available via "zypper" on the emulator AKA "The SailfishOS Emulator". SSH in that thingy and install the files. That way the package is there, where it is needed and used in the end.
>> # The same package plus header files are installed in the "Mer build engine for cross compilation", so the compiler and linker can find/use them during compilation/linking time (and packaging time later on)
>> 
>> Development is done on the "QtCreator integrated development environment" plus some plugins for the communication with the virtual machines (and later on the physical device). This is the only platform dependent piece of software since the rest is done in VMs. So far so good, now the washy part.
>> 
>> # For developing convenience it would be nice if the editor in QtCreator knew about the header files that are part of the earlier mentioned packages.
>> What's the best practice here? Do you guys mount a drive from the "Mer build engine for cross compilation" to simply re-use those header files for the QtCreator? Do you copy them over to a local path? Am I on the wrong path? ;-)
>> 
>> # Finally there must be a way to tell the build system that there is a dependency to an existing RPM package.
>> I assume that is somehow done in the .YAML file in the "Requires" section. Do I simply add the name of the package here?
>> 
>> 
>> If that has been asked and answered before just point me to the appropriate resource, that I have googled it wrong.
>> 
>> 
>> Best regards
>> Sven
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>> 
> 
> 
> 



More information about the Devel mailing list