Author Topic: Build on Windows without VS  (Read 1801 times)

Online Yankes

  • Commander
  • *****
  • Posts: 2072
    • View Profile
Re: Build on Windows without VS
« Reply #15 on: August 19, 2018, 06:38:57 pm »
Yes, of course. make -f Makefile.gcc-pch clean before switching to the other makefile.
But it not look like this, because if you do OXCE+ build your compilation would return error not linking stage.

Offline BTAxis

  • Colonel
  • ****
  • Posts: 130
    • View Profile
Re: Build on Windows without VS
« Reply #16 on: August 19, 2018, 07:11:57 pm »
I'm pretty sure I am not editing Makefile.mingw correctly (I don't really speak make). You were right about not cleaning properly earlier though, because it turns out the edit to Text.cpp/h I mentioned was not necessary.

Anyway this is the makefile I'm attempting to use (I only edited the paths to SDL, Boost and YAML). Again, fairly sure it's to do with YAML because the makefile points to sources that don't exist.

Online Yankes

  • Commander
  • *****
  • Posts: 2072
    • View Profile
Re: Build on Windows without VS
« Reply #17 on: August 19, 2018, 08:01:03 pm »
OXCE compile yaml from sources: `git clone https://github.com/jbeder/yaml-cpp.git` (you need run this command in correct dir to match makefile)

Offline BTAxis

  • Colonel
  • ****
  • Posts: 130
    • View Profile
Re: Build on Windows without VS
« Reply #18 on: August 19, 2018, 10:25:09 pm »
OXCE compile yaml from sources: `git clone https://github.com/jbeder/yaml-cpp.git` (you need run this command in correct dir to match makefile)

Actually no, that's not needed with msys2. It provides the yaml-cpp package via its package manager.

I've worked out how to do it now. This makefile will build the game without fuss. Okay, a couple of warnings. But it works.

Thanks for your input Yankes, you've been a great help.

Online Yankes

  • Commander
  • *****
  • Posts: 2072
    • View Profile
Re: Build on Windows without VS
« Reply #19 on: August 19, 2018, 11:24:15 pm »
And what version is avaialbe in this package? One reason why I use sources from github is because some environments had outdated version.
As bonus new version use C++11 and do not depend on Boost.

Offline BTAxis

  • Colonel
  • ****
  • Posts: 130
    • View Profile
Re: Build on Windows without VS
« Reply #20 on: August 20, 2018, 11:45:42 am »
And what version is avaialbe in this package? One reason why I use sources from github is because some environments had outdated version.
As bonus new version use C++11 and do not depend on Boost.

Code: [Select]
$ pacman -Ss yaml-cpp
mingw32/mingw-w64-i686-yaml-cpp 0.6.2-1 [installed]
    A YAML parser and emitter in C++ matching the YAML 1.2 spec (mingw-w64)
mingw32/mingw-w64-i686-yaml-cpp0.3 0.3.0-2
    A YAML parser and emitter in C++ matching the YAML 1.2 spec (mingw-w64) - old version
mingw64/mingw-w64-x86_64-yaml-cpp 0.6.2-1 [installed]
    A YAML parser and emitter in C++ matching the YAML 1.2 spec (mingw-w64)
mingw64/mingw-w64-x86_64-yaml-cpp0.3 0.3.0-2
    A YAML parser and emitter in C++ matching the YAML 1.2 spec (mingw-w64) - old version

It seems to work out for me, I've played on my binary and noticed no issues.
Thanks for the tip about Boost, removing it worked just fine.