yavl / teeworlds-infcroya

InfCroya - InfClass with battle royale elements for Teeworlds 0.7+ (WIP)
https://www.teeworlds.com
Other
4 stars 0 forks source link

Windows compile does not work with gcc or cl #12

Open ChillerDragon opened 5 years ago

ChillerDragon commented 5 years ago

includes

The lua dependencys in other/infcroya/lua are only used when compiling with VS. But the cl compiler throws a bunch of errors

[  1/101] [1] c++ build/src/generated/nethash.cpp
[  2/101] [3] c++ build/src/generated/protocol.cpp
[  3/101] [2] c++ src/game/layers.cpp
[  4/101] [4] c++ src/game/gamecore.cpp
[  5/101] [5] c++ src/game/collision.cpp
[  6/101] [8] c src/base/system.c
[  7/101] [7] c src/base/hash_openssl.c
[  8/101] [6] c src/base/hash_libtomcrypt.c
bam.exe: 'c++ build/src/generated/nethash.cpp' error -1073741515
[  9/101] [1] c src/base/hash.c
bam.exe: 'c++ build/src/generated/protocol.cpp' error -1073741515
[ 10/101] [3] c++ src/engine/shared/storage.cpp
bam.exe: 'c++ src/game/gamecore.cpp' error -1073741515
[ 11/101] [4] c++ src/engine/shared/snapshot.cpp
bam.exe: 'c++ src/game/layers.cpp' error -1073741515
[ 12/101] [2] c++ src/engine/shared/ringbuffer.cpp
bam.exe: 'c++ src/game/collision.cpp' error -1073741515
[ 13/101] [5] c++ src/engine/shared/packer.cpp
bam.exe: 'c src/base/system.c' error -1073741515
[ 14/101] [8] c++ src/engine/shared/network_token.cpp
bam.exe: 'c src/base/hash_openssl.c' error -1073741515
[ 15/101] [7] c++ src/engine/shared/network_server.cpp
bam.exe: 'c src/base/hash_libtomcrypt.c' error -1073741515
[ 16/101] [6] c++ src/engine/shared/network_console_conn.cpp
bam.exe: 'c src/base/hash.c' error -1073741515
[ 17/101] [1] c++ src/engine/shared/network_console.cpp
bam.exe: 'c++ src/engine/shared/snapshot.cpp' error -1073741515

And when compiling with MinGW it fails on the lua.h include which makes sense. Even after i adjusted that it failed on a bunch of other things.

yavl commented 5 years ago

@ChillerDragon with last commit it should compile fine with MinGW.

you may need to specify target arch, x86 or x86_64, e.g

bam config geolocation=false compiler="gcc"
bam server arch="x86_64"
fokkonaut commented 5 years ago

src/infcroya/croyaplayer.cpp: In member function 'void CroyaPlayer::SetOldClassNum(int)':
src/infcroya/croyaplayer.cpp:413:15: error: 'Class' is not a class, namespace, or enumeration
  if (Class == Class::DEFAULT) {
               ^
src/infcroya/croyaplayer.cpp:414:11: error: 'Class' is not a class, namespace, or enumeration
   Class = Class::MEDIC;
           ^
bam: 'c++ src/infcroya/croyaplayer.cpp' error 1
bam: error: a build step failed