Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Yahoo!

Members: 0
Guests: 14
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » General Discussions » AFKMUD 2.03 does not compile!...
Forum Rules | Mark all | Recent Posts

AFKMUD 2.03 does not compile!CRAP!
< Newer Topic :: Older Topic > I got some problems

Pages:<< prev 1 next >>
Post is unread #1 Mar 23, 2008, 2:37 am
Go to the top of the page
Go to the bottom of the page

daemion
Fledgling
GroupMembers
Posts11
JoinedJan 20, 2008

I tried to compile AFKMUD 2.03 in my KUBUNTU LINUX.

This is a screenshot of the compiling process


Compiling o/olcobj.o....
Compiling o/olcroom.o....
Compiling o/overland.o....
overland.cpp:30:16: error: gd.h: No such file or directory
overland.cpp:1549: error: ‘gdImagePtr’ was not declared in this scope
overland.cpp:1549: error: expected primary-expression before ‘int’
overland.cpp:1549: error: expected primary-expression before ‘short’
overland.cpp:1549: error: expected primary-expression before ‘short’
overland.cpp:1549: error: expected primary-expression before ‘short’
overland.cpp:1549: error: initializer expression list treated as compound expression
overland.cpp:1550: error: expected ‘,’ or ‘;’ before ‘{’ token
overland.cpp:1556: error: ‘gdImagePtr’ was not declared in this scope
overland.cpp:1556: error: expected primary-expression before ‘int’
overland.cpp:1556: error: initializer expression list treated as compound expression
overland.cpp:1557: error: expected ‘,’ or ‘;’ before ‘{’ token
overland.cpp: In function ‘void load_map_png(char*, short int)’:
overland.cpp:1614: error: ‘gdImagePtr’ was not declared in this scope
overland.cpp:1614: error: expected `;' before ‘im’
overland.cpp:1635: error: ‘im’ was not declared in this scope
overland.cpp:1635: error: ‘gdImageCreateFromPng’ was not declared in this scope
overland.cpp:1637: error: ‘gdImageSY’ was not declared in this scope
overland.cpp:1639: error: ‘gdImageSX’ was not declared in this scope
overland.cpp:1641: error: ‘gdImageGetPixel’ was not declared in this scope
overland.cpp:1642: error: ‘get_sector_colour’ cannot be used as a function
overland.cpp:1647: error: ‘gdImageDestroy’ was not declared in this scope
overland.cpp: In function ‘void save_map_png(char*, short int)’:
overland.cpp:2974: error: ‘gdImagePtr’ was not declared in this scope
overland.cpp:2974: error: expected `;' before ‘im’
overland.cpp:2980: error: ‘im’ was not declared in this scope
overland.cpp:2980: error: ‘gdImageCreate’ was not declared in this scope
overland.cpp:2983: error: ‘gdImageColorAllocate’ was not declared in this scope
overland.cpp:2993: error: ‘gdImageLine’ was not declared in this scope
overland.cpp:3007: error: ‘gdImagePng’ was not declared in this scope
overland.cpp:3013: error: ‘gdImageDestroy’ was not declared in this scope
make[2]: *** [o/overland.o] Error 1
make[2]: Leaving directory `/home/emilio/afkmud/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/emilio/afkmud/src'
make: *** [clean] Error 2

I think I am missing a library...but the question is...what is the library?

Please help me

bye
       
Post is unread #2 Mar 23, 2008, 2:47 am
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

You could try reading the readme. :wink:

Readme said:

Overland, and libgd-devel

AFKMud comes with a wilderness ANSI map system we've dubbed "The overland". Basically it is an ANSI color representation of the surrounding terrain around your character when he's out in the wilderness, away from normal areas. This is meant to be used as a filler for what are ordinarily boring connector zones, like large forests, hills, mountains, etc. It lets your builders concentrate more on the interesting places like castles, cities, troll dens, etc. The maps are stored statically in memory after being loaded from png graphic files. Because of this, you will need to be sure your host has the GD development library installed. The compiler will alert you to this in the form of errors trying to compile overland.cpp if the library is not installed.


To install it on a Ubuntu system:
sudo aptitude install libgd-devel
       
Post is unread #3 Mar 23, 2008, 3:49 am
Go to the top of the page
Go to the bottom of the page

daemion
Fledgling
GroupMembers
Posts11
JoinedJan 20, 2008

This is what I get when I tried sudo aptitude install libgd-devel


emilio@emilio01:~/afkmud/src$ sudo aptitude install libgd-devel
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso
Reading state information... Fatto
Initializing package states... Fatto
Building tag database... Fatto
Couldn't find any package whose name or description matched "libgd-devel"
The following packages have been automatically kept back:
file libfreetype6 libgl1-mesa-glx libmagic1 libpng12-0 libxfont1
linux-image-generic linux-libc-dev linux-restricted-modules-common
linux-restricted-modules-generic mesa-utils xserver-xorg-core
The following packages have been kept back:
adept adept-batch adept-common adept-installer adept-manager
adept-notifier adept-updater app-install-data apport apport-qt bind9-host
bsdutils cupsys cupsys-bsd cupsys-client cupsys-common dbus dnsutils
e2fslibs e2fsprogs foo2zjs genisoimage gtk-qt-engine hpijs hplip
hplip-data hwdb-client-common hwdb-client-kde iptables kate kcontrol
kdebase-bin kdebase-data kdebase-kio-plugins kdelibs-data kdelibs4c2a
kdepasswd kdeprint kdesktop kdm kexi kfind khelpcenter kicker klipper
kmenuedit koffice-data koffice-libs konqueror konqueror-nsplugins konsole
ksmserver ksplash ksysguard ksysguardd ktorrent kwin language-pack-en
language-pack-kde-en language-pack-kde-it libbind9-0 libblkid1 libcairo2
libcomerr2 libcupsimage2 libcupsys2 libcurl3 libcurl3-gnutls libdbus-1-3
libdns22 libexif12 libflac++5c2 libflac7 libgl1-mesa-dri libglu1-mesa
libisc11 libisccc0 libisccfg1 libjasper-1.701-1 libjasper-runtime
libkonq4 libkrb53 liblwres9 libmagick9 libmysqlclient15off liboggflac3
libpcre3 libperl5.8 libpoppler1 libpoppler1-qt libpq5 libpulse0 libqt3-mt
libsmbclient libsndfile1 libsnmp-base libsnmp9 libss2 libssl0.9.8
libuuid1 libvorbis0a libvorbisenc2 libvorbisfile3 libwrap0 libxml2
linux-generic linux-headers-generic mount mysql-common
openoffice.org-calc openoffice.org-common openoffice.org-core
openoffice.org-draw openoffice.org-impress openoffice.org-java-common
openoffice.org-kde openoffice.org-math openoffice.org-style-crystal
openoffice.org-style-human openoffice.org-writer openssh-client openssl
perl perl-base perl-modules perl-suid poppler-utils python python-apport
python-launchpad-bugs python-minimal python-problem-report python-uno
python2.5 python2.5-dev python2.5-minimal rsync samba-common smbclient
tar tcpdump ttf-opensymbol tzdata unattended-upgrades unzip
update-manager-core util-linux util-linux-locales vim-common vim-tiny
wodim
0 packages upgraded, 0 newly installed, 0 to remove and 163 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.


I am on KUBUNTU LINUX maybe that is the problem?

Thanks for replying
       
Post is unread #4 Mar 23, 2008, 4:04 am
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

Shouldn't be a difference on Kubuntu. (note: no caps) Try the name libgd-dev instead; that's the name on my system (normal Ubuntu).
       
Post is unread #5 Mar 23, 2008, 4:23 am
Go to the top of the page
Go to the bottom of the page

daemion
Fledgling
GroupMembers
Posts11
JoinedJan 20, 2008

I tried the following command:

apt-get install libgd2-xpm-dev

I installed this library and compiling was successfully...but now I have another little problem
when I create a character during the creation in the hall of creation...something goes bad because I can only arrive
to room VNUMB 121 that says there is an obious exit towards UP...but up...there is not any exit..

Now..Why this happens?

Pls Help me...bye
       
Post is unread #6 Mar 23, 2008, 12:20 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

That exit up doesn't go anywhere because you need to create something for it to go to. There are no world files that come with the codebase, you need to build those yourself.
       
Pages:<< prev 1 next >>