From: ztt <ztt...@12...> - 2011-07-14 08:06:12
|
Dear Frank, I installed pgplot in mesa/utils/pgplot again, and the demos work well. Then I change the .bashrc like 'export PGPLOT_DIR=~/mesa/utils/pgplot' and sourced it. but I came back to mesa directory and do './mk', it gave me this error: home/ztt/mesa/star building star package. make: `libstar.a' is up to date. make: `libstar.a' is up to date. gfortran -fno-range-check -fopenmp -o ../star \ run_star_extras.o run_star.o run.o -L../../make -lstar -L../../../lib -lpulse -ldiffusion -lionization -lmlt -latm -lkaro -lcolors -leos -lkap -lweak -lnet -lscreen -lrates -lreaclib -lneu -lchem -linterp_2d -linterp_1d -lnum -lutils -lalert -lconst -lmtx -lmesalapack -lmesablas -L~/mesa/utils/pgplot -lpgplot -L/usr/X11R6/lib -lX11 /usr/bin/ld: cannot find -lpgplot collect2: ld returned 1 exit status make: *** [star] Error 1 FAILED Do you think it's some problem with the environment variables I set?? Thank you a lot. Best wishes, Tingtao At 2011-07-12 17:36:36,"Frank Timmes" <fx...@ma...> wrote: dear tingtao, cd mesa/utils tar -xjf pgplot.tbz cd pgplot and follow the README fxt On Jul 12, 2011, at 1:06 AM, ztt wrote: 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 ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2_______________________________________________ mesa-users mailing list mes...@li... https://lists.sourceforge.net/lists/listinfo/mesa-users |