Closed codehz closed 6 years ago
Yes, I definitely want to do this asap.
@MCMrARM I don't think libzip is necessary for building the server binary...extract.cpp is unused...
@codehz i suppose u need resources from apk so that why libzip stay in building server :)
@wiktorek140 but it can be done manually or just use client binary to do that..
The server does not use any function inside extract.cpp
actually..
@codehz it server should be able to do the extract it self - otherwise running a headless server would be impossible.
@guppy42 I mean, add this feature, or remove this feature and then remove the extra dependencies..
See https://github.com/codehz/mcpe-demo
And I think people who have a headless server should have some ability to use script. This built-in extracting function for such people is not necessary.
This feature is planned.
Does this work just fine otherwise?
@MCMrARM yes, it worked for me!
Some dependencies are useless for server(headless) builds. e.g X11 glfw cef and
extract.cpp
(with zip, I mean theextract.cpp
file can be moved to client folder)If done, the server-side build can also be statically linked and portable. (the only thing that cannot be statically linked is
libm
, but it is easy to adapt).in fact, I've write a CMakeLists.txt to produce a statically linked server binary(https://github.com/codehz/mcpe-server), and it have a automated build(https://hub.docker.com/r/codehz/mcpe-server)