|
From: <pl...@pi...> - 2012-04-24 20:25:27
|
On 04/24/12 20:54, Ethan A Merritt wrote: > On Monday, April 23, 2012 05:19:04 pm pl...@pi... wrote: >> Hi, >> >> I am buildin 4.6.0 for embedded and it seems to work fine except for >> mouse features on svg, where I'm finding it is inserting links to the >> build directory structure not the target. >> >> using >> >> set term svg mouse >> >> I get the following at the top of my svg >> >> <script type="text/javascript" >> xlink:href="/embedded_build/root/usr/share/gnuplot/4.6/js/gnuplot_svg.js"/> >> >> ARCH=arm ./configure --host=arm-unknown-linux-gnueabi --without-x >> --without-pdf \ >> --without-cairo --disable-wxwidgets --without-x --without-tutorial \ >> --prefix=/embedded_build/root/usr --without-lua >> >> >> >> Can you give a hint on what options/flags I need to set before calling >> make etc so that gnuplot creates a standard /usr/share/ href here. > > It is taken from GNUPLOT_JS_DIR, which is defined in .../src/Makefile.am > > # Default javascript location > GNUPLOT_JS_DIR=$(pkgdatadir)/$(VERSION_MAJOR)/js > > Some autoconf magic converts $(pkgdatadir) into what it thinks is the > correct target directory for installation. I would have thought that if > it gets this one wrong it would similarly get all other instances of > $(pkgdatadir) wrong. Are the *.js files themselves getting installed > in this same incorrect place, or do they end up somewhere else? > > Ethan > In fact what would be far more convinient for this xml type of terminal would be to include the js file (optionally) inside the svg/canvas xml document. I thought I submitted some code a year or two ago to do just that by inserting the js in a CDATA block or something, This may not always be a good choice since just gnuplot_svg.js is about 6kB. However, my svg is about 37k so that's acceptable for my use. Since I quite often email these to colleges, it would be much easier to send one self contained file. These days 6k is a small price to pay for that convenience. regards, Peter. |