For discussions about development of TAPs, patches and other software for the Toppy

Moderator: Technical

Post Reply
peteru
Regular contributor
Posts: 79
Joined: Sun Mar 27, 2005 5:57 am
Location: Sydney, Australia

Step by step TAP compiler setup guides available.

Post by peteru »

The TAP project home page documentation link now points to a new section that includes two step-by-step guides.

Part one covers Cygwin installation and setup.

Part two provides instructions for setting up the workspace, retrieving the latest source code, building TAPs and making use of the automated build infrastructure for your own TAP projects.

Please visit http://tap.berlios.de/ and click on the Documentation link.

Both guides include step by step examples in full colour!
I am not a regular reader of these forums, so don't expect a swift reply from me. If you need my attention, please visit Australian Topfield Forums.
swedish cook
Frequent contributor
Posts: 349
Joined: Mon Sep 19, 2005 6:34 pm

Post by swedish cook »

Can we make this - or something like it sticky to help newbie developers please.
PVR:HUMAX Foxsat HDR (ex Toppy owner)
slatermethuen
Posts: 3
Joined: Wed Jan 25, 2006 2:00 pm

Post by slatermethuen »

Hi,

I am keen to start developing code for the Toppy, but I'm not having any luck obtaining the tool chain. I've tried the berlios site for several days now but I keep getting time-outs. Is this stuff mirrored anywhere?

Cheers,

Andy
peteru
Regular contributor
Posts: 79
Joined: Sun Mar 27, 2005 5:57 am
Location: Sydney, Australia

Post by peteru »

Works for me. Perhaps you need to check with your ISP why your connection is b0rked?
I am not a regular reader of these forums, so don't expect a swift reply from me. If you need my attention, please visit Australian Topfield Forums.
Iain
Regular contributor
Posts: 70
Joined: Sat Jan 21, 2006 2:30 pm
Location: Sutton Coldfield

Post by Iain »

I've got the same problem, following http://tap.berlios.de/cygwin_compiler_install.html

It's not downloading the file, and when you go to that link in a browser you can't even download it that way.

Anyone got it hosted anywhere else?
Toppy: TF5800PVR 250Gb Silver Firmware: 5.13.40 TX: Sutton Coldfield
Autostart TAPs: MyStuff 5.62b, eit2mei, Description Extender
Other TAPs: HDDInfo 1.0.1
simonc
Frequent contributor
Posts: 5648
Joined: Tue Apr 12, 2005 1:31 pm
Location: Cheltenham
Contact:

Post by simonc »

Seems to be mostly working using http://download.berlios.de/tap/tap_tool ... x86.tar.gz
I did see a page that said Invalid Key and not a lot else on the first attempt.
tre4
Regular contributor
Posts: 93
Joined: Fri Apr 01, 2005 8:52 pm

Re: Step by step TAP compiler setup guides available.

Post by tre4 »

peteru wrote:The TAP project home page documentation link now points to a new section that includes two step-by-step guides.

Part one covers Cygwin installation and setup.

Part two provides instructions for setting up the workspace, retrieving the latest source code, building TAPs and making use of the automated build infrastructure for your own TAP projects.
all of which would be great if it worked. This is driving me nuts I've followed all the instructions and theres always something that don't quite work.......
simonc
Frequent contributor
Posts: 5648
Joined: Tue Apr 12, 2005 1:31 pm
Location: Cheltenham
Contact:

Post by simonc »

Could you perhaps describe what doesn't work? Then at least it'd be possible to correct the guide.
bluemini
Posts: 2
Joined: Fri Apr 14, 2006 8:27 am

Post by bluemini »

A couple of questions, cos I am having some real problems finding any definitive and consistent information about installing Cygwin, the toolchain and the Topfield API and samples...and of course not having any luck getting things to work.

1) I have followed the guide above on installing cygwin and it places the toolchain in a directory /usr/local/topfield-gcc should I copy the files within this directory into /usr/local or is that the right place for them?

2) I unzipped the API into a folder c:\work and the samples in their resepective directories beneath it. When I run the build.bat in the fire sample, I get the following error (part shown) which looks like it's trying to compile using C++!!

C:\Work\FIRE>call ..\gcc fire.c

C:\Work\FIRE>mips-gcc.exe -O2 -c -mtap -mlong-calls -msoft-float -I..\ -I ..\inc
lude -I c:\cygwin\usr\include -I c:\cygwin\usr\local\include fire.c
3 [main] cpp 3992 C:\cygwin\USR\LOCAL\BIN\cpp.exe: *** fatal error - fork:
can't reserve memory for stack 0x23EB30 - 0x240000, Win32 error 487
2 [main] cpp 2108 child_copy: stack write copy failed, 0x23EB30..0x240000,
done 0, windows pid 2353764, Win32 error 5
1135082 [main] cpp 2528 C:\cygwin\USR\LOCAL\BIN\cpp.exe: *** fatal error - fork:
can't reserve memory for stack 0x23EB30 - 0x240000, Win32 error 487
1137349 [main] cpp 2108 child_copy: stack write copy failed, 0x23EB30..0x240000,
done 0, windows pid 2353764, Win32 error 5
3150782 [main] cpp 3028 C:\cygwin\USR\LOCAL\BIN\cpp.exe: *** fatal error - fork:
can't reserve memory for stack 0x23EB30 - 0x240000, Win32 error 487
3153037 [main] cpp 2108 child_copy: stack write copy failed, 0x23EB30..0x240000,
done 0, windows pid 2353764, Win32 error 5
7166664 [main] cpp 6136 C:\cygwin\USR\LOCAL\BIN\cpp.exe: *** fatal error - fork:
can't reserve memory for stack 0x23EB30 - 0x240000, Win32 error 487
7168926 [main] cpp 2108 child_copy: stack write copy failed, 0x23EB30..0x240000,
done 0, windows pid 2353764, Win32 error 5
cpp: vfork: No error


Any help would be appreciated, thanks

Nick
simonc
Frequent contributor
Posts: 5648
Joined: Tue Apr 12, 2005 1:31 pm
Location: Cheltenham
Contact:

Post by simonc »

The API itself is in a directory called topfield-sdk in include and lib subdirectories. The samples should go somewhere else, like your Work directoryYou don't need to move them anywhere else IIRC.

Ignore the batchfiles if you've installed the toolchain. Use some of the makefiles for TAPs in berlios as a base, they're pretty simple. I suppose it'd be a good idea for berlios to have a mirror of the Topfield samples with makefiles, but nobody has got round to it yet.

An example makefile can be found here:
http://svn.berlios.de/wsvn/tap/trunk/ta ... rev=0&sc=0

This directory might also help:
http://svn.berlios.de/wsvn/tap/trunk/to ... rev=0&sc=0
bluemini
Posts: 2
Joined: Fri Apr 14, 2006 8:27 am

Post by bluemini »

Thanks for that, I was getting in knots reading the Topfield pdf and then attempting to combine that with the Berlios info. Only had a slight glitch with the svn checkout playing up but I used my Windows SVN installation and now at least I can compile the .c to a .tap

Thanks again
tre4
Regular contributor
Posts: 93
Joined: Fri Apr 01, 2005 8:52 pm

Post by tre4 »

simonc wrote:Could you perhaps describe what doesn't work? Then at least it'd be possible to correct the guide.
I think most of my problems seem to lie with connectivity.

I followed the instructions through but when I get to the WGET to download the toolchain it fails trying to access the site via port 80. Strangely if I telnet to the site:port I can enter a get command......

So I gave up on this and downloaded from windows putting the tar.gz in usr/local then uncompressing as per the rest of the instructions to get /usr/local/topfields-gcc so should be okay there.

Moved onto the initialising docs and I was okay up to the SVN command where again I get a failure. This time it is svn 2164_ cygtls::handle eceptions: Error while dumping state probably corrupted stack.....

Again it appears to be related to the http access from this program. I've even tried this with my firewall turned off but that has no effect . I tried to figure out where to go next but to be honest I ran out of time and didn't get any further. I did try wgetting some other addresses like the index.htm on my own site but that didn't work either......

Any advice would be greatfully received.
simonc
Frequent contributor
Posts: 5648
Joined: Tue Apr 12, 2005 1:31 pm
Location: Cheltenham
Contact:

Post by simonc »

I think you're right, if wget isn't working it sounds more like a Cygwin installation issue. Unfortunately I don't know a great deal about getting Cygwin working. It's such a tedious process getting the right install options, is there a chance you've missed out a vital component?
andyrogers
Frequent contributor
Posts: 814
Joined: Wed Dec 07, 2005 9:09 pm

Post by andyrogers »

Hi Simon

I have been trying to compile some of your taps from your original source code for Remote & Description Extender and all I keep ongetting is getting errors which i do not understand.

I have installed cygwin and toolchain as per the instructions on the berlios website, when I run the make command I get the following info:-

C:\CYGWIN\HOME\ADMINI~1\PROJECTS\TAP\TRUNK\TAPS\REMOTE~1>make
MAKE single
MAKE[1]: Entering directory `/HOME/ADMINI~1/PROJECTS/TAP/TRUNK/TAPS/REMOTE~1'
/usr/local/topfield-gcc/bin/mips-gcc -mqnxpic -fno-delayed-branch -mlong-calls -
msoft-float -isystem /usr/local/topfield-gcc/topfield-sdk/include -D_TAP -O2 -I.
./../libs/libutils -I../../libs/Firmware -I../../libs/TSRCommander -c -o Remot
eExtender.o RemoteExtender.c
RemoteExtender.c:351: parse error before `Model'
RemoteExtender.c:351: warning: no semicolon at end of struct or union
RemoteExtender.c:354: parse error before `}'
RemoteExtender.c:354: warning: data definition has no type or storage class
RemoteExtender.c:357: parse error before `firmware'
RemoteExtender.c:360: `TF5800t' undeclared here (not in a function)
RemoteExtender.c:360: initializer element is not constant
RemoteExtender.c:360: (near initialization for `firmware[0]')
RemoteExtender.c:362: `TF5800t' undeclared here (not in a function)
RemoteExtender.c:362: initializer element is not constant
RemoteExtender.c:362: (near initialization for `firmware[3]')
RemoteExtender.c:363: warning: data definition has no type or storage class
RemoteExtender.c:366: parse error before `*'
RemoteExtender.c: In function `GetMHEGMode':
RemoteExtender.c:390: request for member `registerGroup' in something not a stru
cture or union
RemoteExtender.c: In function `ShowUnsupportedMessage':
RemoteExtender.c:456: `sysID' undeclared (first use in this function)
RemoteExtender.c:456: (Each undeclared identifier is reported only once
RemoteExtender.c:456: for each function it appears in.)
RemoteExtender.c:456: `_appl_version' undeclared (first use in this function)
MAKE[1]: *** [RemoteExtender.o] Error 1
MAKE[1]: Leaving directory `/HOME/ADMINI~1/PROJECTS/TAP/TRUNK/TAPS/REMOTE~1'
MAKE: *** [all] Error 2

I have got all of my paths setup, and have tried looking around every where, but am just having no luck at all in compiling any taps.

Can you please help me get unstuck with compiling taps. This is an area which I want to try and get into with programming.

Any help from you Simon or anyone else would really be much appreciated.

Thanks

Andy

Firmware: 5.14.09 Patched
AutoStart Taps: MyStuff v5.52b, eit2mei beta 7.8m7, , Power Manager v1.2, Tap Commander v1.32, TF5000 Display v1.53a, Discription Extender v2.3, SDS 1.3b, QuickJump 1.72
Other Taps: Sudoka, mei2archive, mei2eit, snake, meisearch
v12mike
Frequent contributor
Posts: 247
Joined: Fri Mar 03, 2006 10:16 pm

Post by v12mike »

Andy,

Try adding #include <model.h> to RemoteExtender.c

and model.o to the libutils.a line in the makefile

That then builds for me. It looks like someone has restructured libutils since RemoteExtender was checked in.


There is still an error with
tfcopy: Command not found, but it has already linked the tap by that point.

regards,
Mike
Post Reply