Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows compile does not work with gcc or cl #12

Open
ChillerDragon opened this issue Oct 3, 2019 · 2 comments
Open

Windows compile does not work with gcc or cl #12

ChillerDragon opened this issue Oct 3, 2019 · 2 comments
Labels
bug Something isn't working high priority This issue has higher priority

Comments

@ChillerDragon
Copy link

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.

@teoman002 teoman002 added bug Something isn't working high priority This issue has higher priority labels Oct 3, 2019
@yavl
Copy link
Owner

yavl commented Oct 3, 2019

@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
Copy link

fokkonaut commented Oct 7, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority This issue has higher priority
Projects
None yet
Development

No branches or pull requests

4 participants