Hi Thomas, On Thu, Apr 22, 2010 at 09:15:44PM +0200, manner.moe@gmx.de wrote: > Hello, > now i´ve tested scsi acces with libusal(included in cdrkit package) on > windows. That's great. So we don't have rely on libsgutils anymore which do not support MacOS for the time being as opposed to cdrtools/cdrkit. Great work! > windows port of libusal is limited to drives of type DRIVE_CDROM only so I > had to make a small patch. > That's not a problem. We provide the DLLs for the Windows version anyway. And as long as the provided DLLs are covered by a free licence (or their source code, to be more exactly), we can modify them and ship the modified versions. I hope (and I'm pretty sure that) we can leave libscg/libusal on Linux and MacOS unmodified. Any modification would imply that users will have to install special versions of that library besides the version from their package managers. > Instructions for building libusal.dll (MingW, MSYS and cmake must be > installed) : > 1. download latest cdrkit package from http://cdrkit.org/releases/ > 2. use patch for MinGW support as described here: http://lists.alioth.debian.org/pipermail/debburn-devel/2009-July/000647.html > (download and install additional dependencies from MingW download site if > needed) > 3. use libusal_use_drive_removables.patch > 4. use libusal_make_shared_lib.patch to make a dll with statically linked > librols > 5. type "cmake -G "MSYS Makefiles" in cdrkit root directory > 6 change to cdrkit/include subdirectory and type "make" > 7 change to cdrkit/librols subdirectory an type "make" > 8 change to cdrkit/libusal subdirectory and type "make" > now we have libusal.dll and libusal.dll.a > To use it we need following headers from cdrkit/include: > - complete usal directory > - schily.h, standard.h and ccomdefs.h > Ok, I will check if that helps me with MacOS. So far I was able to build and install the original cdrtools from Macports (not really magic ;)) but not cdrkit/libusal. It fails building some static libaries. It appears that the fork broke the MacOS port but I'm not sure. Thus, I will try to build himdformat against libscg first and in case that works we just add some preprocessor #defines on MacOS to use libscg instead of libusal. Unless Michael comes up with a better idea ;). I will try to get it compiled over the weekend. > > I´ve tested formatting a himd and it works fine. > The sample code is not complete yet, checking sense has to be added. Nah, that doesn't matter yet. We just need some proof of concept first. Once we have confirmed that libscg/libusal do the proper job on all supported operating systems, we can start working on the details ;). Great work so far. I'm really glad we'll finally get a highly portable format command (and other SCSI commands, like diskID). Adrian