WAGO / pfc-howtos

Here you will find all the example code for extensions and tools for the pfc family
Mozilla Public License 2.0
37 stars 19 forks source link

[doc] HowTo Utilize/build/setup for Cross Compilation using Qt/QtCreator #7

Open GitHubStefan13 opened 4 years ago

GitHubStefan13 commented 4 years ago

This HowTo explains how to build Qt from source for the embedded Linux Device PFCXXXX. It also explains how to integrate the Sysroot and Toolchain in a similar way to "HowTo_UtilizeEclipseCDT" but also adds the huge Qt Library to the available Libaries.

After the succesful build you will be able to compile/deploy/debug the Application without the need of ptxdist.

PS: Feel free to change/edit the Documentation to you standards if needed.

Ekristoffe commented 4 years ago

Hello Stefan, Your HowTo is missing 1 or 2 important files: The README.md which should explain the how to, look at the other howto for example. The LICENCE file is also important if you have made your own or used other code. I your pdf file you talk about the system tested only for ubuntu 19.04, have you been able to use ubuntu 19.04 with the PFC SDK ? Thanks

GitHubStefan13 commented 4 years ago

I will update the README.md and the License soon. I can answer your question regarding the system immediately though.

I followed the HowTo on how to build the PFC SDK(Ubuntu 16.04 VM), with that done i have a working SYSROOT in the Platform folder of the ptxdist. I then copied that over to my main machine(UBUNTU 19.04) and build the Qt Version of it. Theoritically aslong as you build your own Qt-Version on your Host-Machine with the buildCross Compile Sysroot(fromthe 16.04VM) you should even be able to get a Cross-Compile Envirornment running for Windows.

I haven't used any Licensed code, so the license will be MIT Edit: Nevermind, the file "qplatformdefs.h" contains a license from qt. it only has one generic inlucde though, so i will rewrite the HowTo to address that the file needs to be copied, instead of including it in the pull request.

GitHubStefan13 commented 4 years ago

Updated the README and License