Hi, I am not friendly with C++ and freeorion build procedures. All I want is to build in one click, without installing SDK and other tools to my PC.
Docker looks like a solution for that: create an image, start a container, take your build.
As I know it is possible to build for the window from other operating systems but I need some instructions.
I will create a docker file and provide instructions to use and maintain it.
PS. I started using Docker in real life and soon will become a kind of expert .
How to build Windos build in Ubuntu(Docker)
Moderator: Committer
How to build Windos build in Ubuntu(Docker)
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0
Re: How to build Windos build in Ubuntu(Docker)
If I understand correctly you want to build freeorion for playing on windows.
And you want to build/cross-compile from linux?
And you want to build/cross-compile from linux?
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
Look, ma... four combat bouts!
Look, ma... four combat bouts!
- adrian_broher
- Programmer
- Posts: 1156
- Joined: Fri Mar 01, 2013 9:52 am
- Location: Germany
Re: How to build Windos build in Ubuntu(Docker)
No, that's not possible with Docker. Docker provides process isolation, not virtualization. You share the kernel with the host system and that limits the available user space application. To cross-compile from linux to windows you need a cross compiler (eg. mingw) or you need the actual target plaform in some virtualized way.As I know it is possible to build for the window from other operating systems but I need some instructions.
I personally used VirtualBox with handcrafted build environments during FO development for developing on Windows and Mac and left that crap mostly alone as soon the project was working again.
Today I would go with Vagrant and use that to do an unattendend provisioning the Windows and Mac VMs for development.
Yeah, nah.I started using Docker in real life and soon will become a kind of expert :).
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz
Re: How to build Windos build in Ubuntu(Docker)
Docker for windows provides virtualization via VirtualBox. Same for Docker for Mac.adrian_broher wrote: ↑Fri Mar 08, 2019 11:52 amNo, that's not possible with Docker. Docker provides process isolation, not virtualization. You share the kernel with the host system and that limits the available user space application.As I know it is possible to build for the window from other operating systems but I need some instructions.
mingw looks like a good directionTo cross-compile from linux to windows you need a cross compiler (eg. mingw) or you need the actual target plaform in some virtualized way.
I opened Vargant page on the wiki: Docker Virtual Box both mentioned there Looks like both Docker and Vargant suitable for that task. I will try to understand who can do it better.I personally used VirtualBox with handcrafted build environments during FO development for developing on Windows and Mac and left that crap mostly alone as soon the project was working again.
Today I would go with Vagrant and use that to do an unattendend provisioning the Windows and Mac VMs for development.
Did you have any progress with Vargant?
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0
Re: How to build Windos build in Ubuntu(Docker)
I have a Windows machine. I want to
I do an AI stuff on Python, installing CDK and Visual Studio is not in my plans.
I am familiar with Linux and I think I can create a Docker image that will do cross-compilation for me. adrian_broher already created base Docker image to build FreeOrion for linux: https://github.com/freeorion/freeorion- ... Dockerfile
But I am not familiar with cross-compilation and don't know which command I should run.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0
- adrian_broher
- Programmer
- Posts: 1156
- Joined: Fri Mar 01, 2013 9:52 am
- Location: Germany
Re: How to build Windos build in Ubuntu(Docker)
Docker runs within a Linux virtual machine on those platforms (neatly packaged and well hidden for the docker user), that's true. But there is no virtualization feature within Docker.
I never have touched the topic of cross-compiling in any reasonable depth to be honest. The documentation I found is spotty so far. Maybe this article can give you some leads: https://metricpanda.com/rival-fortress- ... -platforms
Vagrant is a way do describe the setup of a Virtual Machine in ruby. As long as you can do installation and configuration in an unattended way you're good to go. I currently have an half-assed Vagrantfile, which does some basic configuration of a Win10 machine and installs VisualStudio 2017 with all the native development tools required (x86 and x64 toolchains, Windows SDK, actual VS editor, Git and CMake support for VS). However because Microsoft botchered up the corresponding Vagrant Box (prepackage virtual machine) you have to download and unzip the Virtual Machine manually before being able to import it into Vagrant.I opened Vargant page on the wiki: Docker Virtual Box both mentioned there :) Looks like both Docker and Vargant suitable for that task. I will try to understand who can do it better.
Did you have any progress with Vargant?
So yeah, somewhat.
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz