How To Compile An .app For Dingoo?
Started by
kouky
, May 23 2009 06:19 PM
11 replies to this topic
#1
Posted 23 May 2009 - 06:19 PM
Hello,
I have succesfully compiled my homebrew as an .exe file using the SDK, via Visual C++ 2008,
but how do you compile your code as an .app, so that it can run on the Dingoo?
I am lost...
Cheers
I have succesfully compiled my homebrew as an .exe file using the SDK, via Visual C++ 2008,
but how do you compile your code as an .app, so that it can run on the Dingoo?
I am lost...
Cheers
#2
Posted 24 May 2009 - 11:55 AM
Hey, there should be a build batch file in the ccpmp directory, looking at the makefile in there this will compile all files in the ./main folder and ./../source/src. The output will be target.app which can be used on the dingoo. http://www.gp32x.com...showtopic=47536 goes into details about a few other things as well if you want to set it up differently.
Edited by Uprising, 24 May 2009 - 12:05 PM.
#3
Posted 24 May 2009 - 07:29 PM
Thank you,
the other thread was'nt very helpful as people are talking about compiling .app underr Linux, not under windows.
Should I just open a MS-DOS window unsing cmd.exe and run build.bat from the ccpmp folder?
the other thread was'nt very helpful as people are talking about compiling .app underr Linux, not under windows.
Should I just open a MS-DOS window unsing cmd.exe and run build.bat from the ccpmp folder?
#4
Posted 24 May 2009 - 08:08 PM
I am getting those errors:
CODE
Makefile:137: target `Loader.o' given more than once in the same rule.
mipsel-linux-gcc -g -c -O -Ic:/s2dsdk/inc -Ic:/cygwin/mipseltools/include -I -mips32 -Wall -finline-functions -fomit-frame-pointer -msoft-float -fno-builtin -fno-exceptions -mno-abicalls -fno-pic -pipe -G 0 -o interface.o main/interface.c
cc1: /cygdrive/d/work/daniel/work-gcc/tools/jz47-nopic/include: No medium found
cc1: /cygdrive/d/work/daniel/work-gcc/tools/jz47-nopic/lib/gcc-lib/mipsel-linux/3.3.1/include: No medium found
cc1: /cygdrive/d/work/daniel/work-gcc/tools/jz47-nopic/mipsel-linux/sys-include: No medium found
cc1: /cygdrive/d/work/daniel/work-gcc/tools/jz47-nopic/mipsel-linux/include: No medium found
In file included from main/interface.c:10:
c:/cygwin/mipseltools/include/stdlib.h:92:9: warning: extra tokens at end of #endif directive
c:/cygwin/mipseltools/include/stdlib.h:92:18: warning: no newline at end of file
In file included from main/interface.c:11:
c:/cygwin/mipseltools/include/string.h:44:7: warning: no newline at end of file
main/interface.c: In function `lcd_get_frame':
main/interface.c:202: warning: return from incompatible pointer type
main/interface.c: In function `lcd_set_frame':
main/interface.c:208: warning: unused variable `pLcdBuf'
main/interface.c:209: warning: unused variable `pTmp'
main/interface.c: In function `kbd_get_key':
main/interface.c:314: warning: implicit declaration of function `printf'
main/interface.c:312: warning: unused variable `i'
main/interface.c: In function `sys_judge_event':
main/interface.c:379: warning: unused variable `r'
make: *** [interface.o] Error 1
mipsel-linux-gcc -g -c -O -Ic:/s2dsdk/inc -Ic:/cygwin/mipseltools/include -I -mips32 -Wall -finline-functions -fomit-frame-pointer -msoft-float -fno-builtin -fno-exceptions -mno-abicalls -fno-pic -pipe -G 0 -o interface.o main/interface.c
cc1: /cygdrive/d/work/daniel/work-gcc/tools/jz47-nopic/include: No medium found
cc1: /cygdrive/d/work/daniel/work-gcc/tools/jz47-nopic/lib/gcc-lib/mipsel-linux/3.3.1/include: No medium found
cc1: /cygdrive/d/work/daniel/work-gcc/tools/jz47-nopic/mipsel-linux/sys-include: No medium found
cc1: /cygdrive/d/work/daniel/work-gcc/tools/jz47-nopic/mipsel-linux/include: No medium found
In file included from main/interface.c:10:
c:/cygwin/mipseltools/include/stdlib.h:92:9: warning: extra tokens at end of #endif directive
c:/cygwin/mipseltools/include/stdlib.h:92:18: warning: no newline at end of file
In file included from main/interface.c:11:
c:/cygwin/mipseltools/include/string.h:44:7: warning: no newline at end of file
main/interface.c: In function `lcd_get_frame':
main/interface.c:202: warning: return from incompatible pointer type
main/interface.c: In function `lcd_set_frame':
main/interface.c:208: warning: unused variable `pLcdBuf'
main/interface.c:209: warning: unused variable `pTmp'
main/interface.c: In function `kbd_get_key':
main/interface.c:314: warning: implicit declaration of function `printf'
main/interface.c:312: warning: unused variable `i'
main/interface.c: In function `sys_judge_event':
main/interface.c:379: warning: unused variable `r'
make: *** [interface.o] Error 1
#5
Posted 25 May 2009 - 03:30 PM
I have only done a quick compile for the helloworldpixel (http://blog.tipesoft.com) and sdk example myself and that worked fine for me. It might be worth seeing if you have things set up correctly by compiling them first before your hombrew app. Then you could replace the files with your homebrew sourcecode.
Makefile:137: target `Loader.o' given more than once in the same rule. Not sure what that really means but check your compile folders to see if there is more than one Loader.c/cpp file.
Hope you sort it
Makefile:137: target `Loader.o' given more than once in the same rule. Not sure what that really means but check your compile folders to see if there is more than one Loader.c/cpp file.
Hope you sort it
#6
Posted 03 June 2009 - 01:18 PM
I have finally been able to work around the
"cc1: /cygdrive/d/work/daniel/work-gcc/tools/jz47-nopic/include: No medium found" error
by compiling while a CD is inserted into the D: drive,
But I still have the
This is most surprising as I am just compiling the hello world example without editing it...
Any clue?
"cc1: /cygdrive/d/work/daniel/work-gcc/tools/jz47-nopic/include: No medium found" error
by compiling while a CD is inserted into the D: drive,
But I still have the
CODE
Makefile:137: target `Loader.o' given more than once in the same rule.
This is most surprising as I am just compiling the hello world example without editing it...
Any clue?
#7
Posted 03 June 2009 - 04:34 PM
QUOTE (kouky @ Jun 3 2009, 02:18 PM) <{POST_SNAPBACK}>
I have finally been able to work around the
"cc1: /cygdrive/d/work/daniel/work-gcc/tools/jz47-nopic/include: No medium found" error
by compiling while a CD is inserted into the D: drive,
But I still have the
This is most surprising as I am just compiling the hello world example without editing it...
Any clue?
"cc1: /cygdrive/d/work/daniel/work-gcc/tools/jz47-nopic/include: No medium found" error
by compiling while a CD is inserted into the D: drive,
But I still have the
CODE
Makefile:137: target `Loader.o' given more than once in the same rule.
This is most surprising as I am just compiling the hello world example without editing it...
Any clue?
That basically means it's found Loader.cpp twice.
If you're using the S2D framework thing, Loader.cpp is a code file that sets up the screen and things, so there is a different one for Windows and a different one for the Dingoo.
Quickly, if you move the one in the Hello World example to somewhere else temporarily, it'll compile for the Dingoo quite happily.. you can put it back in if you want to compile for Windows again.
Basically, just make sure your Loader.cpp file is away from the rest of the code in your own projects, and you'll be fine
#8
Posted 04 June 2009 - 10:20 AM
Stuckie,
moving the loader.ccp to another location made the compilation possible!
Thank you so much, I am sure this will also help a lot of other people on this forum.
moving the loader.ccp to another location made the compilation possible!
Thank you so much, I am sure this will also help a lot of other people on this forum.
#9
Posted 10 June 2009 - 05:46 PM
When compiling for the Dingoo (Still!)
When using the printf function, I am getting this error:
How do you debbug on the A320?
Can I make the compiler to ignore all the printf function calls?
Cheers
When using the printf function, I am getting this error:
CODE
undefined reference to `s2d::printf(char const*, ...)
How do you debbug on the A320?
Can I make the compiler to ignore all the printf function calls?
Cheers
#10
Posted 21 August 2010 - 11:43 AM
I made & published my app few days ago
http://www.gp32x.com...showtopic=56028
Using the official SDK found here:
http://x11.gp2x.de/a320/
But I just found out there is an alternative SDK on google code:
http://code.google.com/p/dingoo-sdk/
What are the differences between those 2 SDK???
Does the second one generate more optimised app?
http://www.gp32x.com...showtopic=56028
Using the official SDK found here:
http://x11.gp2x.de/a320/
But I just found out there is an alternative SDK on google code:
http://code.google.com/p/dingoo-sdk/
What are the differences between those 2 SDK???
Does the second one generate more optimised app?
#11
Posted 21 August 2010 - 12:57 PM
The SDK on Google Code is an alternative SDK built from the ground up pretty much. It was started by flatmush.
A drawback is that you can't test your apps on Windows with Visual Studio like in the official SDK, but it does produce faster / more optimized apps.
And you can easily disable the hold X to quit event
A drawback is that you can't test your apps on Windows with Visual Studio like in the official SDK, but it does produce faster / more optimized apps.
And you can easily disable the hold X to quit event
#12
Posted 23 August 2010 - 08:16 AM
Great, thank you for the infos!











