pubby / mapfab

4 stars 1 forks source link

How to build on Windows #1

Open DoctorMikeReddy opened 9 months ago

DoctorMikeReddy commented 9 months ago

Please forgive me, can I have instructions for how to build this. I have (or think I have) all the prerequisites but there must be something missing, as I am getting a load of similar errors to this:

CXX obj/main.o
g++ `wx-config --cxxflags` -std=gnu++20 -Wall -Wextra -Wno-unused-parameter -Wno
-narrowing -Wno-missing-field-initializers -fmax-errors=3 -ftemplate-depth=100 -
pipe -g -Isrc -DVERSION=\""0.2"\" -DGIT_COMMIT=\""548db00a"\" -O3 -DNDEBUG -Wno-
unused-variable -c -o obj/main.o src/main.cpp
/usr/bin/sh: line 1: wx-config: command not found
/usr/bin/sh: line 1: g++: command not found
make: *** [Makefile:91: obj/main.o] Error 127
DoctorMikeReddy commented 9 months ago

For now I am working with the binary from October 22

pubby commented 9 months ago

I built it using MSYS2. In that setup you need to install the packages for wxWidgets, Boost, etc.

I think it's possible your PATH variable is wrong. When you run a program in Linux, it looks up the executable in the folder specified by the PATH variable. Maybe you installed g++ and wxwidgets to a different folder than where its expecting.