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

Moderator: Technical

Post Reply
BobD
MyStuff Team
Posts: 4220
Joined: Wed Aug 03, 2005 12:21 pm
Contact:

Post by BobD »

Thanks for that. Setting that, to where I can find cpp0.exe, did not help. So instead, I modified the PATH to include it, and that then found cpp0, but gave the following errors instead:

cygwin warning:
MS-DOS style path detected: c:/cygwin/usr/include
Preferred POSIX equivalent is: /usr/include
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.h ... -pathnames
In file included from dlmalloc.c:1002,
from mystuff.c:9239:
c:/cygwin/usr/include/stdlib.h:110: warning: `__warning__' attribute directive ignored
c:/cygwin/usr/include/stdlib.h:117: warning: `__warning__' attribute directive ignored
/usr/bin/as: unrecognized option `-O2'

more or less once per file.

I'll keep looking into this, but if anyone can jump in and put me out of my misery that would be good. I think I have copied across everything that was on the old laptop correctly, but perhaps not.

Cheers
FW: ChunkyWizard Recommended
TAPs:
MyStuff (always one version ahead of everyone else!), and recommended support TAPS
MyStuff skins, manual and latest version: http://www.BobDsMyStuff.co.uk
Known bugs & forthcoming fixes: http://www.BobDsMyStuff.co.uk/Bugs.shtml
Changes coming in the next version: http://www.BobDsMyStuff.co.uk/NextVersion.shtml
mstombs
Frequent contributor
Posts: 938
Joined: Sun Dec 31, 2006 7:58 pm

Post by mstombs »

Can you right click on the master bat file and "run as administrator" or similar, Win7 can be very fussy about letting old binaries run and create files where it doesn't want you to!
BobD
MyStuff Team
Posts: 4220
Joined: Wed Aug 03, 2005 12:21 pm
Contact:

Post by BobD »

Just tried that, and it made no difference at all :(
FW: ChunkyWizard Recommended
TAPs:
MyStuff (always one version ahead of everyone else!), and recommended support TAPS
MyStuff skins, manual and latest version: http://www.BobDsMyStuff.co.uk
Known bugs & forthcoming fixes: http://www.BobDsMyStuff.co.uk/Bugs.shtml
Changes coming in the next version: http://www.BobDsMyStuff.co.uk/NextVersion.shtml
BobD
MyStuff Team
Posts: 4220
Joined: Wed Aug 03, 2005 12:21 pm
Contact:

Post by BobD »

Just found this thread http://forum.toppy.org.uk/forum/viewtop ... &start=840 so it seems I have had this problem before!

Will go through that and see if it rings any bells.

I'm sure I searched for cpp0 before posting in this thread, but clearly not!
FW: ChunkyWizard Recommended
TAPs:
MyStuff (always one version ahead of everyone else!), and recommended support TAPS
MyStuff skins, manual and latest version: http://www.BobDsMyStuff.co.uk
Known bugs & forthcoming fixes: http://www.BobDsMyStuff.co.uk/Bugs.shtml
Changes coming in the next version: http://www.BobDsMyStuff.co.uk/NextVersion.shtml
BobD
MyStuff Team
Posts: 4220
Joined: Wed Aug 03, 2005 12:21 pm
Contact:

Post by BobD »

Might have helped if in this post http://forum.toppy.org.uk/forum/viewtop ... 603#193603 I had actually said how I fixed it!
FW: ChunkyWizard Recommended
TAPs:
MyStuff (always one version ahead of everyone else!), and recommended support TAPS
MyStuff skins, manual and latest version: http://www.BobDsMyStuff.co.uk
Known bugs & forthcoming fixes: http://www.BobDsMyStuff.co.uk/Bugs.shtml
Changes coming in the next version: http://www.BobDsMyStuff.co.uk/NextVersion.shtml
ccs
Frequent contributor
Posts: 2689
Joined: Tue Oct 30, 2007 3:19 pm

Post by ccs »

Any clues here?
TF5810, F/W: MS6 Recommended F/W 12/9/2009 -FmXl+CtEzIScVdZ
TAPs: EIT Sub v0.6; EPG2MEI v0.96; MPDisplayLITE V1.2; MyInfo B5.6; SecCache (UK) v0.4; Extend v1.7; MyStuff 6.6;
Sig generated by MyInfo on 20/10/14
ccsx
BobD
MyStuff Team
Posts: 4220
Joined: Wed Aug 03, 2005 12:21 pm
Contact:

Post by BobD »

Thanks, but no, no help there. Everything is spelt correctly and it all used to work on the old laptop.
FW: ChunkyWizard Recommended
TAPs:
MyStuff (always one version ahead of everyone else!), and recommended support TAPS
MyStuff skins, manual and latest version: http://www.BobDsMyStuff.co.uk
Known bugs & forthcoming fixes: http://www.BobDsMyStuff.co.uk/Bugs.shtml
Changes coming in the next version: http://www.BobDsMyStuff.co.uk/NextVersion.shtml
BobD
MyStuff Team
Posts: 4220
Joined: Wed Aug 03, 2005 12:21 pm
Contact:

Post by BobD »

Hum, interesting. I have now reinstalled cygwin from scratch, and then copied on top of that installation any files from my old backup of c:\cygwin that had not been installed.

MyStuff has now compiled (albeit with a couple of very minor warnings). No idea if the tap will work though, but will check that this evening.
FW: ChunkyWizard Recommended
TAPs:
MyStuff (always one version ahead of everyone else!), and recommended support TAPS
MyStuff skins, manual and latest version: http://www.BobDsMyStuff.co.uk
Known bugs & forthcoming fixes: http://www.BobDsMyStuff.co.uk/Bugs.shtml
Changes coming in the next version: http://www.BobDsMyStuff.co.uk/NextVersion.shtml
mstombs
Frequent contributor
Posts: 938
Joined: Sun Dec 31, 2006 7:58 pm

Post by mstombs »

Is your new laptop running 64-bit win7, vs 32-bit old XP? If so the default "Program Files" is reserved for native 64 bit apps, 32-bit ones get put into "Program Files (X86)", which might require cygwin re-install.

I notice in your bat file snip above there's a mix of upper and lower case in folder/file-names. This would matter in a Linux system or other Unix which is case-sensitive, so maybe something in cygwin gets confused?
BobD
MyStuff Team
Posts: 4220
Joined: Wed Aug 03, 2005 12:21 pm
Contact:

Post by BobD »

Yup, I have gone from 32bit XP to 64 bit Win 7.

I don't think that cygwin installs anything into \PF though, so that shouldn't be an issue. Not sure about the case issue, but I will check and change the case as appropriate anyway. Thanks for that.

As per my previous post (which by the look of the time stamp I posted just as you did) it looks like it is working. I have a .tap file which is (from memory - now at work so can't check) the same size as the old one from the XP laptop. I will very gingerly copy it to the toppy tonight and see what happens!
FW: ChunkyWizard Recommended
TAPs:
MyStuff (always one version ahead of everyone else!), and recommended support TAPS
MyStuff skins, manual and latest version: http://www.BobDsMyStuff.co.uk
Known bugs & forthcoming fixes: http://www.BobDsMyStuff.co.uk/Bugs.shtml
Changes coming in the next version: http://www.BobDsMyStuff.co.uk/NextVersion.shtml
mstombs
Frequent contributor
Posts: 938
Joined: Sun Dec 31, 2006 7:58 pm

Post by mstombs »

Good to hear about your progress. Apparently a good way to avoid this sort of issue in future, and to keep your new PC registry clean, is to set up a 32-bit XP virtual machine inside 64-bit Windows 7. I have used commercial vmware to run Ubuntu Linux under Windows7 or opensource virtualbox on Linux before, I notice Windows 7 has something call Virtual PC which might do something similar.

Your virtual machine image could be the size of a dvd, you run it in a window, and it could be transportable between machines. Biggest problem I have had is sharing folders with host machine, possibly because Linux under windows suffers from windows ntfs restrictions - internet access and redownloading stuff wasn't a problem! There are generally some ways to mount disks as network or virtual CD/DVD.
Geoff Bacon
Frequent contributor
Posts: 4663
Joined: Fri Jan 12, 2007 12:21 am
Location: Bristol
Contact:

Post by Geoff Bacon »

Attempting to write my first tap.

I have installed cygwin and the tool chain but don't know how to modify the MakeFile to access the FireBird's libtap.a

The output of the make command (with extra line breaks) is

Code: Select all

C:\work\tap\trunk\taps\fsSave>make
/usr/local/topfield-gcc/bin/mips-ld --script /usr/local/topfield-gcc/mips/lib/ta
p.ld fsSave.o -L/usr/local/topfield-gcc/topfield-sdk/lib -ltap -lc -lm  -o fsSav
e.elf
fsSave.o(.text+0x51c): In function `tmInitialise':
fsSave.c: undefined reference to `HDD_ChangeDir'
../../tools/build/tap.mk:53: recipe for target `fsSave.elf' failed
make: *** [fsSave.elf] Error 1
As far as I can see, the -L option should say where the library is and it does include the file:

Code: Select all

C:\work\tap\trunk\taps\fsSave>ls /usr/local/topfield-gcc/topfield-sdk/lib
libtap.a
libtap.a is not accessible by the which command (but perhaps that doesn't matter?)

Code: Select all

C:\work\tap\trunk\taps\fsSave>which libtap.a
which: no libtap.a in (/cygdrive/c/CYGWIN/BIN:
/cygdrive/c/CYGWIN/USR/LOCAL/BIN:
/cygdrive/c/Program Files/Borland/Delphi7/Bin:
/cygdrive/c/Program Files/Borland/Delphi7/Projects/Bpl:
/cygdrive/c/WINDOWS/system32:
/cygdrive/c/WINDOWS:
/cygdrive/c/WINDOWS/System32/Wbem:
/cygdrive/c/Program Files/Intel/DMIX:
/cygdrive/c/Program Files/Common Files/Roxio Shared/DLLShared:
/cygdrive/c/Program Files/Common Files/Teleca Shared:
/cygdrive/c/Program Files/TortoiseGit/bin:
/cygdrive/c/Program Files/QuickTime/QTSystem)
The MakeFile is very simple:-

Code: Select all

# The next line pulls in the rule sets for building TAPs.
include ../../tools/build/tap.mk

# The first target is the default target.
all: fsSave.tap

# A target for removing generated files.
clean:
	-rm -f *.tap *.o *.elf

fsSave.elf:: fsSave.o
Does anyone have any clues about how I can modify it so that it can resolve HDD_ChangeDir?

Geoff
TopManager program
TF5800, TS On, F/W: MS6 Recommended F/W 12/9/2009 -Sy+EvEzPePfUUuZ
TAPs: PcControl B1.4; StopExit v1.01; MHEG On/Off A3; QuickJump 1.72; EIT Sub (Game) v0.6; SecCache (UK) v0.4; EPG2MEI v0.96; Font Manager 1.0d; Extend v1.7; WSSkiller V2.12d; MyInfo B5.6; fsSave 1.1; PruneEPG 1.0; MyStuff 6.6-1;
Sig generated by EMJB's MyInfo.tap on 3/5/21
EMJB
Frequent contributor
Posts: 3645
Joined: Fri Jul 08, 2005 9:43 am
Location: Maldon Essex

Post by EMJB »

I always include it in the individual TAP "Makefile" e.g. for Channel Organiser:

ChannelOrganiser.elf:: ChannelOrganiser.o IniFiles.o ConfigMenu.o CoUtils.o LcnChange.o ChannelStatus.o Scan.o DeleteChannels.o Favourites.o FPDPage.o Timers.o AsOps.o ../../../libs/EMJB/EmjbFlashInit.o ../../../libs/EMJB/EMJBLib.a ../../../libs/FB/LibFireBird.a

EMJB
Silver 5800, Board Rev 1.2, MS recomm F/W, Sudbury Tx, varying TAP config
Geoff Bacon
Frequent contributor
Posts: 4663
Joined: Fri Jan 12, 2007 12:21 am
Location: Bristol
Contact:

Post by Geoff Bacon »

@EMJB

That was very easy!

Many thanks
Geoff
TopManager program
TF5800, TS On, F/W: MS6 Recommended F/W 12/9/2009 -Sy+EvEzPePfUUuZ
TAPs: PcControl B1.4; StopExit v1.01; MHEG On/Off A3; QuickJump 1.72; EIT Sub (Game) v0.6; SecCache (UK) v0.4; EPG2MEI v0.96; Font Manager 1.0d; Extend v1.7; WSSkiller V2.12d; MyInfo B5.6; fsSave 1.1; PruneEPG 1.0; MyStuff 6.6-1;
Sig generated by EMJB's MyInfo.tap on 3/5/21
DB1
Frequent contributor
Posts: 728
Joined: Wed Mar 30, 2005 6:45 pm
Location: Orpington

Post by DB1 »

I am trying to rebuild UKAS. I have got the 073 source from Berlios and also the pre-built Linux toolchain which I have installed on my Ubuntu laptop. taptest compiles fine.

However, running make in the UKAS directory throws an error

No rule to make target ../../tools/build/tap.mk

Now I am building on *nix rather than windows - I assume it was built on windows as all the text files have win line endings. I guess I am missing some other package - but what?

TIA
TF5800, F/W: 5.13.65AbBfBqC0CbCeCkCwCyDEcEeEfErEsEvEzFFsGmHHeIKtNfOtPPcPePsRRaRhRpRsSSdSrStT2TdTfTpUUuXXpXwXl TAPs: TF5000 Display v1.53; QuickJump 1.72; Power Manager v2.2; MyInfo B5.6; DescriptionExtender 2.23; Remote Extender 1.6; Archivev1.0a; mei2archive BETA 3.8l7; EPGnavigator v5.1c; UK Auto Scheduler v0.73.1; Extend v1.7; Power Restore V0.7.8
Tx: CP
Sig generated by MyInfo on 14/4/13
Post Reply