Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Problems with the Mozilla binding


Hi Stephan,

Mozilla binding is built against the Mozilla 1.4 GTK2 SDK tree. You can set the variable GECKO_SDK defined in org.eclipse.swt/Eclipse SWT PI/gtk/build.sh to point to the location of your Mozilla 1.4 GTK2 SDK. This contains header files and libs that don't ship with the Mozilla itself. One way to get a Mozilla SDK is to build Mozilla from its source.

Chris




Stephan Michels <stephan@xxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

10/01/2004 04:46 AM

Please respond to
platform-swt-dev

To
SWT dev mailinglist <platform-swt-dev@xxxxxxxxxxx>
cc
Subject
[platform-swt-dev] Problems with the Mozilla binding





Hi,

I try to compile the latest HEAD of the Mozilla binding and
got a compilation error:

g++ -O -DXPCOM_GLUE=1 -DMOZILLA_STRICT_API=1 -fno-rtti -fno-exceptions
-Wall -DSWT_VERSION=3107  -Wno-non-virtual-dtor -fPIC -I./
-I/mozilla/mozilla/1.4/linux_gtk2/mozilla/dist/sdk -include
/usr/include/mozilla/mozilla-config.h -I/usr/include/mozilla
-I/usr/include/mozilla/nspr -I/usr/include/mozilla/xpcom
-I/usr/include/mozilla/string -I/usr/include/mozilla/embed_base
-I/usr/include/mozilla/embedstring -c xpcom.cpp
xpcom.cpp: In function `jboolean
 
Java_org_eclipse_swt_internal_mozilla_XPCOM_nsEmbedString_1Equals(JNIEnv*,
  _jclass*, long int, long int)':
xpcom.cpp:2460: error: `Equals' undeclared (first use this function)
xpcom.cpp:2460: error: (Each undeclared identifier is reported only once
for
  each function it appears in.)
make: *** [xpcom.o] Fehler 1

I have another problem, if the remove this line, with unresolved
symbols:

>ldd -r libswt-mozilla-gtk-3107.so
               libxpcom.so => /usr/lib/libxpcom.so (0x40023000)
       libnspr4.so => /usr/lib/libnspr4.so (0x400dc000)
       libplds4.so => /usr/lib/libplds4.so (0x40110000)
       libplc4.so => /usr/lib/libplc4.so (0x40113000)
       libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40118000)
       libm.so.6 => /lib/tls/libm.so.6 (0x401d2000)
       libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x401f5000)
       libc.so.6 => /lib/tls/libc.so.6 (0x401ff000)
       libpthread.so.0 => /lib/tls/libpthread.so.0 (0x4033a000)
       libdl.so.2 => /lib/tls/libdl.so.2 (0x40349000)
       /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
undefined symbol: NS_InitEmbedding      (./libswt-mozilla-gtk-3107.so)
undefined symbol: NS_TermEmbedding      (./libswt-mozilla-gtk-3107.so)

Maybe someone can help.

Thanks, Stephan Michels.

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top