Open raisjn opened 3 years ago
I have been thinking about it, though I don't have much experience with how to work inside the docker container with some parts of the environment inside and a part outside. How would Qt Creator acces the build environment inside the container. Maybe run Qt creator from inside the container as well...
Anyway I do want to make the developement process more accessible. So at the very least I will set up a repo in the coming days with some up to date scripts to automate the build process of Qt, etc.
Here you go ;) https://github.com/Rain92/kobo-qt-dev-docker
awesome, thank you - i am trying it out, now! previously, i just used qmake (no need for qt creator) inside docker images, like in https://github.com/toltec-dev/toolchain/blob/v2.x/qt/Dockerfile
$ docker run rain92/kobo-qt-dev
/launch.sh: line 7: 7 Aborted (core dumped) $executable
$ docker run rain92/kobo-qt-dev -v .:/umr/ kobo-qt-dev
/launch.sh: line 7: 8 Aborted (core dumped) $executable
$ docker run rain92/kobo-qt-dev -v .:/umr/ kobo-qt-dev :0
/launch.sh: line 7: 7 Aborted (core dumped) $executable
$
Are you calling from a Windows or Linux host?
Anyway I will add a flag to launch a shell instead of qtcreator.
you need -v /tmp:/tmp
no luck for me :-( - still get the same core dumped message. i'll investigate more on nights and this weekend
I have updated the docker image and the instructions. Try again and even if it doesn't work, now you should get some output and know why.
thanks so much for the patience and the updated images! i'm able to compile for desktop through the docker image but having trouble compiling for kobo from CLI. some things i've tried:
i've also tried running the above without sourcing the toolchain first and get a different error about arm_neon.h not being found
I'm not an expert in calling qmake from cli, but here are some hints. the 'kobo' argument in docker run will do nothing. Yep you do need "CONFIG+=kobo" for qmake but you also have to select the kobo kit, otherwise it will still build for desktop. But no idea how to do that from the comandline.
thanks! in order to get qt creator displaying on my local machine, i had to run xhost +
(disable access control) on the host machine before the guest could connect and display qt creator. i am sure there is a better way of doing this, but not sure what it is.
the instructions for building are good, but i don't want to spend hours re-compiling Qt + setting up the kobo target. is there a docker image available? (or plans for one?) thanks!