so close....<br><br>[ 97%] Building CXX object Wrapping/Java/CMakeFiles/VTKJavaExecutable.dir/VTKJava.o<br>Linking CXX executable ../../bin/VTKJavaExecutable<br>/usr/local/VTK/bin/libvtkRenderingJava.so: undefined reference to `JAWT_GetAWT&#39;<br>
collect2: ld returned 1 exit status<br>make[2]: *** [bin/VTKJavaExecutable] Error 1<br>make[1]: *** [Wrapping/Java/CMakeFiles/VTKJavaExecutable.dir/all] Error 2<br>make: *** [all] Error 2<br><br>i&#39;m wondering if this is to due with the cmake option JAVA_AWT_LIBRARY not being set. I&#39;m sure ive got it somewhere in the jdk but i&#39;m not sure what the option once. Is there documentation somewhere which says what each option needs to point to?<br>
<br><br>Liam<br><br><br>ps:&gt; i mean to send the msg below to the whole list, but just hit reply without thinking:<br><div class="gmail_quote">On Fri, Apr 18, 2008 at 5:20 PM, Liam K &lt;<a href="mailto:quantum.leaf@googlemail.com">quantum.leaf@googlemail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks David,<br><br>So far so good. It&#39;s compiling at 50%.<br>Seems the problem was some missing packages. <br>
<br>I&#39;d like to know how i was supposed to know i would need them, I wonder if i&#39;ve missed a key bit of documentation. Isnt it cmakes job to make sure everything is available before make starts? <br>
<br>anyway, hopefully it&#39;s working now,<br><br>thanks for your help,<br><font color="#888888"><br>Liam</font><div><div></div><div class="Wj3C7c"><br><br><br><div class="gmail_quote">On Fri, Apr 18, 2008 at 4:50 PM, David Gobbi &lt;<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>&gt; wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">You should not need any special compiler flags. &nbsp;It is more likely<br>
that you are missing some important dev packages. &nbsp;I have ubuntu 6.06,<br>
so the version numbers might be different for you, but make sure you<br>
have these or the equivalents:<br>
<br>
libstdc++6-4.0-dev<br>
libc6-dev<br>
libX11-dev<br>
libgl1-mesa-dev<br>
libglu1-mesa-dev<br>
tcl8.4-dev<br>
tk8.4-dev<br>
sun-java6-jdk<br>
<br>
After installing these you should delete your old CMakeCache.txt (or<br>
even the whole VTK binary directory, to be safe) so that the cmake<br>
autodetection will properly catch all the header files that VTK uses.<br>
<br>
Note that when you get to the java stage, cmake will not automatically<br>
find the java headers or libraries. &nbsp;You will have to enter all the<br>
java related CMake flags manually under &quot;advanced&quot;<br>
<font color="#888888"><br>
 &nbsp; David<br>
</font><div><div></div><div><br>
<br>
<br>
<br>
<br>
On Fri, Apr 18, 2008 at 11:29 AM, Liam K &lt;<a href="mailto:quantum.leaf@googlemail.com" target="_blank">quantum.leaf@googlemail.com</a>&gt; wrote:<br>
&gt; (sorry for previous blank post)<br>
&gt;<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; Thanks for the replies.<br>
&gt;<br>
&gt; Indeed, i am hoping to use VTK with the java wrappers, but at the moment the<br>
&gt; problem i&#39;m having is compiling the binaries. I get the same errors even if<br>
&gt; i disable to java wrapper option in cmake.<br>
&gt; &nbsp;I&#39;m sure this must be a compiler flag option or something similar...<br>
&gt;<br>
&gt; Liam<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Apr 18, 2008 at 4:28 PM, Liam K &lt;<a href="mailto:quantum.leaf@googlemail.com" target="_blank">quantum.leaf@googlemail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Fri, Apr 18, 2008 at 3:17 PM, David Gobbi &lt;<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; AFAIK the debian distribution of VTK does not come with java support,<br>
&gt; &gt; &gt; so switching away from Ubuntu is not going to help Liam at all.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Ubuntu may not come with VTK binaries, but it has all of the VTK<br>
&gt; &gt; &gt; dependencies. &nbsp;Liam will have to install all of the sun-java6 packages<br>
&gt; &gt; &gt; as well as cmake and the dev packages for tcl, tk, etc. but the<br>
&gt; &gt; &gt; process should be straightforward once all the dev packages are there.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Anyone out there with experience specifically in installing VTK-java<br>
&gt; &gt; &gt; on ubuntu? &nbsp;The last time that I did it was a couple years ago, so I&#39;m<br>
&gt; &gt; &gt; a little rusty.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; David<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Fri, Apr 18, 2008 at 10:00 AM, Oleksandr Dzyubak &lt;<a href="mailto:adzyubak@gmail.com" target="_blank">adzyubak@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt; &gt; &gt; Hi Liam,<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &nbsp;Ubuntu is based on and derived from Debian.<br>
&gt; &gt; &gt; &gt; &nbsp;Since you are using Ubuntu anyway, &nbsp;I would recommend you<br>
&gt; &gt; &gt; &gt; &nbsp;to install Debian Lenny on your Linux box.<br>
&gt; &gt; &gt; &gt; &nbsp;Lenny has Cmake, Make, ITK, &nbsp;VTK, &nbsp;wxWidgets, FLTK, QT(3/4), &nbsp;Perl,<br>
&gt; Tcl/Tk<br>
&gt; &gt; &gt; &gt; &nbsp;and all what you might need for your development in their repository<br>
&gt; as<br>
&gt; &gt; &gt; &gt; &nbsp;binary pre-built packages thus it works right out of the box.<br>
&gt; &gt; &gt; &gt; &nbsp;Since you are Ubuntu (meaning Debian) user<br>
&gt; &gt; &gt; &gt; &nbsp;you know how to install needed packages and satisfy all dependencies.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &nbsp;The good thing is that if you do that, it will save you a lot of time<br>
&gt; and<br>
&gt; &gt; &gt; &gt; efforts<br>
&gt; &gt; &gt; &gt; &nbsp;you might spent on first compiling the distribution packages<br>
&gt; themselves,<br>
&gt; &gt; &gt; &gt; &nbsp;latter examples, and finally &quot;dependency hell&quot; when you will start<br>
&gt; &gt; &gt; &gt; &nbsp;&quot;putting all together&quot; in your own application.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &nbsp;Hope it helps,<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &nbsp;Alex<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &nbsp;Liam K wrote:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I&#39;m looking for some help in compiling VTK+. I&#39;m hoping to use it<br>
&gt; with the<br>
&gt; &gt; &gt; &gt; java wrapping for a medical data visualisation project.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I&#39;m finding just compiling VTK on my linux box (ubuntu) to be much<br>
&gt; more<br>
&gt; &gt; &gt; &gt; difficult than i expect.<br>
&gt; &gt; &gt; &gt; &gt; So far i have install cmake and set various option and generated the<br>
&gt; make<br>
&gt; &gt; &gt; &gt; file.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; When I run the make file however i get:<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; zoizoi@mangoNupheus:/usr/local/VTK$ make<br>
&gt; &gt; &gt; &gt; &gt; [ &nbsp;0%] Built target vtkParseJava<br>
&gt; &gt; &gt; &gt; &gt; [ &nbsp;0%] Built target vtkWrapJava<br>
&gt; &gt; &gt; &gt; &gt; [ &nbsp;0%] Built target vtksys<br>
&gt; &gt; &gt; &gt; &gt; [ &nbsp;0%] Building CXX object<br>
&gt; &gt; &gt; &gt; Common/CMakeFiles/vtkCommon.dir/vtkDataArraySelection.o<br>
&gt; &gt; &gt; &gt; &gt; /usr/local/VTK/Common/vtkDataArraySelection.cxx:27: error: ISO C++<br>
&gt; forbids<br>
&gt; &gt; &gt; &gt; declaration of &#39;vector&#39; with no type<br>
&gt; &gt; &gt; &gt; &gt; /usr/local/VTK/Common/vtkDataArraySelection.cxx:27: error: invalid<br>
&gt; use of<br>
&gt; &gt; &gt; &gt; &#39;::&#39;<br>
&gt; &gt; &gt; &gt; &gt; /usr/local/VTK/Common/vtkDataArraySelection.cxx:27: error: expected<br>
&gt; &#39;;&#39;<br>
&gt; &gt; &gt; &gt; before &#39;&lt;&#39; token<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; ...and then a long long list of errors which it&#39;s probably not worth<br>
&gt; &gt; &gt; &gt; posting. This is VTK 5.0.4<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; i have no idea what&#39;s causing this as my knowledge of C++ is pretty<br>
&gt; &gt; &gt; &gt; limited. Is there some configure option i need to set to get the<br>
&gt; compiler to<br>
&gt; &gt; &gt; &gt; be less stringent or something?<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; hope someone can help as i need to get working on this project asap.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Liam<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; &gt; This is the private VTK discussion list.<br>
&gt; &gt; &gt; &gt; &gt; Please keep messages on-topic. Check the FAQ at:<br>
&gt; &gt; &gt; &gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt; &gt; &gt; &gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt; &gt; &gt; &gt; &gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &nbsp;_______________________________________________<br>
&gt; &gt; &gt; &gt; &nbsp;This is the private VTK discussion list.<br>
&gt; &gt; &gt; &gt; &nbsp;Please keep messages on-topic. Check the FAQ at:<br>
&gt; &gt; &gt; &gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt; &gt; &gt; &gt; &nbsp;Follow this link to subscribe/unsubscribe:<br>
&gt; &gt; &gt; &gt; &nbsp;<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; &nbsp;This is the private VTK discussion list.<br>
&gt; &nbsp;Please keep messages on-topic. Check the FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt; &nbsp;Follow this link to subscribe/unsubscribe:<br>
&gt; &nbsp;<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>