Loading ...
Sorry, an error occurred while loading the content.

Newbee: Ploticus on Mac OS 10.5.7 PPC G5

Expand Messages
  • gusten.gren
    Hello Mac OS C-programmers using ploticus Plotting graphs in C-code-programs. I have downloaded Ploticus via Fink. My path and library looks lika this.
    Message 1 of 3 , May 24 1:09 AM
    • 0 Attachment
      Hello Mac OS C-programmers using ploticus
      Plotting graphs in C-code-programs. I have downloaded Ploticus via Fink.
      My path and library looks lika this.

      gustengrens-power-mac-g5:lib gustengren$ pwd
      /sw/lib
      gustengrens-power-mac-g5:lib gustengren$ ls -la libplot*
      -rw-r--r--  1 root  admin   594116 14 Jun  2008 libploticus.2.20.dylib
      lrwxr-xr-x  1 root  admin       22 18 Maj 06:04 libploticus.2.dylib -> libploticus.2.20.dylib
      -rw-r--r--  1 root  admin  1210824 14 Jun  2008 libploticus.a
      lrwxr-xr-x  1 root  admin       22 18 Maj 05:58 libploticus.dylib -> libploticus.2.20.dylib
      gustengrens-power-mac-g5:lib gustengren$

      When i try to compile api_examp.c I get the following result.

      gustengrens-power-mac-g5:Programmering gustengren$ cc -o test -L/sw/lib/libploticus.a -lz  -lm -L/usr/X11/lib/libpng.la -L/usr/X11/lib/libX11.la api_examp.c
      api_examp.c: In function `main':
      api_examp.c:19: warning: incompatible implicit declaration of built-in function `exit'
      Undefined symbols:
       "_ploticus_end", referenced from:
           _main in ccf1LGnB.o
       "_ploticus_execline", referenced from:
           _main in ccf1LGnB.o
           _main in ccf1LGnB.o
           _main in ccf1LGnB.o
           _main in ccf1LGnB.o
           _main in ccf1LGnB.o
           _main in ccf1LGnB.o
           _main in ccf1LGnB.o
           _main in ccf1LGnB.o
           _main in ccf1LGnB.o
           _main in ccf1LGnB.o
           _main in ccf1LGnB.o
           _main in ccf1LGnB.o
       "_ploticus_begin", referenced from:
           _main in ccf1LGnB.o
       "_ploticus_init", referenced from:
           _main in ccf1LGnB.o
       "_ploticus_arg", referenced from:
           _main in ccf1LGnB.o
       "_PL_do_x_button", referenced from:
           _main in ccf1LGnB.o
      ld: symbol(s) not found
      collect2: ld returned 1 exit status
      gustengrens-power-mac-g5:Programmering gustengren$


      Any one who knows where the ccf1LGnB.o is located. Should I add some more library, In case what.

      What is the difference between ploticus2 and ploticus2-nox. I understan that *-nox dont support X11 but does it mean that it contains its own graphics library for screen plots or is it only for data file formats like png.

    • Stephen Grubb
      Hello, I can t help with the mac compile issues but can confirm that the *-nox version has all references to X11 removed, and is only for generating png, etc.
      Message 2 of 3 , May 26 9:31 AM
      • 0 Attachment
        Hello, I can't help with the mac compile issues but can confirm that the *-nox version has all references to X11 removed, and is only for generating png, etc.

        Steve

        ________________________________________
        From: ploticus@yahoogroups.com [ploticus@yahoogroups.com] On Behalf Of gusten.gren [gustengren@...]
        Sent: Sunday, May 24, 2009 4:09 AM
        To: ploticus@yahoogroups.com
        Subject: [ploticus] Newbee: Ploticus on Mac OS 10.5.7 PPC G5

        Hello Mac OS C-programmers using ploticus
        Plotting graphs in C-code-programs. I have downloaded Ploticus via Fink.
        My path and library looks lika this.

        gustengrens-power-mac-g5:lib gustengren$ pwd
        /sw/lib
        gustengrens-power-mac-g5:lib gustengren$ ls -la libplot*
        -rw-r--r-- 1 root admin 594116 14 Jun 2008 libploticus.2.20.dylib
        lrwxr-xr-x 1 root admin 22 18 Maj 06:04 libploticus.2.dylib -> libploticus.2.20.dylib
        -rw-r--r-- 1 root admin 1210824 14 Jun 2008 libploticus.a
        lrwxr-xr-x 1 root admin 22 18 Maj 05:58 libploticus.dylib -> libploticus.2.20.dylib
        gustengrens-power-mac-g5:lib gustengren$

        When i try to compile api_examp.c I get the following result.

        gustengrens-power-mac-g5:Programmering gustengren$ cc -o test -L/sw/lib/libploticus.a -lz -lm -L/usr/X11/lib/libpng.la -L/usr/X11/lib/libX11.la api_examp.c
        api_examp.c: In function `main':
        api_examp.c:19: warning: incompatible implicit declaration of built-in function `exit'
        Undefined symbols:
        "_ploticus_end", referenced from:
        _main in ccf1LGnB.o
        "_ploticus_execline", referenced from:
        _main in ccf1LGnB.o
        _main in ccf1LGnB.o
        _main in ccf1LGnB.o
        _main in ccf1LGnB.o
        _main in ccf1LGnB.o
        _main in ccf1LGnB.o
        _main in ccf1LGnB.o
        _main in ccf1LGnB.o
        _main in ccf1LGnB.o
        _main in ccf1LGnB.o< br> _main in ccf1LGnB.o
        _main in ccf1LGnB.o
        "_ploticus_begin", referenced from:
        _main in ccf1LGnB.o
        "_ploticus_init", referenced from:
        _main in ccf1LGnB.o
        "_ploticus_arg", referenced from:
        _main in ccf1LGnB.o
        "_PL_do_x_button", referenced from:
        _main in ccf1LGnB.o
        ld: symbol(s) not found
        collect2: ld returned 1 exit status
        gustengrens-power-mac-g5:Programmering gustengren$

        Any one who knows where the ccf1LGnB.o is located. Should I add some more library, In case what.

        What is the difference between ploticus2 and ploticus2-nox. I understan that *-nox dont support X11 but does it mean that it contains its own graphics library for screen plots or is it only for data file formats like png.

        _
      • Platonides
        ... I think your compile line may be wrong. Try doing $ cc -o test /sw/lib/libploticus.a -lz -lm /usr/X11/lib/libpng.la /usr/X11/lib/libX11.la api_examp.c (is
        Message 3 of 3 , May 26 2:33 PM
        • 0 Attachment
          gusten.gren wrote:
          > When i try to compile api_examp.c I get the following result.
          >
          > gustengrens-power-mac-g5:Programmering gustengren$ cc -o test
          > -L/sw/lib/libploticus.a -lz -lm -L/usr/X11/lib/libpng.la
          > -L/usr/X11/lib/libX11.la api_examp.c


          I think your compile line may be wrong.
          Try doing
          $ cc -o test /sw/lib/libploticus.a -lz -lm /usr/X11/lib/libpng.la
          /usr/X11/lib/libX11.la api_examp.c
          (is really libpng.a into X11 folder?)

          or
          $ cc -o test -Llibploticus.a -lploticus -lz -lm -L/usr/X11/lib -lpng
          -lX11 api_examp.c
        Your message has been successfully submitted and would be delivered to recipients shortly.