Menu

MathGL on Mac OS X

Help
farshidhss
2012-03-26
2012-10-16
  • farshidhss

    farshidhss - 2012-03-26

    Hi,

    The installation fails for mathgl-1.11.2 under Mac OS X 10.7.3 with the latest
    libpng package installed. I get the following error during the make:

    libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../include/mgl -DMGL_FONT_PATH=\"/usr/local/share/mathgl/fonts/\" -DMOD_LIB_DIR=\"/usr/local/lib/mgl/\" -Wall -I/usr/local/include -I../include -I../include -DHAVE_PTHREAD -g -O2 -MT libmgl_la-mgl_data_png.lo -MD -MP -MF .deps/libmgl_la-mgl_data_png.Tpo -c mgl_data_png.cpp  -fno-common -DPIC -o .libs/libmgl_la-mgl_data_png.o
    mgl_data_png.cpp: In member function 'void mglData::Export(const char*, const char*, mreal, mreal, int) const':
    mgl_data_png.cpp:183: error: 'Z_BEST_COMPRESSION' was not declared in this scope
    make[1]: *** [libmgl_la-mgl_data_png.lo] Error 1
    make: *** [all-recursive] Error 1
    
     
  • farshidhss

    farshidhss - 2012-03-26

    sorry forgot to mention that I installed libpng 1.5.9 and gel 1.9
    Your help is very appreciated.

     
  • Alexey Balakin

    Alexey Balakin - 2012-03-26

    Hi,

    It is strange error, because Z_BEST_COMPRESSION is standard definition in zlib
    http://zlib.net/manual.html#Constants

    I can only suggest to replace this definition by its numeric value. I.e. add
    define Z_BEST_COMPRESSION=9 (or if fails then =-1).

     
  • farshidhss

    farshidhss - 2012-03-27

    Thank you very much, that fixed the problem. Now I can run the mgl_example. It
    outputs to png and eps but not pdf. When I runt ./mgl_example it outputs the
    name of the plots as usual and takes some time processing but in the end there
    is no pdf file created in the example folder. Do you have any hint on that?

     
  • farshidhss

    farshidhss - 2012-03-27

    oh I meant ./mgl_example -pdf

     
  • Alexey Balakin

    Alexey Balakin - 2012-03-28

    Option -pdf will produce PDF with U3D. Most probably that you don't include
    support of U3D and/or PDF at build time.

     
  • farshidhss

    farshidhss - 2012-03-28

    I see thanks, well then I investigate how to add support for pdf and come back
    to you if got lost. Cheers.

     

Log in to post a comment.