General Information =================== glib is needed by several LINUX applications. This version is modified to build under QNX 4.25. Orginal release can be obtained from: ftp://ftp.gtk.org/pub/gtk The official web site is: http://www.gtk.org/ Modified sources (for QNX) can be obtained from: http://elpulpo.tripod.com/qnx Required tools to build glib under QNX 4.25: * QNX 4.25 * Watcom 10.6 Ported to QNX 4.25 by Pablo Gutierrez (pablo_damian@hotmail.com) STEPS TO COMPILE AND INSTALL THIS PARCHED VERSION FOR QNX 4.25 ================================================================= This version already has the proper modifications to compile under QNX 4.15 w/o problems. 1) run 'LD=cc ./configure --host=i386-linux-linux' 2) run 'make' 3) run 'make install' to install the libraries under '/usr/local/lib' STEPS TO COMPILE AND INSTALL THE ORIGINAL SOURCES (ftp.gtk.org) =============================================================== 1) run 'LD=cc ./configure --host=i386-linux-linux' configure must run wthout problems, maybe giving a couple of warnings about no thread-safe functions. 2) edit LINE 58 of ./config.h since ./configure is not able to detect the fd_set type in select.h original LINE 58: #define NO_FD_SET 1 modified LINE 58: //#define NO_FD_SET 1 3) edit gtimer.c: QNX's does not define gettimeofday() function. It is necessary to add this function in gtimer.c: int gettimeofday (struct timeval *tp, void *tzp) //Pablo Gutierrez { tp->tv_sec=(long)time(NULL); tp->tv_usec=0; return 0; } 4) edit glib.h LINE 1291: (add the following) #ifdef G_LOG_DOMAIN #undef G_LOG_DOMAIN #endif /* G_LOG_DOMAIN */ It is neccesary to redefine G_LOG_DOMAIN correctly. 5) run 'make' 6) run 'make install' to install the libraries under '/usr/local/lib' New files after 'make install': ================================ /usr/local/lib/libglib.a /usr/local/lib/libglib.la /usr/local/lib/libgthread.la /usr/local/lib/libgthread.a /usr/local/lib/libgmodule.la /usr/local/lib/libgmodule.a /usr/local/lib/pkgconfig/gmodule.pc /usr/local/lib/pkgconfig/glib.pc /usr/local/lib/pkgconfig/gthread.pc /usr/local/lib/glib/include/glibconfig.h /usr/local/include/glib-1.2/glib.h /usr/local/include/glib-1.2/gmodule.h /usr/local/bin/glib-config /usr/local/share/aclocal/glib.m4 /usr/local/info/glib.info /usr/local/man/man1/glib-config.1