Hi dmantione,Originally Posted by dmantione
I tried that and it said "File format not recognized". I tried both the arm-linux-nm.exe (c:\devkitGP2X\bin\) and the nm.exe (c:\devkitGP2X\arm-linux\bin\).
cheers,
Paul
Hi dmantione,Originally Posted by dmantione
I tried that and it said "File format not recognized". I tried both the arm-linux-nm.exe (c:\devkitGP2X\bin\) and the nm.exe (c:\devkitGP2X\arm-linux\bin\).
cheers,
Paul
Games:
Seafox
Pages:
Syntax Error Software itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
That is not okay, and suggests the .o file is not build correctly. Verify if your C compiler generates the .o files FPC needs.
It works fine when I compile some arm assembly and ]libgp2x_asm.s[/b]Originally Posted by dmantione
Code:@ gp2x demo article code by Dzz @ this code is placed in the public domain. do anything you want with it. .align 4 .globl OpenFile .globl CloseFile .globl WriteFile .globl MUnmap .globl ChangeDir .globl ExecuteFile .globl MMap .globl CopyScreen .globl ClearScreen .globl Ioctl3 OpenFile: swi #0x900005 mov pc, lr CloseFile: swi #0x900006 mov pc, lr WriteFile: swi #0x900004 mov pc, lr MUnmap: swi #0x90005B mov pc, lr ChangeDir: swi #0x90000C mov pc, lr ExecuteFile: swi #0x90000B mov pc, lr Ioctl3: swi #0x900036 mov pc, lr MMap: stmdb sp!, {r0, r1, r2, r3} mov r0, sp swi #0x90005A add sp, sp, #16 mov pc, lr CopyScreen: stmfd sp!, {r4-r10} @ remember registers 4-10 mov r2, #4800 @ we will run the loop 4800 times to copy the screen .CopyScreenLoop: ldmia r1!, {r3-r10} @ pull in 32 bytes from the source stmia r0!, {r3-r10} @ write the 32 bytes to the destination subs r2, r2, #1 @ decrement the loop counter bne .CopyScreenLoop @ if we're not done, do it again ldmfd sp!, {r4-r10} @ restore the registers mov pc, lr @ return ClearScreen: stmfd sp!, {r4-r10} @ remember registers 4-10 mov r2, #4800 @ we will run the loop 4800 times to copy the screen mov r3, #0 @ load up the registers with zeros mov r4, #0 mov r5, #0 mov r6, #0 mov r7, #0 mov r8, #0 mov r9, #0 mov r10, #0 .ClearScreenLoop: stmia r0!, {r3-r10} @ write the 32 bytes of zeros to the destination subs r2, r2, #1 @ decrement the loop counter bne .ClearScreenLoop @ if we're not done, do it again ldmfd sp!, {r4-r10} @ restore the registers mov pc, lr @ returncheers,Code:arm-linux-gcc.exe -c libgp2x_asm.s
Paul
Games:
Seafox
Pages:
Syntax Error Software itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
Any .o file generated by the GNU assembler should be processable by the nm utility belonging to that assembler (regardless wether the compiler calling that assembler is GCC, FPC).
If "nm" cannot process a .o file, either the .o file is corrupt, or it is written in a format "nm" does not understand, but in that case, as and nm do not belong together.
Anyway, the output by "nm" is critical to understand this problem, so you will need to solve this problem in one way or another.
Ok, thanks for the help, but I dont't know how to proceed nowOriginally Posted by dmantione
cheers,
Paul
Games:
Seafox
Pages:
Syntax Error Software itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
Ok - I need help.
I recieved my F200 yesterday (tuesday), and now I want to try and compile something for it, but I can't
I've downloaded the guides written by Paul and followed them from the beginning to the end, but when I run the CompileProject batch file I get following error during link stage :
How do I fix this problem? (It's probably a newb question, but I'm used to use compilers/ide's that works ot of the box)Code:Linking gp2x_tutorial arm-linux-ld.exe: cannot find -lSDL An error occured while linking gp2x_tutorial
Imagine I've written something clever here inspiring you to make something awesome. If that happens give me credits
strange, it should work out of the "box"; other people have used it ok...Originally Posted by pstudio
Sorry about this, I will look into it...
PS In case it helps me, can you post the contents of your batch files that you had to alter to match file paths on your computer?
cheers,
Paul
Games:
Seafox
Pages:
Syntax Error Software itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
I didn't alter the filepaths since I unzippd the files to the same location as you suggested. The only filepath I changed was in the FPC config file where i changed the g:\... to c:\.
Imagine I've written something clever here inspiring you to make something awesome. If that happens give me credits
Nevermind. I redownloaded the devkit and now it works
I've just compiled my first GP2X program and now I'm gonna see if it works (probably wont )
Imagine I've written something clever here inspiring you to make something awesome. If that happens give me credits
Excellent!!Originally Posted by pstudio
So what is your first program, the tutorial I wrote, or one of your own?
cheers,
Paul
Games:
Seafox
Pages:
Syntax Error Software itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
Bookmarks