gnuplot-JS icon indicating copy to clipboard operation
gnuplot-JS copied to clipboard

Trouble compling gnuplot-JS commit 9a43173b with emscripten commit 1a007b16

Open amartyo opened this issue 12 years ago • 1 comments

Hi,

I'm having trouble compiling gnuplot with emscripten following the instructions in your README file.

Here is the output of running 'emconfigure ./configure --without-readline --without-x --disable-h3d-quadtree --disable-wxwidgets', which is the first line of your 'em_make' shell script.

http://pastebin.com/tCpGxbYb

Here is the output of running 'emmake make', which is the next uncommented line of the 'em_make' shell script.

http://pastebin.com/NkTgz61z

FYI, I had the same errors trying an older version of emscripten too, I'm not sure exactly which commit, it might have been 1.7.1.

I'm trying to learn how to port a program to emscripten, and of all the various programs listed as ported, gnuplot-JS had clear instructions for taking the original source and creating the end javascript.

Unfortunately, I've run into the errors listed above and have no idea how to go about fixing them.

Any help you can provide in fixing these errors will be really great. :)

amartyo avatar Dec 12 '13 12:12 amartyo

Hi, sorry for the late reply... I will try to reproduce this soon. The warning seems to be serious, WARNING root: [33m-I or -L of an absolute path "-I/usr/include" encountered. If this is to a local system header/library, it may cause problems (local system files make sense for compiling natively on your system, but not necessarily to JavaScript).

This could be the source of trouble. Do you have any idea how that got in there? Try to get rid of "-I/usr/include", because as the warning states this usually does not make sense.

Cheers, C

chhu avatar Jan 28 '14 16:01 chhu