• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Ubuntu compile error (again :D)

Status
Not open for further replies.

La_Blazer

Epic Member
i again tried to compile on ubuntu, but compilation ended up with this error
Code:
/root/trinity/Eluna-TC-Wotlk/src/LuaEngine/HookMgr.h:381:10: warning: unused par                                                                                                                     ameter 'sourceInfo' [-Wunused-parameter]
In file included from /root/trinity/Eluna-TC-Wotlk/src/LuaEngine/LuaFunctions.cp                                                                                                                     p:7:0:
/root/trinity/Eluna-TC-Wotlk/src/LuaEngine/LuaEngine.h: In function 'int {anonym                                                                                                                     ous}::gcT(lua_State*)':
/root/trinity/Eluna-TC-Wotlk/src/LuaEngine/LuaEngine.h:41:14: error: 'ElunaTempl                                                                                                                     ate' was not declared in this scope
compilation terminated due to -Wfatal-errors.
make[2]: *** [src/LuaEngine/CMakeFiles/LuaEngine.dir/LuaFunctions.cpp.o] Error 1
make[1]: *** [src/LuaEngine/CMakeFiles/LuaEngine.dir/all] Error 2
make: *** [all] Error 2
i looked to LuaEngine.h, and it seems to be fine to me, but im just learning c/c++, so i dont know how to fix it :D :(
 

Rochet2

Moderator / Eluna Dev
This will be fixed soon along with other changes.
Actually I think it was fixed before you posted, but anyways, update your source.
 
Last edited:

La_Blazer

Epic Member
Ok, i downloaded fresh core, and recompiled again, but now this error is showing
Code:
In file included from /root/trinity/Eluna-TC-Wotlk/src/LuaEngine/LuaEngine.h:18:0,
                 from /root/trinity/Eluna-TC-Wotlk/src/LuaEngine/LuaFunctions.cpp:7:
/root/trinity/Eluna-TC-Wotlk/src/LuaEngine/HookMgr.h:322:10: warning: unused parameter 'pPlayer' [-Wunused-parameter]
/root/trinity/Eluna-TC-Wotlk/src/LuaEngine/HookMgr.h:322:10: warning: unused parameter 'pGameObject' [-Wunused-parameter]
/root/trinity/Eluna-TC-Wotlk/src/LuaEngine/HookMgr.h:380:10: warning: unused parameter 'condition' [-Wunused-parameter]
/root/trinity/Eluna-TC-Wotlk/src/LuaEngine/HookMgr.h:380:10: warning: unused parameter 'sourceInfo' [-Wunused-parameter]
In file included from /root/trinity/Eluna-TC-Wotlk/src/LuaEngine/LuaFunctions.cpp:7:0:
/root/trinity/Eluna-TC-Wotlk/src/LuaEngine/LuaEngine.h:43:18: error: declaration of 'class T'
compilation terminated due to -Wfatal-errors.
make[2]: *** [src/LuaEngine/CMakeFiles/LuaEngine.dir/HookMgr.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [src/LuaEngine/CMakeFiles/LuaEngine.dir/LuaFunctions.cpp.o] Error 1
make[1]: *** [src/LuaEngine/CMakeFiles/LuaEngine.dir/all] Error 2
make: *** [all] Error 2
 

Hyperion

Founder
Ok, i downloaded fresh core, and recompiled again, but now this error is showing
Code:
In file included from /root/trinity/Eluna-TC-Wotlk/src/LuaEngine/LuaEngine.h:18:0,
                 from /root/trinity/Eluna-TC-Wotlk/src/LuaEngine/LuaFunctions.cpp:7:
/root/trinity/Eluna-TC-Wotlk/src/LuaEngine/HookMgr.h:322:10: warning: unused parameter 'pPlayer' [-Wunused-parameter]
/root/trinity/Eluna-TC-Wotlk/src/LuaEngine/HookMgr.h:322:10: warning: unused parameter 'pGameObject' [-Wunused-parameter]
/root/trinity/Eluna-TC-Wotlk/src/LuaEngine/HookMgr.h:380:10: warning: unused parameter 'condition' [-Wunused-parameter]
/root/trinity/Eluna-TC-Wotlk/src/LuaEngine/HookMgr.h:380:10: warning: unused parameter 'sourceInfo' [-Wunused-parameter]
In file included from /root/trinity/Eluna-TC-Wotlk/src/LuaEngine/LuaFunctions.cpp:7:0:
/root/trinity/Eluna-TC-Wotlk/src/LuaEngine/LuaEngine.h:43:18: error: declaration of 'class T'
compilation terminated due to -Wfatal-errors.
make[2]: *** [src/LuaEngine/CMakeFiles/LuaEngine.dir/HookMgr.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [src/LuaEngine/CMakeFiles/LuaEngine.dir/LuaFunctions.cpp.o] Error 1
make[1]: *** [src/LuaEngine/CMakeFiles/LuaEngine.dir/all] Error 2
make: *** [all] Error 2


Stop running and setting this up as root!

Make a user account and run the server from there.
 

Rochet2

Moderator / Eluna Dev
Guess I am not that good with supporting Unix :3
Someone else needs to take a look at the problem.
 

Rochet2

Moderator / Eluna Dev
The problem is obviously in the template functions.
Atm the problem should be on both mangos and tc due to the latest updates.
Use the Weekend update version for linux atm. It doesnt have the problem.
Will try to fix this .. hmmh
 

Rochet2

Moderator / Eluna Dev
Mangos:
We have now fixed the error on wotlk.
Soon the fix is ported to tbc.

Adding travis to TC and probably fixing TC build for linux today too..
 
Last edited:

Rochet2

Moderator / Eluna Dev
According to Travis Mangos TBC and Wotlk now succeed as well as TC Wotlk

All eluna repos now use Travis and it builds on linux to see if it fails.
You can see the latest succesful version from here (Note to get the master branch):
https://travis-ci.org/ElunaLuaEngine/Eluna-TC-Wotlk/builds
Eluna-TC-Wotlk.png

https://travis-ci.org/ElunaLuaEngine/Eluna-TC-Cata/builds
Eluna-TC-Cata.png

https://travis-ci.org/eluna-dev-mangos/ElunaCoreWotlk/builds
ElunaCoreWotlk.png

https://travis-ci.org/eluna-dev-mangos/ElunaCoreTbc/builds
ElunaCoreTbc.png
 
Last edited:
Status
Not open for further replies.
Top