Hi,
I'm sorry for my english!
I have some problems with this kit, because I cann't make and I have an error like this
make: *** No rule to make target '.classpath_motif', needed by 'sourcedirs'. Stop
I use eclipse 2.0.1
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
From what you say, I think you are trying to run "make" in the wrong directory. You have to unzip the buildkit in the directory "plugins/org.eclipse.swt".
Here is what I mean:
1) Start with the eclipse ".zip" file and the buildkit file in the same directory. Then do this:
% unzip -a eclipse-sourceBuild-srcIncluded-2.0.1.zip
% mv gcj-swt-motif-buildkit-0.1.tar.gz plugins/org.eclipse.swt
% cd plugins/org.eclipse.swt
% gunzip gcj-swt-motif-buildkit-0.1.tar.gz
% tar -xf gcj-swt-motif-buildkit-0.1.tar
3) Now you can edit the "makefile.swt_motif" and "makefile.motif" if neccessary.
4) NOW you can run "make".
If you do not understand (because of the language barrier), please write again and I will try to explain.
Thanks again. If you have more problems, please tell me and I will try to help.
--McKenzie
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Keith,
Thanks so much for your help!
My mistake was to use non source eclipse version, so i rebuild source version but I have some problems.
It's ok for libswt.so in build_motif but I'hava errors in build_swt_motif like this
lpObject undeclared ....
lpXtwidgetgeometryFc undeclared ...
env undeclared ...
lpXtwidgetgeometry undeclared ...
What is wrong ?
Thanks so much!
Vassili
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am not sure what the problem is. The most important thing is, what is the first error message you see? I think maybe there is an error before "lpObject undeclared." Can I see the output from the build process?
You can do it like this:
% make > makelog 2>&1
This will record all output from "make" into a file called "makelog." You will not see output on the screen. Then post here the contents of "makelog."
I have some other ideas also.
What version of gcj are you using? You can check with:
% gcj --version
I am using 3.1.
Maybe gcc cannot find the motif files it needs. There is a variable called "MOTIF_HOME" in the Makefile in the build_swt_motif directory. If you find your motif files, you can try changing the variable. I didn't need it because my motif libraries are in /usr/X11R6/lib, and my include files are in /usr/X11R6/include.
Are you sure you have motif installed? Do you know what version?
Ok,
Ouf now It is in good way I think
I forgot to use L option of gcc for libgcj.
I can compile with gcj but for swt's appli I have a probleme to run, it asks for swt-motif-2049.so
Peraphs it is necessary to change name or install this lib somewhere?
Vassili
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To intall "swt-motif-2049.so" you can just type "make install" or you can copy "swt-motif-2049.so" to "/usr/lib" or "/usr/local/lib".
Either way, run "ldconfig", as root., afterwards.
In general, on linux when you install a library you have to run ldconfig.
Please write back and let me know if this solves the problem. Note that there are a couple of examples in the "examples" directory. You will have to edit the "Makefile" to change the path for gcj and to change the path of "builddir" to your "build_motif" directory.
Let me know if it works.
--McKenzie
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Keith,
Yes, It is ok
I copied 2 lib* files in /usr/lib, I used /usr/local/lib but I had bad result.
Thanks so mutch for your help.
If You will look for someone to help in this project, I try to do
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm sorry for my english!
I have some problems with this kit, because I cann't make and I have an error like this
make: *** No rule to make target '.classpath_motif', needed by 'sourcedirs'. Stop
I use eclipse 2.0.1
Thanks
Vassili,
Thank you for trying the buildkit!
From what you say, I think you are trying to run "make" in the wrong directory. You have to unzip the buildkit in the directory "plugins/org.eclipse.swt".
Here is what I mean:
1) Start with the eclipse ".zip" file and the buildkit file in the same directory. Then do this:
% unzip -a eclipse-sourceBuild-srcIncluded-2.0.1.zip
% mv gcj-swt-motif-buildkit-0.1.tar.gz plugins/org.eclipse.swt
% cd plugins/org.eclipse.swt
% gunzip gcj-swt-motif-buildkit-0.1.tar.gz
% tar -xf gcj-swt-motif-buildkit-0.1.tar
3) Now you can edit the "makefile.swt_motif" and "makefile.motif" if neccessary.
4) NOW you can run "make".
If you do not understand (because of the language barrier), please write again and I will try to explain.
Thanks again. If you have more problems, please tell me and I will try to help.
--McKenzie
Hi Keith,
Thanks so much for your help!
My mistake was to use non source eclipse version, so i rebuild source version but I have some problems.
It's ok for libswt.so in build_motif but I'hava errors in build_swt_motif like this
lpObject undeclared ....
lpXtwidgetgeometryFc undeclared ...
env undeclared ...
lpXtwidgetgeometry undeclared ...
What is wrong ?
Thanks so much!
Vassili
Vassili,
I am not sure what the problem is. The most important thing is, what is the first error message you see? I think maybe there is an error before "lpObject undeclared." Can I see the output from the build process?
You can do it like this:
% make > makelog 2>&1
This will record all output from "make" into a file called "makelog." You will not see output on the screen. Then post here the contents of "makelog."
I have some other ideas also.
What version of gcj are you using? You can check with:
% gcj --version
I am using 3.1.
Maybe gcc cannot find the motif files it needs. There is a variable called "MOTIF_HOME" in the Makefile in the build_swt_motif directory. If you find your motif files, you can try changing the variable. I didn't need it because my motif libraries are in /usr/X11R6/lib, and my include files are in /usr/X11R6/include.
Are you sure you have motif installed? Do you know what version?
I have "openmotif-2.1.30-5_ICS.src.tgz".
You can find it here, if you want:
http://www.opera.com/linux/docs/plugins/install/motif/
Good luck!
--McKenzie
Hi Keith,
I use gcj 3.2 and motif 2.2 but You have raison for the error
something is wrong with build_swt_motif because I have this
In file included from structs.c:12
swt.h:19:17 jni.h: No such file or directory
I looked for jni.h but I cann't find
What do you think about?
Thanks for your help.
Vassili
Ahh, OK.
"jni.h" is used by gcc to build java native interface (jni) code. I am surprised that it was not installed with gcc and gcj.
Are you using gcc 3.2? Do you have more than one version of gcc installed?
If you use gcj 3.2, I think you will have to use gcc 3.2, also.
Let me know.
--McKenzie
Hi Keith,
Yes I use gcc 3.2 and gcj 3.2 too
Vassili
Hmm. I am not sure what to say.
Are you sure you don't have a "jni.h" anywhere? "jni.h" is supposed to come with gcc, I believe.
Also, did you get gcc from binary or source?
Do you have more than one version of gcc installed?
--McKenzie
Hi Keith,
I got binary gcc so I think I have to get gcc's source?
Ok,
Ouf now It is in good way I think
I forgot to use L option of gcc for libgcj.
I can compile with gcj but for swt's appli I have a probleme to run, it asks for swt-motif-2049.so
Peraphs it is necessary to change name or install this lib somewhere?
Vassili
Hey, you are done now, I think!
To intall "swt-motif-2049.so" you can just type "make install" or you can copy "swt-motif-2049.so" to "/usr/lib" or "/usr/local/lib".
Either way, run "ldconfig", as root., afterwards.
In general, on linux when you install a library you have to run ldconfig.
Please write back and let me know if this solves the problem. Note that there are a couple of examples in the "examples" directory. You will have to edit the "Makefile" to change the path for gcj and to change the path of "builddir" to your "build_motif" directory.
Let me know if it works.
--McKenzie
Hi Keith,
Yes, It is ok
I copied 2 lib* files in /usr/lib, I used /usr/local/lib but I had bad result.
Thanks so mutch for your help.
If You will look for someone to help in this project, I try to do