I have succeeded in building plplot on my Suse 10.2 system (the cmake
rpm of which does not contain the Modules), but only by a hybrid hack of
installing cmake 2.6 (I've tried both 2.6.0 binary and 2.6.1 built from
source on my machine) and using those 2.6 Modules with the
Suse-installed cmake-2.4patch6. This generates a pretty functional
plplot system, though I can't get pthreads to work (it builds with
HAVE_PTHREAD but the xwins still don't refresh), the new tkwin driver
complains that it can't find a plframe, and the gcw driver loads, draws,
then crashes.

Using cmake 2.6.1 results in an error with litk (litk3.3 exists on my
system and is added to the linker directives with cmake 2.4):

Linking C executable plserver
cd /home/opt_home/plplot/plplot-5.9.0/build_dir2/bindings/tk
&& /home/opt_home/cmake/cmake-2.6.0-Linux-i386/bin/cmake -E
cmake_link_script CMakeFiles/plserver.dir/link.txt --verbose=1
/usr/bin/gcc    -fPIC CMakeFiles/plserver.dir/plserver.o  -o plserver
-rdynamic -L//usr/lib
-L/home/opt_home/plplot/plplot-5.9.0/build_dir2/bindings/tcl
-L/home/opt_home/plplot/plplot-5.9.0/build_dir2/src
-L/home/opt_home/plplot/plplot-5.9.0/build_dir2/lib/csa 
../tcl/libplplottcltkd.so.9.2.0 ../../src/libplplotd.so.9.5.0 -lltdl -ldl 
../../lib/csa/libcsirocsa.so.0.0.1 -lm ../tcl/libtclmatrixd.so.9.2.0 -ltcl8.4 
-litcl3.3 -ltk8.4 -L/usr/lib -lSM -lICE -lX11 -lXext -ltk8.4 
-Wl,-rpath,/home/opt_home/plplot/plplot-5.9.0/build_dir2/bindings/tcl:/home/opt_home/plplot/plplot-5.9.0/build_dir2/src:/home/opt_home/plplot/plplot-5.9.0/build_dir2/lib/csa://usr/lib
 
../tcl/libplplottcltkd.so.9.2.0: undefined reference to `Itk_Init'
collect2: ld returned 1 exit status
make[2]: *** [bindings/tk/plserver] Error 1


At an offlist suggestion, I unenabled itk and itcl in cmake. Then cmake
2.6.1 gets further but trips over the wxwidgets:

cd /home/opt_home/plplot/plplot-5.9.0/build_dir/drivers && /usr/bin/c++
-DHAVE_CONFIG_H -Dwxwidgets_EXPORTS -fPIC
-I/home/opt_home/plplot/plplot-5.9.0/include
-I/home/opt_home/plplot/plplot-5.9.0/build_dir
-I/home/opt_home/plplot/plplot-5.9.0/build_dir/include
-I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8
-D_FILE_OFFSET_BITS=64 -I-D_LARGE_FILES -I-D__WXGTK__ -o
CMakeFiles/wxwidgets.dir/wxwidgets.o
-c /home/opt_home/plplot/plplot-5.9.0/drivers/wxwidgets.cpp
In file included from /usr/include/wx-2.8/wx/wx.h:15,
from /home/opt_home/plplot/plplot-5.9.0/drivers/wxwidgets.cpp:51:
/usr/include/wx-2.8/wx/defs.h:42:13: error: #error "No Target! You
should use wx-config program for compilation flags!"
/usr/include/wx-2.8/wx/gtk/cursor.h:40: error: ISO C++ forbids
declaration of ‘GdkCursor’ with no type
/usr/include/wx-2.8/wx/gtk/cursor.h:40: error: expected ‘;’ before ‘*’
token
/usr/include/wx-2.8/wx/gtk/app.h:55: error: ‘guint’ does not name a type
/usr/include/wx-2.8/wx/gtk/app.h:65: error: ISO C++ forbids declaration
of ‘GdkVisual’ with no type


and there follows a long list of similar errors. So I removed the
wxwidgets from the list of drivers. Then it makes, but the install fails
at:

-- Set runtime path of
"/home/opt_home/plplot/plplot-5.9.0/install_dir/lib/libplplotf95d.so.9.1.1" to 
"/home/opt_home/plplot/plplot-5.9.0/install_dir/lib:/usr/lib"
CMake Error at bindings/f95/cmake_install.cmake:80 (FILE):
  file INSTALL cannot find file
  "/home/opt_home/plplot/plplot-5.9.0/build_dir/plplot.mod" to install.
Call Stack (most recent call first):
  bindings/cmake_install.cmake:43 (INCLUDE)
  cmake_install.cmake:55 (INCLUDE)

which is clearly looking in the wrong place for plplot.mod (it's inside
bindings/f95

I'm giving up for the time being. I'm prepared to believe that my Suse
10.2 system has some oddities in it (though I'm surprised (a) that cmake
2.4 seems to avoid most of them and (b) that a clean source build of
cmake 2.6.1 didn't work). If anyone recognises the symptoms and has an
easy cure, I'll try it.  I'll revert back to my hyrbid for the time
being (which does build working versions of the wxwidgets, tk, xwin, and
some of the Cairo drivers, together with the plmeta one, ps, etc.

In any case, I hope this is of help to someone.

Steve

-- 
+-------------------------------------------------------------------+
Professor Steven J Schwartz      Phone: +44-(0)20-7594-7660
Space and Atmospheric Physics    Fax:   +44-(0)20-7594-7772
The Blackett Laboratory          E-mail: [EMAIL PROTECTED]
Imperial College London          Office: Huxley 6M70 
London SW7 2BW, U.K.             Web: http://www.sp.ph.ic.ac.uk/~sjs
+-------------------------------------------------------------------+


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to