Search the web
Sign In
New User? Sign Up
ploticus · ploticus software support
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
libploticus compilation and pyPloticus - fixing the libploticus-so M   Message List  
Reply | Forward Message #2204 of 2231 |
pyPloticus is a python wrapper for libploticus. On my Mandriva 2009.1 system I
was having trouble with an undefined symbol error after compiling libploticus
2.41 and then installing pyPloticus. It all compiled and installed OK but on
importing the python module from inside the python interpreter I would get and
"undefined symbol PLGG_pixpt" error.

A small change to the ploticus Makefile has fixed this. As Steve says in his
Makefile the shared library part of the Makefile hasn't been tested - well on
Mandriva 2009.1 at least, it now has.

The key changes to Makefile are

1. Select option 5 by commenting out line 28 (option 1) and uncommenting lines
74 to 78.
2. Lines 223 to 226 should look like this
libploticus-static: $(OBJ) api.o gd00files gd16files
$(RMCOM) libploticus.$(LIBEXT)
$(ARCOM) libploticus.$(LIBEXT) $(OBJ) api.o $(GD16) $(GD)
3. Add $(FPIC) to the compilation of gd00files and gd16files
gd00files:
$(CC) $(FPIC) -I./gd13 -I./ -c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c
gdfontt.c
echo "done with gd00files" > gd00files
gd16files:
$(CC) -c $(WALL) $(FPIC) grgd.c -DGD16 -DPLOTICUS -I./ -I./gd16 -o grgd16.o
$(CC) -c $(CFLAGS) $(FPIC) devstuff.c -DGD16 -o devstuff16.o
$(CC) -c $(FPIC) -I./gd16 -I./ $(GD16H) gd16.c gd_io.c gd_io_dp.c gd_io_file.c
gd_png.c
echo "done with gd16files" > gd16files

4. Now "make clean" then "make"
5. Copy your squeaky new libploticus.a file to /usr/lib (or if like me you have
a 64 bit machine then /usr/lib64) but in the process rename the file to
libploticus.so.0.0 (you have actually created a shared library but I think
pyPloticus compilation expects a file with a ".a" extension).
6. Run ldconfig -n /usr/lib (ldconfig -n /usr/lib64 for 64 bitters)
7. You can now go to pyPloticus and first edit the setup.py file changing the
plot_src_path to point to the location of the newly created libploticus.a file
(something like plot_src_path="../pl241src/src/")
8. Run "python setup.py install"

You should now have it all set to go.
Testing
1. Start the python interpreter "python"
2. try to import the ploticus module "import ploticus"
You should get no errors at this point
3. You can now try the pyPloticus examples "python plot.py graph.html"
I get some errors listed but the graph srcc.png still get produced.

Hope this help someone please tell me if you have other errors of if this works
for you.




Wed Jul 8, 2009 1:08 pm

shlinuxau
Offline Offline
Send Email Send Email

Forward
Message #2204 of 2231 |
Expand Messages Author Sort by Date

pyPloticus is a python wrapper for libploticus. On my Mandriva 2009.1 system I was having trouble with an undefined symbol error after compiling libploticus...
shlinuxau
Offline Send Email
Jul 8, 2009
4:58 pm

Thanks! I'll include these notes, and the FPIC Makefile mods in the next release. -Steve ________________________________________ From:...
Stephen Grubb
Stephen.Grubb@...
Send Email
Jul 15, 2009
5:58 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help