söndag 7 april 2019

libuuid for AmigaOS 4

How to build libuuid for AmigaOS 4


Using libuuid 1.0.3

1. Download tar archive, https://sourceforge.net/projects/libuuid/, and unpack
 tar -xvf libuuid-1.0.3.tar
2. Change to that directory
 cd libuuid-1.0.3
3. Edit out "#include <sys/syscall.h>" (since AmigaOS doesn't have it) from randutils.c (either with #ifdefs or just remove the line -- it doesn't seem to be used)
4. Start the Amiga Dev Env docker container (20190313_2205 has built it, should work with latest)
  sudo docker run -it --mount src="$(pwd)",target=/workdir,type=bind jaokim/amigade:latest
5.  Configure  ./configure --host=ppc-amigaos --libdir=/SDK/local/newlib/lib/ --includedir=/SDK/local/newlib/include/
6. make
make ; make install
7. Create TAR archive with all files

  tar -cf libuuid-1.0.3.tar /SDK/local/newlib/lib/libuuid.a /SDK/local/newlib/lib/libuuid.la /SDK/local/newlib/lib/libuuid.so /SDK/local/newlib/lib/pkgconfig/uuid.pc  /SDK/local/newlib/include/uuid/uuid.h

Done!

Inga kommentarer:

Skicka en kommentar