Page 1 of 3

Ubuntu Compile Errot

Posted: Wed Jun 18, 2008 8:43 pm
by intodesi
ok I had to download the zip, because SVN isnt working.. when i try and run the make command in the World folder this i myerror
root@ubuntu:/home/intodesi/eq2server/World# make
g++ -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated -g -march=i686 -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY -DEQ2 -DWORLD -I/usr/include/mysql -I/usr/mysql/include ../common/timer.cpp -o ../common/timer.o
make: g++: Command not found
make: *** [../common/timer.o] Error 127

Posted: Thu Jun 19, 2008 11:36 am
by link2009
You're missing the g++ compiler, try installing that first.

Posted: Thu Jun 19, 2008 4:56 pm
by intodesi
Ok yeah, I finnally Figured out the g++ not installed.. but now, since ive fixed that I have run make and am getting warning after warning, and at the end an error when make try's to create eq2world.
Im linking a txt file with the last 100 or so lines of the error.
http://www.beerandblood.com/ubuntu_compile_error.txt

Posted: Fri Jun 20, 2008 6:59 am
by intodesi
Ok after looking through everything myself carefully, i found what i beleive is the problem.
/usr/bin/ld: cannot find -llua5.1
but im not sure how to fix it, since ld isnt a directory, i cant move the lua5.1 into it.. any help would be apreciated :)

Posted: Fri Jun 20, 2008 10:51 am
by zanifer
Try editing the makefile by replacing the -llua5.1 with -llua. The linker will get confused when it sees the 5.1 at the end of that option.
Hope that helps.

Posted: Fri Jun 20, 2008 4:50 pm
by intodesi
Still no go, but i did notice something..why is it -llua? the object looks like it should be lua?

Posted: Sat Jun 21, 2008 3:05 am
by intodesi
Ok i made the changes to the makefile, changing -llua5.1 to -llua. But still no progress, it looks like it builds everything but the eq2world. Not Sure on what else to do. The WIKI hasnt been updated to show the steps for 0.5, any other suggestions?

Posted: Sat Jun 21, 2008 7:07 am
by LethalEncounter
intodesi@ubuntu:~/eq2server/eq2emulator/Source/World$ 'Sign.cpp:58: warning: deprecated conversion from string constant to âchar*â
> 'Sign.cpp: In member function âchar* Sign::GetSignZoneName()â
-bash: syntax error near unexpected token `('
intodesi@ubuntu:~/eq2server/eq2emulator/Source/World$ :Sign.cpp:133: warning: cast from type âconst char*â to type âchar*â casts away constness
-bash: :Sign.cpp:133:: command not found
You are doing something wrong or you have edited the make file. Those bash errors mean your shell is trying to execute each line of the output.

Posted: Sat Jun 21, 2008 9:22 am
by John Adams
intodesi wrote:The WIKI hasnt been updated to show the steps for 0.5, any other suggestions?
No one person is responsible for updating the Wiki. It is a community supported living document. You see something that needs updating, update it.

Posted: Sat Jun 21, 2008 10:22 am
by link2009
I say you checkout the entire archive again. Your makefile is corrupt and if it fails, change llua5.1 to lua.

Posted: Sat Jun 21, 2008 10:50 am
by intodesi
I have done all that, and no I have not edited the makefile besides what link suggested. I have re downloaded the package a few times starting the make fresh each time, and then changing -llua5.1 to -llua, which did not work, other then that change in the makefile i haven't touch a line of code.
I am not sure what else I could be doing wrong at this point. I downloaded 0.2 and I can install that fine, it seems llua is giving me my head ache.

Posted: Sat Jun 21, 2008 11:02 am
by intodesi
Ok found the problem.. the SVN is bad, not updated or something, when i downloaded directly from sourceforge everything worked out just fine.
so
this is good
http://downloads.sourceforge.net/eq2emu ... g_mirror=0
this one is bad
https://eq2emulator.svn.sourceforge.net ... q2emulator
and let me add to that, the one i downloaded straight from sourceforge doesn't have a llua requirement while the one from the svn does, not sure what that means.

Posted: Sat Jun 21, 2008 11:36 am
by John Adams
It means Sourceforge was the initial release of 0.5, and since then extensive work has been done (SVN) to implement LUA for spells and scripts. Without LUA, your server will not have the latest features.
I'm sure you can get one running on 0.5 release, but I think you're missing out on some cool additions by going that route. 0.6 is coming soon, so maybe you can wait for that.

Posted: Sat Jun 21, 2008 4:49 pm
by intodesi
Yeah im sure I can wait.. just weird that 0.5 with Lua isn't working for me. I may be doing something wrong, but I am in the belief I have not, I didn't start making changes to the makefile until it was suggested to take out the 5.1 from behind lua, which didn't seem to work, so for now, im only able to run the 0.4 release.. guess i will wait and see if I can get 0.6 to work, Just frustrating I cant get 0.5 to compile..
anyways, any other thoughts and what I can do to get 0.5 going would be appreciated.. thanks

Posted: Sun Jun 22, 2008 8:48 am
by John Adams
To put your mind at ease, SVN is not "bad". Being a development version, things change from release - and people intending to use SVN have to grow with the code on SVN. One of those critical changes was the implementation of using LUA scripting.
That means, LUA itself needs to be installed on your linux distribution. For instance, with Fedora, I had to run:
yum install lua-devel
Or something similar to that, then edit the makefile due to the one error in the include name (which may simply be an artifact of 100 different linux distributions all putting their crap in different locations).
Note that the emulator is generally developed for Win32... so a linux distribution is a bonus right now and not the focus of the development effort. If you have critical problems with a linux compile, and others are getting it to work, it's something you have done wrong, sorry.
However, where you find improvements to the Linux distribution (either in installation steps or makefile changes), submit them here and they can be incorporated to save anyone else the headache down the road.