From: ztt <ztt...@12...> - 2011-07-12 08:06:53
|
Dear Mesa users, I'm trying to get pgstar working for onscreen snapshot plot. Since my laptop is running with Ubuntu11.04, I downloaded the package and installed pgplot5.2 according to T.J.Pearson's instructions. So I have /usr/local/src/pgplot directory which contains everything extracted from the downloaded pgplot5.2 package, and /usr/local/pgplot directory where I installed it and compiled the files(so now it also contains demos and all the *.o files). I also set the environment variables in ~/.bashrc like this: export PGPLOT_DIR=/usr/local/pgplot export PGPLOT_DEV=/Xserve Then in mesa/utils/makefile_header I also set this : # for Ubuntu, Philip Pinto found these libraries to be necessary: LOAD_PGPLOT = -L${PGPLOT_DIR} -lpgplot -lX11 -lxcb -lXau -lXdmcp -lXext -lz But when I do './clean' then './mk' in the mesa directory, it still report errors: (below is only a small fraction of the report, others are similar) /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:424: undefined reference to `pgunsa_' ../../make/libstar.a(pgstar_trho_profile.o): In function `do_kap_regions': /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:237: undefined reference to `pgsave_' /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:239: undefined reference to `pgsci_' /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:240: undefined reference to `pgsls_' /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:251: undefined reference to `pgsci_' /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:258: undefined reference to `pgsci_' /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:259: undefined reference to `pgmove_' /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:260: undefined reference to `pgdraw_' /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:261: undefined reference to `pgdraw_' /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:262: undefined reference to `pgdraw_' /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:263: undefined reference to `pgdraw_' /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:264: undefined reference to `pgdraw_' ../../make/libstar.a(pgstar_trho_profile.o):/home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:265: more undefined references to `pgdraw_' follow ../../make/libstar.a(pgstar_trho_profile.o): In function `do_kap_regions': /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:268: undefined reference to `pgsci_' /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:277: undefinedan reference to `pgsci_' /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:279: undefined reference to `pgsci_' /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:286: undefined reference to `pgsci_' /home/ztt/mesa/star/make/../private/pgstar_trho_profile.f:287: undefined reference to `pgsls_' Do you have any experience about this problem? I don't know if this is about the manual installation of pgplot. Thank you a lot. Best wishes, Tingtao |