Cannot Make Hello World?

support for the ARM toolchain
caleglin
Posts: 1
Joined: Sun Dec 06, 2009 5:18 pm

Re: Cannot Make Hello World?

Post by caleglin » Sun Dec 06, 2009 5:21 pm

WinterMute wrote:Is this on 32bit or 64bit linux?
I have the same problem as him on a 64bit linux and no idea on how to solve it... does 32-64bit matter? Does anybody know how to correct this error?

badsanta
Posts: 4
Joined: Sun Dec 06, 2009 8:47 am

Re: Cannot Make Hello World?

Post by badsanta » Mon Dec 07, 2009 12:26 am

32-bit, on my laptop.

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Cannot Make Hello World?

Post by WinterMute » Mon Dec 07, 2009 7:35 am

I've checked the binaries again here locally and both 32 & 64bit builds are working fine for me. The ndstool binary is static so should, in theory run anywhere.

Which distro are you both on?

Best thing I can suggest is to try grabbing ndstool from SVN and building it yourself, see if that helps any.

svn co https://devkitpro.svn.sourceforge.net/s ... ds/ndstool
Help keep devkitPro toolchains free, Donate today

Personal Blog

badsanta
Posts: 4
Joined: Sun Dec 06, 2009 8:47 am

Re: Cannot Make Hello World?

Post by badsanta » Tue Dec 08, 2009 1:48 am

i'm on 32-bit OpenSUSE 11.1
Linux linux-zja5 2.6.27.39-0.2-default #1 SMP 2009-11-23 12:57:38 +0100 i686i686 i386 GNU/Linux

This is the list of tarballs I've used for this toolchain:

./examples/nds-examples-20091201.tar.bz2
./dswifi-0.3.11.tar.bz2
./libfilesystem-0.9.4.tar.bz2
./devkitARM_r27-i686-linux.tar.bz2
./libnds/libnds-1.4.0.tar.bz2
./default_arm7-0.5.8.tar.bz2
./maxmod-gba-1.0.6.tar.bz2 (not yet extracted)
./libfat-nds-1.0.6.tar.bz2
./maxmod-nds-1.0.6.tar.bz2

Is it possible some of these versions are conflicting ?
Or maybe I missed something ?

badsanta
Posts: 4
Joined: Sun Dec 06, 2009 8:47 am

Re: Cannot Make Hello World?

Post by badsanta » Tue Dec 08, 2009 12:41 pm

:oops: sorry forum

it appears i made a booboo by extracting most of the files into the root devkitpro folder.
for everyone encountering this problem: EVERYTHING, except the actual devkitARM tarball, has to be extracted into the ./libnds folder (in my case /opt/devkitpro/libnds)

i need to learn to rtfm. :P
Last edited by badsanta on Tue Dec 08, 2009 6:47 pm, edited 1 time in total.

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Cannot Make Hello World?

Post by WinterMute » Tue Dec 08, 2009 3:55 pm

Oh, I see! I shall have to put some more informative error messages in ndstool - that was similar to a problem I had before release & made me jump to the wrong conclusions.

Really I should find the time to sort out an installer/updater app for linux & OSX as well. Glad you figured it out in the end.
Help keep devkitPro toolchains free, Donate today

Personal Blog

pat
Posts: 1
Joined: Tue Jan 05, 2010 12:13 am

Re: Cannot Make Hello World?

Post by pat » Tue Jan 05, 2010 12:20 am

I am using OS X.
When I try to compile the hello_world, I got the following errors:-

./Makefile: line 2: .SUFFIXES:: command not found
./Makefile: line 5: syntax error near unexpected token `$(strip $(DEVKITARM)),'
./Makefile: line 5: `ifeq ($(strip $(DEVKITARM)),)'

I looked at the Makefile, the first several lines are:-

#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------

ifeq ($(strip $(DEVKITARM)),)
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
endif

include $(DEVKITARM)/ds_rules

#---------------------------------------------------------------------------------
# TARGET is the name of the output
# BUILD is the directory where object files & intermediate files will be placed
# SOURCES is a list of directories containing source code
# INCLUDES is a list of directories containing extra header files
#---------------------------------------------------------------------------------
TARGET := $(shell basename $(CURDIR))
BUILD := build
SOURCES := gfx source data
INCLUDES := include build


Thanks!
Pat

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Cannot Make Hello World?

Post by WinterMute » Wed Jan 06, 2010 1:03 am

You don't invoke the Makefile, you run make in the same directory as the Makefile. It's not an executable script.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Eagle_Tas
Posts: 1
Joined: Mon May 03, 2010 6:18 am

Re: Cannot Make Hello World?

Post by Eagle_Tas » Mon May 03, 2010 6:28 am

I receive the same errors as the OP when I try to compile the hello_world example with Programmer's Notepad. All I've done is a full install of devkitPro and followed this FAQ. Running "make" from the command line doesn't work either. It just says something along the line "make is not a command, program or batch file".

Code: Select all

> "make" 

> Failed to create process: The system cannot find the file specified.

> Process Exit Code: 0
> Time Taken: 00:00
I made sure there's no space in any of the directory names so we can rule that out. My OS is Windows 7.

dheart88
Posts: 44
Joined: Sun Dec 13, 2009 3:00 pm

Re: Cannot Make Hello World?

Post by dheart88 » Mon May 03, 2010 11:35 pm

I use win 7.. no problem with OS I think

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests