Hi,
I am trying to compile PLPlot as a static library and link it into my project. I am running UBuntu 9.04 and downloaded PLPlot 5.9.5. More specifically I am trying the link in the PLPlot C++ libraries.
I compiled PLPlot with the help of CMake after setting the BUILD_SHARED_LIBS flag to OFF.
after compiling I got the following libraries
libcsirocsa.a libcsironn.a libplplotcxxd.a libplplotd.a libqsastime.a
I wrote a test program and tried to link in the libraries using
l
g++ -o plot1 plottest.cpp libplplotcxxd.a libplplotd.a ibcsirocsa.a libcsironn.a libqsastime.a
This popped out a bunch of error messages and I was forced to link in the X11 and pThread libraries. After this I was able to succesfully compile and link. However when I tried to run the program , no matter which device I selected I got the following errors
Hi,
I am trying to compile PLPlot as a static library and link it into my project. I am running UBuntu 9.04 and downloaded PLPlot 5.9.5. More specifically I am trying the link in the PLPlot C++ libraries.
I compiled PLPlot with the help of CMake after setting the BUILD_SHARED_LIBS flag to OFF.
after compiling I got the following libraries
libcsirocsa.a libcsironn.a libplplotcxxd.a libplplotd.a libqsastime.a
I wrote a test program and tried to link in the libraries using
l
g++ -o plot1 plottest.cpp libplplotcxxd.a libplplotd.a ibcsirocsa.a libcsironn.a libqsastime.a
This popped out a bunch of error messages and I was forced to link in the X11 and pThread libraries. After this I was able to succesfully compile and link. However when I tried to run the program , no matter which device I selected I got the following errors
vavilala@sai-laptop:~/temp$ ./plot1
PLplot Library Version:5.9.5
Plotting Options:
< 1> xwin X-Window (Xlib)
< 2> ps PostScript File (monochrome)
< 3> psc PostScript File (color)
< 4> xfig Xfig file
< 5> null Null device
< 6> mem User-supplied memory device
< 7> svg Scalable Vector Graphics (SVG 1.1)
Enter device number or keyword: 1
*** PLPLOT WARNING ***
Unable to open cmap0 file cmap0_default.pal
*** PLPLOT WARNING ***
Unable to open cmap0 file cmap0_default.pal
*** PLPLOT WARNING ***
Unable to open cmap1 .pal file cmap1_default.pal
*** PLPLOT ERROR, IMMEDIATE EXIT ***
Unable to either (1) open/find or (2) allocate memory for the font file
Program aborted
Am I missing linking in some other library? Do I need to enable any other flags to generate a missing library.
Any help would be much appreciated.
Thanks
Praveen