Re: [Ekiga-list] Ekiga win32 cross compilation on ubuntu 9.04



Sohil Shah wrote:
> Hi,
>               There are 2 cases I am dealing with :
> 
>    * *Case 1 : Compile PTLib and wait for error ( i.e. during config of
>      opal )*
> 
> root EICPU1229:/home/ekiga-3.2.6/win32/ptlib-2.6.5# ./configure
> --disable-debug

By default debug is disabled, so no need to precise it.

> checking for pkg-config... /usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> configure: PTLib version is 2.6.5
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking for swab... yes
> configure: OSTYPE set to linux
> configure: OSRELEASE set to "2.6.28-11-generic"
> configure: MACHTYPE set to x86
> configure: gcc version is 4.3.3
> checking checking if pragma implementation should be used... no
> checking checking if precompiled headers available... yes
> checking how to run the C++ preprocessor... g++ -E
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking whether byte ordering is bigendian... no
> configure: Default extension for C++ files is cpp
> checking if linker accepts -felide-constructors... yes
> checking if linker accepts -Wreorder... yes
> checking if debug build accepts -g3 -ggdb -O0... yes
> checking if compiler uses RTTI by default... yes
> checking for int... yes
> checking size of int... 4
> checking for long double with more range or precision than double... yes
> checking for flex... /usr/local/bin/flex
> checking for ar... ar
> checking for bison... /usr/local/bin/bison
> checking if readdir_r has 2 parms... no
> checking if readdir_r has 3 parms... yes
> configure: PTRACE and all trace logging included
> configure: Using ANSI C++ bool for PBoolean: (PFalse=false PTrue=true)
> checking for recvmsg... yes
> checking if using STL streams... yes
> checking if atomic integer available... yes
> checking if __exchange_and_add is in __gnu_cxx namespace... yes
> checking if Unix semaphores are available... yes
> checking for pthread_create in -lpthread... yes
> checking for clock_gettime in -lrt... yes
> checking if pthread_mutex_timedlock is available... yes
> checking for sem_timedwait in -lpthread... yes
> checking if sem_timedwait is compilable... yes
> checking if recursive mutexes are available... PTHREAD_MUTEX_RECURSIVE_NP
> checking regex.h usability... yes
> checking regex.h presence... yes
> checking for regex.h... yes
> checking for regcomp... yes
> checking dlfcn.h usability... yes
> checking dlfcn.h presence... yes
> checking for dlfcn.h... yes
> checking if dlopen is available... yes
> checking for dlopen in -ldl... yes
> checking enable plugin support... yes
> checking where plugins are being installed... /usr/local/lib/ptlib-2.6.5
> checking enable samples build... no
> checking how to run the C preprocessor... gcc -E
> checking for res_ninit... no
> checking for res_ninit in -lresolv... yes
> checking for sasl_version in -lsasl2... yes
> checking for sasl_client_out in -lsasl... no
> checking if <sasl.h> works... no
> checking if <sasl/sasl.h> works... yes
> checking for mlib_VideoColorJFIFYCC2RGB420_Nearest in -lmlib... no
> checking ldap.h usability... yes
> checking ldap.h presence... yes
> checking for ldap.h... yes
> checking for ldap_open in -lldap... yes
> checking for OPENSSL... yes
> checking openssl/aes.h usability... yes
> checking openssl/aes.h presence... yes
> checking for openssl/aes.h... yes
> checking for const arg to d2i_AutoPrivateKey... yes
> checking expat.h usability... yes
> checking expat.h presence... yes
> checking for expat.h... yes
> checking for XML_ParserCreate in -lexpat... yes
> checking for IPv6 support... yes
> checking for inet_ntop... yes
> checking enable config file support... yes
> checking enable URL support... yes
> checking enable HTTP support... yes
> checking enable HTTP forms support... yes
> checking enable HTTP server support... yes
> checking enable Jabber support... yes
> checking enable VXML support... yes
> checking enable XMLRPC support... yes
> checking enable SOAP support... yes
> checking enable Text-To-Speech server support... yes
> checking enable ASN decoding/encoding support... yes
> checking enable STUN support... yes
> checking enable pipechannel support... yes
> checking enable DTMF protocol support... yes
> checking enable WAVFILE support... yes
> checking enable SOCKS protocol support... yes
> checking enable FTP protocol support... yes
> checking enable SNMP protocol support... yes
> checking enable TELNET protocol support... yes
> checking enable remote connection support... yes
> checking enable serial port support... yes
> checking enable POP3/SMTP support... yes
> checking enable audio support... yes
> checking enable QOS support... yes
> checking enable video device support... yes
> checking enable video file support... yes
> checking enable FFMpeg video file support... yes
> checking enable application sharing support... no
> checking enable shared memory video devices... yes
> checking for SDL... yes
> checking enable video for windows capture... no
> checking sql.h usability... no
> checking sql.h presence... no
> checking for sql.h... no
> checking enable C++ exceptions... no
> checking for a BSD-compatible install... /usr/bin/install -c
> configure: creating ./config.status
> config.status: creating make/ptbuildopts.mak
> config.status: creating make/ptlib-config
> config.status: creating Makefile
> config.status: creating ptlib_cfg.dxy
> config.status: creating ptlib.pc
> config.status: creating include/ptbuildopts.h
> config.status: include/ptbuildopts.h is unchanged
> === configuring in plugins (/home/ekiga-3.2.6/win32/ptlib-2.6.5/plugins)
> configure: running /bin/bash ./configure '--prefix=/usr/local' 
> '--disable-debug' --cache-file=/dev/null --srcdir=.
> checking for g++... g++
> checking for C++ compiler default output file name... a.out
> checking whether the C++ compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking for gcc... gcc
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking how to run the C preprocessor... gcc -E
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking alsa/asoundlib.h usability... yes
> checking alsa/asoundlib.h presence... yes
> checking for alsa/asoundlib.h... yes
> checking for ALSA sound support... yes
> checking for linux/videodev2.h... yes
> checking for V4L2 video support... yes
> checking libv4l2.h usability... no
> checking libv4l2.h presence... no
> checking for libv4l2.h... no
> checking for libv4l2 support... no
> checking machine/ioctl_meteor.h usability... no
> checking machine/ioctl_meteor.h presence... no
> checking for machine/ioctl_meteor.h... no
> checking i386/ioctl_meteor.h usability... no
> checking i386/ioctl_meteor.h presence... no
> checking for i386/ioctl_meteor.h... no
> checking dev/ic/bt8xx.h usability... no
> checking dev/ic/bt8xx.h presence... no
> checking for dev/ic/bt8xx.h... no
> checking for BSD video support... no
> checking libdc1394/dc1394_control.h usability... no
> checking libdc1394/dc1394_control.h presence... no
> checking for libdc1394/dc1394_control.h... no
> checking libraw1394/raw1394.h usability... no
> checking libraw1394/raw1394.h presence... no
> checking for libraw1394/raw1394.h... no
> checking for IEEE1394/DC video support... no
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating vidinput_v4l2/Makefile
> config.status: creating vidinput_dc/Makefile

Very well.

> root EICPU1229:/home/ekiga-3.2.6/win32/ptlib-2.6.5# cd ..
> root EICPU1229:/home/ekiga-3.2.6/win32# make
> make  -j1 DEBUG=1 debug -C /home/ekiga-3.2.6/win32/ptlib-2.6.5 2>&1 |
> tee ptlib-make.log

Here there is an error: it compiles with debug enabled.  You neeed to
remove "DEBUG=1 debug".

Note that after configuring ptlib without debug, you need also to
compile it (without debug).  Only afterwards you go to opal: configure
without debug, and compile without opal...

> make[1]: Entering directory `/home/ekiga-3.2.6/win32/ptlib-2.6.5'
> make DEBUG=1 default_target
> make[2]: Entering directory `/home/ekiga-3.2.6/win32/ptlib-2.6.5'
> make[2]: Leaving directory `/home/ekiga-3.2.6/win32/ptlib-2.6.5'
> make[2]: Entering directory `/home/ekiga-3.2.6/win32/ptlib-2.6.5/src'
> make DEBUG=1 default_target
> make[3]: Entering directory `/home/ekiga-3.2.6/win32/ptlib-2.6.5/src'
> [CC] ptclib/psasl.cxx
> [CC] ptclib/pldap.cxx
> [CC] ptclib/pils.cxx
> [CC] ptclib/pssl.cxx
> 
> DELETED
> 
> [CC] ptlib/common/safecoll.cxx
> [CC] ptlib/common/collect.cxx
> [CC] ptlib/common/contain.cxx
> [CC] ptlib/common/object.cxx
> [AR] /home/ekiga-3.2.6/win32/ptlib-2.6.5/lib_linux_x86/libpt_d_s.a
> [LD] /home/ekiga-3.2.6/win32/ptlib-2.6.5/lib_linux_x86/libpt_d.so.2.6.5
> make[3]: Leaving directory `/home/ekiga-3.2.6/win32/ptlib-2.6.5/src'
> make[2]: Leaving directory `/home/ekiga-3.2.6/win32/ptlib-2.6.5/src'
> make[2]: Entering directory `/home/ekiga-3.2.6/win32/ptlib-2.6.5/plugins'
> make DEBUG=1 default_target
> make[3]: Entering directory `/home/ekiga-3.2.6/win32/ptlib-2.6.5/plugins'
> make[3]: Leaving directory `/home/ekiga-3.2.6/win32/ptlib-2.6.5/plugins'
> set -e; make -C sound_alsa debug ; make -C vidinput_v4l2 debug ;
> make[3]: Entering directory
> `/home/ekiga-3.2.6/win32/ptlib-2.6.5/plugins/sound_alsa'
> make DEBUG=1 default_target
> make[4]: Entering directory
> `/home/ekiga-3.2.6/win32/ptlib-2.6.5/plugins/sound_alsa'
> make[4]: Leaving directory
> `/home/ekiga-3.2.6/win32/ptlib-2.6.5/plugins/sound_alsa'
> make[3]: Leaving directory
> `/home/ekiga-3.2.6/win32/ptlib-2.6.5/plugins/sound_alsa'
> make[3]: Entering directory
> `/home/ekiga-3.2.6/win32/ptlib-2.6.5/plugins/vidinput_v4l2'
> make DEBUG=1 default_target
> make[4]: Entering directory
> `/home/ekiga-3.2.6/win32/ptlib-2.6.5/plugins/vidinput_v4l2'
> make[4]: Leaving directory
> `/home/ekiga-3.2.6/win32/ptlib-2.6.5/plugins/vidinput_v4l2'
> make[3]: Leaving directory
> `/home/ekiga-3.2.6/win32/ptlib-2.6.5/plugins/vidinput_v4l2'
> make[2]: Leaving directory `/home/ekiga-3.2.6/win32/ptlib-2.6.5/plugins'
> make[1]: Leaving directory `/home/ekiga-3.2.6/win32/ptlib-2.6.5'
> make DEBUG=1 -C /home/ekiga-3.2.6/win32/ptlib-2.6.5 install 2>&1
> make[1]: Entering directory `/home/ekiga-3.2.6/win32/ptlib-2.6.5'
> ( for dir in /usr/local/lib \
>              /usr/local/bin \
>              /usr/local/include/ptlib \
>                      /usr/local/include/ptlib/unix/ptlib \
>                      /usr/local/include/ptclib \
>                      /usr/local/share/ptlib/make ; \
>         do mkdir -p $dir ; chmod 755 $dir ; \
>     done )
> /usr/bin/install -c -m 444
> /home/ekiga-3.2.6/win32/ptlib-2.6.5/lib_linux_x86/libpt_d.so.2.6.5
> /usr/local/lib
> /usr/bin/install -c -m 444
> /home/ekiga-3.2.6/win32/ptlib-2.6.5/lib_linux_x86/libpt_d_s.a
> /usr/local/lib
> (cd /usr/local/lib ; \
>         rm -f  libpt_d.so ; \
>         ln -sf libpt_d.so.2.6.5 libpt_d.so \
>     )
> if test -e /home/ekiga-3.2.6/win32/ptlib-2.6.5/lib_linux_x86/device/;
> then \
>     cd /home/ekiga-3.2.6/win32/ptlib-2.6.5/lib_linux_x86/device/; \
>     (  for dir in ./* ;\
>         do mkdir -p /usr/local/lib/ptlib-2.6.5/devices/$dir ; \
>         chmod 755 /usr/local/lib/ptlib-2.6.5/devices/$dir ; \
>         (for fn in ./$dir/*.so ; \
>             do /usr/bin/install -c -m 444 $fn
> /usr/local/lib/ptlib-2.6.5/devices/$dir; \
>         done ); \
>     done ) ; \
>     fi
> /usr/bin/install -c -m 444 include/ptlib.h               
> /usr/local/include
> /usr/bin/install -c -m 444 include/ptbuildopts.h         
> /usr/local/include
> (for fn in include/ptlib/*.h include/ptlib/*.inl; \
>         do /usr/bin/install -c -m 444 $fn /usr/local/include/ptlib; \
>     done)
> (for fn in include/ptlib/unix/ptlib/*.h include/ptlib/unix/ptlib/*.inl ; \
>         do /usr/bin/install -c -m 444 $fn
> /usr/local/include/ptlib/unix/ptlib ; \
>     done)
> (for fn in include/ptclib/*.h ; \
>         do /usr/bin/install -c -m 444 $fn /usr/local/include/ptclib; \
>     done)
> (for fn in make/*.mak ; \
>         do /usr/bin/install -c -m 444 $fn /usr/local/share/ptlib/make; \
>     done)
> /usr/bin/install -c -m 755 make/ptlib-config /usr/local/share/ptlib/make/
> (cd /usr/local/bin; rm -f ptlib-config ; ln -snf
> ../share/ptlib/make/ptlib-config ptlib-config)
> mkdir -p /usr/local/lib/pkgconfig
> chmod 755 /usr/local/lib/pkgconfig
> /usr/bin/install -c -m 644 ptlib.pc /usr/local/lib/pkgconfig/
> make[1]: Leaving directory `/home/ekiga-3.2.6/win32/ptlib-2.6.5'
> rm -rf /home/ekiga-3.2.6/win32/opal-3.6.6
> /home/ekiga-3.2.6/win32/lib/libopal_d.3.6.6.dll
> /home/ekiga-3.2.6/win32/include/opal
> tar xfz /home/ekiga-3.2.6/win32/src/opal-3.6.6.tar.gz -C
> /home/ekiga-3.2.6/win32
> touch /home/ekiga-3.2.6/win32/opal-3.6.6/configure
> rm -f /home/ekiga-3.2.6/win32/lib/libopal_d.3.6.6.dll
> (cd /home/ekiga-3.2.6/win32/opal-3.6.6/; ./configure
> --prefix=/home/ekiga-3.2.6/win32 --build=i486-linux-gnu
> --host="i586-pc-mingw32"
> --with-ffmpeg-dir=/home/ekiga-3.2.6/win32/ffmpeg --disable-ffmpeg-h263
> --enable-debug )
> checking for i586-pc-mingw32-pkg-config... no
> checking for pkg-config... /usr/bin/pkg-config
> configure: WARNING: In the future, Autoconf will not detect cross-tools
> whose name does not start with the host triplet.  If you think this
> configuration is useful to you, please write to autoconf gnu org 
> checking pkg-config is at least version 0.9.0... yes
> checking for C++ compiler default output file name... a.exe
> checking whether the C++ compiler works... yes
> checking whether we are cross compiling... yes
> checking for suffix of executables... .exe
> checking for suffix of object files... o
> checking whether we are using the GNU C++ compiler... yes
> checking whether i586-mingw32msvc-g++ -mms-bitfields -gstabs accepts
> -g... yes
> checking for i586-pc-mingw32-gcc... i586-mingw32msvc-gcc -mms-bitfields
> -gstabs
> checking whether we are using the GNU C compiler... yes
> checking whether i586-mingw32msvc-gcc -mms-bitfields -gstabs accepts
> -g... yes
> checking for i586-mingw32msvc-gcc -mms-bitfields -gstabs option to
> accept ISO C89... none needed
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for i586-pc-mingw32-ranlib... i586-mingw32msvc-ranlib
> checking how to run the C preprocessor... i586-mingw32msvc-gcc
> -mms-bitfields -gstabs -E
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for ANSI C header files... yes
> checking for i586-pc-mingw32-ar... i586-mingw32msvc-ar
> configure: gcc version is 4.2.1-sjlj
> checking if gcc version is valid... yes
> checking for working bit scan intrinsic... yes
> configure: Opal version is 3.6.6
> checking where plugins are being installed...
> /home/ekiga-3.2.6/win32/lib/opal-3.6.6
> checking wether to build a shared library... yes
> checking build system type... i486-pc-linux-gnu
> checking host system type... i586-pc-mingw32
> checking target system type... i586-pc-mingw32
> checking Debugging support... yes
> checking for PTLIB... configure: error: Package requirements (ptlib >=
> 2.0.0) were not met:
> 
> No package 'ptlib' found
> 
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
> 
> Alternatively, you may set the environment variables PTLIB_CFLAGS
> and PTLIB_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
> 
> make: *** [/home/ekiga-3.2.6/win32/opal-3.6.6/config.status] Error 1
> 
> /*PKG_CONFIG_PATH is also fine*/
> root EICPU1229:/home/ekiga-3.2.6/win32# echo $PKG_CONFIG_PATH
> /usr/local/lib/pkgconfig/
> 
> 
>    * *Case 2 : After the above given error is encountered, ./configure
>      opal-3.6.6 ( using --enable-debug and --disable-debug) which gives
>      the below given results in either of the case.
>      *
> 
> DEBUG: -lpt_d -lldap -llber -lldap_r -lssl -lcrypto -lexpat -lSDL
> -lpthread -lresolv -ldl
> RELEASE: -lpt -lldap -llber -lldap_r -lssl -lcrypto -lexpat -lSDL
> -lpthread -lresolv -ldl
> checking ptlib version... 2.6.5
> configure: error: Could not find a linkable ptlib in specified environment
> to verify symbols (debug ptlib: no)

Let's just use the non debug version.

-- 
Eugen


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