Ubuntu Compile Errot

Support forum for questions about compiling and running EQ2Emulator on Linux.

Moderator: Team Members

intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Ubuntu Compile Errot

Post by intodesi » Wed Jun 18, 2008 8:43 pm

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
The IRS, its not an agency, its a service. They do it because they love us.

link2009
Retired
Posts: 390
Joined: Fri Aug 10, 2007 5:59 pm
Location: POrTal
Contact:

Post by link2009 » Thu Jun 19, 2008 11:36 am

You're missing the g++ compiler, try installing that first.
Image
-Vecinu de la Patru

intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Post by intodesi » Thu Jun 19, 2008 4:56 pm

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
The IRS, its not an agency, its a service. They do it because they love us.

intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Post by intodesi » Fri Jun 20, 2008 6:59 am

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 :)
The IRS, its not an agency, its a service. They do it because they love us.

zanifer
Posts: 15
Joined: Thu Dec 27, 2007 6:59 pm
Location: Moscow Idaho

Post by zanifer » Fri Jun 20, 2008 10:51 am

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.

intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Post by intodesi » Fri Jun 20, 2008 4:50 pm

Still no go, but i did notice something..why is it -llua? the object looks like it should be lua?
The IRS, its not an agency, its a service. They do it because they love us.

intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Post by intodesi » Sat Jun 21, 2008 3:05 am

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?
The IRS, its not an agency, its a service. They do it because they love us.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Post by LethalEncounter » Sat Jun 21, 2008 7:07 am

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.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Sat Jun 21, 2008 9:22 am

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.

link2009
Retired
Posts: 390
Joined: Fri Aug 10, 2007 5:59 pm
Location: POrTal
Contact:

Post by link2009 » Sat Jun 21, 2008 10:22 am

I say you checkout the entire archive again. Your makefile is corrupt and if it fails, change llua5.1 to lua.
Image
-Vecinu de la Patru

intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Post by intodesi » Sat Jun 21, 2008 10:50 am

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.
The IRS, its not an agency, its a service. They do it because they love us.

intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Post by intodesi » Sat Jun 21, 2008 11:02 am

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.
The IRS, its not an agency, its a service. They do it because they love us.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Sat Jun 21, 2008 11:36 am

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.

intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Post by intodesi » Sat Jun 21, 2008 4:49 pm

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
The IRS, its not an agency, its a service. They do it because they love us.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Sun Jun 22, 2008 8:48 am

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests