Date: Tue, 7 Jun 2005 00:05:16 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 562 ************************************************** Monday 06 June 2005 Number 562 ************************************************** Subjects for today 1 Re: dprintf definition : Dave Yeo" 2 DVDStyler : Paul Smedley 3 Re: DVDStyler : Paul Smedley **= Email 1 ==========================** Date: Sun, 05 Jun 2005 11:55:11 -0800 From: "Dave Yeo" Subject: Re: dprintf definition On Sun, 05 Jun 2005 18:35:24 +0930, Paul Smedley wrote: >Does anyone have any sample definitions for dprintf? In shm.c #ifdef SHMDEBUG #define dprintf(param) fprintf(stderr, param) #else #define dprintf(param) #endif In libGLU (mystdio.h) (from XFree86) #ifdef STANDALONE inline void dprintf( char *, ... ) { } #endif #ifdef LIBRARYBUILD #ifndef NDEBUG #include #define dprintf printf #else inline void dprintf( char *, ... ) { } #endif #endif Also see the manpage eg http://www.die.net/doc/linux/man/man3/dprintf.3.html Dave **= Email 2 ==========================** Date: Mon, 06 Jun 2005 17:29:59 +0930 From: Paul Smedley Subject: DVDStyler Hi All, I'm looking to build DVDStyler (http://dvdstyler.sourceforge.net/) for OS/2 so that we have a nice frontend for dvdauthor. This has a fair list of dependencies, ie: Requirements: wxGTK >= 2.4.2 (www.wxwidgets.org) dvdauthor >= 0.6.10 (dvdauthor.sourceforge.net) Mjpeg tools (mjpeg.sourceforge.net) mpgtx (mpgtx.sourceforge.net) I'm hoping the OS/2 port of WxWidgets will satisfy item 1; I ported dvdauthor 0.6.11 yesterday; but am currently stuck on mjpeg tools. mplex.exe is the only required component of mjpeg tools so I'm focusing on that - a bunch of the other tools built fine. Firstly - does anyone know of an existing port of mjpegtools for OS/2? When building mplex, my build is ending with: *** Warning: Trying to link with static lib archive .../utils/libmjpegutils.a. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because the file extensions .a of this argument makes me believe *** that it is just a static archive that I should not used here. libtool: link: warning: library `U:/USR/lib/libstdc++.la' was moved. *** Warning: This system can not link to static lib archive U:/USR/lib/libstdc++.la. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: inter-library dependencies are not known to be supported. *** All declared inter-library dependencies are being dropped. *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it. creating reloadable object files... creating a temporary reloadable object file: .libs/libmplex2.la-17.o ld.exe -r -o .libs/libmplex2.la-1.o .libs/libmplex2_la-ac3strm_in.o ld.exe -r -o .libs/libmplex2.la-2.o .libs/libmplex2_la-audiostrm_out.o ..libs/libmplex2.la-1.o multiplexor.hpp:123 (.libs/libmplex2_la-audiostrm_out.o): Definition of symbol typeinfo for AudioStream (multiply defined) multiplexor.hpp:123 (.libs/libmplex2_la-audiostrm_out.o): Definition of symbol typeinfo name for AudioStream (multiply defined) multiplexor.hpp:123 (.libs/libmplex2_la-audiostrm_out.o): Definition of symbol typeinfo for ElementaryStream (multiply defined) ..libs/libmplex2_la-audiostrm_out.o: Definition of symbol __Atomicity_lock<0>::_S_atomicity_lock (multiply defined) multiplexor.hpp:123 (.libs/libmplex2_la-audiostrm_out.o): Definition of symbol typeinfo name for ElementaryStream (multiply defined) multiplexor.hpp:123 (.libs/libmplex2_la-audiostrm_out.o): Definition of symbol typeinfo for InputStream (multiply defined) multiplexor.hpp:123 (.libs/libmplex2_la-audiostrm_out.o): Definition of symbol typeinfo for MuxStream (multiply defined) multiplexor.hpp:123 (.libs/libmplex2_la-audiostrm_out.o): Definition of symbol typeinfo name for MuxStream (multiply defined) multiplexor.hpp:123 (.libs/libmplex2_la-audiostrm_out.o): Definition of symbol typeinfo name for InputStream (multiply defined) audiostrm.hpp:102 (.libs/libmplex2.la-1.o): Definition of symbol typeinfo for MuxStream (multiply defined) audiostrm.hpp:102 (.libs/libmplex2.la-1.o): Definition of symbol typeinfo name for InputStream (multiply defined) audiostrm.hpp:102 (.libs/libmplex2.la-1.o): Definition of symbol typeinfo for InputStream (multiply defined) ..libs/libmplex2.la-1.o: Definition of symbol __Atomicity_lock<0>::_S_atomicity_lock (multiply defined) audiostrm.hpp:102 (.libs/libmplex2.la-1.o): Definition of symbol typeinfo name for MuxStream (multiply defined) audiostrm.hpp:102 (.libs/libmplex2.la-1.o): Definition of symbol typeinfo name for ElementaryStream (multiply defined) audiostrm.hpp:102 (.libs/libmplex2.la-1.o): Definition of symbol typeinfo for ElementaryStream (multiply defined) audiostrm.hpp:102 (.libs/libmplex2.la-1.o): Definition of symbol typeinfo name for AudioStream (multiply defined) audiostrm.hpp:102 (.libs/libmplex2.la-1.o): Definition of symbol typeinfo for AudioStream (multiply defined) make: *** [libmplex2.la] Error 1 I'm afraid the above is a bit beyond me currently - although I'll try google this evening in hope :) Any ideas? Cheers, Paul. **= Email 3 ==========================** Date: Mon, 06 Jun 2005 20:33:35 +0930 From: Paul Smedley Subject: Re: DVDStyler Update.... I updated ltmain.sh from Andreas's port of libtool 1.4.3 to OS/2... now I get: ash.exe ../libtool --mode=link g++ -mcpu=i586 -march=i586 -g -O2 -o mplex.exe main.o ../mplex/libmplex2.la -lm g++ -mcpu=i586 -march=i586 -g -O2 -o mplex.exe main.o .../mplex/.libs/mplex2.a -lm main.cpp:107 (main.o): Undefined symbol _mjpeg_error_exit1 referenced from text segment main.cpp:139 (main.o): Undefined symbol _mjpeg_error_exit1 referenced from text segment Thing is - those symbols are present in ../mplex/.libs/mplex2.a weird part is that that 'emxexp mplex2.a' that would normally show all the symbols that are present is showing: [E:\dev\mjpegtools-1.6.2\mplex\.libs]emxexp mplex2.a emxexp: Malformed input file `mplex2.a' Ideas? Cheers Paul.