namco
Member
Apologies for the new thread.
Since I'm got my main pc back I've decided to have a fresh look at compiling zombiepox.
This is what output my makefile gives:
QUOTE
C:\zpox_src>make
C:/devkitGP2X/bin/arm-linux-g++ `C:/devkitGP2X/bin/gp2x-allegro-config --cflags`
-O2 -Wall -Werror -c -o main.o main.cpp
In file included from C:\gp2xallegro-0.3\include\/allegro/base.h:40,
from C:\gp2xallegro-0.3\include\allegro.h:25,
from main.cpp:27:
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:36:44: error: allegro/platform/alplatf.h: No such file or directory
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:60:8: error: #error platform not supported
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:64:44: error: allegro/platform/astdint.h: No such file or directory
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:350:5: error: #error endianess not defined
In file included from C:\gp2xallegro-0.3\include\/allegro/system.h:246,
from C:\gp2xallegro-0.3\include\allegro.h:27,
from main.cpp:27:
C:\gp2xallegro-0.3\include\/allegro/inline/system.inl:22:27: error: allegro/debug.h: No such file or directory
In file included from C:\gp2xallegro-0.3\include\/allegro/draw.h:66,
from C:\gp2xallegro-0.3\include\allegro.h:40,
from main.cpp:27:
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:23:24: error: allegro/3d.h:No such file or directory
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:370: error: 'bmp_read24' declared as an 'inline' variable
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:370: error: 'uintptr_t'was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:370: error: 'bmp_read24' declared as an 'inline' variable
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:370: error: redefinition of 'int bmp_read24'
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:370: error: 'int bmp_read24' previously defined here
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:370: error: 'uintptr_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: variable or field 'bmp_write24' declared void
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: 'bmp_write24' declared as an 'inline' variable
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: 'uintptr_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: expected primary-expression before 'int'
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: initializer expression list treated as compound expression
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: variable or field 'bmp_write24' declared void
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: 'bmp_write24' declared as an 'inline' variable
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: redefinition of 'int bmp_write24'
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: 'int bmp_write24' previously defined here
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: 'uintptr_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: expected primary-expression before 'int'
C:\gp2xallegro-0.3\include\/allegro/inline/system.inl: In function 'void set_window_title(const char*)':
C:\gp2xallegro-0.3\include\/allegro/inline/system.inl:29: error: 'ASSERT' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/system.inl: In function 'int desktop_color_depth()':
C:\gp2xallegro-0.3\include\/allegro/inline/system.inl:38: error: 'ASSERT' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/system.inl: In function 'int get_desktop_resolution(int*, int*)':
C:\gp2xallegro-0.3\include\/allegro/inline/system.inl:49: error: 'ASSERT' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl: At global scope:
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:58: error: ISO C++ forbids declaration of 'uintptr_t' with no type
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:58: error: typedef 'uintptr_t' is initialized (use __typeof__ instead)
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:58: error: '_BMP_BANK_SWITCHER' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:58: error: expected ',' or ';' before '(' token
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl: In function 'uintptr_t bmp_write_line(BITMAP*, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:62: error: '_BMP_BANK_SWITCHER' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:62: error: expected `;' before 'switcher'
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:62: error: 'switcher' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl: In function 'uintptr_t bmp_read_line(BITMAP*, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:69: error: '_BMP_BANK_SWITCHER' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:69: error: expected `;' before 'switcher'
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:69: error: 'switcher' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'void _putpixel(BITMAP*, int, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:413: error: 'uint8_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:413: error: expected primary-expression before ')' token
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'int _getpixel(BITMAP*, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:424: error: 'uint8_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:424: error: expected primary-expression before ')' token
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'void _putpixel15(BITMAP*, int, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:438: error: 'uint16_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:438: error: expected primary-expression before ')' token
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'int _getpixel15(BITMAP*, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:449: error: 'uint16_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:449: error: expected primary-expression before ')' token
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'void _putpixel16(BITMAP*, int, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:463: error: 'uint16_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:463: error: expected primary-expression before ')' token
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'int _getpixel16(BITMAP*, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:474: error: 'uint16_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:474: error: expected primary-expression before ')' token
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'void _putpixel24(BITMAP*, int, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:488: error: 'bmp_write24' cannot be used as a function
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'int _getpixel24(BITMAP*, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:499: error: 'bmp_read24' cannot be used as a function
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'void _putpixel32(BITMAP*, int, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:513: error: 'uint32_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:513: error: expected primary-expression before ')' token
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'int _getpixel32(BITMAP*, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:524: error: 'uint32_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:524: error: expected primary-expression before ')' token
c:\devkitgp2x\bin\../sysroot/usr/include/stdint.h: At global scope:
c:\devkitgp2x\bin\../sysroot/usr/include/stdint.h:129: error: conflicting declaration 'typedef unsigned int uintptr_t'
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:58: error: 'uintptr_t' has aprevious declaration as 'typedef int uintptr_t'
cc1plus.exe: warnings being treated as errors
ISortable.h:34: warning: 'class ISortable' has virtual functions but non-virtual destructor
main.cpp: In function 'int init_game()':
main.cpp:331: warning: 'set_window_close_button' is deprecated (declared at C:\gp2xallegro-0.3\include\/allegro/alcompat.h:192)
main.cpp:331: warning: 'set_window_close_button' is deprecated (declared at C:\gp2xallegro-0.3\include\/allegro/alcompat.h:192)
make: *** [main.o] Error 1
Do I need to go back through the library and fix stuff or have I just compiled it wrongly.
Just in case that I have compiled wrongly I'll also provide the makefile below:
CODE
PROG_NAME = zombiepox
OBJS = main.o CItem.o CTile.o CMap.o CActor.o hisc.o soundbox.o
CROSS_COMPILE = C:/devkitGP2X/bin/arm-linux-
SDL_BASE = C:/devkitGP2X/bin/gp2x-allegro-config
LDFLAGS = -static
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
STRIP = $(CROSS_COMPILE)strip
CLEANUP = rm -f $(ALL_TARGETS) *.o *~
GPECOMP = gpecomp $(PROG_NAME).gpi $(PROG_NAME).gpe
CFLAGS=`$(SDL_BASE) --cflags` -O2 -Wall -Werror
CXXFLAGS=`$(SDL_BASE) --cflags` -O2 -Wall -Werror
LIBS=`$(SDL_BASE) --libs`
TARGET=$(PROG_NAME).gpe
SDLTEST_OBJS = $(OBJS)
all : $(TARGET)
$(TARGET)(SDLTEST_OBJS)
$(CXX)$(LDFLAGS)-o$(TARGET)$(SDLTEST_OBJS)$(LIBS)
$(STRIP) $(TARGET)
$(GPECOMP)
$(CLEANUP)
Thanks for any help.
Since I'm got my main pc back I've decided to have a fresh look at compiling zombiepox.
This is what output my makefile gives:
QUOTE
C:\zpox_src>make
C:/devkitGP2X/bin/arm-linux-g++ `C:/devkitGP2X/bin/gp2x-allegro-config --cflags`
-O2 -Wall -Werror -c -o main.o main.cpp
In file included from C:\gp2xallegro-0.3\include\/allegro/base.h:40,
from C:\gp2xallegro-0.3\include\allegro.h:25,
from main.cpp:27:
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:36:44: error: allegro/platform/alplatf.h: No such file or directory
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:60:8: error: #error platform not supported
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:64:44: error: allegro/platform/astdint.h: No such file or directory
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:350:5: error: #error endianess not defined
In file included from C:\gp2xallegro-0.3\include\/allegro/system.h:246,
from C:\gp2xallegro-0.3\include\allegro.h:27,
from main.cpp:27:
C:\gp2xallegro-0.3\include\/allegro/inline/system.inl:22:27: error: allegro/debug.h: No such file or directory
In file included from C:\gp2xallegro-0.3\include\/allegro/draw.h:66,
from C:\gp2xallegro-0.3\include\allegro.h:40,
from main.cpp:27:
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:23:24: error: allegro/3d.h:No such file or directory
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:370: error: 'bmp_read24' declared as an 'inline' variable
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:370: error: 'uintptr_t'was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:370: error: 'bmp_read24' declared as an 'inline' variable
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:370: error: redefinition of 'int bmp_read24'
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:370: error: 'int bmp_read24' previously defined here
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:370: error: 'uintptr_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: variable or field 'bmp_write24' declared void
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: 'bmp_write24' declared as an 'inline' variable
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: 'uintptr_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: expected primary-expression before 'int'
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: initializer expression list treated as compound expression
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: variable or field 'bmp_write24' declared void
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: 'bmp_write24' declared as an 'inline' variable
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: redefinition of 'int bmp_write24'
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: 'int bmp_write24' previously defined here
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: 'uintptr_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/internal/alconfig.h:380: error: expected primary-expression before 'int'
C:\gp2xallegro-0.3\include\/allegro/inline/system.inl: In function 'void set_window_title(const char*)':
C:\gp2xallegro-0.3\include\/allegro/inline/system.inl:29: error: 'ASSERT' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/system.inl: In function 'int desktop_color_depth()':
C:\gp2xallegro-0.3\include\/allegro/inline/system.inl:38: error: 'ASSERT' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/system.inl: In function 'int get_desktop_resolution(int*, int*)':
C:\gp2xallegro-0.3\include\/allegro/inline/system.inl:49: error: 'ASSERT' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl: At global scope:
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:58: error: ISO C++ forbids declaration of 'uintptr_t' with no type
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:58: error: typedef 'uintptr_t' is initialized (use __typeof__ instead)
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:58: error: '_BMP_BANK_SWITCHER' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:58: error: expected ',' or ';' before '(' token
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl: In function 'uintptr_t bmp_write_line(BITMAP*, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:62: error: '_BMP_BANK_SWITCHER' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:62: error: expected `;' before 'switcher'
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:62: error: 'switcher' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl: In function 'uintptr_t bmp_read_line(BITMAP*, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:69: error: '_BMP_BANK_SWITCHER' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:69: error: expected `;' before 'switcher'
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:69: error: 'switcher' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'void _putpixel(BITMAP*, int, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:413: error: 'uint8_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:413: error: expected primary-expression before ')' token
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'int _getpixel(BITMAP*, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:424: error: 'uint8_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:424: error: expected primary-expression before ')' token
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'void _putpixel15(BITMAP*, int, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:438: error: 'uint16_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:438: error: expected primary-expression before ')' token
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'int _getpixel15(BITMAP*, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:449: error: 'uint16_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:449: error: expected primary-expression before ')' token
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'void _putpixel16(BITMAP*, int, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:463: error: 'uint16_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:463: error: expected primary-expression before ')' token
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'int _getpixel16(BITMAP*, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:474: error: 'uint16_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:474: error: expected primary-expression before ')' token
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'void _putpixel24(BITMAP*, int, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:488: error: 'bmp_write24' cannot be used as a function
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'int _getpixel24(BITMAP*, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:499: error: 'bmp_read24' cannot be used as a function
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'void _putpixel32(BITMAP*, int, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:513: error: 'uint32_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:513: error: expected primary-expression before ')' token
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl: In function 'int _getpixel32(BITMAP*, int, int)':
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:524: error: 'uint32_t' was not declared in this scope
C:\gp2xallegro-0.3\include\/allegro/inline/draw.inl:524: error: expected primary-expression before ')' token
c:\devkitgp2x\bin\../sysroot/usr/include/stdint.h: At global scope:
c:\devkitgp2x\bin\../sysroot/usr/include/stdint.h:129: error: conflicting declaration 'typedef unsigned int uintptr_t'
C:\gp2xallegro-0.3\include\/allegro/inline/gfx.inl:58: error: 'uintptr_t' has aprevious declaration as 'typedef int uintptr_t'
cc1plus.exe: warnings being treated as errors
ISortable.h:34: warning: 'class ISortable' has virtual functions but non-virtual destructor
main.cpp: In function 'int init_game()':
main.cpp:331: warning: 'set_window_close_button' is deprecated (declared at C:\gp2xallegro-0.3\include\/allegro/alcompat.h:192)
main.cpp:331: warning: 'set_window_close_button' is deprecated (declared at C:\gp2xallegro-0.3\include\/allegro/alcompat.h:192)
make: *** [main.o] Error 1
Do I need to go back through the library and fix stuff or have I just compiled it wrongly.
Just in case that I have compiled wrongly I'll also provide the makefile below:
CODE
PROG_NAME = zombiepox
OBJS = main.o CItem.o CTile.o CMap.o CActor.o hisc.o soundbox.o
CROSS_COMPILE = C:/devkitGP2X/bin/arm-linux-
SDL_BASE = C:/devkitGP2X/bin/gp2x-allegro-config
LDFLAGS = -static
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
STRIP = $(CROSS_COMPILE)strip
CLEANUP = rm -f $(ALL_TARGETS) *.o *~
GPECOMP = gpecomp $(PROG_NAME).gpi $(PROG_NAME).gpe
CFLAGS=`$(SDL_BASE) --cflags` -O2 -Wall -Werror
CXXFLAGS=`$(SDL_BASE) --cflags` -O2 -Wall -Werror
LIBS=`$(SDL_BASE) --libs`
TARGET=$(PROG_NAME).gpe
SDLTEST_OBJS = $(OBJS)
all : $(TARGET)
$(TARGET)(SDLTEST_OBJS)
$(CXX)$(LDFLAGS)-o$(TARGET)$(SDLTEST_OBJS)$(LIBS)
$(STRIP) $(TARGET)
$(GPECOMP)
$(CLEANUP)
Thanks for any help.