NeoGML
Still Fresh
Hi....
I've tried to write a makefile that uses the GPH Linux SDK 10.02, similar to what skeezix said in this thread. I'm running Ubuntu 8.04.
The GPH_SDK is installed in ~/GPH_SDK.
This is my makefile:
This is my output:
It seems to be compiling the object files fine, but when linking the executable it just fails.
My guess is that's it's trying to use ld when it should be using g++... ? I tried to specify it using LD, but...
Anyone else have this working?
I've tried to write a makefile that uses the GPH Linux SDK 10.02, similar to what skeezix said in this thread. I'm running Ubuntu 8.04.
The GPH_SDK is installed in ~/GPH_SDK.
This is my makefile:
Code:
SDKBASE=/home/lim/GPH_SDK
TOOLBASE=$(SDKBASE)/tools/gcc-4.0.2-glibc-2.3.6/arm-linux/bin/arm-linux-
CC=$(TOOLBASE)g++
LD=$(TOOLBASE)g++
OBJECTS = FEvent.o FAnimation.o FSurface.o Fight.o FUtil.o FPlayer.o
LDFLAGS = -L$(SDKBASE)/lib -Wl, -L$(SDKBASE)/DGE/lib -lSDL -lSDL_image -lSDLmain -lpng
INCLUDE = -I$(SDKBASE)/include -I$(SDKBASE)/DGE/include -I$(SDKBASE)/DGE/include/SDL
DEFINES= -DGP2X
CPPFLAGS= $(INCLUDE) $(DEFINES) -Wall
all: $(OBJECTS)
$(CC) $(CPPFLAGS) -c FEvent.cpp FAnimation.cpp FSurface.cpp Fight.cpp FUtil.cpp FPlayer.cpp
$(LD) -o WizFight.gpe $(LDFLAGS)
clean:
rm -rf $(OBJECTS) game.o
This is my output:
Code:
g++ -I/home/lim/GPH_SDK/include -I/home/lim/GPH_SDK/DGE/include -I/home/lim/GPH_SDK/DGE/include/SDL -DGP2X -Wall -c -o FEvent.o FEvent.cpp
g++ -I/home/lim/GPH_SDK/include -I/home/lim/GPH_SDK/DGE/include -I/home/lim/GPH_SDK/DGE/include/SDL -DGP2X -Wall -c -o FAnimation.o FAnimation.cpp
g++ -I/home/lim/GPH_SDK/include -I/home/lim/GPH_SDK/DGE/include -I/home/lim/GPH_SDK/DGE/include/SDL -DGP2X -Wall -c -o FSurface.o FSurface.cpp
g++ -I/home/lim/GPH_SDK/include -I/home/lim/GPH_SDK/DGE/include -I/home/lim/GPH_SDK/DGE/include/SDL -DGP2X -Wall -c -o Fight.o Fight.cpp
Fight.cpp: In member function int Fight::OnInit():
Fight.cpp:133: warning: deprecated conversion from string constant to char*
g++ -I/home/lim/GPH_SDK/include -I/home/lim/GPH_SDK/DGE/include -I/home/lim/GPH_SDK/DGE/include/SDL -DGP2X -Wall -c -o FUtil.o FUtil.cpp
g++ -I/home/lim/GPH_SDK/include -I/home/lim/GPH_SDK/DGE/include -I/home/lim/GPH_SDK/DGE/include/SDL -DGP2X -Wall -c -o FPlayer.o FPlayer.cpp
/home/lim/GPH_SDK/tools/gcc-4.0.2-glibc-2.3.6/arm-linux/bin/arm-linux-g++ -I/home/lim/GPH_SDK/include -I/home/lim/GPH_SDK/DGE/include -I/home/lim/GPH_SDK/DGE/include/SDL -DGP2X -Wall -c FEvent.cpp FAnimation.cpp FSurface.cpp Fight.cpp FUtil.cpp FPlayer.cpp
/home/lim/GPH_SDK/tools/gcc-4.0.2-glibc-2.3.6/arm-linux/bin/arm-linux-g++ -o WizFight.gpe -L/home/lim/GPH_SDK/lib -Wl, -L/home/lim/GPH_SDK/DGE/lib -lSDL -lSDL_image -lSDLmain -lpng
/home/lim/GPH_SDK/tools/gcc-4.0.2-glibc-2.3.6/arm-linux/bin/../lib/gcc/arm-linux/4.0.2/../../../../arm-linux/bin/ld: : No such file: No such file or directory
collect2: ld returned 1 exit status
make: *** [all] Error 1
My guess is that's it's trying to use ld when it should be using g++... ? I tried to specify it using LD, but...
Anyone else have this working?
Last edited by a moderator: