Oric computers >> Tape Tools

by Simon » Sun, 24 Apr 2005 16:14:34 GMT

Hi!

Does anyone know if the following programs exist for Unix/Linux?
wavclean.exe
wav2tap.exe
old2mfm.exe

I guess Fabrice released them with the source code so they can be
compiled on these systems - did anyone ever do it?
Or maybe my question is stupid - anyone with a Unix system may be able
to compile by himself the source code and tehrefore doesn't need an
executable file?

Thanks in advance
Simon


Oric computers >> Tape Tools

by bob » Sun, 24 Apr 2005 20:48:28 GMT


in article 426b5592$0$14402$ XXXX@XXXXX.COM , Simon at
XXXX@XXXXX.COM wrote on 24/4/05 9:14:



I have a question and please forgive me for appearing stupid (but I do it so
well!!) but if you have the source code for a program that was written on a
UNIX machine if you take that same source code and compile it on a linux
machine does it just work ? Or do you need to change things ? Also would
that same source code work with Mac OS X ?Apple States that it is based on
FreeBSD which in turn is a version UNIX.

Once I have these "Source Code" things how do I compile them to run on my
Mac ? I know that I need to open a Terminal session on my Mac but from that
point I'm lost. I tried these about 3 years ago unsuccessfully and now its
about time I managed to do it if it is indeed possible !

All advice about compiling and source code is very welcome.




Bob
Somewhere in Scotland
Visit (Coming Soon) for all your Retro needs :)
--
Replies to Newsgroup only!

Oric computers >> Tape Tools

by Jylam » Sun, 24 Apr 2005 22:28:13 GMT


Hi simon,

Just recompiled tap2wav wavclean and wav2tap for linux (should be ok for
every distribution, compiled on debian with gcc 3.3.5).

I also included sources, as well as original french lisezmoi.txt file. I
didn't see any kind of license, Fabrice just let me know if spreading
this is a problem ;)

http://jylam.lnxscene.org/oriclinuxtools.tgz

(Oh, and I wrote one of the most complicated Makefile every wrote)


Jean-Yves Lamoureux

Oric computers >> Tape Tools

by Simon » Mon, 25 Apr 2005 00:22:43 GMT


Well it depends on the program, the compiler...
I'm not a real expert, but for C programs, as long as they respect the
standard C instructions (so they don't use anything specific to a
specific operating system), the source code (ie the program) can be
comiled on any machine: Unix, Linux, Mac, Windows, DOS (Oric ?) using of
course the correct comiler.


I think those simple programs many work under Mac, too.
The only thing to check would be the file format they use (wavclean and
wav2tap read Windows WAV formats, I guess this format is more or less
standard, and can be read by other systems too but it may not be the
default sound format).


If the program is in C, you need a C compiler for Mac :-)
And you may hae to read some doc to use the compiler of course.
Do a google search with: C compiler mac
but maybe someone here knows and will point you to a good compiler that
will do the job.

Hope that helps!
Simon

Oric computers >> Tape Tools

by Simon » Mon, 25 Apr 2005 00:25:38 GMT


Thanks a lot!
I sent you a mail - is you linux scene email still the right one ?

Cheers
Simon

Oric computers >> Tape Tools

by bob » Mon, 25 Apr 2005 03:08:35 GMT

in article 426bc8ac$0$19642$ XXXX@XXXXX.COM , Simon at
XXXX@XXXXX.COM wrote on 24/4/05 17:25:




Jylam, could you send me the details of how you compiled them on your
machine. I know that apple uses gcc as well. Just the lines of text that you
typed to do the actual compile from the source.

That way I can see if it works on mac

Thanks for your help on this (as well as Simons)




Bob
Somewhere in Scotland
Visit (Coming Soon) for all your Retro needs :)
--
Replies to Newsgroup only!

Oric computers >> Tape Tools

by Jylam » Mon, 25 Apr 2005 16:23:10 GMT


jylam pfompfomfpfom lnxscene d0t org yes

Oric computers >> Tape Tools

by Jylam » Mon, 25 Apr 2005 16:24:28 GMT


everything is on the Makefile.

as these tools are ANSI C, and need no external libraries, a simple
"gcc file.c -o file" creates an executable. How hard.


Jean-Yves Lamoureux

Oric computers >> Tape Tools

by Andre Majorel » Tue, 26 Apr 2005 07:06:23 GMT

n 2005-04-24, bob < XXXX@XXXXX.COM > wrote:


There's no general answer to that because it depends on several
factors.

Software that talks to hardware for which there's no established
standard API (USB, firewire, CD/DVD writers, audio, ...) cannot
be written portably. It will usually only compile on your
platform if the author has written the necessary code.

Some software does not access hardware but is tightly integrated
with some environment. For example, Linux software written for
Gnome or KDE is not likely to compile on Mac OS.

Virtually all GUI-type Unix applications use X. Apple provides
an X server (in the developer CD ?) and so does the Fink project
(http://fink.sf.net/).

Some software requires libraries which may not be present by
default on your OS. Commercial Unix systems come with Motif.
Linux systems come with GTK. Mac OS probably has neither out of
the box. Fink may help there.

Some software is inherently non-portable. Case in point,
Euphoric (and hence Xeuphoric) is written for an i386 CPU.

Some Unix software is not portable because it uses platform
specific extensions, sometimes for a good reason, sometimes
gratuitously.

Some software will not compile on your platform because your
platform has bugs or does not follow the standard. One project I
maintain compiles out of the box on Linux and all major Unix
flavours EXCEPT Mac OS because the Mac OS X linker has hang-ups
about initialising a char array with a string constant.

And finally, there are small differences that could easily be
overcome if the author knew about them. Most libre Unix software
these days is written by Linux or *BSD users and many of those
are not going to pay for a proprietary OS when they can have a
libre one for free. So they're often unaware of the portability
requirements for Mac OS. If told about Mac OS portability
issues, some of them will be happy to work with you
to solve them and some will just ignore you.

Executive summary : some do, some don't. If they don't, the fix
can be anything from a trivial one-line change to "impossible".


The first thing to do is to extract the contents of the
distribution archive. Put the distribution archive into your
home directory (normally /home/bob but Mac OS may differ). Open
a terminal and cd into your home directory by typing "cd". If
the distribution archive has a .tar.gz extension, type

tar xzvf niftyprogram-1.0.0.tar.gz

This will (usually) create a directory named niftyprogram-1.0.0
which containts the source.

If tar doesn't support the "z" option, try this instead:

gzip -d <niftyprogram-1.0.0.tar.gz | tar xvf -

If the distribution archive has a ".tar.bz2" extension, type

tar xjvf niftyprogram-1.0.0.tar.bz2

If tar doesn't like the "j" option, do

bzip2 -d <niftyprogram-1.0.0.tar.bz2 | tar xvf -

Once you have extracted the source, cd into the source directory
by typing

cd niftyprogram-1.0.0

and look at what you have:

ls -l

You will probably see a file named "README" or "INSTALL" or some
such which contains instructions. Roughly speaking you can
expect one of two things :

- the software uses GNU autoconf. In that case, there's a file
named "configure". Run it by typing

./configure

- it doesn't. There's probably a file named "Makefile". Open it
with your text editor of choice and make any necessary
changes. Be sure to save in Unix text format (lines ter

Oric computers >> Tape Tools

by bob » Tue, 26 Apr 2005 09:46:22 GMT

in article XXXX@XXXXX.COM , Andre Majorel at
XXXX@XXXXX.COM wrote on 26/4/05 0:06:


Thank you very very much Andre that was very helpful and this weekend I'll
try it out and post my findings to the group. Very informative :)




Bob
Somewhere in Scotland
Visit (Coming Soon) for all your Retro needs :)
--
Replies to Newsgroup only!

Oric computers >> Tape Tools

by Simon » Wed, 27 Apr 2005 03:56:09 GMT


Did you get my email ?
I sent it last Sunday I think.

Cheers
Simon