go-qml / qml

QML support for the Go language
Other
1.96k stars 187 forks source link

The setup.sh script for Ubuntu Touch references v0 paths #136

Open janimo opened 9 years ago

nikwen commented 9 years ago

Check out this template if you want to be able to cross-compile your Ubuntu Go-QML project: https://github.com/nikwen/ubuntu-go-qml-template It also includes go-qml v1.

janimo commented 9 years ago

Niklas, I remember seeing those but seemed complicated :/ Is there an easier way that does not involve the full SDK?

nikwen commented 9 years ago

The difference between the setup script and my template is that the setup script compiles your projects on your phone while the template allows you to compile them on your PC. I find the latter much more convenient. ;)

Which part of the process did you find complicated? I'd be glad to help out.

janimo commented 9 years ago

Firstly, It is complicated compared to what I would prefer, not necessarily compared to what is possible, so it was not a criticism of your work. For non-qml apps I used the https://github.com/davecheney/golang-crosscompile scripts and those "just" built Go from sources to target say ARM, and provide a shell alias for the resulting cross-compiler. The dependency on cgo and qml ARM libs may make it impossible to have such a 2 step process for this use case though :)

nikwen commented 9 years ago

Hi,

Sorry for the late reply. I was busy doing a lot of things and this one somehow got burried in my inbox...

It really depends on what you consider to be complicated. Once you've run the setup script, compiling your project will be as easy as executing a single script. I still find this easier than compiling it on my device. ;)