Date: Fri, 23 Jan 2004 00:04:04 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 293 ************************************************** Thursday 22 January 2004 Number 293 ************************************************** Subjects for today 1 SANE/OS/2 build environement. : Franz Bakan" 1 Re: Compiling Tidy : Christian Hennecke" 2 Re: Compiling Tidy : Dave and Natalie" 2 Pthreads again : Stefan Neis **= Email 1 ==========================** Date: Wed, 21 Jan 2004 15:57:50 +0100 (CET) From: "Franz Bakan" Subject: SANE/OS/2 build environement. Hi Angela, Hi List, I don't know if you still try to set up your build-environement for SANE. If yes, here's an updated version of the steps I allready sent you. There was something missing. 1. Install the UX2 Build System See http://os2ports.com/sections/ux2bs Just look into ux2bs.README, get ux2bs_inst.cmd and run this script. It will take some time (~ 1 hour here, fast Internet-connection and PIII/800MHz with enough RAM.) This should install all the tools and libs you need to compile SANE. 2. 'copy cp.exe ln.exe' (in /bin) 3. Start UX2BS Shell from Desktop and cd to the directory where you unpacked the sane-backends tree. IMPORTANT: You have put the sane-sources to the same drive where you installed the ux2bs. Then: sh configure 4. Replace the generated sane-backends/libtool with the libtool available from my site ( http://home.tiscalinet.de/fbakan/sane/libtool.zip ). 5. Add -D__ST_MT_ERRNO__ to CPPFLAGS in sane-backends/sanei/Makefile and sane-backends/backend/Makefile and sane-backends/frontend/Makefile and sane-backends/tools/Makefile 6. Replace ..\libtool with sh ..\libtool in all sane-backends/*/Makefile 7. Add -Zexe -Zmtd to LDFLAGS in sane-backends/frontend/Makefile and sane-backends/tools/Makefile 8. get http://unix.os2site.com/sw/pub/binary/libunixos2/libunixos2-0_1_1-bin.zip and copy the included unixos2.dll to /lib 9. Remove all the backends you don't need from the line starting with PRELOADABLE_BACKENDS = in sane-backends/backend/Makefile I suggest change to: PRELOADABLE_BACKENDS = avision net test 10. In sane-backends/ directory run make 11. If this all works as expected, you will have libsane.dll in sane-backends/backend/libs and scanimage.exe in sane-backends/frontend 12. Copy /usr/lib/jpeg.dll to your libpath 13. Tell me if scanimage -L works ;-) Regards Franz **= Email 1 ==========================** Date: Wed, 21 Jan 2004 17:37:17 +0100 (CET) From: "Christian Hennecke" Subject: Re: Compiling Tidy On Wed, 21 Jan 2004 09:13:47 +0000, John Poltorak wrote: >> >>I think I should be able to do this, if you tell me how to modify the >> >>makefile. Any special options that should be included besides -Zexe? >> > >> >I should be asking you this since you did the makefile.os2 for the last >> >tidy build. :-) >> > >> >I prefer not to use -Zexe. Instead if prefer to define variables: >> > >> >ifdef OS2 >> >EXENAME = $(PROJECT).exe >> >else >> >EXENAME = $(PROJECT) >> >endif >> >> I don't think that's a good idea, because the above will result in more >> modifications to the makefile being required. The maintainers will be >> probably ask why I want to change three or four statements in a >> complicated way when one change would suffice. > >Why doesn't it work if you run Autoconf and Configure to create the >Makefile in the first place? > >Nowadays many apps build transparently on OS/2 because of changes made to >Autoonf over recent years I've never tried using the Autoconf approach, but used the provided Unix makefile instead. So far I haven't had the time to setup a UnixOS2 build environment. I can't seem to find any documentation regarding what packages are *required*, and which are *optional*. I'm not very keen on clattering my hard drive with superfluous stuff. Christian Hennecke **= Email 2 ==========================** Date: Wed, 21 Jan 2004 07:30:52 -0800 From: "Dave and Natalie" Subject: Re: Compiling Tidy On Wed, 21 Jan 2004 03:40:37 +0100 (CET), Christian Hennecke wrote: >> >>ifdef OS2 >>EXENAME = $(PROJECT).exe >>else >>EXENAME = $(PROJECT) >>endif > >I don't think that's a good idea, because the above will result in more >modifications to the makefile being required. The maintainers will be >probably ask why I want to change three or four statements in a >complicated way when one change would suffice. I'm jumping in a bit late but newer autoconfs should figure out the need for .exe on their own. I just built tidy (needed the 2 fixes that were mentioned here lately) and configure did this checking for suffix of executables... .exe Do have to use static lib as I ended up with a DLL named .dll and tidy complained SYS1804: The system cannot find the file . Dave ps used Innoteks gcc 3.22 pps this is HTML Tidy for OS/2 released on 1st January 2004 New Email Address - please update your Address book dave_yeo at paralynx.com **= Email 2 ==========================** Date: Thu, 22 Jan 2004 12:15:30 +0100 (CET) From: Stefan Neis Subject: Pthreads again Hi, Is there any working pthreads version available via ftp? I can't get cvs connection through the firewall ... The version that can be downloaded from ftp.netlabs.org reliably breaks on the second call to "select" for me, which is quite a problem for a server handling network requests .... Regards, Stefan -- Micro$oft is not an answer. It is a question. The answer is 'no'.