Date: Tue, 11 Nov 2003 02:54:42 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [Ux2bs_Archive] No. 225 ************************************************** Monday 10 November 2003 Number 225 ************************************************** Subjects for today 1 Re: JPEG & TIFF : Dave and Natalie" 2 Re: building stuff with ux2bs : Stefan.Neis at t-online.de 3 Re: JPEG & TIFF : John Poltorak 4 Re: building jpeg : John Poltorak 5 building jpeg : Alex Samorukov 6 Re: building jpeg : Stefan.Neis at t-online.de 7 Re: Libtool : T.Sikora" 8 Re: JPEG & TIFF : John Poltorak **= Email 1 ==========================** Date: Tue, 11 Nov 2003 08:26:00 -0800 From: "Dave and Natalie" Subject: Re: JPEG & TIFF On Tue, 11 Nov 2003 11:18:00 +0000, John Poltorak wrote: > >> One good test app is glinks >> (http://hobbes.nmsu.edu/pub/os2/apps/internet/www/browser/links-2.1pre7. >> zip) which uses all the graphic DLLs when in graphic mode > >I'm just trying it out and see that you put it together. Does it build >fairly easily? I'd like to include it as an app buildable by UX2BS. Yes it built very easily. Need the graphic libs+dlls, autoconf and do a configure --help to see which options to pass configure. The latest (pre11) was missing one define which was easy to spot by looking at the older version. I built it here with support for both the PM graphics driver and the X driver so it runs on the desktop and on X. Dave _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 2 ==========================** Date: Tue, 11 Nov 2003 11:15:01 +0100 (CET) From: Stefan.Neis at t-online.de Subject: Re: building stuff with ux2bs Adrian Gschwend schrieb: > checking whether the C compiler (gcc ) is a > cross-compiler... yes That one doesn't look very good. Maybe regenerating the configure script does help... > ./traceroute.c:233: gnuc.h: No such file or directory I don't have it on any of my Unix- or Linux-systems. Maybe a consequence of "cross"- compiling. Any #ifdef around that line? > In file included from ./traceroute.c:205: > d:\emx\include\sys/select.h:39: parse error before > `size_t' Explicitly including sys/types.h at the beginning of the file might help. The rest looks like consequences of the missing netinet/ip_var.h . HTH, Stefan _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 3 ==========================** Date: Tue, 11 Nov 2003 11:18:00 +0000 From: John Poltorak Subject: Re: JPEG & TIFF On Mon, Nov 10, 2003 at 03:26:08PM -0800, Dave and Natalie wrote: > On Mon, 10 Nov 2003 23:31:29 +0000, John Poltorak wrote: > > > > > > >I've managed to build JPEG & TIFF using UX2BS, although a couple of > >niggles still need ironing out. > > > >Can anyone try them out in the next day or two? > > > >They are not ready for testing just yet but should be tommorrow. > > Did you manage to build the DLLs? Yes, but it needed a little manual intervention so it isn't quite fully automated yet, but I am able to rebuild jpeg.dll and tiff.dll > One good test app is glinks > (http://hobbes.nmsu.edu/pub/os2/apps/internet/www/browser/links-2.1pre7. > zip) which uses all the graphic DLLs when in graphic mode I'm just trying it out and see that you put it together. Does it build fairly easily? I'd like to include it as an app buildable by UX2BS. > Dave -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 4 ==========================** Date: Tue, 11 Nov 2003 13:40:59 +0000 From: John Poltorak Subject: Re: building jpeg On Tue, Nov 11, 2003 at 02:12:00PM +0200, Alex Samorukov wrote: > This is brief howto to build jpeg lib from sources. used gcc - 2.8.1. Thanks for this. I'd like to try and inorporate it into UX2BS. > 1) Unpack jpegsrc.v6b.tar.gz to any directory. > 2) create conf.cmd which content: > --- > SET AR=emxomfar > SET LD=emxomfld > SET CFLAGS=-Zomf -c -O6 > SET LDFLAGS=-Zomf -Zstack 0x2000 -Zlinker "/PMTYPE:VIO" > sh configure > --- > and run it. > > 3) Edit makefile manually ( :( ) and replace "ar rc" with "emxomfar rc" Is there any way to patch makefile.cfg? Maybe by adding something like:- AR= at AR at > 4) run make. You will get all exe files from the project. > 5) Now we will build shared lib. Can any of this be done via LIBTOOL? > Now you have: > libjpeg.a - OMF style static lib (IMHO its good idea to rename it to > libjpeg.obj) > jpeg.dll - OS/2 jpeg library. > jpeg.a and jpeg.lib - a out and OMF style libraries for dinamyc linking > with jpeg.dll > *.exe - files from libjpeg project. > > I hope this will help to someone :) Yes - it certainly does. Much appreciated. -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 5 ==========================** Date: Tue, 11 Nov 2003 14:12:00 +0200 From: Alex Samorukov Subject: building jpeg This is brief howto to build jpeg lib from sources. used gcc - 2.8.1. 1) Unpack jpegsrc.v6b.tar.gz to any directory. 2) create conf.cmd which content: --- SET AR=emxomfar SET LD=emxomfld SET CFLAGS=-Zomf -c -O6 SET LDFLAGS=-Zomf -Zstack 0x2000 -Zlinker "/PMTYPE:VIO" sh configure --- and run it. 3) Edit makefile manually ( :( ) and replace "ar rc" with "emxomfar rc" 4) run make. You will get all exe files from the project. 5) Now we will build shared lib. a) Create file jpeg.def with content --- LIBRARY JPEG DESCRIPTION "JPEG image library for OS/2" CODE PRELOAD MOVEABLE DISCARDABLE DATA PRELOAD MOVEABLE MULTIPLE EXPORTS --- b) run "emxexp.exe libjpeg.a >>jpeg.def". You will get defenition file for the OS/2 DLL. c) run "gcc -s -Zcrtdll -Zdll -Zomf jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o jfdctint.o jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o jcomapi.o jutils.o jerror.o jmemmgr.o jmemnobs.o jpeg.def". Yiu will get jpeg.dll :) 6) Run "emximp -o jpeg.a jpeg.def" to get a out style lib for non omf linkage. and "emximp -o jpeg.lib jpeg.def" for omf style lib Now you have: libjpeg.a - OMF style static lib (IMHO its good idea to rename it to libjpeg.obj) jpeg.dll - OS/2 jpeg library. jpeg.a and jpeg.lib - a out and OMF style libraries for dinamyc linking with jpeg.dll *.exe - files from libjpeg project. I hope this will help to someone :) _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 6 ==========================** Date: Tue, 11 Nov 2003 14:52:51 +0100 (CET) From: Stefan.Neis at t-online.de Subject: Re: building jpeg Alex Samorukov schrieb: > 5) Now we will build shared lib. (snipp) Why not simply use the utility "dllar" that's included in the pgcc and gcc-3.* distributions. That has the added benefit that it uses export by name (unless you explicitly ask for export by ordinals), so you don't have to go through various hoops to insure compatibility... > b) run "emxexp.exe libjpeg.a >>jpeg.def". > You will get defenition file for the OS/2 DLL. With the drawback that it uses import by ordinal and uses more or less random numbers as ordinals, so once you compile a newer version, it will be incompatible with existing applications using the DLL ... Regards, Stefan P.S.: Oops, I just realized dllar wants a.out libraries as input. So this gives you the added benefit that you can (and must) forget about some of the other stuff to: Do not set AR, LD, LDFLAGS and omit the -Zomf in CFLAGS. No need to edit makefile, either. _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 7 ==========================** Date: Tue, 11 Nov 2003 19:06:25 -0500 From: "T.Sikora" Subject: Re: Libtool John Poltorak wrote: > On Tue, Nov 11, 2003 at 05:30:25PM -0500, T.Sikora wrote: > >>John Poltorak wrote: >> Damn you did a lot of work that UX2BS Build Folder is chock full of ports. If we can get Andreas makepkg working we can fill that UX2 distro tree. > > It should be in \unixos2\bin. It must be there because the Perl tarball > extracted correctly. > > >>Everything else went smooth until after Perl. > > > The problem looks to be that you were unable to retrieve most archives. > > What do you have in your %repository% directory? Nothing but perl wget is failing. What is the line used to get it. > > >>>Maybe you could save all the successful build logs and make them publicly >>>available so that anyone else could compare your results... It's useful to >>>see how things are supposed to run if you encounter a problem. >>> >> >>Here's my install_log > > Here's my logs ftp://dumbdog.org/incoming/john/logs Only perl built it cannot get any others. Must be the line in build.sh > It looks like most apps failed to build. > > What I really need to find is a reliable way to check whether WGET has > worked, or maybe include a wget summary log if such a thing can be > created. > I had the same problem with my incarnation of ux2bs. So I put them on os2ports for the build.lst and that seemed to solve it. Quick fix I know but we should do this right. I'll look in FreeBSD ports and see how they do it. -- T.Sikora tsikora at ntplx dot net _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 8 ==========================** Date: Tue, 11 Nov 2003 20:17:33 +0000 From: John Poltorak Subject: Re: JPEG & TIFF On Tue, Nov 11, 2003 at 08:26:00AM -0800, Dave and Natalie wrote: > On Tue, 11 Nov 2003 11:18:00 +0000, John Poltorak wrote: > > > > >> One good test app is glinks > >> (http://hobbes.nmsu.edu/pub/os2/apps/internet/www/browser/links-2.1pre7. > >> zip) which uses all the graphic DLLs when in graphic mode > > > >I'm just trying it out and see that you put it together. Does it build > >fairly easily? I'd like to include it as an app buildable by UX2BS. > > Yes it built very easily. Just tried it and it seemed to build effortlessly - I guess the way it should... > Need the graphic libs+dlls, autoconf and do a > configure --help to see which options to pass configure. The latest > (pre11) was missing one define which was easy to spot by looking at the > older version. > I built it here with support for both the PM graphics driver and the X > driver so it runs on the desktop and on X. I think I'll need to tweak a few things to make sure it get built correctly though... > Dave -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs