i need to...
-- issue command to finish compiling the "server_source" stuff .. which should be inside the "server" folder ultimately
here is "server" directory:
Code:
admin@ip--x-x-x-x:/home/eqemu/server$ ls
Maps libluabind.a server_start_dev.sh
assets login.json server_start_with_login.sh
bin loginserver server_status.sh
eqemu_config.json logs server_stop.sh
eqemu_server.pl lua_modules shared
eqemu_server.pl.1 maps shared_memory
eqlaunch plugins ucs
export queryserv updates_backups
export_client_files quests updates_staged
import_client_files server_launcher.pl world
libcommon.a server_start.sh zone
admin@ip-x-x-x-x:/home/eqemu/server$ cd world
-bash: cd: world: No such file or directory
admin@ip-x-x-x-x:/home/eqemu/server$ cd zone
-bash: cd: zone: No such file or directory
admin@ip-x-x-x-x:/home/eqemu/server$ cd queryserv
-bash: cd: queryserv: No such file or directory
admin@ip-x-x-x-x:/home/eqemu/server$ cd ucs
-bash: cd: ucs: No such file or directory
admin@ip-x-x-x-x:/home/eqemu/server$
"server_build" folder is stuff built ... by using the server_source folder... which then output to ... /bin
server_build dir
Code:
admin@ip-x-x-x-x:/home/eqemu/server_build$ ls
CMakeCache.txt bin common loginserver submodules zone
CMakeFiles client_files eqlaunch queryserv ucs
Makefile cmake_install.cmake libs shared_memory world
server_source has a CMakeLists.txt, and the same in the subfolders I need (zone, world, queryserv, ucs)
Code:
admin@ip-x-x-x-x:/home/eqemu/server_source/world$ ls
CMakeLists.txt
i think i just need to run each CMakeList.txt i find in the corresponding folders missing files when i try to start the server..
ill start with "cmake" .. and make sure the files move to the "server" folder ...~
what is the Make used on...?
Quote:
Originally Posted by GRUMPY
Ok that's a little different, but same thing, I guess. I usually:
2. cmake CMakeLists.txt
3. make
But I use my own custom folders, then copy over.
|
***OK let's run sudo cmake CMakeLists.txt in the queryserv folder...***:
Well, ill be damned something happened! ... and I see new files in the directory including a /bin folder, which appears to be empty though
Code:
admin@ip-x-x-x-x:/home/eqemu/server_source/queryserv$ ls
CMakeLists.txt database.h lfguild.h queryservconfig.cpp worldserver.cpp
database.cpp lfguild.cpp queryserv.cpp queryservconfig.h worldserver.h
admin@ip-x-x-x-x:/home/eqemu/server_source/queryserv$ sudo cmake CMakeLists.txt
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/eqemu/server_source/queryserv
admin@ip-x-x-x-x:/home/eqemu/server_source/queryserv$ ^C
admin@ip-x-x-x-x:/home/eqemu/server_source/queryserv$ ls
CMakeCache.txt Makefile database.cpp lfguild.h queryservconfig.h
CMakeFiles bin database.h queryserv.cpp worldserver.cpp
CMakeLists.txt cmake_install.cmake lfguild.cpp queryservconfig.cpp worldserver.h
admin@ip-x-x-x-x:/home/eqemu/server_source/queryserv$ cd bin
admin@ip-x-x-x-x:/home/eqemu/server_source/queryserv/bin$ ls
admin@ip-x-x-x-x:/home/eqemu/server_source/queryserv/bin$
I see a Makefile .. is that what I use the Make command on .. oh apparently ya
https://www.gnu.org/software/make/manual/make.html
Ok lets try it out ..
Code:
admin@ip-x-x-x-x:/home/eqemu/server_source/queryserv$ make
Scanning dependencies of target queryserv
CMake Error: Cannot open file for write: /home/eqemu/server_source/queryserv/CMakeFiles/queryserv.dir/depend.make.tmp
CMake Error: : System Error: Permission denied
make[2]: *** [CMakeFiles/queryserv.dir/build.make:156: CMakeFiles/queryserv.dir/depend] Error 2
make[1]: *** [CMakeFiles/Makefile2:72: CMakeFiles/queryserv.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Oh woops gotta give permission like sudo make ..
OK... well sudo make... that gave another error to solve!
Quote:
admin@ip-x-x-x-x:/home/eqemu/server_source/queryserv$ sudo make
Scanning dependencies of target queryserv
[ 16%] Building CXX object CMakeFiles/queryserv.dir/database.cpp.o
In file included from /home/eqemu/server_source/queryserv/database.cpp:22:
/home/eqemu/server_source/queryserv/../common/eqemu_logsys.h:36:10: fatal error: fmt/format.h: No such file or directory
#include <fmt/format.h>
^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/queryserv.dir/build.make:63: CMakeFiles/queryserv.dir/database.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/queryserv.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
|
the queryserv.dir is there and its got some stuff...
Quote:
admin@ip-x-x-x-x:/home/eqemu/server_source/queryserv/CMakeFiles/queryserv.dir$ ls
CXX.includecache build.make depend.internal flags.make progress.make
DependInfo.cmake cmake_clean.cmake depend.make link.txt
|
OK lets try the same with server_source zone folder .. ahh same problem!
Quote:
admin@ip-x-x-x-x:/home/eqemu/server_source/zone$ sudo make
Scanning dependencies of target zone
[ 0%] Building CXX object CMakeFiles/zone.dir/aa.cpp.o
In file included from /home/eqemu/server_source/zone/aa.cpp:21:
/home/eqemu/server_source/zone/../common/eqemu_logsys.h:36:10: fatal error: fmt/format.h: No such file or directory
#include <fmt/format.h>
^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/zone.dir/build.make:63: CMakeFiles/zone.dir/aa.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/zone.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
|
lets try the world folder next
same issue but different file ...
Quote:
admin@ip-x-x-x-x:/home/eqemu/server_source/world$ sudo make
Scanning dependencies of target world
[ 2%] Building CXX object CMakeFiles/world.dir/adventure.cpp.o
In file included from /home/eqemu/server_source/world/../common/servertalk.h:7,
from /home/eqemu/server_source/world/adventure.cpp:2:
/home/eqemu/server_source/world/../common/../common/net/packet.h:8:10: fatal error: cereal/cereal.hpp: No such file or directory
#include <cereal/cereal.hpp>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/world.dir/build.make:63: CMakeFiles/world.dir/adventure.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/world.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
|
lets try ucs folder and see... ah same
Quote:
admin@ip-x-x-x-x:/home/eqemu/server_source/ucs$ sudo make
Scanning dependencies of target ucs
[ 14%] Building CXX object CMakeFiles/ucs.dir/chatchannel.cpp.o
In file included from /home/eqemu/server_source/ucs/chatchannel.cpp:20:
/home/eqemu/server_source/ucs/../common/eqemu_logsys.h:36:10: fatal error: fmt/format.h: No such file or directory
#include <fmt/format.h>
^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ucs.dir/build.make:63: CMakeFiles/ucs.dir/chatchannel.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/ucs.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
|
so close to figuring this out!~
----- wait a minute,
shouldnt I just do a sudo cmake CMakeLists.txt in the server_source root directory folder...
.. yup, then sudo make ...
Oh its happy now for a while ...
and there is already a Makefile and CMakeCache.txt in the server_build folder... so that must have already been done a while ago...
onward! lets see how this finishes ...
... and I broke the amazon cloud virtual machine ...
we need more memory~ LOL .. welp i guess thats on me.. ok ill try and expand the memory beyond 1 GB ..heh my bad
Quote:
[ 21%] Built target common
Scanning dependencies of target luabind
[ 22%] Building CXX object libs/luabind/CMakeFiles/luabind.dir/src/class.cpp.o
virtual memory exhausted: Cannot allocate memory
make[2]: *** [libs/luabind/CMakeFiles/luabind.dir/build.make:63: libs/luabind/CMakeFiles/luabind.dir/src/class.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:164: libs/luabind/CMakeFiles/luabind.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
|
QUICK FIX:
- STOP instance
- Action > instance options > change instance .. to t3.medium 4 GB ram
... its already processing, which means I can restart the t2.micro when im done compiling!
No need to buy more computers and wait! ..
NEW IP .. remember that for my eqemu_config...
ONWARD: