GithubHelp home page GithubHelp logo

Comments (9)

lukeacat avatar lukeacat commented on June 12, 2024

Running Manjaro Linux 19 (newest)!
CMake version: 3.16.5

from growtopiaserver2.

lukeacat avatar lukeacat commented on June 12, 2024

Fixed by installing enet in /enet.

from growtopiaserver2.

lukeacat avatar lukeacat commented on June 12, 2024

After running cmake, on make:

make[1]: Entering directory '/home/kuteshi/GrowtopiaServer2'
make[2]: Entering directory '/home/kuteshi/GrowtopiaServer2'
Scanning dependencies of target enet
make[2]: Leaving directory '/home/kuteshi/GrowtopiaServer2'
make[2]: Entering directory '/home/kuteshi/GrowtopiaServer2'
[  5%] Building C object libs/enet/CMakeFiles/enet.dir/callbacks.c.o
[ 10%] Building C object libs/enet/CMakeFiles/enet.dir/compress.c.o
[ 15%] Building C object libs/enet/CMakeFiles/enet.dir/host.c.o
[ 20%] Building C object libs/enet/CMakeFiles/enet.dir/list.c.o
[ 25%] Building C object libs/enet/CMakeFiles/enet.dir/packet.c.o
[ 30%] Building C object libs/enet/CMakeFiles/enet.dir/peer.c.o
[ 35%] Building C object libs/enet/CMakeFiles/enet.dir/protocol.c.o
[ 40%] Building C object libs/enet/CMakeFiles/enet.dir/unix.c.o
[ 45%] Building C object libs/enet/CMakeFiles/enet.dir/win32.c.o
[ 50%] Linking C static library libenet.a
make[2]: Leaving directory '/home/kuteshi/GrowtopiaServer2'
[ 50%] Built target enet
make[2]: Entering directory '/home/kuteshi/GrowtopiaServer2'
make[2]: Leaving directory '/home/kuteshi/GrowtopiaServer2'
make[2]: Entering directory '/home/kuteshi/GrowtopiaServer2'
[ 55%] Building CXX object CMakeFiles/GrowtopiaServer.dir/src/ENetWrapper/ENetServer.cpp.o
/home/kuteshi/GrowtopiaServer2/src/ENetWrapper/ENetServer.cpp: In member function ‘void ENetServer::setServerData(uint8_t*)’:
/home/kuteshi/GrowtopiaServer2/src/ENetWrapper/ENetServer.cpp:151:10: error: ‘ENetHost’ {aka ‘struct _ENetHost’} has no member named ‘data’
  151 |  server->data = (void*) data;
      |          ^~~~
/home/kuteshi/GrowtopiaServer2/src/ENetWrapper/ENetServer.cpp: In member function ‘uint8_t* ENetServer::getServerData()’:
/home/kuteshi/GrowtopiaServer2/src/ENetWrapper/ENetServer.cpp:154:27: error: ‘ENetHost’ {aka ‘struct _ENetHost’} has no member named ‘data’
  154 |  return (uint8_t*)server->data;
      |                           ^~~~
make[2]: *** [CMakeFiles/GrowtopiaServer.dir/build.make:63: CMakeFiles/GrowtopiaServer.dir/src/ENetWrapper/ENetServer.cpp.o] Error 1
make[2]: Leaving directory '/home/kuteshi/GrowtopiaServer2'
make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/GrowtopiaServer.dir/all] Error 2
make[1]: Leaving directory '/home/kuteshi/GrowtopiaServer2'
make: *** [Makefile:84: all] Error 2

I've downloaded enet and put it in the /enet/ folder.

EDIT by GrowtopiaNoobs: fixing code formating

from growtopiaserver2.

lukeacat avatar lukeacat commented on June 12, 2024

Installing enet helps nothing.

from growtopiaserver2.

NotDark avatar NotDark commented on June 12, 2024

try use enet from this fork https://github.com/GrowtopiaNoobs/enet
image

from growtopiaserver2.

GrowtopiaNoobs avatar GrowtopiaNoobs commented on June 12, 2024

@kuteshiki As @NotDark said, using my fork of enet https://github.com/GrowtopiaNoobs/enet should solve this problem.

from growtopiaserver2.

iProgramMC avatar iProgramMC commented on June 12, 2024

@GrowtopiaNoobs what does your fork of ENet add?

from growtopiaserver2.

GrowtopiaNoobs avatar GrowtopiaNoobs commented on June 12, 2024

You can check commit history. There is added just one variable, which can keep custom data for server.

from growtopiaserver2.

GrowtopiaNoobs avatar GrowtopiaNoobs commented on June 12, 2024

Closing this issue as there hasn't been any new activity, also you can now check build.sh or download working version from releases.

from growtopiaserver2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.