On Jul 1, 2010, at 7:34 PM, P Kishor wrote:
> On Thu, Jul 1, 2010 at 7:24 PM, Marius Schamschula
> <[email protected]> wrote:
>> Puneet,
>>
>> Don't rename the entire directory. I just rename files. In my case I have
>>
>> Jupiter:etc marius$ ls /usr/X11R6/include/
>> GL fontconfig.off libpng12.off pngconf.h.off
>> X11 freetype2.off pixman-1 xcb
>> cairo.off ft2build.h.off png.h.off
>>
>> Note: I have built fontconfig, freetype, gtk+, etc, and installed them in
>> /usr/local.
>
>
> Nope. No luck at all. See
>
> punk...@lucknow /usr/X11R6/include$ls
> GL/ cairo.off/ freetype2.off/ libpng12.off/
> png.h.off@ xcb/
> X11/ fontconfig.off/ ft2build.h.off pixman-1/ pngconf.h.off@
> punk...@lucknow /usr/X11R6/include$
>
>
> Back in a fresh plplot-build
>
> punk...@lucknow ~/Projects/plplot-build$cmake -DPLD_aqt=OFF
> -DENABLE_java=OFF -DENABLE_octave=OFF -DENABLE_python=OFF
> -DENABLE_tcl=OFF -DENABLE_itcl=OFF -DENABLE_tk=OFF
> -DENABLE_itk=OFF -DENABLE_ada=OFF -DENABLE_d=OFF
> -DENABLE_ocaml=OFF -DENABLE_qt=OFF -DENABLE_pdl=OFF
> -DENABLE_wxwidgets=OFF -DPLD_wxwidgets=OFF -DWITH_FREETYPE=ON
> -DPL_FREETYPE_FONT_PATH=/usr/local/share/fonts/default/TrueType
> -DFREETYPE_INCLUDE_DIR=/usr/local/include/freetype2
> -DFREETYPE_LIBRARY=/usr/local/lib/libfreetype.dylib -DPLD_png=ON
> -DPLD_gif=ON -DPLD_jpeg=ON -DPLD_pngcairo=ON
> -DPLD_svgcairo=ON ../plplot-5.9.6
>
>
> snipping a bunch of output
This next block has a clue or two:
what does
otool -L /usr/local/lib/libgd.dylib
tell you? It appears that your gd library does not have gif, jpeg and png
compiled in. I have
/usr/local/lib/libgd.dylib:
/usr/local/lib/libgd.2.dylib (compatibility version 3.0.0, current
version 3.0.0)
/usr/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current
version 8.0.0)
/usr/X11/lib/libXpm.4.dylib (compatibility version 16.0.0, current
version 16.0.0)
/usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current
version 9.0.0)
/usr/local/lib/libjpeg.7.dylib (compatibility version 8.0.0, current
version 8.0.0)
/usr/local/lib/libfontconfig.1.dylib (compatibility version 6.0.0,
current version 6.4.0)
/usr/local/lib/libz.1.dylib (compatibility version 1.0.0, current
version 1.2.4)
/usr/local/lib/libfreetype.6.dylib (compatibility version 10.0.0,
current version 10.22.0)
/usr/local/lib/libpng14.14.dylib (compatibility version 16.0.0, current
version 16.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 125.0.0)
> -- Not a Windows platform so setting wincairo driver to OFF.
> -- Looking for gdImagePng in /usr/local/lib/libgd.dylib
> -- Looking for gdImagePng in /usr/local/lib/libgd.dylib - not found
> -- Looking for gdImageJpeg in /usr/local/lib/libgd.dylib
> -- Looking for gdImageJpeg in /usr/local/lib/libgd.dylib - not found
> -- Looking for gdImageGif in /usr/local/lib/libgd.dylib
> -- Looking for gdImageGif in /usr/local/lib/libgd.dylib - not found
> -- Found GD: /usr/local/lib/libgd.dylib
>
>
> ..
>
> ENABLE_DYNDRIVERS: ON
> DRIVERS_LIST: mem;null;ps;svg;xfig;xwin
> DEVICES_LIST: mem;null;ps;svg;xfig;xwin
>
>
> Meanwhile, just to confirm that I have the correct libraries
>
> punk...@lucknow /usr/local/lib$ll libpng*
> lrwxr-xr-x 1 root wheel 10 Jul 1 18:37 libpng.a@ -> libpng14.a
> lrwxr-xr-x 1 root wheel 14 Jul 1 18:37 libpng.dylib@ -> libpng14.dylib
> lrwxr-xr-x 1 root wheel 11 Jul 1 18:37 libpng.la@ -> libpng14.la
> -rwxr-xr-x 1 root wheel 196752 Jul 1 18:37 libpng14.14.dylib*
> -rw-r--r-- 1 root wheel 694224 Jul 1 18:37 libpng14.a
> lrwxr-xr-x 1 root wheel 17 Jul 1 18:37 libpng14.dylib@ ->
> libpng14.14.dylib
> -rwxr-xr-x 1 root wheel 926 Jul 1 18:37 libpng14.la*
> punk...@lucknow /usr/local/lib$
>
> punk...@lucknow /usr/local/lib$ls libgd*
> libgd.2.0.0.dylib* libgd.dylib@ libgdal.a
> libgdraw.1.0.14.dylib* libgdraw.la*
> libgd.2.dylib@ libgd.la* libgdal.dylib@
> libgdraw.1.dylib@
> libgd.a libgdal.1.dylib* libgdal.la*
> libgdraw.dylib@
>
>>
>> On Jul 1, 2010, at 7:13 PM, P Kishor wrote:
>>
>>> On Thu, Jul 1, 2010 at 7:11 PM, Marius Schamschula
>>> <[email protected]> wrote:
>>>> Puneet,
>>>>
>>>> What does
>>>>
>>>> ls /usr/X11R6/include/
>>>>
>>>> give you?
>>>
>>> punk...@lucknow ~$ls /usr/X11R6/include/
>>> GL/ X11/ cairo/ fontconfig/ freetype2/ ft2build.h
>>> libpng12/ pixman-1/ png.h@ pngconf.h@ xcb/
>>> punk...@lucknow ~$
>>>
>>>
>>>>
>>>> My guess is that cmake picks up Apple's obsolete libraries. I disable the
>>>> include files in the above directory by renaming them.
>>>>
>>>
>>> Are you suggesting that I just rename /usr/X11R6 and then try building
>>> PLplot?
>>>
>>>
>>>
>>>> On Jul 1, 2010, at 6:52 PM, P Kishor wrote:
>>>>
>>>>> Ok. I tried building PLplot once again, but failed in enabling PNG
>>>>> output. In the process, I updated fontconfig, libiconv, cairo,
>>>>> poppler, and pkg-config. Here is my long-ish account of what I did
>>>>>
>>>>> punk...@lucknow ~/Projects/plplot-5.9.6$ ls
>>>>> .gitignore PROBLEMS
>>>>> cmake/ lib/
>>>>> AUTHORS README
>>>>> config.h.cmake pkgcfg/
>>>>> CMakeLists.txt README.Release_Manager_Cookbook
>>>>> data/ plplot-c-style.el
>>>>> COPYING.LIB README.developers
>>>>> debian/ plplot_test/
>>>>> ChangeLog README.emacs doc/
>>>>> rpm/
>>>>> Copyright README.release
>>>>> drivers/ scripts/
>>>>> FAQ README.testing
>>>>> examples/ src/
>>>>> INSTALL SERVICE
>>>>> fonts/ uncrustify.cfg
>>>>> NEWS ToDo git/
>>>>> utils/
>>>>> OLD-README.release bindings/
>>>>> include/ www/
>>>>> punk...@lucknow ~/Projects/plplot-5.9.6$ cd ..
>>>>> punk...@lucknow ~/Projects$ mkdir plplot-build/
>>>>> punk...@lucknow ~/Projects$ cd plplot-build/
>>>>> punk...@lucknow ~/Projects/plplot-build$ cmake -DPLD_aqt=OFF \
>>>>> -DENABLE_java=OFF \
>>>>> -DENABLE_octave=OFF \
>>>>> -DENABLE_python=OFF \
>>>>> -DENABLE_tcl=OFF \
>>>>> -DENABLE_itcl=OFF \
>>>>> -DENABLE_tk=OFF \
>>>>> -DENABLE_itk=OFF \
>>>>> -DENABLE_ada=OFF \
>>>>> -DENABLE_d=OFF \
>>>>> -DENABLE_ocaml=OFF \
>>>>> -DENABLE_qt=OFF \
>>>>> -DENABLE_pdl=OFF \
>>>>> -DENABLE_wxwidgets=OFF \
>>>>> -DPLD_wxwidgets=OFF \
>>>>> -DWITH_FREETYPE=OFF \
>>>>> -DPL_FREETYPE_FONT_PATH=/usr/local/share/fonts/default/TrueType \
>>>>> -DFREETYPE_INCLUDE_DIR=/usr/local/include/freetype2 \
>>>>> -DFREETYPE_LIBRARY=/usr/local/lib/libfreetype.dylib \
>>>>> -DPLD_png=ON \
>>>>> -DPLD_gif=ON \
>>>>> -DPLD_jpeg=ON \
>>>>> -DPLD_pngcairo=ON \
>>>>> -DPLD_svgcairo=ON \
>>>>> -DHAVE_QHULL=ON \
>>>>> -DHAVE_AGG=ON \
>>>>> ../plplot-5.9.6
>>>>> -- CMake version = 2.6.2
>>>>> -- Checking whether system has ANSI C header files
>>>>> -- ANSI C header files - found
>>>>> -- SWIG_VERSION = 1.3.31
>>>>> -- Looking for pkg-config - found
>>>>> -- X11_FOUND = 1
>>>>> -- X11_INCLUDE_DIR = /usr/include
>>>>> -- X11_COMPILE_FLAGS = -I/usr/include
>>>>> -- X11_LIBRARIES =
>>>>> /usr/X11R6/lib/libSM.dylib;/usr/X11R6/lib/libICE.dylib;/usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib
>>>>> -- NOTICE: Found: /usr/local/bin/gfortran
>>>>> -- ENABLE_tcl is OFF so disabling everything else that is Tcl/Tk related
>>>>> -- FREETYPE_INCLUDE_DIR = /usr/local/include/freetype2
>>>>> -- FREETYPE_LIBRARIES = /usr/local/lib/libfreetype.dylib
>>>>> Fonts not found - disabling freetype
>>>>> -- checking for module 'pango'
>>>>> -- package 'pango' not found
>>>>> -- WARNING: pkg-config does not find pango.
>>>>> -- checking for module 'pangoft2'
>>>>> -- package 'pangoft2' not found
>>>>> -- WARNING: pkg-config does not find pangoft2.
>>>>> -- Found LTDL: /usr/lib/libltdl.dylib;/usr/lib/libdl.dylib
>>>>> -- LTDL_INCLUDE_DIR = /usr/include
>>>>> -- LTDL_LIBRARY_DIR = /usr/lib
>>>>> -- LTDL_LIBRARIES = /usr/lib/libltdl.dylib;/usr/lib/libdl.dylib
>>>>> -- checking for module 'pangocairo'
>>>>> -- package 'pangocairo' not found
>>>>> includedir =
>>>>> libdir =
>>>>> linkflags =
>>>>> cflags =
>>>>> -- WARNING: pango and/or cairo not found with pkg-config.
>>>>> Disabling cairo drivers. To enable these drivers you must install
>>>>> development versions of pango and cairo and/or set
>>>>> the environment variable PKG_CONFIG_PATH appropriately.
>>>>> -- Not a Windows platform so setting wincairo driver to OFF.
>>>>> -- Found GD: /usr/local/lib/libgd.dylib
>>>>> -- WARNING: validate target will not be available to check for syntax
>>>>> errors in the PLplot DocBook documentation because onsgmls was not
>>>>> found.
>>>>>
>>>>> Summary of CMake build system results for PLplot
>>>>>
>>>>> Install location variables which can be set by the user:
>>>>> CMAKE_INSTALL_PREFIX: /usr/local
>>>>> CMAKE_INSTALL_EXEC_PREFIX /usr/local
>>>>> CMAKE_INSTALL_BINDIR /usr/local/bin
>>>>> CMAKE_INSTALL_DATADIR /usr/local/share
>>>>> CMAKE_INSTALL_LIBDIR /usr/local/lib
>>>>> CMAKE_INSTALL_INCLUDEDIR /usr/local/include
>>>>> CMAKE_INSTALL_INFODIR /usr/local/share/info
>>>>> CMAKE_INSTALL_MANDIR /usr/local/share/man
>>>>>
>>>>> Derived install location variables:
>>>>> DATA_DIR /usr/local/share/plplot5.9.6
>>>>> LIB_DIR /usr/local/lib
>>>>> INCLUDE_DIR /usr/local/include/plplot
>>>>> BIN_DIR /usr/local/bin
>>>>> TCL_DIR /usr/local/share/plplot5.9.6/tcl
>>>>> ADA_INCLUDE_DIR /usr/local/share/ada/adainclude/plplotadad
>>>>> ADA_LIB_DIR /usr/local/lib/ada/adalib/plplotadad
>>>>> PYTHON_INSTDIR
>>>>> DRV_DIR /usr/local/lib/plplot5.9.6/driversd
>>>>> DOC_DIR /usr/local/share/doc/plplot
>>>>> MAN_DIR /usr/local/share/man
>>>>> INFO_DIR /usr/local/share/info
>>>>>
>>>>> Other important CMake variables:
>>>>>
>>>>> CMAKE_SYSTEM_NAME: Darwin
>>>>> UNIX: 1
>>>>> WIN32:
>>>>> APPLE: 1
>>>>> MSVC: (MSVC_VERSION: )
>>>>> MINGW:
>>>>> MSYS:
>>>>> CYGWIN:
>>>>> BORLAND:
>>>>> WATCOM:
>>>>>
>>>>> SWIG_FOUND: 1
>>>>> PERL_FOUND: TRUE
>>>>> X11_FOUND: 1
>>>>>
>>>>> CMAKE_BUILD_TYPE:
>>>>> CMAKE_C_COMPILER CMAKE_C_FLAGS: /usr/bin/gcc
>>>>> CMAKE_CXX_COMPILER CMAKE_CXX_FLAGS: /usr/bin/c++
>>>>> CMAKE_Fortran_COMPILER CMAKE_Fortran_FLAGS: /usr/local/bin/gfortran
>>>>> Target Fortran:
>>>>> LIB_TAG: d
>>>>>
>>>>> ENABLE_DYNDRIVERS: ON
>>>>> DRIVERS_LIST: mem;null;ps;svg;xfig;xwin
>>>>> DEVICES_LIST: mem;null;ps;svg;xfig;xwin
>>>>>
>>>>> Library options:
>>>>> BUILD_SHARED_LIBS: ON PL_DOUBLE: ON
>>>>>
>>>>> Optional libraries:
>>>>> HAVE_QHULL: OFF WITH_CSA: ON
>>>>> HAVE_FREETYPE: HAVE_PTHREAD: OFF
>>>>> HAVE_AGG:
>>>>>
>>>>> Language Bindings:
>>>>> ENABLE_f77: ON ENABLE_f95: ON
>>>>> ENABLE_cxx: ON ENABLE_java: OFF
>>>>> ENABLE_python: OFF ENABLE_octave: OFF
>>>>> ENABLE_tcl: OFF ENABLE_itcl: OFF
>>>>> ENABLE_tk: OFF ENABLE_itk: OFF
>>>>> ENABLE_pdl: OFF ENABLE_wxwidgets: OFF
>>>>> ENABLE_ada: OFF ENABLE_d: OFF
>>>>> ENABLE_ocaml: OFF ENABLE_lua: OFF
>>>>> ENABLE_qt: OFF ENABLE_pyqt4: OFF
>>>>>
>>>>> -- Configuring done
>>>>> -- Generating done
>>>>> -- Build files have been written to: /Users/punkish/Projects/plplot-build
>>>>> punk...@lucknow ~/Projects/plplot-build$
>>>>>
>>>>>
>>>>> I am at my wit's end. As can be seen from the devices list, I just
>>>>> can't get png to be enabled.
>>>>>
>>>>> DEVICES_LIST: mem;null;ps;svg;xfig;xwin
>>>>>
>>>>> I also have agg installed, and that also doesn't get recognized
>>>>> (actually, I don't quite know how to turn on agg other than
>>>>> -DHAVE_AGG=ON, which is not really in the documentation).
>>>>>
>>>>> On Wed, Jun 30, 2010 at 9:15 AM, Arjen Markus <[email protected]>
>>>>> wrote:
>>>>>> Hi Puneet,
>>>>>>
>>>>>> you are right: the --help option of CMake does not display any
>>>>>> PLplot-specific information (that is: it does not read it from
>>>>>> the CMakeLists.txt file). Perhaps we ought to add that.
>>>>>> (And of course, some more illustrative examples of building
>>>>>> PLplot ;)).
>>>>>>
>>>>> ..
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> This SF.net email is sponsored by Sprint
>>>>> What will you do first with EVO, the first 4G phone?
>>>>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>>>>> _______________________________________________
>>>>> Plplot-general mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/plplot-general
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Puneet Kishor http://www.punkish.org
>>> Carbon Model http://carbonmodel.org
>>> Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
>>> Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
>>> Nelson Institute, UW-Madison http://www.nelson.wisc.edu
>>> -----------------------------------------------------------------------
>>> Assertions are politics; backing up assertions with evidence is science
>>> =======================================================================
>>
>>
>
>
>
> --
> Puneet Kishor http://www.punkish.org
> Carbon Model http://carbonmodel.org
> Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
> Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
> Nelson Institute, UW-Madison http://www.nelson.wisc.edu
> -----------------------------------------------------------------------
> Assertions are politics; backing up assertions with evidence is science
> =======================================================================
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general