Sign in to follow this  

Unity Using devkitPro and SGADE together?

This topic is 4241 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everyone! :-D First of all, it surprises me A LOT that Google only shows only 7 results for "devkitPro SGADE" and 20 results if I separate devkit and Pro... :-/ Now, I want to compile the SGADE tutorial Boulder Bombers Advance: http://www.suddenpresence.com/bbatutorial/chapter06.html using devkitPro instead of DevKit Advance... How would I do that? The makefile asks me for the DKA directory, but I don't have it! Has anyone done this before? Thanks! ;-) PS: This is a previous topic: http://www.gamedev.net/community/forums/topic.asp?topic_id=390152

Share this post


Link to post
Share on other sites
Nope -

[kixdemp@localhost bba-c3]$ make
Making bin/crt0.o
make: /home/kixdemp/progs/devkitpro/devkitARM/bin/gcc: Command not found
make: *** [bin/crt0.o] Error 127


Do I have to put GCC in there? How do I get my GCC install directory? Thanks! ;-)

Share this post


Link to post
Share on other sites
Sure! Here it is:


# -----------------------------------------------------------------------------

# \file makefile

# \brief The SGADE template make file

# \date September 5, 2002

#

# \author Jaap Suter, Mark T. Price

#

# This file contains the make-instructions for a SGADE project. In

# order to use this make file you need to change

# GCC_DIR,

# PROJECT_DIR,

# SOCRATES_LIB_DIR and

# SOCRATES_INC_DIR and

# to the locations on your own computer.

#

# -----------------------------------------------------------------------------



# -----------------------------------------------------------------------------

# Project name definition;

# -----------------------------------------------------------------------------



PROJECT = BBAdvance



# -----------------------------------------------------------------------------

# Base directory of the project. Replace this with wherever

# you have put the sample application on your computer

# -----------------------------------------------------------------------------



PROJECT_DIR = .



# -----------------------------------------------------------------------------

# GCC Version you're using. If you're using the latest DevKitAdv this

# should be correct already.

# -----------------------------------------------------------------------------

GCC_VERSION = 3.0.2



# -----------------------------------------------------------------------------

# Base directory for GCC Arm-Agb-Elf compiler. Replace with

# wherever you have put it.

# -----------------------------------------------------------------------------



GCC_DIR = /home/kixdemp/progs/devkitpro/devkitARM



# -----------------------------------------------------------------------------

# Socrates library and header directories. Replace this with wherever

# you have put the Socrates on your computer

# -----------------------------------------------------------------------------



SOCRATES_LIB_DIR = /home/kixdemp/progs/devkitpro/devkitARM/lib/

SOCRATES_INC_DIR = /home/kixdemp/progs/devkitpro/devkitARM/include/



# -----------------------------------------------------------------------------

# Socrates library itself;

# -----------------------------------------------------------------------------

SOCRATES_LIB = $(SOCRATES_LIB_DIR)/libSocrates.a



# -----------------------------------------------------------------------------

# Compiler directories for includes and libs.

# Assuming you are using Devkit Advance there should be no need to change

# these, since they are derived from the above CMP_DIR directory definition.

# -----------------------------------------------------------------------------



STD_LIB_DIR0 = $(GCC_DIR)/lib/gcc-lib/arm-agb-elf/$(GCC_VERSION)/interwork

STD_LIB_DIR1 = $(GCC_DIR)/arm-agb-elf/lib/interwork



STD_INC_DIR0 = $(GCC_DIR)/lib/gcc-lib/arm-agb-elf/$(GCC_VERSION)/include

STD_INC_DIR1 = $(GCC_DIR)/arm-agb-elf/include



# -----------------------------------------------------------------------------

# Project directories.

# -----------------------------------------------------------------------------



INC_DIR = $(PROJECT_DIR)/include

SRC_DIR = $(PROJECT_DIR)/source

CRT0_S_DIR = $(PROJECT_DIR)

LINK_SCRIPT_DIR = $(PROJECT_DIR)

OBJ_DIR = $(PROJECT_DIR)/bin

ELF_DIR = $(PROJECT_DIR)/bin

DAT_DIR = $(PROJECT_DIR)/data



# -----------------------------------------------------------------------------

# Define the flags for the compiler, the assembler and the linker;

# -----------------------------------------------------------------------------

C_FLAGS = -I$(DAT_DIR) -I$(INC_DIR) -I $(SOCRATES_INC_DIR) -I$(STD_INC_DIR0) -I$(STD_INC_DIR1) -I $(SGADE_SRC_DIR) -mthumb -mthumb-interwork -c -g -Wall -fverbose-asm

CPP_FLAGS = -I$(DAT_DIR) -I$(INC_DIR) -I $(SOCRATES_INC_DIR) -I$(STD_INC_DIR0) -I$(STD_INC_DIR1) -I $(SGADE_SRC_DIR) -mthumb -mthumb-interwork -c -g -Wall -fverbose-asm

S_FLAGS = -I$(DAT_DIR) -I$(INC_DIR) -I $(SOCRATES_INC_DIR) -I$(STD_INC_DIR0) -I$(STD_INC_DIR1) -mthumb-interwork



L_FLAGS = -lSocrates -L $(SOCRATES_LIB_DIR) -L$(STD_LIB_DIR0) -L$(STD_LIB_DIR1) -T $(LINK_SCRIPT_DIR)/lnkscript -lgcc



# -----------------------------------------------------------------------------

# Define the list of object files

# -----------------------------------------------------------------------------



O_FILES_FROM_C = $(PROJECT).o

O_FILES_FROM_CPP =



O_FILES_FROM_C_FULL_PATH = $(addprefix $(OBJ_DIR)/, $(O_FILES_FROM_C))



O_FILES_FROM_CPP_FULL_PATH = $(addprefix $(OBJ_DIR)/, $(O_FILES_FROM_CPP))



CRT0_O = $(OBJ_DIR)/crt0.o



#CRTBEGIN_O = $(STD_LIB_DIR0)/crtbegin.o

#CRTEND_O = $(STD_LIB_DIR0)/crtend.o



O_FILES_FULL_PATH = $(CRT0_O) $(CRTBEGIN_O) $(CRTEND_O) $(O_FILES_FROM_C_FULL_PATH) $(O_FILES_FROM_CPP_FULL_PATH)



# -----------------------------------------------------------------------------

# Define the final dependecy;

# -----------------------------------------------------------------------------

all : $(PROJECT_DIR)/$(PROJECT).gba

@echo Done



# -----------------------------------------------------------------------------

# Define the copy from .elf to .gba file

# -----------------------------------------------------------------------------

$(PROJECT_DIR)/$(PROJECT).gba : $(ELF_DIR)/$(PROJECT).elf

@echo Object copying

@$(GCC_DIR)/bin/objcopy -v -O binary $< $@





# -----------------------------------------------------------------------------

# Define the linker instruction;

# -----------------------------------------------------------------------------

$(ELF_DIR)/$(PROJECT).elf : $(O_FILES_FULL_PATH) $(SOCRATES_LIB)

@echo Linking object files

@$(GCC_DIR)/bin/ld $(O_FILES_FULL_PATH) -o$@ $(L_FLAGS)



# -----------------------------------------------------------------------------

# Define the C compiles;

# -----------------------------------------------------------------------------

$(O_FILES_FROM_C_FULL_PATH) : $(OBJ_DIR)/%.o : $(SRC_DIR)/%.c

@echo Making $@

@$(GCC_DIR)/bin/gcc -c $< -o$@ $(C_FLAGS)



# -----------------------------------------------------------------------------

# Define the CPP compiles;

# -----------------------------------------------------------------------------

$(O_FILES_FROM_CPP_FULL_PATH) : $(OBJ_DIR)/%.o : $(SRC_DIR)/%.cpp

@echo Making $@

@$(GCC_DIR)/bin/gcc -c $< -o$@ $(CPP_FLAGS)



$(O_FILES_FROM_CXX_FULL_PATH) : $(OBJ_DIR)/%.o : $(SRC_DIR)/%.cxx

@echo Making $@

@$(GCC_DIR)/bin/gcc -c $< -o$@ $(CPP_FLAGS)



$(O_FILES_FROM_CC_FULL_PATH) : $(OBJ_DIR)/%.o : $(SRC_DIR)/%.cc

@echo Making $@

@$(GCC_DIR)/bin/gcc -c $< -o$@ $(CPP_FLAGS)



# -----------------------------------------------------------------------------

# Define the assembly of the crt0 file;

# -----------------------------------------------------------------------------

$(CRT0_O) : $(OBJ_DIR)/%.o : $(CRT0_S_DIR)/%.S

@echo Making $@

@$(GCC_DIR)/bin/gcc -c $< -o$@ $(S_FLAGS)



# -----------------------------------------------------------------------------

# Clean definition;

# -----------------------------------------------------------------------------

.PHONY : clean

clean :

@echo Cleaning object, .elf and .gba files.

@$(GCC_DIR)/bin/rm -f $(OBJ_DIR)/*.o

@$(GCC_DIR)/bin/rm -f $(ELF_DIR)/$(PROJECT).elf

@$(GCC_DIR)/bin/rm -f $(PROJECT_DIR)/$(PROJECT).gba

@echo Clean done...





# -----------------------------------------------------------------------------

# EOF;

# -----------------------------------------------------------------------------







Can you see what's wrong? Thanks! ;-)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
That makefile is utter nonsense.

Something more like this is required.

Apologies for replying to an old post - it was flagged by a google alert a few minutes ago.

If you're still having trouble feel free to use the devkitARM mailing list

http://lists.sourceforge.net/lists/listinfo/devkitpro-arm-users

or perhaps the gbadev forums at

http://forum.gbadev.org/

WinterMute (devkitPro Maintainer)

# -----------------------------------------------------------------------------
#
# This file contains the make-instructions for a SGADE project. In
# order to use this make file you need to change
# GCC_DIR,
# PROJECT_DIR,
# SOCRATES_LIB_DIR and
# SOCRATES_INC_DIR and
# to the locations on your own computer.
#
# -----------------------------------------------------------------------------



# -----------------------------------------------------------------------------
# Project name definition;
# -----------------------------------------------------------------------------

PROJECT = BBAdvance

# -----------------------------------------------------------------------------
# Base directory of the project. Replace this with wherever
# you have put the sample application on your computer
# -----------------------------------------------------------------------------

PROJECT_DIR = .

# -----------------------------------------------------------------------------
# Base directory for GCC Arm-Agb-Elf compiler. Replace with
# wherever you have put it.
# -----------------------------------------------------------------------------

GCC_DIR = /home/kixdemp/progs/devkitpro/devkitARM

export PATH=$(GCC_DIR)/bin:$(PATH)

# -----------------------------------------------------------------------------
# Socrates library and header directories. Replace this with wherever
# you have put the Socrates on your computer
# -----------------------------------------------------------------------------

SOCRATES_LIB_DIR = /home/kixdemp/progs/Socrates/lib/
SOCRATES_INC_DIR = /home/kixdemp/progs/Socrates/include/

# -----------------------------------------------------------------------------
# Socrates library itself;
# -----------------------------------------------------------------------------

SOCRATES_LIB = $(SOCRATES_LIB_DIR)/libSocrates.a

# -----------------------------------------------------------------------------
# Project directories.
# -----------------------------------------------------------------------------

INC_DIR = $(PROJECT_DIR)/include

SRC_DIR = $(PROJECT_DIR)/source

OBJ_DIR = $(PROJECT_DIR)/bin

ELF_DIR = $(PROJECT_DIR)/bin

DAT_DIR = $(PROJECT_DIR)/data



# -----------------------------------------------------------------------------
# Define the flags for the compiler, the assembler and the linker;
# -----------------------------------------------------------------------------

C_FLAGS = -I$(DAT_DIR) -I$(INC_DIR) -I $(SOCRATES_INC_DIR) -I $(SGADE_SRC_DIR) -mthumb -mthumb-interwork -c -g -Wall -fverbose-asm

CPP_FLAGS = -I$(DAT_DIR) -I$(INC_DIR) -I $(SOCRATES_INC_DIR) -I $(SGADE_SRC_DIR) -mthumb -mthumb-interwork -c -g -Wall -fverbose-asm

S_FLAGS = -I$(DAT_DIR) -I$(INC_DIR) -I $(SOCRATES_INC_DIR) -mthumb-interwork

L_FLAGS = -lSocrates $(SOCRATES_LIB_DIR) -specs=gba.specs

# -----------------------------------------------------------------------------
# Define the list of object files
# -----------------------------------------------------------------------------

O_FILES_FROM_C = $(PROJECT).o

O_FILES_FROM_CPP =


O_FILES_FROM_C_FULL_PATH = $(addprefix $(OBJ_DIR)/, $(O_FILES_FROM_C))


O_FILES_FROM_CPP_FULL_PATH = $(addprefix $(OBJ_DIR)/, $(O_FILES_FROM_CPP))


O_FILES_FULL_PATH = $(O_FILES_FROM_C_FULL_PATH) $(O_FILES_FROM_CPP_FULL_PATH)



# -----------------------------------------------------------------------------
# Define the final dependecy;
# -----------------------------------------------------------------------------

all : $(PROJECT_DIR)/$(PROJECT).gba
@echo Done


# -----------------------------------------------------------------------------
# Define the copy from .elf to .gba file
# -----------------------------------------------------------------------------

$(PROJECT_DIR)/$(PROJECT).gba : $(ELF_DIR)/$(PROJECT).elf
@echo Object copying
arm-elf-objcopy -v -O binary $<

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
oops, sorry that got cut off continued here ...

# -----------------------------------------------------------------------------
# Define the linker instruction;
# -----------------------------------------------------------------------------

$(ELF_DIR)/$(PROJECT).elf : $(O_FILES_FULL_PATH) $(SOCRATES_LIB)
@echo Linking object files
arm-elf-gcc $(O_FILES_FULL_PATH) -o$@ $(L_FLAGS)



# -----------------------------------------------------------------------------

# Define the C compiles;

# -----------------------------------------------------------------------------

$(O_FILES_FROM_C_FULL_PATH) : $(OBJ_DIR)/%.o : $(SRC_DIR)/%.c
@echo Making $@
arm-elf-gcc -c $<

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
hmm, never mind - I guess not registering before posting that was a bad idea :(

Ask on the mailing list or the gbadev forums linked above, I'll manage a more coherent response there.

Share this post


Link to post
Share on other sites
Nope - GBADev was no help... :-
I'm waiting for a reply on the SGADE mailing list, but it's pretty inactive... I'll try the devkitARM list! Thanks! ;-)

Share this post


Link to post
Share on other sites

This topic is 4241 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Forum Statistics

    • Total Topics
      628702
    • Total Posts
      2984297
  • Similar Content

    • By Mert Oguz
      well, i have started developing games last year, alone , I made a singleplayer 3d openworld rpg on unity you can look at it on googleplaystore ( kooru stone rpg ) whatever, this year, i wanted to make mmo, which gone really fine until I first try real hosting, I was working on "wamp" until then. The reason i am desperate now is that the way my game works.
      On my pc, using wamp mysql , with localhost as host for my game, i was testing my mmorpg with using andorid emulators, ofcourse no lag no issues no restrictions, beautiful dream... But then, I wanted to get real host from web, so, I rent a basic, cheaphest ever web host ( 10$ year ), and transferred my php files along with sql database. 
      So, I launched the game, still no issues, tried to handle 2-3 players by using my pc, phone, friend's phone...  
      After a while, ( after really short time (3-4mins)) host started not to respond, beacause those web hosting were not fit to handle mmos, i predicted that.
      now what i am explaining is that my game works like this and asking what way should i use to handle it :
      - Creates web request ( like : webhost.com/game/getplayerdata.php?ID=2 )
      -Reads request ( request result be like = "ID2-GoodGuyXx-23-123-4-123-43 )
      -Builds player using result string
      -does similar requests REEAALY FREQUENTLY  ( total requests of 8 - 12 times per seconds )
      With my current ultimate cheap web hosting, i can handle 2 players with low lag ( lol ) but, i want to handle around 20-100 players,
      just need a clear path, i have been struggling with google cloud sql and other vps server dedicated server options, i dont wanna pay much and get ripped off.
    • By Apollo Cabrera
      That planet is awesome!!! It's just slowly dissipating into space. Death by emmissions
      Love the green and yellow-orange juxtaposition (did I just say that?).
    • By Marc Vandenbosch
      D.O.T is an abstract arena shooter in which you fight for highscore with good or bad weapons.
      Follow me if you want more info:  https://twitter.com/bombjackm
    • By Apollo Cabrera
      Yasss!!! My first Unity3d game is on the App Store and Google Play.
      Download please! About 30 minutes to get through 5 missions.
      Let me know what you guys think.
      Thanks a bunch
      Bleeping Bots MacOsx Demo Cut.mp4
    • By TheZeph
      I've been doing some digging and come to the conclusion that I'm not really qualified to identify a game engine for my project alone so I came here asking for some advice.
      My game idea involves movement inside a sphere where you always have your feet on the ground (the "walls" of the sphere), basically an inverted planet. It's supposed to be multiplayer so it's not just you moving in the world. When you jump, gravity (or force etc) pulls your character towards where it jumped from and the character model should have its feet pointing that way.
      I'm really new to this and my own conclusion is that it messes with core functionality of Unreal Engine 4 which makes it really hard for me as a beginner to wrap my head around. It comes with practice but It's hard for me to come to a fair conclusion on what engine to use based on my knowledge. Therefore I'm asking for some guidance. I have most experience with the Unreal Engine.
      What engine would you recommend?
      Is the game idea with being inside a sphere difficult to do in general? Do you have any tips?
      I'm kinda lost at the moment so thank you for the help!

  • Popular Now