Windows build successful - Findings

Stefan Fuchs sfuchs at gmx.de
Sat Jan 28 12:41:06 PST 2017


Hi Dirk, hi Lubomir, hi All,

finally managed to run a successful MXE based windows build!!!

I would like to share my experience with you and also propose a few
minor changes mainly to comments in mxe-based-build.sh which could maybe
make life easier for other inexperienced users like me. Maybe I even
submit a pull request with the changes if I learn how to do it... :-)

*Here are my findings:*
- MXE
This was the biggest hurdle! Beside this the other items are peanuts.
MXE current version from git produced an windows executable on my side
which immediately crashes. No idea why... Debug build is still s.th. I
didn't manage to do.
I then tried the MXE version from git tagged as "build-2016-10-12" which
finally worked.
But with this version I also had difficulties with building MXE itself.
gcc from this version crashed building parts of Qt due to the JOBS := 12
setting in settings.mk.
Much too high for my poor VM with very limited memory...
I really went to the safe side and set  JOBS := 1.

- File system layout
This is not a real issue. As I wrote already before I was just confused
how to set it up. Maybe one could change only the comments in
mxe-based-build.sh in a way to guide the user to really setup such a
flat hierarchy like:

└── src
  ├── grantlee
  ├── install-root
  ├── libdivecomputer
  ├── libgit2
  ├── libcurl
  ├── libssh2
  ├── marble-source
  ├── subsurface	<-- source from git
  ├── mxe
  └── win32   <-- windows build dir


- Marble
Marble build complained something about "C++ 11 support".
"export CXXFLAGS=-std=c++11" did the trick. Would it be good to put this
into mxe-based-build.sh?

- Libcurl
For libcurl it seems to be also not recommended to use the lastest
version from git. This is already in the comments (7.42.1 works also for
me).
For a beginner like me it would be even great to mention that what one
can find on github as "curl" is what we really need ;-)


*Now for the moment I still have one minor issue left:*
- A few standard terms like "Cancel / Abbrechen", "Save / Speichern" on
buttons are not translated into German in my build. In the official 4.6
they are translated.
What's missing here on my side? S.th. MXE/Qt related?


Thanks!

Best regards
Stefan

-- 

Stefan Fuchs
Banzhaldenstr. 66
70469 Stuttgart
E-Mail: sfuchs at gmx.de <mailto:sfuchs at gmx.de>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20170128/b6d32168/attachment.html>


More information about the subsurface mailing list