Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'How do you compile it?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How do you compile it?
Authored by: gvitale on May 20, '02 10:57:59AM

What is the trik to install the cdrtools? They do compile fine, but then running "make install" gives:
make: `install' is up to date
when actually notting has been installed.
I'm I doing something wrong?



[ Reply to This | # ]
How do you compile it?
Authored by: gvitale on May 20, '02 11:04:53AM

Nevermind: use sudo fink install cdrtools to install with FINK.



[ Reply to This | # ]
How do you compile it?
Authored by: prosper on May 20, '02 12:58:34PM

Reading package info...
Information about 427 packages read in 3 seconds.
Failed: no package found for specification 'cdrtools'!

Even after a fink update or update-all....

Where's the problem ?



[ Reply to This | # ]
How do you compile it?
Authored by: gvitale on May 21, '02 05:38:09AM

Probably it's in the unstable tree



[ Reply to This | # ]
How do you compile it?
Authored by: judgemental on May 21, '02 06:15:29PM

just type "make"

You'll get a bunch of file not founds, but it's ok.

The only crappy thing is, after mine was done compiling, you couldn't do make install, it leaves all the complied binaries under the build directories.

i.e.: cdrecord is under cdrtools-1.xx/cdrecord/OBJ/powerpc-darwin-cc
mkisofs is under cdrtools-1.xx/mkisofs/OBS/powerpc-darwin-cc

and so on.

If you have an iso you want to burn to cd, do somthing like this:

cd to the directory that cdrecord is in, or copy it to somewhere in your path

./cdrecord speed=8 -eject -v dev=IOCompactDiscServices file.iso

Of course, speed can be replaced with whatever speed your cdr is. Also if you have a DVD drive that writes, use IODVDServices in the dev option.



[ Reply to This | # ]
DVD question
Authored by: VEGx on May 21, '02 06:40:44PM
A silly question, maybe.

Can you write DVD format even if you don't have the DVD writer?

What I mean is, could you, say, burn a disk image with a small home video so that the DVD Player would think it is a DVD disk? So that you would not have to do all the "Select Video_TS folder..." every time? Or anything? Something? Anyone?

[ Reply to This | # ]

How do you compile it - Explanation and Solution
Authored by: quo on Aug 06, '02 08:13:34AM
Like many source code distributions, cdrecord comes with a file INSTALL describing how to compile and install the sources. Unfortunately Apple went with HFS+ as preferred File System, effectively crippling MacOS X as to not distinguish upper and lower case in filenames.


What is happening?

The first default rule for make is to look if the target (install, in this case), already exists. Because of this you could have a file called project.c, and compile it by typing make project. As long as project.c is newer than the file project, make would call the C compiler with the default arguments to recompile your just-edited file.

When called with make install, the make command will first look for a file called install, and, because of HFS+, find any capitalisation of that as well.
(iNsTaLL, install, INSTALL, ... all match install)
If any such file exists, make assumes there is nothing left to do. If there were no such file, make would next look for a rule (in the makefile) called 'install' and do what is written there.


Solution

Make and many other generic Unix programs rely on the file system being able to distinguish between upper and lower case. Weird things may happen if they are tricked to accept one file for another.

My recommendation would be to use a separate partition/volume with an UFS Filesystem for compiling at least. For myself I have abandoned HFS+ entirely and installed MacOS X on a UFS-only partition (two to be honest). This may not be supported by Apple. So far one application (Cisco Aironet Drivers distributed using InstallerVise) has broken on me because of that and refused to install.


If this one installation of cdrecord is all you want, just rename the file called INSTALL to something else, for example readme.install and proceed by running make install.


P.S.
Cdrecord and the other tools from Jörg Schilling published at the fokus ftp server are some of the best written and most portable pieces of software I have seen. Compilation is painless and out-of-the box, and most tools have been ported to MacOS X by the author himself. For backup or comparing file trees his tar implementation, star is my long time favourite.


Hope this helps
/Quo


[ Reply to This | # ]

How do you compile it - Explanation and Solution
Authored by: extra88 on Sep 22, '02 03:38:42PM

If you only need UFS for compiling, do what I did, create a UFS image with Disk Copy. The image will be read/write but before you can put anything in it, you have go into Get Info and change the file permissions (by default the mounted image is owned by system and group "wheel" has only read access). When you're done compiling you can delete the contents of the image file and unmount it so it's clean for the next time (make sure to Empty Trash before unmounting).

Unfortunately this program still didn't install correctly because it tried to make user "bin" the owner of everything and that's not a valid user name (unless you created the user, "bin," yourself). Fortunately this is defined in ./DEFAULTS/Defaults.darwin (there's a Defaults.mac-os10 but it doesn't use it). Change DEFINSUSR to root and DEFINSGRP to wheel. You can also change INS_BASE to /usr so the programs will be put in your existing folders. The one thing that still won't be in the default folder are the man files which will go in /usr/man/ but should be in /usr/share/man/.

Do sudo cp -R /usr/man/* /usr/share/man to copy them there then "sudo rm -rf /usr/man/" to get rid of the folder make created (careful! use tab-completion to make sure you're specifying the correct directory).



[ Reply to This | # ]