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.