Welcome
Welcome to a320

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

Freedroid - Paradroid remake

Any and all A320 homebrew topics

Moderator: Moderators

Freedroid - Paradroid remake

Postby Hellsing1 on Sun Aug 02, 2009 9:48 pm

Would love this to get converted, if possible.

http://freedroid.sourceforge.net/download.php
Hellsing1
 
Posts: 97
Joined: Fri Mar 13, 2009 5:17 pm

Re: Freedroid - Paradroid remake

Postby mrLogan on Mon Aug 03, 2009 10:08 pm

Mee to please.

I got as far as downloading the source and getting it compiled and running on ubuntu (Tip: to get past the segmentation fault use gksudo freedroid).

I then used the toolchain and instructions for compiling for the dingoo but got errors like:

init.o: In function `stat':
/usr/include/sys/stat.h:453: undefined reference to `__xstat'
bullet.o: In function `getchar':
/usr/include/bits/stdio.h:47: undefined reference to `_IO_getc'
misc.o: In function `fstat':
/usr/include/sys/stat.h:467: undefined reference to `__fxstat'
misc.o: In function `stat':
/usr/include/sys/stat.h:453: undefined reference to `__xstat'
text.o: In function `DisplayChar':
/home/john/Downloads/freedroidgp2x-0.6/src/text.c:364: undefined reference to `__ctype_b_loc'
collect2: ld returned 1 exit status
make[2]: *** [freedroid] Error 1
make[2]: Leaving directory `/home/john/Downloads/freedroidgp2x-0.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/john/Downloads/freedroidgp2x-0.6'
make: *** [all] Error 2

Unfortunately this is only third time getting something compiled for dingoo [first 2 times worked ok but was only simple sdl demos] and less than double figures for compiling in general. On other words I don't have a clue what I am doing but am willing to give it a bash (no pun intended)
mrLogan
 
Posts: 89
Joined: Mon Aug 03, 2009 10:01 pm

Re: Freedroid - Paradroid remake

Postby ezelkow1 on Mon Aug 03, 2009 10:19 pm

It looks like its using your system include files, not the toolchain includes. Id suggest lookin around the forums for some suggested configure lines. If there isnt a configure script then your going to have modify the makefile to point to the right include directories.
ezelkow1
 
Posts: 84
Joined: Tue Apr 28, 2009 11:58 pm

Re: Freedroid - Paradroid remake

Postby mrLogan on Tue Aug 04, 2009 6:48 am

ezelkow1 wrote:It looks like its using your system include files, not the toolchain includes. Id suggest lookin around the forums for some suggested configure lines. If there isnt a configure script then your going to have modify the makefile to point to the right include directories.


Thanks for the tip.
Up to now I have been using:

export PATH="${PATH}:/opt/mipsel-linux-uclibc/usr/bin"

./configure --host=mipsel-linux --target=mipsel-linux --with-sdl-prefix=/opt/mipsel-linux-uclibc/usr --enable-static

Update: I looked in the Makefile after the configure and did notice a couple of entries like:
X_CFLAGS = -I/usr/include
X_LIBS = -L/usr/lib

which look suspicious (how would I know :lol: ). I am off to work but I might try hacking the Makefile later tonight and see if anything drops out.
mrLogan
 
Posts: 89
Joined: Mon Aug 03, 2009 10:01 pm

Re: Freedroid - Paradroid remake

Postby ezelkow1 on Tue Aug 04, 2009 7:31 am

yea, those arent correct, there should be extra options you can add before the ./configure itself to direct it to the correct location of the includes and libs
ezelkow1
 
Posts: 84
Joined: Tue Apr 28, 2009 11:58 pm

Re: Freedroid - Paradroid remake

Postby mrLogan on Tue Aug 04, 2009 5:59 pm

Just done something really cool! I got it running on the dingoo YEEHAA! Just got to figure out how to change the controls.
mrLogan
 
Posts: 89
Joined: Mon Aug 03, 2009 10:01 pm

Re: Freedroid - Paradroid remake

Postby Hellsing1 on Tue Aug 04, 2009 6:54 pm

That would be so cool as the C64 emu seems a while in coming.

Excellent work!
Hellsing1
 
Posts: 97
Joined: Fri Mar 13, 2009 5:17 pm

Re: Freedroid - Paradroid remake

Postby mrLogan on Tue Aug 04, 2009 8:54 pm

ok : first the disclaimer. This should be seen as an Alpha (just for fun) and not a release.

http://www.loganfamily.karoo.net/uploads/freedroid.zip

just unzip it to dingux and create the usual menu entries to point to ./freedroid

There is still lots to do:
1) Some controls associated with entering scoreboard need doing.
2) Need to get the sound fixed.
3) The resolution is scaled and could do with some improvement.
------------------------------------------------------------------------------------------------

I am way way out of my depth and a little suprised I got this far so I am not sure if I will be able to do the rest. So I will quickly go over how I did it in case anyone wants to move it on.

I downloaded the gp2x version of freedroid and copied it to the pc (running linux) and to my dingux games folder

I used:
export PATH="${PATH}:/opt/mipsel-linux-uclibc/usr/bin"

./configure --host=mipsel-linux --target=mipsel-linux --with-sdl-prefix=/opt/mipsel-linux-uclibc/usr --enable-static --prefix=/opt/mipsel-linux-uclibc/usr --x-includes=/opt/mipsel-linux-uclibc/usr/include/ --x-libraries=/opt/mipsel-linux-uclibc/usr/lib/

make

once it compiled i moved the executable to the freedroid/data/src directory on the SD card and created a modified version of the freedroid.gpe (without the gp2x menu recall) called freedroid

tried it out and it work apart from the controls so I commented out some gp2x specific code which looked like it might be the issue and compliled it again and it worked kinda ok.

That's as far as I got.
mrLogan
 
Posts: 89
Joined: Mon Aug 03, 2009 10:01 pm

Re: Freedroid - Paradroid remake

Postby Hellsing1 on Tue Aug 04, 2009 9:09 pm

Hi,

What do you run to get this to work? Can't see any obvious file.
Hellsing1
 
Posts: 97
Joined: Fri Mar 13, 2009 5:17 pm

Re: Freedroid - Paradroid remake

Postby mrLogan on Tue Aug 04, 2009 9:25 pm

Hellsing1 wrote:Hi,

What do you run to get this to work? Can't see any obvious file.


There is a file called freedroid in the main freedroid folder which is a bash script which sets up some environment variables and calls the main executable in the data/src directory.

Just run it with a menu entry like

MenuItem Freedroid

{

Icon = "res/freedroid.png"

Name = "Freedroid"

Executable = "./freedroid"

WorkDir = "/usr/local/games/freedroid"

Selector = no

}
mrLogan
 
Posts: 89
Joined: Mon Aug 03, 2009 10:01 pm

Next

Return to Homebrew

Who is online

Users browsing this forum: No registered users and 2 guests