Errors when compiling libswt.a under winxp

sontriste@virgilio.it sontriste@virgilio.it
Mon Dec 8 13:43:00 GMT 2003


Mohan Embar wrote:
>Hello,
>>>>>I am trying to compile the library libswt.a like explain by 
>>http://gcc.gnu.org/ml/java/2002-12/msg00105.html
>>the compilation process have positive result generating one library 
>>libswt.a of 7.85MB,
>>but the compilation process also generates some warnings and errors.
>>With the obtained library I have compiled the "described Advanced 
>>widgets tutorial" like in http://www.cs.umanitoba.ca/~eclipse/,
>>nearly all the demo work except some, e.g. ImageDemo. I have noticed 
>>that the instruction
>>>>Image img = new Image(display, "EclipseBannerPic.jpg");
>>>>causes a crash of the application.
>>>>Someone can help me?
>>>>>>You don't say which OS and platform you're using, although I assume
>from the context that this is on Windows with the MinGW compiler.
>>If this is the case, you can download my 3.4 build from:
>>http://www.thisiscool.com/gcc_mingw.htm
>>This has a special SWT build which someone kindly modified to support
>image loading. See the image loading sample in
>thisiscool-gcc/examples/HelloSWT.
>>-- Mohan
>http://www.thisiscool.com/
>http://www.animalsong.org/
>>>>>>Thanks for your answer.
Yes, first time I have downloaded my devel environment from 
www.mingw.org, i.e. Windows XP Pro+SP1, MinGW-3.1.0-1 (all files, 
current release), MSYS-1.0.10-rc-2 and Eclipse 2.1.2.
Now I'm testing under WinXP next (when this work) I'll try under Fedora.
Now I'm trying your gcc34-20031123 and Eclipse 2.1.0 (because SWT 2.133, 
exact?) but when I compile libswt.a through the script build.bat found 
in C:\thisiscool-gcc\swt\win32\scripts I obtain the some errors.
The errors are:
SWT_AWT.java: In class `org.eclipse.swt.internal.awt.win32.SWT_AWT1ドル':
SWT_AWT.java: In method 
`org.eclipse.swt.internal.awt.win32.SWT_AWT1ドル.handleEvent(org.eclipse.swt.widgets.Event)':
SWT_AWT.java:75: error: cannot find file for class 
sun.awt.windows.WEmbeddedFrame
SWT_AWT.java:75: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
SWT_AWT.java: In class `org.eclipse.swt.internal.awt.win32.SWT_AWT2ドル':
SWT_AWT.java: In method 
`org.eclipse.swt.internal.awt.win32.SWT_AWT2ドル.handleEvent(org.eclipse.swt.widgets.Event)':
SWT_AWT.java:81: error: cannot find file for class 
sun.awt.windows.WEmbeddedFrame
SWT_AWT.java:81: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
SWT_AWT.java:92: error: cannot find file for class 
sun.awt.windows.WEmbeddedFrame
SWT_AWT.java:92: error: cannot find file for class 
sun.awt.windows.WEmbeddedFrame
SWT_AWT.java: In class `org.eclipse.swt.internal.awt.win32.SWT_AWT4ドル':
SWT_AWT.java: In method 
`org.eclipse.swt.internal.awt.win32.SWT_AWT4ドル.run()':
SWT_AWT.java:89: error: cannot find file for class 
sun.awt.windows.WEmbeddedFrame
SWT_AWT.java:89: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
SWT_AWT.java:103: error: cannot find file for class 
sun.awt.windows.WEmbeddedFrame
SWT_AWT.java:103: error: cannot find file for class 
sun.awt.windows.WEmbeddedFrame
SWT_AWT.java: In class `org.eclipse.swt.internal.awt.win32.SWT_AWT6ドル':
SWT_AWT.java: In method 
`org.eclipse.swt.internal.awt.win32.SWT_AWT6ドル.run()':
SWT_AWT.java:99: error: cannot find file for class 
sun.awt.windows.WEmbeddedFrame
SWT_AWT.java:99: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
SWT_AWT.java: In class `org.eclipse.swt.internal.awt.win32.SWT_AWT7ドル':
SWT_AWT.java: In method 
`org.eclipse.swt.internal.awt.win32.SWT_AWT7ドル.handleEvent(org.eclipse.swt.widgets.Event)':
SWT_AWT.java:107: error: cannot find file for class 
sun.awt.windows.WEmbeddedFrame
SWT_AWT.java:107: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
org/eclipse/swt/internal/awt/win32/SWT_AWT.java: In class 
`org.eclipse.swt.internal.awt.win32.SWT_AWT':
org/eclipse/swt/internal/awt/win32/SWT_AWT.java: In method 
`org.eclipse.swt.internal.awt.win32.SWT_AWT.new_Panel(org.eclipse.swt.widgets.Composite)':
org/eclipse/swt/internal/awt/win32/SWT_AWT.java:44: error: cannot find 
file for class sun.awt.windows.WEmbeddedFrame
org/eclipse/swt/internal/awt/win32/SWT_AWT.java:44: internal compiler 
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
org/eclipse/swt/internal/image/SWTImageLoaders.java:6: error: Type 
`GIFFileFormat' not found in the declaration of the local variable `x'.
 GIFFileFormat x = new GIFFileFormat();
 ^
org/eclipse/swt/internal/image/SWTImageLoaders.java:7: error: Type 
`PNGFileFormat' not found in the declaration of the local variable `y'.
 PNGFileFormat y = new PNGFileFormat();
 ^
org/eclipse/swt/internal/image/SWTImageLoaders.java:8: error: Type 
`JPEGFileFormat' not found in the declaration of the local variable `z'.
 JPEGFileFormat z = new JPEGFileFormat();
 ^
org/eclipse/swt/internal/image/SWTImageLoaders.java:9: error: Type 
`WinBMPFileFormat' not found in the declaration of the local variable `q'.
 WinBMPFileFormat q = new WinBMPFileFormat();
 ^
org/eclipse/swt/internal/image/SWTImageLoaders.java:10: error: Type 
`WinICOFileFormat' not found in the declaration of the local variable `p'.
 WinICOFileFormat p = new WinICOFileFormat();
 ^
5 errors
mv: cannot stat `SWTImageLoaders.o': No such file or directory
Can you help me?
Bye


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /