You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build the shlib target from source, and it fails with the following error message:
$ ./scripts/build_shlib.sh
cd libgambatte && scons shlib
scons: Reading SConscript files ...
Checking for C header file zlib.h... no
scons: *** Two environments with different actions were specified for the same target: src\bitmap_font.obj
(action 1: cl /Fobitmap_font.obj /c bitmap_font.cpp -Wall -Wextra -O2 -fomit-frame-pointer -fno-exceptions -fno-rtti -std=c++11 -DHAVE_STDINT_H /nologo)
(action 2: cl /Fobitmap_font.obj /c bitmap_font.cpp -Wall -Wextra -O2 -fomit-frame-pointer -fno-exceptions -fno-rtti -std=c++11 -DHAVE_STDINT_H -DSHLIB -DREVISION=830 /nologo)
File "D:\GitHub\BizHawk\submodules\gambatte\libgambatte\SConstruct", line 101, in <module>
Apparently, cl is detected and preferred over gcc, even though cl isn't on path and gcc is (thanks scons).
The documentation specifies the following: On Windows systems which identify as win32, scons searches in order for the Microsoft Visual C++ tools, the MinGW tool chain, the Intel compiler tools, and the PharLap ETS compiler. On Windows system which identify as cygwin (that is, if scons is invoked from a cygwin shell), the order changes to prefer the GCC toolchain over the MSVC tools.
Clearly, cygwin != msys so scons tries to use cl.
To force mingw(-ish) compilers to be used, the following diff can be applied:
I'm trying to build the shlib target from source, and it fails with the following error message:
Apparently,
cl
is detected and preferred overgcc
, even thoughcl
isn't on path andgcc
is (thanks scons).The documentation specifies the following:
On Windows systems which identify as win32, scons searches in order for the Microsoft Visual C++ tools, the MinGW tool chain, the Intel compiler tools, and the PharLap ETS compiler. On Windows system which identify as cygwin (that is, if scons is invoked from a cygwin shell), the order changes to prefer the GCC toolchain over the MSVC tools.
Clearly, cygwin != msys so scons tries to use
cl
.To force mingw(-ish) compilers to be used, the following diff can be applied:
However, building with that still gives me a similar error, just with
g++
instead ofcl
:The text was updated successfully, but these errors were encountered: