Latest Posts

Topic: Building WL on win 10

hessenfarmer
Avatar
Topic Opener
Joined: 2014-12-11, 23:16
Posts: 2646
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2018-08-16, 17:46

If you see an error about the detection of the revision that doesn't work for me neither. But that can be ignored.


Top Quote
Arty
Avatar
Joined: 2018-08-03, 12:14
Posts: 20
Ranking
Pry about Widelands
Posted at: 2018-08-18, 12:31

So, I finally had time to try building again. The unspecified error I mentioned earlier was just due to my own forgetfulness. (After those weird path error messages I had - just to be sure - completely reinstalled msys and all the packages, but apparantly I just had forgotten to reinstall glew.) After fixing this, cmake went through without a hitch, and the actual building, too.

One thing though, the detect_revision script apparently failed to find proper revision info, so the version of my build was set to REVDETECT-BROKEN-PLEASE-REPORT-THIS. Not sure if something went wrong or if this is actually expected to happen for a local build or so. I had built directly from the trunk I had downloaded from Launchpad via Bazaar. It contains a Bazaar control directory which I assumed would be read by detect_bzr_revision() to get proper revision info, but I didn't really dive into the python script.


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2018-08-20, 10:24

Maybe you need a Bazaar package within MSys2 too? Just guessing...


Busy indexing nil values

Top Quote
Tino

Joined: 2009-02-20, 17:05
Posts: 252
Ranking
Tribe Member
Location: Somewhere in Germany...
Posted at: 2018-08-20, 11:19

Yes, "bzr" or "git" have to be available as a command for the python script to detect the version correctly. Check your PATH.

Sorry, the instructions for using the Nuwen Distro is currently pretty outdated (this is what i am using for my static builds), and i always wanted to replace it with using MSYS2 and pacman. As you've found out: The commands from the appveyor script should apply here. You'll just have to "remove" the logic to build 4 variants x64/x86/debug/release with the one variant you are interested in.

An Appveyor image is nothing else than your windows PC with some software (bzr/git/MSYS2) already installed.


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2018-08-25, 11:38

Additional instructions for downgrading boost:

  1. Download the package to C:\msys42/home/<username>
  2. call pacman -U mingw-w64-x86_64-boost-1.66.0-2-any.pkg.tar.xz

Busy indexing nil values

Top Quote
hessenfarmer
Avatar
Topic Opener
Joined: 2014-12-11, 23:16
Posts: 2646
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2018-08-25, 11:51

I have tried to describe the Steps for 32bit and 64bit and therefore I did not mention the exact package name. Also from my experience it doesn't matter where the package is saved locally as long as the path is specified properly in a Linux like format especially taking into account to use / instead of \ to separate the folders in the Path


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2018-08-25, 12:26

We obviously need to refine this, but pacman -U <boost 1.66="" package_name="">is not a legal command for pacman, and this did cost me some time and research face-wink.png


Busy indexing nil values

Top Quote
hessenfarmer
Avatar
Topic Opener
Joined: 2014-12-11, 23:16
Posts: 2646
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2018-08-25, 12:56

Agreed I will incorporate this


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2018-08-25, 13:28

My first attempt failed, but that was probably because I had already attempted building with MinGW. I have just installed a fresh MSys and will go through it again, taking notes. I'll publish my results to the wiki as a base to work off of.


Busy indexing nil values

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2018-08-25, 14:22

I have updated the wiki page now - please feel free to improve on this:

https://wl.widelands.org/wiki/BuildingWidelandsUnderWindowsNew/#building-with-msys2-only

Now I can finally start hunting Windows bugs, thank you so much!


Busy indexing nil values

Top Quote