Re: [Patch] New Makefile
I've updated Harry's makefile, to make it compatible with r666.
Tested under MSYS2 environment running on Windows 10 PRO x64.
Tested under MSYS2 environment running on Windows 10 PRO x64.
Kacperas wrote:I've updated Harry's makefile, to make it compatible with r666.
Tested under MSYS2 environment running on Windows 10 PRO x64.
make -f Makefiles/Makefile.Win32 -j6
Bart wrote:Oh, Ian: I changed Src/Sound/MPEG/audio.c and .h to amp_audio.*.
Bart wrote:The Makefiles have been replaced. I haven't tested the UNIX or Mac OS X ones yet but they should work. These Makefiles support parallel compilation. I have to add an Msys Makefile but for now, Makefile.Win32 supports gcc from the ordinary command prompt. The top-level OS-dependent Makefiles still need a little bit of editing to set up SDL include paths and the like but they all include the same core Makefile which has saner rules and auto-generation of dependencies.
[...]
Kacperas wrote:Bart wrote:The Makefiles have been replaced. I haven't tested the UNIX or Mac OS X ones yet but they should work. These Makefiles support parallel compilation. I have to add an Msys Makefile but for now, Makefile.Win32 supports gcc from the ordinary command prompt. The top-level OS-dependent Makefiles still need a little bit of editing to set up SDL include paths and the like but they all include the same core Makefile which has saner rules and auto-generation of dependencies.
[...]
I've tested new makefile and I wasn't able to build Supermodel using it... After checking the file, I've noticed, that zlib path wasn't declared, so I've added it to Makefile.Win32 and a proper flag to Makefile.inc.
After these changes, svn build in no time. In any case - big thanks.
[...]
In file included from D:/.dev/msys64/mingw64/include/c++/7.2.0/bits/stl_algo.h:60:0,
from D:/.dev/msys64/mingw64/include/c++/7.2.0/algorithm:62,
from Src/Debugger/AddressTable.h:33,
from Src/Debugger/io.h:32,
from D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h:10,
from D:/.dev/msys64/mingw64/include/zconf.h:475,
from D:/.dev/msys64/mingw64/include/zlib.h:34,
from Src/Pkgs/unzip.h:51,
from Src/GameLoader.h:5,
from Src/GameLoader.cpp:1:
D:/.dev/msys64/mingw64/include/c++/7.2.0/bits/algorithmfwd.h:195:3: error: template with C linkage
template<typename _IIter, typename _Predicate>
^~~~~~~~
D:/.dev/msys64/mingw64/include/c++/7.2.0/bits/algorithmfwd.h:199:3: error: template with C linkage
template<typename _IIter, typename _Predicate>
^~~~~~~~
D:/.dev/msys64/mingw64/include/c++/7.2.0/bits/algorithmfwd.h:204:3: error: template with C linkage
template<typename _FIter, typename _Tp>
^~~~~~~~
D:/.dev/msys64/mingw64/include/c++/7.2.0/bits/algorithmfwd.h:208:3: error: template with C linkage
template<typename _FIter, typename _Tp, typename _Compare>
[...]
In file included from D:/.dev/msys64/mingw64/include/c++/7.2.0/bits/stl_algo.h:66:0,
from D:/.dev/msys64/mingw64/include/c++/7.2.0/algorithm:62,
from Src/Debugger/AddressTable.h:33,
from Src/Debugger/io.h:32,
from D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h:10,
from D:/.dev/msys64/mingw64/include/zconf.h:475,
from D:/.dev/msys64/mingw64/include/zlib.h:34,
from Src/Pkgs/unzip.h:51,
from Src/GameLoader.h:5,
from Src/GameLoader.cpp:1:
D:/.dev/msys64/mingw64/include/c++/7.2.0/bits/uniform_int_dist.h:44:5: error: template with C linkage
template<typename _Tp>
^~~~~~~~
D:/.dev/msys64/mingw64/include/c++/7.2.0/bits/uniform_int_dist.h:60:3: error: template with C linkage
template<typename _IntType = int>
^~~~~~~~
D:/.dev/msys64/mingw64/include/c++/7.2.0/bits/uniform_int_dist.h:218:3: error: template with C linkage
template<typename _IntType>
^~~~~~~~
D:/.dev/msys64/mingw64/include/c++/7.2.0/bits/uniform_int_dist.h:284:3: error: template with C linkage
template<typename _IntType>
^~~~~~~~
In file included from D:/.dev/msys64/mingw64/include/c++/7.2.0/algorithm:62:0,
from Src/Debugger/AddressTable.h:33,
from Src/Debugger/io.h:32,
from D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h:10,
from D:/.dev/msys64/mingw64/include/zconf.h:475,
from D:/.dev/msys64/mingw64/include/zlib.h:34,
from Src/Pkgs/unzip.h:51,
from Src/GameLoader.h:5,
from Src/GameLoader.cpp:1:
D:/.dev/msys64/mingw64/include/c++/7.2.0/bits/stl_algo.h:76:3: error: template with C linkage
template<typename _Iterator, typename _Compare>
^~~~~~~~
D:/.dev/msys64/mingw64/include/c++/7.2.0/bits/stl_algo.h:99:3: error: template with C linkage
template<typename _InputIterator, typename _Predicate>
^~~~~~~~
D:/.dev/msys64/mingw64/include/c++/7.2.0/bits/stl_algo.h:110:3: error: template with C linkage
template<typename _RandomAccessIterator, typename _Predicate>
[...]
In file included from D:/.dev/msys64/mingw64/include/zconf.h:475:0,
from D:/.dev/msys64/mingw64/include/zlib.h:34,
from Src/Pkgs/unzip.h:51,
from Src/GameLoader.h:5,
from Src/GameLoader.cpp:1:
D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h: In function 'int ftruncate(int, off32_t)':
D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h:67:10: error: '_chsize' was not declared in this scope
return _chsize (__fd, __length);
^~~~~~~
D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h:67:10: note: suggested alternative: '_msize'
return _chsize (__fd, __length);
^~~~~~~
_msize
Generating dependencies: Src/Graphics/Legacy3D/TextureRefs.cpp -> _obj/TextureRefs.d
Compiling : Src/Graphics/Legacy3D/TextureRefs.cpp -> _obj/TextureRefs.o
make: *** [Makefiles/Makefile.inc:324: _obj/GameLoader.o] Error 1
[...]
In file included from D:/.dev/msys64/mingw64/include/zconf.h:475:0,
from D:/.dev/msys64/mingw64/include/zlib.h:34,
from Src/Pkgs/unzip.h:51,
from Src/GameLoader.h:5,
from Src/OSD/SDL/Main.cpp:71:
D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h: In function 'int ftruncate(int, off32_t)':
D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h:67:10: error: '_chsize' was not declared in this scope
return _chsize (__fd, __length);
^~~~~~~
D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h:67:10: note: suggested alternative: '_msize'
return _chsize (__fd, __length);
^~~~~~~
_msize
Generating dependencies: Src/Pkgs/unzip.c -> _obj/unzip.d
Compiling : Src/Pkgs/unzip.c -> _obj/unzip.o
Generating dependencies: Src/ROMSet.cpp -> _obj/ROMSet.d
Compiling : Src/ROMSet.cpp -> _obj/ROMSet.o
make: *** [Makefiles/Makefile.inc:322: _obj/Main.o] Error 1
Generating dependencies: Src/GameLoader.cpp -> _obj/GameLoader.d
Compiling : Src/GameLoader.cpp -> _obj/GameLoader.o
Generating dependencies: Src/OSD/SDL/Main.cpp -> _obj/Main.d
Compiling : Src/OSD/SDL/Main.cpp -> _obj/Main.o
In file included from D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h:10:0,
from D:/.dev/msys64/mingw64/include/zconf.h:475,
from D:/.dev/msys64/mingw64/include/zlib.h:34,
from Src/Pkgs/unzip.h:51,
from Src/GameLoader.h:5,
from Src/GameLoader.cpp:1:
Src/Debugger/io.h:126:2: error: expected class-name before '{' token
{
^
In file included from D:/.dev/msys64/mingw64/include/zconf.h:475:0,
from D:/.dev/msys64/mingw64/include/zlib.h:34,
from Src/Pkgs/unzip.h:51,
from Src/GameLoader.h:5,
from Src/GameLoader.cpp:1:
D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h: In function 'int ftruncate(int, off32_t)':
D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h:67:10: error: '_chsize' was not declared in this scope
return _chsize (__fd, __length);
^~~~~~~
D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h:67:10: note: suggested alternative: '_msize'
return _chsize (__fd, __length);
^~~~~~~
_msize
make: *** [Makefiles/Makefile.inc:324: _obj/GameLoader.o] Error 1
In file included from D:/.dev/msys64/mingw64/include/zconf.h:475:0,
from D:/.dev/msys64/mingw64/include/zlib.h:34,
from Src/Pkgs/unzip.h:51,
from Src/GameLoader.h:5,
from Src/OSD/SDL/Main.cpp:71:
D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h: In function 'int ftruncate(int, off32_t)':
D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h:67:10: error: '_chsize' was not declared in this scope
return _chsize (__fd, __length);
^~~~~~~
D:/.dev/msys64/mingw64/x86_64-w64-mingw32/include/unistd.h:67:10: note: suggested alternative: '_msize'
return _chsize (__fd, __length);
^~~~~~~
_msize
make: *** [Makefiles/Makefile.inc:324: _obj/Main.o] Error 1
make: Target 'all' not remade because of errors.