Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

building Plplot on OS X Mountain Lion

Help
Math P.
2013-01-07
2013-03-15
  • Math P.
    Math P.
    2013-01-07

    Hi, I am trying to build plplot on os x mountain lion and it fails to do so. I follow the instructions in the docbook and it fail to build because of Tcl/Tk. Here is the output of make.out :

    Scanning dependencies of target csirocsa
    [  0%] Building C object lib/csa/CMakeFiles/csirocsa.dir/csa.c.o
    Linking C shared library libcsirocsa.dylib
    [  0%] Built target csirocsa
    Scanning dependencies of target csironn
    [  0%] Building C object lib/nn/CMakeFiles/csironn.dir/delaunay.c.o
    [  0%] Building C object lib/nn/CMakeFiles/csironn.dir/hash.c.o
    [  0%] Building C object lib/nn/CMakeFiles/csironn.dir/istack.c.o
    [  1%] Building C object lib/nn/CMakeFiles/csironn.dir/lpi.c.o
    [  1%] Building C object lib/nn/CMakeFiles/csironn.dir/nnai.c.o
    [  1%] Building C object lib/nn/CMakeFiles/csironn.dir/nnpi.c.o
    [  1%] Building C object lib/nn/CMakeFiles/csironn.dir/nncommon.c.o
    Linking C shared library libcsironn.dylib
    [  1%] Built target csironn
    Scanning dependencies of target deltaT-gen
    [  2%] Building C object lib/qsastime/CMakeFiles/deltaT-gen.dir/deltaT-gen.c.o
    [  2%] Building C object lib/qsastime/CMakeFiles/deltaT-gen.dir/dspline.c.o
    Linking C executable deltaT-gen
    [  2%] Built target deltaT-gen
    Scanning dependencies of target deltaT.h_built
    [  2%] Generating deltaT.h
    [  2%] Built target deltaT.h_built
    Scanning dependencies of target tai-utc-gen
    [  2%] Building C object lib/qsastime/CMakeFiles/tai-utc-gen.dir/tai-utc-gen.c.o
    Linking C executable tai-utc-gen
    [  2%] Built target tai-utc-gen
    Scanning dependencies of target tai-utc.h_built
    [  2%] Generating tai-utc.h
    [  2%] Built target tai-utc.h_built
    Scanning dependencies of target qsastime
    [  3%] Building C object lib/qsastime/CMakeFiles/qsastime.dir/qsastime.c.o
    [  3%] Building C object lib/qsastime/CMakeFiles/qsastime.dir/dsplint.c.o
    Linking C shared library libqsastime.dylib
    [  3%] Built target qsastime
    Scanning dependencies of target plhershey-unicode-gen
    [  3%] Building C object include/CMakeFiles/plhershey-unicode-gen.dir/__/fonts/plhershey-unicode-gen.c.o
    Linking C executable plhershey-unicode-gen
    [  3%] Built target plhershey-unicode-gen
    Scanning dependencies of target plhershey-unicode.h_built
    [  3%] Generating plhershey-unicode.h
    [  3%] Built target plhershey-unicode.h_built
    [  3%] Generating ../bindings/tcl/tclgen.h, ../bindings/tcl/tclgen_s.h, ../bindings/tcl/tclgen.c
    Scanning dependencies of target plplotd
    [  4%] Building C object src/CMakeFiles/plplotd.dir/pdfutils.c.o
    [  4%] Building C object src/CMakeFiles/plplotd.dir/plaffine.c.o
    [  4%] Building C object src/CMakeFiles/plplotd.dir/plarc.c.o
    [  4%] Building C object src/CMakeFiles/plplotd.dir/plargs.c.o
    /Users/mathieu/Downloads/plplot-5.9.9/src/plargs.c:725:14: warning: implicit declaration of function 'plSetOpt' is invalid in C99 [-Wimplicit-function-declaration]
        return ( plSetOpt( opt, optarg ) );
                 ^
    /Users/mathieu/Downloads/plplot-5.9.9/src/plargs.c:2417:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
        if ( locale = setlocale( LC_NUMERIC, "" ) )
        /Users/mathieu/Downloads/plplot-5.9.9/src/plargs.c:2417:17: note: place parentheses around the assignment to silence this warning
            if ( locale = setlocale( LC_NUMERIC, "" ) )
                        ^
                 (                                   )
        /Users/mathieu/Downloads/plplot-5.9.9/src/plargs.c:2417:17: note: use '==' to turn this assignment into an equality comparison
            if ( locale = setlocale( LC_NUMERIC, "" ) )
                        ^
                        ==
        2 warnings generated.
        [  5%] Building C object src/CMakeFiles/plplotd.dir/plbox.c.o
        /Users/mathieu/Downloads/plplot-5.9.9/src/plbox.c:1959:21: warning: implicit declaration of function 'plwxtik' is invalid in C99 [-Wimplicit-function-declaration]
                            plwxtik( tn, vpwymin, FALSE, !lix );
                            ^
        /Users/mathieu/Downloads/plplot-5.9.9/src/plbox.c:2122:21: warning: implicit declaration of function 'plwytik' is invalid in C99 [-Wimplicit-function-declaration]
                            plwytik( vpwxmin, tn, FALSE, !liy );
                            ^
        2 warnings generated.
        [  5%] Building C object src/CMakeFiles/plplotd.dir/plcont.c.o
        [  5%] Building C object src/CMakeFiles/plplotd.dir/plcore.c.o
        [  5%] Building C object src/CMakeFiles/plplotd.dir/plctrl.c.o
        [  5%] Building C object src/CMakeFiles/plplotd.dir/plcvt.c.o
        [  6%] Building C object src/CMakeFiles/plplotd.dir/pldeprecated.c.o
        [  6%] Building C object src/CMakeFiles/plplotd.dir/pldtik.c.o
        [  6%] Building C object src/CMakeFiles/plplotd.dir/plf2ops.c.o
        [  6%] Building C object src/CMakeFiles/plplotd.dir/plfill.c.o
        [  7%] Building C object src/CMakeFiles/plplotd.dir/plfreetype.c.o
        [  7%] Building C object src/CMakeFiles/plplotd.dir/plgradient.c.o
        [  7%] Building C object src/CMakeFiles/plplotd.dir/plhist.c.o
        [  7%] Building C object src/CMakeFiles/plplotd.dir/plimage.c.o
        [  7%] Building C object src/CMakeFiles/plplotd.dir/plline.c.o
        [  8%] Building C object src/CMakeFiles/plplotd.dir/plmap.c.o
        [  8%] Building C object src/CMakeFiles/plplotd.dir/plot3d.c.o
        /Users/mathieu/Downloads/plplot-5.9.9/src/plot3d.c:1162:61: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
            if ( ( opt & BASE_CONT ) || ( opt & TOP_CONT ) || ( opt && MAG_COLOR ) )
                                                                    ^  ~~~~~~~~~
        /Users/mathieu/Downloads/plplot-5.9.9/src/plot3d.c:1162:61: note: use '&' for a bitwise operation
            if ( ( opt & BASE_CONT ) || ( opt & TOP_CONT ) || ( opt && MAG_COLOR ) )
                                                                    ^~
                                                                    &
        /Users/mathieu/Downloads/plplot-5.9.9/src/plot3d.c:1162:61: note: remove constant to silence this warning
            if ( ( opt & BASE_CONT ) || ( opt & TOP_CONT ) || ( opt && MAG_COLOR ) )
                                                                   ~^~~~~~~~~~~~
        1 warning generated.
        [  8%] Building C object src/CMakeFiles/plplotd.dir/plpage.c.o
        /Users/mathieu/Downloads/plplot-5.9.9/src/plpage.c:160:23: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
            if ( plsc->difilt && PLDI_ORI )
                              ^  ~~~~~~~~
        /Users/mathieu/Downloads/plplot-5.9.9/src/plpage.c:160:23: note: use '&' for a bitwise operation
            if ( plsc->difilt && PLDI_ORI )
                              ^~
                              &
        /Users/mathieu/Downloads/plplot-5.9.9/src/plpage.c:160:23: note: remove constant to silence this warning
            if ( plsc->difilt && PLDI_ORI )
                             ~^~~~~~~~~~~
        1 warning generated.
        [  8%] Building C object src/CMakeFiles/plplotd.dir/plsdef.c.o
        [ 10%] Building C object src/CMakeFiles/plplotd.dir/plshade.c.o
        [ 10%] Building C object src/CMakeFiles/plplotd.dir/plstdio.c.o
        [ 10%] Building C object src/CMakeFiles/plplotd.dir/plstripc.c.o
        [ 10%] Building C object src/CMakeFiles/plplotd.dir/plsym.c.o
        [ 10%] Building C object src/CMakeFiles/plplotd.dir/pltick.c.o
        [ 11%] Building C object src/CMakeFiles/plplotd.dir/plvpor.c.o
        [ 11%] Building C object src/CMakeFiles/plplotd.dir/plwind.c.o
        [ 11%] Building C object src/CMakeFiles/plplotd.dir/plbuf.c.o
        [ 11%] Building C object src/CMakeFiles/plplotd.dir/plgridd.c.o
        [ 11%] Building C object src/CMakeFiles/plplotd.dir/plvect.c.o
        [ 12%] Building C object src/CMakeFiles/plplotd.dir/mt19937ar.c.o
        [ 12%] Building C object src/CMakeFiles/plplotd.dir/pltime.c.o
        [ 12%] Building C object src/CMakeFiles/plplotd.dir/pllegend.c.o
        [ 12%] Building C object src/CMakeFiles/plplotd.dir/__/drivers/aqt.c.o
        /Users/mathieu/Downloads/plplot-5.9.9/drivers/aqt.c:501:23: warning: 'cString' is deprecated [-Wdeprecated-declarations]
            scanned = sscanf([temp cString], "1:{%d, %d}:%d", &x, &y, &button );
                              ^
        /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:344:1: note: method 'cString' declared here
        - (const char *)cString NS_DEPRECATED(10_0, 10_4, 2_0, 2_0);
        ^
        /Users/mathieu/Downloads/plplot-5.9.9/drivers/aqt.c:653:62: warning: 'stringWithCString:' is deprecated [-Wdeprecated-declarations]
            str = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithCString:dummy]];
                                                                     ^
        /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:363:1: note: method 'stringWithCString:' declared here
        + (id)stringWithCString:(const char *)bytes NS_DEPRECATED(10_0, 10_4, 2_0, 2_0);
        ^
        /Users/mathieu/Downloads/plplot-5.9.9/drivers/aqt.c:752:14: warning: 'stringWithCString:' is deprecated [-Wdeprecated-declarations]
             value :[NSString stringWithCString : font]
                     ^
        /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:363:1: note: method 'stringWithCString:' declared here
        + (id)stringWithCString:(const char *)bytes NS_DEPRECATED(10_0, 10_4, 2_0, 2_0);
        ^
        3 warnings generated.
        [ 13%] Building C object src/CMakeFiles/plplotd.dir/__/drivers/mem.c.o
        [ 13%] Building C object src/CMakeFiles/plplotd.dir/__/drivers/null.c.o
        [ 13%] Building C object src/CMakeFiles/plplotd.dir/__/drivers/ps.c.o
        [ 13%] Building C object src/CMakeFiles/plplotd.dir/__/drivers/svg.c.o
        [ 13%] Building C object src/CMakeFiles/plplotd.dir/__/drivers/tk.c.o
        /Users/mathieu/Downloads/plplot-5.9.9/drivers/tk.c:767:47: error: no member named 'result' in 'struct Tcl_Interp'
                fprintf( stderr, "%s\n", dev->interp->result );
    /Users/mathieu/Downloads/plplot-5.9.9/drivers/tk.c:1571:30: error: no member named 'result' in 'struct Tcl_Interp'
                    dev->interp->result );
        /Users/mathieu/Downloads/plplot-5.9.9/drivers/tk.c:1676:30: error: no member named 'result' in 'struct Tcl_Interp'
                        dev->interp->result );
    /Users/mathieu/Downloads/plplot-5.9.9/drivers/tk.c:2134:50: error: no member named 'result' in 'struct Tcl_Interp'
            fprintf( stderr, "tk_init:%s\n", interp->result );
        /Users/mathieu/Downloads/plplot-5.9.9/drivers/tk.c:2168:35: error: no member named 'result' in 'struct Tcl_Interp'
                        cmd, dev->interp->result );
    /Users/mathieu/Downloads/plplot-5.9.9/drivers/tk.c:2228:31: error: no member named 'result' in 'struct Tcl_Interp'
                cmd, dev->interp->result );
        /Users/mathieu/Downloads/plplot-5.9.9/drivers/tk.c:2250:31: error: no member named 'result' in 'struct Tcl_Interp'
                    cmd, dev->interp->result );
    7 errors generated.
    make[2]: *** [src/CMakeFiles/plplotd.dir/__/drivers/tk.c.o] Error 1
    make[1]: *** [src/CMakeFiles/plplotd.dir/all] Error 2
    make: *** [all] Error 2
    

    I must specify that I am quite new to macs.

    Thanks for any help