Mod The Galaxy Community Content Repository

Verkenner

New Member
Mar 30, 2019
3
0
0
It's all very confusing.

I've tried both creating a server via the Zonamadev VM and also following the guide on https://github.com/ModTheGalaxy/DevEnv

I cannot get either to build the MTG Repo (The Zonamadev VM can build the default SWGEmu files)

I get the following error with both setups and was hoping someone could point me in the right direction please?


/home/swgemu/workspace/mtgserver/MMOCoreORB/src/server/zone/managers/frs/FrsManagerImplementation.cpp:4103:1: error: expected declaration before ‘}’ token
}
^
[ 64%] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/guild/GuildManagerImplementation.cpp.o
[ 64%] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/holocron/HolocronManager.cpp.o
[ 64%] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/jedi/JediManager.cpp.o
src/CMakeFiles/core3.dir/build.make:1238: recipe for target 'src/CMakeFiles/core3.dir/server/zone/managers/frs/FrsManagerImplementation.cpp.o' failed
make[3]: *** [src/CMakeFiles/core3.dir/server/zone/managers/frs/FrsManagerImplementation.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/swgemu/workspace/mtgserver/MMOCoreORB/build/unix'
CMakeFiles/Makefile2:445: recipe for target 'src/CMakeFiles/core3.dir/all' failed
make[2]: *** [src/CMakeFiles/core3.dir/all] Error 2
make[2]: Leaving directory '/home/swgemu/workspace/mtgserver/MMOCoreORB/build/unix'
Makefile:127: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/swgemu/workspace/mtgserver/MMOCoreORB/build/unix'
Makefile:120: recipe for target 'build-cmake-with-idl' failed
make: *** [build-cmake-with-idl] Error 2
./setup: line 169: ./core3: No such file or directory


Thank you in advance.
 
Jan 16, 2015
101
5
8
42
It's all very confusing.

I've tried both creating a server via the Zonamadev VM and also following the guide on https://github.com/ModTheGalaxy/DevEnv

I cannot get either to build the MTG Repo (The Zonamadev VM can build the default SWGEmu files)

I get the following error with both setups and was hoping someone could point me in the right direction please?


/home/swgemu/workspace/mtgserver/MMOCoreORB/src/server/zone/managers/frs/FrsManagerImplementation.cpp:4103:1: error: expected declaration before ‘}’ token
}
^
[ 64%] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/guild/GuildManagerImplementation.cpp.o
[ 64%] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/holocron/HolocronManager.cpp.o
[ 64%] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/jedi/JediManager.cpp.o
src/CMakeFiles/core3.dir/build.make:1238: recipe for target 'src/CMakeFiles/core3.dir/server/zone/managers/frs/FrsManagerImplementation.cpp.o' failed
make[3]: *** [src/CMakeFiles/core3.dir/server/zone/managers/frs/FrsManagerImplementation.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/swgemu/workspace/mtgserver/MMOCoreORB/build/unix'
CMakeFiles/Makefile2:445: recipe for target 'src/CMakeFiles/core3.dir/all' failed
make[2]: *** [src/CMakeFiles/core3.dir/all] Error 2
make[2]: Leaving directory '/home/swgemu/workspace/mtgserver/MMOCoreORB/build/unix'
Makefile:127: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/swgemu/workspace/mtgserver/MMOCoreORB/build/unix'
Makefile:120: recipe for target 'build-cmake-with-idl' failed
make: *** [build-cmake-with-idl] Error 2
./setup: line 169: ./core3: No such file or directory


Thank you in advance.
FrsManagerImplementation.cpp:4103:1 tells you the file and line that is causing the problem. It looks like you are missing a } in your code. Double check through all the functions and make sure that each { has a closing }. Using Atom on the VM is a good tool because it can highlight functions and you can see where you missed the closing }
 

Verkenner

New Member
Mar 30, 2019
3
0
0
Thank You @gyrantol, I appreciate it.

I've resolved that issue, but now get an error further on in the build process. Any suggestions anyone please? Thank you


build>> [758/1185] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/gcw/GCWManagerImplementation.cpp.o
build>> FAILED: src/CMakeFiles/core3.dir/server/zone/managers/gcw/GCWManagerImplementation.cpp.o
build>> ccache /usr/bin/c++ -DCOMPILE_CORE3_TESTS -DDEFAULT_DYNAMIC_CAST -DODB_REFERENCES -I/usr/local/include -I/usr/include/mysql -I/home/vagrant/workspace/Core3/MMOEngine/include -I../../../utils/googletest-release-1.8.0/googletest/include -I../../../utils/googletest-release-1.8.0/googlemock/include -I../../../src -I../../../src/autogen -I../../../utils -I../../../src/. -Wall -Wextra -Wno-unused -Wno-sign-compare -Wno-multichar -Wno-unused-parameter -Wno-overloaded-virtual -Wno-missing-declarations -Werror -march=native -fno-omit-frame-pointer -g -pthread -std=gnu++11 -MD -MT src/CMakeFiles/core3.dir/server/zone/managers/gcw/GCWManagerImplementation.cpp.o -MF src/CMakeFiles/core3.dir/server/zone/managers/gcw/GCWManagerImplementation.cpp.o.d -o src/CMakeFiles/core3.dir/server/zone/managers/gcw/GCWManagerImplementation.cpp.o -c /home/vagrant/workspace/Core3/MMOCoreORB/src/server/zone/managers/gcw/GCWManagerImplementation.cpp
build>> In file included from ../../../src/autogen/server/zone/managers/gcw/GCWManager.h:10:0,
build>> from /home/vagrant/workspace/Core3/MMOCoreORB/src/server/zone/managers/gcw/GCWManagerImplementation.cpp:8:
build>> /home/vagrant/workspace/Core3/MMOEngine/include/engine/core/ManagedReference.h: In instantiation of 'void engine::core::ManagedReference<O>::updateObject(O) [with O = DestructibleBuildingDataComponent*]':
build>> /home/vagrant/workspace/Core3/MMOEngine/include/engine/core/ManagedReference.h:111:16: required from 'O engine::core::ManagedReference<O>::eek:perator=(O) [with O = DestructibleBuildingDataComponent*]'
build>> ../../../src/server/zone/managers/gcw/tasks/BaseRebootTask.h:15:14: required from here
build>> /home/vagrant/workspace/Core3/MMOEngine/include/engine/core/ManagedReference.h:178:27: error: 'class DestructibleBuildingDataComponent' has no member named '_getObjectID'; did you mean 'getObjectData'?
build>> loadedOID = obj ? obj->_getObjectID() : 0;
build>> ~~~~~^~~~~~~~~~~~
build>> [759/1185] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/frs/FrsManagerImplementation.cpp.o
build>> [760/1185] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/group/GroupManager.cpp.o
build>> [761/1185] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/gcw/sessions/ContrabandScanSessionImplementation.cpp.o
build>> [762/1185] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/guild/GuildManagerImplementation.cpp.o
build>> ninja: build stopped: subcommand failed.
build>> Makefile:137: recipe for target 'build-ninja-debug' failed
build>> make: *** [build-ninja-debug] Error 1
build>> ** BUILD FAILED **
build>>
build>>
 
Last edited:

Valkyra

Moderator
Staff member
Moderator
Aug 31, 2010
199
12
18
Looks like an Engine3 issue, with the paths in your output are you having a seperate copy of MMOEngine in the Core3 directory?

I believe it should just be residing within MMOCoreORB/utils/engine3, as it's own submodule initialized repository. It could be that you're using an older version of the Engine which would be overriding, depending on how old of a core you're using (I'm assuming you're using the MTGserver repository)
 

Verkenner

New Member
Mar 30, 2019
3
0
0
Yes, I was using the latest ZonamaDev VM which compilied fine before adding the mtg repo.

Just to make sure I wasn't going mad, created the Zonamadev VM from scratch, same error.

I followed the guide at https://github.com/ModTheGalaxy/DevEnv to create a Dev Environment from scratch on a spare Esxi machine and get the original error mentioned in my first post.

Has something changed recently with Core3 or am I being stupid. (3rd Day now spent on this) :(
 
Last edited:
Jan 16, 2015
101
5
8
42
The Answer has been changing the Public Engine quite a bit recently. When did you pull the mtg code? you may find that the engine is to high. There was a new commit 5 days ago which should work with the latest engine

if you open a terminal window and type cd workspace/MMOEngine and press enter
then type git show
you will be able to view which commit of the engine you are running too
 
Last edited:

Lasko

Moderator
Staff member
Moderator
Feb 13, 2012
259
8
18
I have just updated the repo with latest from unstable, updated the engine submodule to latest and fixed that FRS issue. Also updated the DevEnv repo.

I have also added a blank Debian 9.8 VM to use with the DevEnv repo. There's a link in the readme.

I have just tested a full install and build using the scripts and as of today 09/04/2019, It worked first time using the guide. Hopefully, it'll be easier to update as TA changes more stuff :) There will be a post coming soon with a more detailed guide on setting up a VM for development/content work.

I don't use ZD, so can't really comment on any Vagrant/ZD issues as that's supported by SWGEmu (or anyone here kind enough if they have an answer).

A quick preview of the MtG VM.
MtGServer_Desktop1.png
 
Last edited: