EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   compilation problem with new setup (https://www.eqemulator.org/forums/showthread.php?t=38800)

jdoran 09-18-2014 07:55 PM

compilation problem with new setup
 
Hello again. For the longest time I have been running older code because I did not want to be upgrading all of the time while finishing my PhD.

I finished (Yay! My dissertation on a quest generator for the older eqemu), and now want to resume research. My backup of eqemu wasn't starting up, and rather than troubleshoot that I figured: Why not do a fresh install and port my changes over?

OK, that was the motivation for my current situation.

I have been following this guide:
https://github.com/EQEmu/Server/wiki/Linux-server-setup

It has been very helpful. I had to pull down a couple of additional packages not listed: boost boost-devel lua-devel perl-devel (I am on Fedora). CMake ran without errors.

My build is not so fortunate:

Code:

Scanning dependencies of target luabind
[  1%] Building CXX object luabind/CMakeFiles/luabind.dir/src/class.cpp.o
In file included from /usr/include/lua.h:16:0,
                from /home/jon/src/eqemu/luabind/luabind/lua_include.hpp:31,
                from /home/jon/src/eqemu/luabind/src/class.cpp:27:
/home/jon/src/eqemu/luabind/luabind/lua502.hpp:28:20: error: expected identifier before ‘(’ token inline LUA_API int lua_equal(lua_State *L, int idx1, int idx2)

I started with a fresh git clone. Lua is at 5.2.2. When running CMake I accepted all defaults, but did enable bots.

I'm afraid that I have no experience with things Lua. The code looks OK. Did I miss a step in the instructions?

A search of the forum didn't help me, but then I'm not really sure what to look for.
Any help is greatly appreciated.

jdoran 09-19-2014 12:45 PM

The problems seen above are all luabind related (and I already have luabind installed on this machine).

I turned off lua via cmake, and am making some progress. I would like to see the lua code working eventually. I would think that I could use the existing luabind rather than building another...

Some of the patch files were including "../common/types.h" instead of "../../common/types.h"

Edit: I'll just add to this post, as it continues with feedback on the install/configure process for a new server

I run a local loginserver (I instrument some things, there is nothing wrong with the public login servers...), and the setup is not
covered in that guide.

I pulled the crypto stuff from http://projecteqemu.googlecode.com/s...in_util/linux/
I loaded the additional SQL in loginserver/login_util

*** Note: tblWorldServerRegistration is missing the field ServerListTypeDescription, which the loginserver tries to load.
I added:
ServerListTypeDescription varchar(50) NOT NULL DEFAULT '',

I may adjust that. Anyhow, change cmake's config to build the login server... put the crypto stuff in the dependencies folder...
and the login server builds. This needs to be started explicitly.

vsab 09-19-2014 06:24 PM

The dependencies are now all housed at http://eqemu.github.io/ - I doubt the svn will be updated ever again, so it's probably worth only mentioning the current links.

The wiki (http://wiki.eqemulator.org/i?M=Wiki) is missing Fedora builds, so once you'v e gone through it it'd be great if we got a wiki page up about the Fedora specific steps.

jdoran 09-19-2014 06:38 PM

I'm trying to keep notes/screenshots as I go along. Other than the LUA stuff I think it is running. Right now I'm facing database/config type problems and cannot get into the world. (The last was having a null ServerTrusted field -- I could find absolutely nothing on this, so I left it alone -- crash).

jdoran 09-20-2014 02:39 PM

I cannot register on the wiki, so I don't think I'll be able to contribute any help with Fedora.

This LUA problem is rather big, since so many quests have been converted to LUA.

demonstar55 09-20-2014 05:18 PM

It /should/ compile with lua 5.2, but something could of been missed, it is mostly tested on lua 5.1 and luajit.

jdoran 09-20-2014 07:02 PM

There were significant changes in 5.2. I was able to install compat-lua and compat-lua-devel and then have CMake use the compat files. It is building right now, which is more than I've seen before.

Edit: the compat version of lua did the trick.

jdoran 09-22-2014 07:17 PM

I am unable to update the wiki, so my work on Fedora will benefit only me :-(

vsab 09-23-2014 03:42 AM

Send Akkadius a PM for access.

jdoran 09-23-2014 10:00 AM

Thanks, I'll do that.


All times are GMT -4. The time now is 12:40 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.