[GnomeMeeting-list] closer ... closer on Mac OS X (long post, much success but still ending with a problem)



Hi,

So I took my best guess after successfully compiling and running ohphone on Mac OS X as to how to reconfigure the configure.in for this platform, as follows. Here is the relevant section of configure.in in its entirety:

dnl Check the OS type (more types can be added)
AC_MSG_CHECKING(whether OS type is supported)

HAS_SPEEX="disabled"

echo $target_os
case $target_os in

  darwin | darwin6.3 )
H323_CFLAGS="-DSPEEX_CODEC -DP_MACOSX -g -D_DEBUG -DPMEMORY_CHECK=1 -DP_SSL -DP_PTHREADS -DP_HAS_IPV6 -DPBYTE_ORDER=PBIG_ENDIAN $ARCH_H323_CFLAGS -O2 -Wall -DNO_LONG_DOUBLE -DPHAS_TEMPLATES " H323_LIBS="-libh323_darwin_ppc_r_s -libpt_darwin_ppc_r_s -pthread -lssl -lcrypto"
    LIBPT_FILE="libpt_Darwin_ppc_r_s.a"
    LIBOPENH323_FILE="libh323_Darwin_ppc_r_s.a"
    HAS_SPEEX="enabled"
    AC_MSG_RESULT([yes])
    gm_platform="unix"
    ;;

  linux-gnu | linux | Linux)
H323_CFLAGS="-DSPEEX_CODEC -DP_LINUX -D_REENTRANT -DP_HAS_SEMAPHORES -DP_PTHREADS $ARCH_H323_CFLAGS -DHAS_OSS -O3 -DNDEBUG -fPIC -g -DPHAS_TEMPLATES -Wall"
    H323_LIBS="-lopenh323 -ldl -lpt -lpthread -lssl -lcrypto"
    LIBPT_FILE="libpt.so"
    LIBOPENH323_FILE="libopenh323.so"
    HAS_SPEEX="enabled"
    AC_MSG_RESULT([yes])
    gm_platform="linux"

dnl if debug add this and link to -lh323_linux_x86_d -lpt_linux_x86_d
dnl -D_DEBUG -DPMEMORY_CHECK=1 -DPTRACING -g
    ;;

  FreeBSD* | freebsd* )
H323_CFLAGS="-DSPEEX_CODEC -DP_FREEBSD=400001 -DP_SSL -DP_PTHREADS $ARCH_H323_CFLAGS -O2 -Wall -DPHAS_TEMPLATES -DSTATIC_LIBS_USED" H323_LIBS="-lh323_FreeBSD_x86_r_s -lpt_FreeBSD_x86_r_s -pthread -lssl -lcrypto"
    LIBPT_FILE="libpt_FreeBSD_x86_r_s.a"
    LIBOPENH323_FILE="libh323_FreeBSD_x86_r_s.a"
    HAS_SPEEX="enabled"
    AC_MSG_RESULT([yes])
    gm_platform="freebsd"
    ;;
  *)
AC_MSG_ERROR("Only Linux and FreeBSD are supported. Please contact the author. You can add more OS types.")
    ;;
esac


You'll note that I tried to set the flaqs up in analogy to the ones that exist already for linux and FreeBSD. Most of them are pretty easy to guess (although possibly redundant). However, I am not sure what the gm_platform means, or what it should be set to.

After an autoconf, and after loading (in additon to the ones listed in the earlier message) the openssl package from Fink, I had to add a softlink for libldap.so to my /usr/lib area and also one for libssl.so in my /sw/lib area to point to the same locations as their respective .dylib files (since darwin uses .dylib instead of .so for it's dynamic libraries). Presumably the configure should be set up to look for .dylib files rather than .so ones for this platform, but the soft links for these 2 packages were enough to allow me to keep going.

Onward!!  Now a .configure succeeds, with the following results:

(invoked using the command:

./configure --disable-gnome --with-ptlib-libs=../pwlib/lib --with-openh323-libs=../openh323/lib --with-ptlib-includes=/Users/alansill/Development/pwlib/include --with-openh323-includes=../openh323/include --with-openssl-includes=/sw/include/openssl --with-openssl-libs=/sw/lib

just for clarity...)

================ Final configuration ===================
    Installing into prefix: /usr/local

    OpenSSL Include Directory is  :  /sw/include/openssl
  OpenSSL Libraries Directory is  :  /sw/lib
   OpenH323 Include Directory is  :  ../openh323/include
 OpenH323 Libraries Directory is  :  ../openh323/lib
PTLIB Include Directory is : /Users/alansill/Development/pwlib/include
    PTLIB Libraries Directory is  :  ../pwlib/lib

                Quicknet support  :  disabled
          SDL Fullscreen support  :  enabled
           Speex GPL audio codec  :  enabled
  GNOME Features (Bonobo, Druid,
   Session, Incoming Call Sound)  :  disabled
     IPv6 Support (EXPERIMENTAL)  :  enabled

                         OS Type  :  darwin6.3
                    Machine Type  :  powerpc

 If all settings are OK, type make and make install
========================================================


This is obviously very good! Even if I might not have guessed some of the flags correctly in the above.

Now for the bad part. After compiling several pieces of gnomemeeting correctly, the make step fails with the following messages:


Making all in src
g++ -DHAVE_CONFIG_H -I. -I. -I.. -DGNOMELOCALEDIR=\""/usr/local/share/locale"\" -I../src -I../lib -I../lib/widgets -I../lib/xdap -DORBIT2=1 -D_REENTRANT -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include -I/sw/include/atk-1.0 -I/sw/include/pango-1.0 -I/usr/X11R6/include -I/sw/include/freetype2 -I/sw/include -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/gconf/2 -I/sw/include/orbit-2.0 -I/sw/include/linc-1.0 -I/sw/include/libxml2 -DDISABLE_GNOME -I/Users/alansill/Development/pwlib/include/unix -I/Users/alansill/Development/pwlib/include/.. -I/Users/alansill/Development/pwlib/include/../ptclib -I/usr/include -I../openh323/include -I/sw/include/openssl -DSPEEX_CODEC -DP_MACOSX -g -D_DEBUG -DPMEMORY_CHECK=1 -DP_SSL -DP_PTHREADS -DP_HAS_IPV6 -DPBYTE_ORDER=PBIG_ENDIAN -DPBYTE_ORDER=PBIG_ENDIAN -O2 -Wall -DNO_LONG_DOUBLE -DPHAS_TEMPLATES -DP_HAS_IPV6 -I/sw/include/SDL -D_THREAD_SAFE -DHAS_SDL -DGNOMEMEETING_IMAGES=\""/usr/local/share/pixmaps"\" -DSCHEMA_AGE=24 -DDATADIR=\""/usr/local/share"\" -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -I/sw/include -O3 -c common.cpp cc1plus: warning: changing search order for system directory "/usr/include" cc1plus: warning: as it has already been specified as a non-system directory
In file included from /sw/include/glib-2.0/glib/gmacros.h:36,
                 from /sw/lib/glib-2.0/include/glibconfig.h:9,
                 from /sw/include/glib-2.0/glib/gtypes.h:30,
                 from /sw/include/glib-2.0/glib/galloca.h:30,
                 from /sw/include/glib-2.0/glib.h:30,
                 from /sw/include/gtk-2.0/gdk/gdktypes.h:32,
                 from /sw/include/gtk-2.0/gdk/gdkcolor.h:4,
                 from /sw/include/gtk-2.0/gdk/gdk.h:30,
                 from /sw/include/gtk-2.0/gtk/gtk.h:31,
                 from common.h:33,
                 from common.cpp:24:
/usr/include/stddef.h:82: warning: redeclaration of C++ built-in type `wchar_t'
In file included from common.cpp:24:
common.h:36:19: ptlib.h: No such file or directory
In file included from common.cpp:24:
common.h:174: 'PStringArray' is used as a type, but is not defined as a type. common.h:175: 'PStringArray' is used as a type, but is not defined as a type. common.h:176: 'PStringArray' is used as a type, but is not defined as a type. common.h:177: 'PStringArray' is used as a type, but is not defined as a type.

So I'm stuck again. This seems to indicate that it cannot find the ptlib.h file, but this clearly exists in the ../pwlib/include area.

Hmm...

Thanks for your attention once again.  We are close!

Alan

======================================================================
:  Alan Sill, Texas Tech University   Office: Science 117, MS 41051  :
:  e-mail: Alan Sill ttu edu    ph. 806-742-3730   fax 806-742-1182  :
:  CDF trailer 170-D       ph. 630-840-2114       cell 806-790-7462  :
======================================================================





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]