problem with compiling

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

problem with compiling

Postby dork5002002 on Fri Feb 29, 2008 11:13 pm

I have been trying to build a certain game. I have downloaded a few libraries that I didn't have that it need.
I read various files that came with my game describing how to properly edit the makefiles.
I still receive the following text when I try to make the game
Code: Select all
make  -f makefile.unix
make[1]: Entering directory `/home/dork/Desktop/stone_soup-0.3.4-tile-src/source'
echo Building Lua...
Building Lua...
cd util/lua/src && make crawl_unix
make[2]: Entering directory `/home/dork/Desktop/stone_soup-0.3.4-tile-src/source/util/lua/src'
make "LUA_A=liblua.a" \
        "MYCFLAGS=" "MYLIBS=" "MYLDFLAGS=" liblua.a
make[3]: Entering directory `/home/dork/Desktop/stone_soup-0.3.4-tile-src/source/util/lua/src'
make[3]: `liblua.a' is up to date.
make[3]: Leaving directory `/home/dork/Desktop/stone_soup-0.3.4-tile-src/source/util/lua/src'
make[2]: Leaving directory `/home/dork/Desktop/stone_soup-0.3.4-tile-src/source/util/lua/src'
g++  -Iutil -I. -Iutil/lua/src -Iutil/sqlite -I/usr/include/ncurses -Wall -Wwrite-strings -Wshadow -Wuninitialized -pedantic -O2 -fsigned-char -DUNIX  -DCLUA_BINDINGS  -c abl-show.cc
libgui.h:114: error: new declaration ‘void clrscr()’
libunix.h:29: error: ambiguates old declaration ‘int clrscr()’
libgui.h:116: error: default argument given for parameter 3 of ‘void gotoxy(int, int, int)’
libutil.h:147: error: after previous specification in ‘void gotoxy(int, int, int)’
libgui.h:118: error: default argument given for parameter 4 of ‘void message_out(int, int, const char*, int, bool)’
libunix.h:21: error: after previous specification in ‘void message_out(int, int, const char*, int, bool)’
libgui.h:118: error: default argument given for parameter 5 of ‘void message_out(int, int, const char*, int, bool)’
libunix.h:21: error: after previous specification in ‘void message_out(int, int, const char*, int, bool)’
libgui.h:122: error: new declaration ‘void cprintf(const char*, ...)’
libunix.h:30: error: ambiguates old declaration ‘int cprintf(const char*, ...)’
libgui.h:132: error: new declaration ‘void putch(unsigned char)’
libunix.h:35: error: ambiguates old declaration ‘int putch(unsigned char)’
libgui.h:133: error: new declaration ‘void putwch(unsigned int)’
libunix.h:36: error: ambiguates old declaration ‘int putwch(unsigned int)’
libgui.h:155: error: new declaration ‘void window(int, int, int, int)’
libunix.h:42: error: ambiguates old declaration ‘int window(int, int, int, int)’
make[1]: *** [abl-show.o] Error 1
make[1]: Leaving directory `/home/dork/Desktop/stone_soup-0.3.4-tile-src/source'
make: *** [all] Error 2


I really don't know how to interpret this. Can I get some help?
Image
User avatar
dork5002002
Level 1
Level 1
 
Posts: 14
Joined: Wed Jan 16, 2008 12:43 am

Linux Mint is funded by ads and donations.
 

Re: problem with compiling

Postby MagnusB on Sat Mar 01, 2008 12:46 pm

What game?
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
MagnusB
Level 6
Level 6
 
Posts: 1255
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: problem with compiling

Postby dork5002002 on Sat Mar 01, 2008 1:04 pm

MagnusB wrote:What game?


The tile version of Stone soup 0.3.4, its kinda like a continuation of the rogue-like dungeon crawl.
http://sourceforge.net/project/showfiles.php?group_id=143991

I don't really care if I can get the tile version built, but I haven't been able to get the non-tile version to build either.
Image
User avatar
dork5002002
Level 1
Level 1
 
Posts: 14
Joined: Wed Jan 16, 2008 12:43 am

Re: problem with compiling

Postby MagnusB on Sat Mar 01, 2008 1:31 pm

Begin with:
Code: Select all
sudo aptitude install build-essential

Then
Code: Select all
sudo aptitude install bison

I am not sure about the above step, but I think you need it... Then (% denotes 1 line in terminal, it is not a part of the command):
Code: Select all
% cd ~/stone_soup-0.3.4-tile-src/source
% make
% ./crawl

The last command should run the game, hopefully, you could use make install as well, but I do not see the point if it works after make.
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
MagnusB
Level 6
Level 6
 
Posts: 1255
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: problem with compiling

Postby dork5002002 on Sat Mar 01, 2008 2:03 pm

I still am receiving the same output. I originally had turned off bison and flex. The various readme files said it wasn't absolutely needed. Since you mentioned it I started with a fresh source, installed bison, and installed flex. I ran the make command and I eventually received the same thing.

Thanks for your help so far.
Anymore suggestions. I've searched on ubuntu forums, but everyone wants to point you toward guides on building a file. Which are not helping.
Image
User avatar
dork5002002
Level 1
Level 1
 
Posts: 14
Joined: Wed Jan 16, 2008 12:43 am

Re: problem with compiling

Postby MagnusB on Sat Mar 01, 2008 4:11 pm

Well, when I try it, it only fails with
cd util/ && bison -y -d -b levcomp levcomp.ypp \
&& mv levcomp.tab.c levcomp.tab.cc || false
/bin/sh: bison: not found

Which makes me believe that I am only missing bison (did not try it with bison installed, though). Are you sure you have build-essential installed:
Code: Select all
% sudo aptitude update
% sudo aptitude install build-essential

Then try:
Code: Select all
whereis make

which should return:
make: /usr/bin/make /usr/share/man/man1/make.1.gz

Also, try:
Code: Select all
% cd
% wget http://mesh.dl.sourceforge.net/sourceforge/crawl-ref/stone_soup-0.3.4-tile-src.tbz2
% tar xvjpf stone_soup-0.3.4-tile-src.tbz2
% cd ~/stone_soup-0.3.4-tile-src/source
% make

Use copy & paste (paste by using Shift + Ins in terminal) to avoid typos (do not include % with the commands).
EDIT:
It should be "cd" not "cd .."
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
MagnusB
Level 6
Level 6
 
Posts: 1255
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: problem with compiling

Postby dork5002002 on Sat Mar 01, 2008 4:49 pm

I have downloaded the build essentials. That was the first thing I did when I started looking for help here.

If I issue the make command without editing the makefile first as you have said, it uses the makefile.x11.
Am I not supposed to use the makefile.unix
The file "INSTALL" says that linux users should edit the file "makefile" to use makefile.unix.
Also, if you want to try to compile it and do not want to use bison it says you can change the makefile.unix, if that is the one you are using, to have DOYACC := n(or y to enable it).

I did try to do exactly what you said. It did something very similar to what it has been doing except it seems to have more errors.

Here is the new output
Code: Select all
make  -f makefile.x11
make[1]: Entering directory `/home/dork/stone_soup-0.3.4-tile-src/source'
echo Building Lua...
Building Lua...
cd util/lua/src && make crawl_unix
make[2]: Entering directory `/home/dork/stone_soup-0.3.4-tile-src/source/util/lua/src'
make "LUA_A=liblua.a" \
        "MYCFLAGS=" "MYLIBS=" "MYLDFLAGS=" liblua.a
make[3]: Entering directory `/home/dork/stone_soup-0.3.4-tile-src/source/util/lua/src'
make[3]: `liblua.a' is up to date.
make[3]: Leaving directory `/home/dork/stone_soup-0.3.4-tile-src/source/util/lua/src'
make[2]: Leaving directory `/home/dork/stone_soup-0.3.4-tile-src/source/util/lua/src'
cd rltiles/ && make -f makefile.unix all && cd ..
make[2]: Entering directory `/home/dork/stone_soup-0.3.4-tile-src/source/rltiles'
cd bmp2png/ && make -f makefile.lin bmp2png && cd ..
make[3]: Entering directory `/home/dork/stone_soup-0.3.4-tile-src/source/rltiles/bmp2png'
gcc -O2 -g -Wall -c -o bmp2png.o bmp2png.c
In file included from bmp2png.c:10:
common.h:83:17: error: png.h: No such file or directory
common.h:86:3: error: #error libpng version 1.0.4 or later is required.
common.h:98:3: error: #error This software requires tRNS chunk support.
In file included from bmp2png.c:10:
common.h:147: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PALETTE’
common.h:158: error: expected specifier-qualifier-list before ‘PALETTE’
common.h:172: warning: parameter names (without types) in function declaration
common.h:173: error: expected ‘)’ before ‘int’
common.h:174: warning: parameter names (without types) in function declaration
common.h:175: warning: parameter names (without types) in function declaration
bmp2png.c:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘trans_values’
bmp2png.c:104: error: expected ‘)’ before ‘const’
bmp2png.c: In function ‘main’:
bmp2png.c:178: warning: implicit declaration of function ‘transparent_color’
bmp2png.c:178: error: ‘trans_values’ undeclared (first use in this function)
bmp2png.c:178: error: (Each undeclared identifier is reported only once
bmp2png.c:178: error: for each function it appears in.)
bmp2png.c: In function ‘png_filters’:
bmp2png.c:280: error: ‘PNG_FILTER_NONE’ undeclared (first use in this function)
bmp2png.c:280: error: ‘PNG_FILTER_SUB’ undeclared (first use in this function)
bmp2png.c:281: error: ‘PNG_FILTER_UP’ undeclared (first use in this function)
bmp2png.c:281: error: ‘PNG_FILTER_AVG’ undeclared (first use in this function)
bmp2png.c:282: error: ‘PNG_FILTER_PAETH’ undeclared (first use in this function)
bmp2png.c:283: error: ‘PNG_ALL_FILTERS’ undeclared (first use in this function)
bmp2png.c: At top level:
bmp2png.c:312: error: expected ‘)’ before ‘trans_values’
bmp2png.c: In function ‘read_bmp’:
bmp2png.c:369: error: ‘PALETTE’ undeclared (first use in this function)
bmp2png.c:369: error: ‘pal’ undeclared (first use in this function)
bmp2png.c:369: error: invalid operands to binary *
bmp2png.c:369: warning: statement with no effect
bmp2png.c:513: error: ‘IMAGE’ has no member named ‘palette’
bmp2png.c:513: warning: left-hand operand of comma expression has no effect
bmp2png.c:513: warning: value computed is not used
bmp2png.c:513: error: invalid lvalue in increment
bmp2png.c:513: warning: left-hand operand of comma expression has no effect
bmp2png.c:513: warning: value computed is not used
bmp2png.c:516: error: ‘const struct <anonymous>’ has no member named ‘red’
bmp2png.c:516: warning: statement with no effect
bmp2png.c:517: error: ‘const struct <anonymous>’ has no member named ‘green’
bmp2png.c:517: warning: statement with no effect
bmp2png.c:518: error: ‘const struct <anonymous>’ has no member named ‘blue’
bmp2png.c:518: warning: statement with no effect
bmp2png.c:527: error: ‘IMAGE’ has no member named ‘sigbit’
bmp2png.c:527: error: request for member ‘red’ in something not a structure or union
bmp2png.c:527: error: ‘IMAGE’ has no member named ‘sigbit’
bmp2png.c:527: error: request for member ‘green’ in something not a structure or union
bmp2png.c:527: error: ‘IMAGE’ has no member named ‘sigbit’
bmp2png.c:527: error: request for member ‘blue’ in something not a structure or union
bmp2png.c:527: warning: statement with no effect
bmp2png.c:528: error: ‘IMAGE’ has no member named ‘sigbit’
bmp2png.c:528: error: request for member ‘gray’ in something not a structure or union
bmp2png.c:528: error: ‘IMAGE’ has no member named ‘sigbit’
bmp2png.c:528: error: request for member ‘alpha’ in something not a structure or union
bmp2png.c:528: warning: statement with no effect
bmp2png.c: In function ‘is_4th_alpha’:
bmp2png.c:578: error: ‘IMAGE’ has no member named ‘bmpbits’
bmp2png.c:578: warning: assignment from incompatible pointer type
bmp2png.c: In function ‘read_rgb_bits’:
bmp2png.c:595: error: ‘IMAGE’ has no member named ‘bmpbits’
bmp2png.c:595: warning: initialization from incompatible pointer type
bmp2png.c: In function ‘read_bitfield_bits’:
bmp2png.c:646: error: ‘IMAGE’ has no member named ‘sigbit’
bmp2png.c:646: error: request for member ‘alpha’ in something not a structure or union
bmp2png.c:646: warning: statement with no effect
bmp2png.c:647: error: ‘IMAGE’ has no member named ‘sigbit’
bmp2png.c:647: error: request for member ‘red’ in something not a structure or union
bmp2png.c:647: warning: statement with no effect
bmp2png.c:648: error: ‘IMAGE’ has no member named ‘sigbit’
bmp2png.c:648: error: request for member ‘green’ in something not a structure or union
bmp2png.c:648: warning: statement with no effect
bmp2png.c:649: error: ‘IMAGE’ has no member named ‘sigbit’
bmp2png.c:649: error: request for member ‘blue’ in something not a structure or union
bmp2png.c:649: warning: statement with no effect
bmp2png.c:653: error: ‘IMAGE’ has no member named ‘bmpbits’
bmp2png.c:653: warning: assignment from incompatible pointer type
bmp2png.c: In function ‘decompress_rle_bits’:
bmp2png.c:704: error: ‘IMAGE’ has no member named ‘bmpbits’
bmp2png.c:704: warning: initialization from incompatible pointer type
bmp2png.c:709: error: ‘IMAGE’ has no member named ‘bmpbits’
bmp2png.c:709: warning: passing argument 1 of ‘memset’ discards qualifiers from pointer target type
bmp2png.c: In function ‘write_png’:
bmp2png.c:834: error: ‘png_structp’ undeclared (first use in this function)
bmp2png.c:834: warning: statement with no effect
bmp2png.c:834: error: expected ‘;’ before ‘png_ptr’
bmp2png.c:835: error: ‘png_infop’ undeclared (first use in this function)
bmp2png.c:835: warning: statement with no effect
bmp2png.c:835: error: expected ‘;’ before ‘info_ptr’
bmp2png.c:839: error: ‘png_byte’ undeclared (first use in this function)
bmp2png.c:839: warning: statement with no effect
bmp2png.c:839: error: expected ‘;’ before ‘trans’
bmp2png.c:856: error: ‘png_ptr’ undeclared (first use in this function)
bmp2png.c:856: warning: implicit declaration of function ‘png_create_write_struct’
bmp2png.c:856: error: ‘PNG_LIBPNG_VER_STRING’ undeclared (first use in this function)
bmp2png.c:857: warning: statement with no effect
bmp2png.c:861: error: ‘info_ptr’ undeclared (first use in this function)
bmp2png.c:861: warning: implicit declaration of function ‘png_create_info_struct’
bmp2png.c:861: warning: statement with no effect
bmp2png.c:863: warning: implicit declaration of function ‘png_destroy_write_struct’
bmp2png.c:866: warning: implicit declaration of function ‘setjmp’
bmp2png.c:866: error: ‘const struct <anonymous>’ has no member named ‘jmpbuf’
bmp2png.c:871: warning: implicit declaration of function ‘png_init_io’
bmp2png.c:872: warning: implicit declaration of function ‘png_set_compression_level’
bmp2png.c:874: warning: implicit declaration of function ‘png_set_filter’
bmp2png.c:874: error: ‘PNG_FILTER_TYPE_BASE’ undeclared (first use in this function)
bmp2png.c:881: error: ‘PNG_COLOR_TYPE_RGB_ALPHA’ undeclared (first use in this function)
bmp2png.c:881: error: ‘PNG_COLOR_TYPE_RGB’ undeclared (first use in this function)
bmp2png.c:881: warning: assignment makes integer from pointer without a cast
bmp2png.c:882: warning: implicit declaration of function ‘png_set_compression_mem_level’
bmp2png.c:882: error: ‘MAX_MEM_LEVEL’ undeclared (first use in this function)
bmp2png.c:885: error: ‘PNG_COLOR_TYPE_PALETTE’ undeclared (first use in this function)
bmp2png.c:885: warning: assignment makes integer from pointer without a cast
bmp2png.c:886: warning: implicit declaration of function ‘png_set_PLTE’
bmp2png.c:886: error: ‘IMAGE’ has no member named ‘palette’
bmp2png.c:888: error: ‘PNG_INTERLACE_ADAM7’ undeclared (first use in this function)
bmp2png.c:888: error: ‘PNG_INTERLACE_NONE’ undeclared (first use in this function)
bmp2png.c:888: warning: assignment makes integer from pointer without a cast
bmp2png.c:890: warning: implicit declaration of function ‘png_set_IHDR’
bmp2png.c:891: error: ‘PNG_COMPRESSION_TYPE_DEFAULT’ undeclared (first use in this function)
bmp2png.c:892: error: ‘PNG_FILTER_TYPE_DEFAULT’ undeclared (first use in this function)
bmp2png.c:894: error: ‘IMAGE’ has no member named ‘sigbit’
bmp2png.c:894: error: request for member ‘red’ in something not a structure or union
bmp2png.c:894: warning: comparison between pointer and integer
bmp2png.c:894: error: ‘IMAGE’ has no member named ‘sigbit’
bmp2png.c:894: error: request for member ‘green’ in something not a structure or union
bmp2png.c:894: warning: comparison between pointer and integer
bmp2png.c:894: error: ‘IMAGE’ has no member named ‘sigbit’
bmp2png.c:894: error: request for member ‘blue’ in something not a structure or union
bmp2png.c:895: warning: comparison between pointer and integer
bmp2png.c:895: warning: comparison between pointer and integer
bmp2png.c:895: error: ‘IMAGE’ has no member named ‘sigbit’
bmp2png.c:895: error: request for member ‘alpha’ in something not a structure or union
bmp2png.c:895: warning: comparison between pointer and integer
bmp2png.c:896: warning: implicit declaration of function ‘png_set_sBIT’
bmp2png.c:896: error: ‘IMAGE’ has no member named ‘sigbit’
bmp2png.c:903: error: ‘IMAGE’ has no member named ‘palette’
bmp2png.c:903: error: ‘struct <anonymous>’ has no member named ‘red’
bmp2png.c:903: error: ‘trans_values’ undeclared (first use in this function)
bmp2png.c:903: error: request for member ‘red’ in something not a structure or union
bmp2png.c:904: error: ‘IMAGE’ has no member named ‘palette’
bmp2png.c:904: error: ‘struct <anonymous>’ has no member named ‘green’
bmp2png.c:904: error: request for member ‘green’ in something not a structure or union
bmp2png.c:905: error: ‘IMAGE’ has no member named ‘palette’
bmp2png.c:905: error: ‘struct <anonymous>’ has no member named ‘blue’
bmp2png.c:905: error: request for member ‘blue’ in something not a structure or union
bmp2png.c:906: error: ‘trans’ undeclared (first use in this function)
bmp2png.c:906: error: assignment of read-only location
bmp2png.c:906: error: incompatible types in assignment
bmp2png.c:906: warning: statement with no effect
bmp2png.c:909: error: assignment of read-only location
bmp2png.c:909: error: incompatible types in assignment
bmp2png.c:909: warning: statement with no effect
bmp2png.c:911: error: invalid operands to binary ==
bmp2png.c:912: warning: implicit declaration of function ‘png_set_tRNS’
bmp2png.c:928: error: request for member ‘index’ in something not a structure or union
bmp2png.c:928: warning: comparison between pointer and integer
bmp2png.c:929: error: request for member ‘index’ in something not a structure or union
bmp2png.c:929: warning: comparison between pointer and integer
bmp2png.c:929: error: assignment of read-only location
bmp2png.c:929: error: incompatible types in assignment
bmp2png.c:929: warning: statement with no effect
bmp2png.c:930: error: assignment of read-only location
bmp2png.c:930: error: incompatible types in assignment
bmp2png.c:930: warning: statement with no effect
bmp2png.c:946: warning: implicit declaration of function ‘png_write_info’
bmp2png.c:951: warning: implicit declaration of function ‘png_set_filler’
bmp2png.c:951: error: ‘PNG_FILLER_AFTER’ undeclared (first use in this function)
bmp2png.c:954: warning: implicit declaration of function ‘png_set_bgr’
bmp2png.c:958: warning: implicit declaration of function ‘png_set_write_status_fn’
bmp2png.c:958: error: ‘row_callback’ undeclared (first use in this function)
bmp2png.c:961: warning: implicit declaration of function ‘png_write_image’
bmp2png.c:961: error: ‘IMAGE’ has no member named ‘rowptr’
bmp2png.c:963: warning: implicit declaration of function ‘png_write_end’
bmp2png.c: In function ‘usage_exit’:
bmp2png.c:1030: error: expected ‘,’ or ‘;’ before ‘PNG_LIBPNG_VER_STRING’
make[3]: *** [bmp2png.o] Error 1
make[3]: Leaving directory `/home/dork/stone_soup-0.3.4-tile-src/source/rltiles/bmp2png'
make[2]: *** [bmp2png/bmp2png] Error 2
make[2]: Leaving directory `/home/dork/stone_soup-0.3.4-tile-src/source/rltiles'
make[1]: *** [makerltiles] Error 2
make[1]: Leaving directory `/home/dork/stone_soup-0.3.4-tile-src/source'
make: *** [all] Error 2


I am glad someone is trying to help me.
Image
User avatar
dork5002002
Level 1
Level 1
 
Posts: 14
Joined: Wed Jan 16, 2008 12:43 am

Re: problem with compiling

Postby catweazle on Sat Mar 01, 2008 4:53 pm

My 2 cts :
Code: Select all
sudo apt-get install libguichanO libguichan0-dev

And then retry the compilation of your game.

(you can install these packages with the mint installer as well of course)
Last edited by catweazle on Sun Mar 02, 2008 9:12 am, edited 1 time in total.
catweazle
Level 2
Level 2
 
Posts: 53
Joined: Sat Dec 15, 2007 4:27 am

Re: problem with compiling

Postby dork5002002 on Sat Mar 01, 2008 5:30 pm

I have tried downloading the libguichan0 and libguichan0-dev
I still get the same errors.
I really feel as if I am missing something. All of the libgui.h libunix.h and libutil.h errors at the bottom of the output make me fell like I am missing something. I just don't know what.

I am about ready to give up for a few days.

Here is the output from a completely new download of the source.

Code: Select all
make  -f makefile.unix
make[1]: Entering directory `/home/dork/stone_soup-0.3.4-tile-src/source'
echo Building Lua...
Building Lua...
cd util/lua/src && make crawl_unix
make[2]: Entering directory `/home/dork/stone_soup-0.3.4-tile-src/source/util/lua/src'
make "LUA_A=liblua.a" \
        "MYCFLAGS=" "MYLIBS=" "MYLDFLAGS=" liblua.a
make[3]: Entering directory `/home/dork/stone_soup-0.3.4-tile-src/source/util/lua/src'
gcc -O2 -Wall    -c -o lapi.o lapi.c
gcc -O2 -Wall    -c -o lcode.o lcode.c
gcc -O2 -Wall    -c -o ldebug.o ldebug.c
gcc -O2 -Wall    -c -o ldo.o ldo.c
gcc -O2 -Wall    -c -o ldump.o ldump.c
gcc -O2 -Wall    -c -o lfunc.o lfunc.c
gcc -O2 -Wall    -c -o lgc.o lgc.c
gcc -O2 -Wall    -c -o llex.o llex.c
gcc -O2 -Wall    -c -o lmem.o lmem.c
gcc -O2 -Wall    -c -o lobject.o lobject.c
gcc -O2 -Wall    -c -o lopcodes.o lopcodes.c
gcc -O2 -Wall    -c -o lparser.o lparser.c
gcc -O2 -Wall    -c -o lstate.o lstate.c
gcc -O2 -Wall    -c -o lstring.o lstring.c
gcc -O2 -Wall    -c -o ltable.o ltable.c
gcc -O2 -Wall    -c -o ltm.o ltm.c
gcc -O2 -Wall    -c -o lundump.o lundump.c
gcc -O2 -Wall    -c -o lvm.o lvm.c
gcc -O2 -Wall    -c -o lzio.o lzio.c
gcc -O2 -Wall    -c -o lauxlib.o lauxlib.c
gcc -O2 -Wall    -c -o lbaselib.o lbaselib.c
gcc -O2 -Wall    -c -o ldblib.o ldblib.c
gcc -O2 -Wall    -c -o liolib.o liolib.c
gcc -O2 -Wall    -c -o lmathlib.o lmathlib.c
gcc -O2 -Wall    -c -o loslib.o loslib.c
gcc -O2 -Wall    -c -o ltablib.o ltablib.c
gcc -O2 -Wall    -c -o lstrlib.o lstrlib.c
gcc -O2 -Wall    -c -o loadlib.o loadlib.c
gcc -O2 -Wall    -c -o linit.o linit.c
ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o
ranlib liblua.a
make[3]: Leaving directory `/home/dork/stone_soup-0.3.4-tile-src/source/util/lua/src'
make[2]: Leaving directory `/home/dork/stone_soup-0.3.4-tile-src/source/util/lua/src'
echo Building SQLite
Building SQLite
cd util/sqlite && make
make[2]: Entering directory `/home/dork/stone_soup-0.3.4-tile-src/source/util/sqlite'
gcc -DSQLITE_OMIT_AUTHORIZATION -DSQLITE_OMIT_AUTOVACUUM -DSQLITE_OMIT_COMPLETE -DSQLITE_OMIT_BLOB_LITERAL -DSQLITE_OMIT_COMPOUND_SELECT -DSQLITE_OMIT_CONFLICT_CLAUSE -DSQLITE_OMIT_DATETIME_FUNCS -DSQLITE_OMIT_EXPLAIN -DSQLITE_OMIT_INTEGRITY_CHECK -DSQLITE_OMIT_PAGER_PRAGMAS -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_SCHEMA_PRAGMAS -DSQLITE_OMIT_SCHEMA_VERSION_PRAGMAS -DSQLITE_OMIT_TCL_VARIABLE -DSQLITE_OMIT_LOAD_EXTENSION -DTHREADSAFE=0 -o sqlite3.o -c sqlite3.c
ar rcu libsqlite3.a sqlite3.o
ranlib libsqlite3.a
make[2]: Leaving directory `/home/dork/stone_soup-0.3.4-tile-src/source/util/sqlite'
cd util/ && bison -y -d -b levcomp levcomp.ypp \
                           && mv levcomp.tab.c levcomp.tab.cc || false
g++  -Iutil -I. -Iutil/lua/src -Iutil/sqlite -I/usr/include/ncurses -O2 -fsigned-char -DUNIX  -DCLUA_BINDINGS  -o util/levcomp.tab.o -c util/levcomp.tab.cc
cd util/ && flex -olevcomp.lex.cc levcomp.lpp
g++  -Iutil -I. -Iutil/lua/src -Iutil/sqlite -I/usr/include/ncurses -O2 -fsigned-char -DUNIX  -DCLUA_BINDINGS  -o util/levcomp.lex.o -c util/levcomp.lex.cc
g++  -Iutil -I. -Iutil/lua/src -Iutil/sqlite -I/usr/include/ncurses -Wall -Wwrite-strings -Wshadow -Wuninitialized -pedantic -O2 -fsigned-char -DUNIX  -DCLUA_BINDINGS  -c abl-show.cc
libgui.h:114: error: new declaration ‘void clrscr()’
libunix.h:29: error: ambiguates old declaration ‘int clrscr()’
libgui.h:116: error: default argument given for parameter 3 of ‘void gotoxy(int, int, int)’
libutil.h:147: error: after previous specification in ‘void gotoxy(int, int, int)’
libgui.h:118: error: default argument given for parameter 4 of ‘void message_out(int, int, const char*, int, bool)’
libunix.h:21: error: after previous specification in ‘void message_out(int, int, const char*, int, bool)’
libgui.h:118: error: default argument given for parameter 5 of ‘void message_out(int, int, const char*, int, bool)’
libunix.h:21: error: after previous specification in ‘void message_out(int, int, const char*, int, bool)’
libgui.h:122: error: new declaration ‘void cprintf(const char*, ...)’
libunix.h:30: error: ambiguates old declaration ‘int cprintf(const char*, ...)’
libgui.h:132: error: new declaration ‘void putch(unsigned char)’
libunix.h:35: error: ambiguates old declaration ‘int putch(unsigned char)’
libgui.h:133: error: new declaration ‘void putwch(unsigned int)’
libunix.h:36: error: ambiguates old declaration ‘int putwch(unsigned int)’
libgui.h:155: error: new declaration ‘void window(int, int, int, int)’
libunix.h:42: error: ambiguates old declaration ‘int window(int, int, int, int)’
make[1]: *** [abl-show.o] Error 1
make[1]: Leaving directory `/home/dork/stone_soup-0.3.4-tile-src/source'
make: *** [all] Error 2
Image
User avatar
dork5002002
Level 1
Level 1
 
Posts: 14
Joined: Wed Jan 16, 2008 12:43 am

Re: problem with compiling

Postby MagnusB on Sat Mar 01, 2008 5:30 pm

catweazle wrote:My 2 cts :
Code: Select all
sudo apt-det install libuichanO libguichan0-dev

And then retry the compilation of your game.

(you can install these packages with the mint installer as well of course)

Presume you meant apt-get :)
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
MagnusB
Level 6
Level 6
 
Posts: 1255
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: problem with compiling

Postby catweazle on Sun Mar 02, 2008 9:12 am

yes : apt-get and libguichan0
sorry
i edit my previous post
catweazle
Level 2
Level 2
 
Posts: 53
Joined: Sat Dec 15, 2007 4:27 am

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot] and 18 guests