From: Arjen M. <Arj...@de...> - 2013-11-13 13:32:59
|
Hi Alexis, > -----Original Message----- > From: Alexis Praga [mailto:ale...@ma...] > Sent: Wednesday, November 13, 2013 2:18 PM > To: Arjen Markus > Cc: plp...@li... > Subject: RE: [Plplot-general] Build documentation > > Thanks for the update. > You're welcome. > I am using the latest PLplot (5.9.10) on Fedora 14, 64 bit. Compilers are : gcc 4.5.1, > g++ and gfortran. > Okay, that should definitely do fine :). > Concerning TCL, the version 8.5 is installed but not on a standard location > (/usr/lib64). Is-it really a requirement for plplot ? NO, PLplot can use a number of optional external libraries or be built for a variety of programming languages. Tcl is merely one of these. You can turn off individual components explicitly: -DENABLE_tcl=OFF However, if you leave it to CMake it will include any optional component it finds. In this case something odd is happening. Could you send me the output from both CMake and make? cmake ... 1>cmake.out 2>&1 make 1>make.out 2>&1 (So that both standard output and standard error are captured in the file) > Otherwise, I don't see it mentionned in the INSTALL file. > Anyway, it is found by cmake (see below for an excerpt of the configuration), but > build fails with : > > ../../src/libplplotd.so.12.0.0: undefined reference to `TclFormatInt' > collect2: ld returned 1 exit status > make[2]: *** [bindings/tk/plserver] Error 1 > make[1]: *** [bindings/tk/CMakeFiles/plserver.dir/all] Error 2 > make: *** [all] Error 2 > The function TclFormatInt is actually a "private" function, not meant to be used outside of the Tcl library itself. If you are using Tcl 8.5, then it is actually locally defined as a macro in the file tclMain.c. CMake reports 8.5, but clearly the compile error you get indicates something else. > Concerning the source directory, it's my fault not to have read the INSTALL file > thoroughly. However, I like to be able to install softwares with just a quick glance at > the example. > Indeed, an explanation concerning plplot_cmake would help a lot. > Well, have a look at what I committed in response to your question. Hopefully that makes things clearer. Hm, could it be that the version of tclsh is 8.5 but the include files are 8.4? That would trigger this kind of error. The simplest solution is to remove TclFormatInt from the PLplot source code. That is not hard to do. > > > Cmake configuration (excerpt): > -- Found Tclsh: /usr/bin/tclsh (found version "8.5") > -- Found TCL: /usr/lib64/libtcl.so > -- Found TCLTK: /usr/lib64/libtcl.so > -- Found TK: /usr/lib64/libtk.so > -- Looking for include paths and libraries for Tcl/Tk - found > -- Looking for tclsh > -- Looking for tclsh - found > -- TCL_TCLSH = /usr/bin/tclsh > -- TCL_INCLUDE_PATH = /usr/include > -- TCL_LIBRARY = /usr/lib64/libtcl.so > -- Itcl not available or not compatible with current Tcl shell > -- TK_INCLUDE_PATH = /usr/include;/usr/include > -- TK_LIBRARY = /usr/lib64/libtk.so > -- Looking for itk.h > -- Looking for itk.h - not found > -- WARNING: Disabling incr Tk interface code > Regards, Arjen DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |