Hi Chuck,

On Wed, Jan 29, 2014 at 07:12:10AM -0500, Chuck Hallenbeck wrote:
> Hi all,
> I retrieved and compiled the js24 sources, using the default instructions +
> "make install", apparently successfully (no fatal errors, numerous
> warnings)

Where did it install to?

> 
> I retrieved the master branch of edbrowse from git after Adam's pushes
> yesterday, but the compile failed when jsapi.h could not be found.
> 
> "locate" shows the existence of jsapi.h under /usr/include/js and also
> /usr/include/js-17.0, apparently from earlier versions from the arch
> repositories, and other jsapi.h files under the source directories for
> js24.
> 
> I'm wondering if I need to add a link somewhere to point to the new jsapi.h
> files?

No, simply set JS_CXXFLAGS and JSLIB to point to your new mozjs24 installation.
On my system, I install custom libs under ~/usr so this looks like:
make JS_CXXFLAGS=-I/home/adam/usr/include/mozjs-24 JSLIB="-L/home/adam/usr/lib 
-lmozjs-24"

You also have to have the custom library path (in my case /home/adam/usr/lib) 
on your LD_LIBRARY_PATH for this to work.

Alternatively, if you've installed under /usr/local (default I think):
make JS_CXXFLAGS=-I/usr/local/include/mozjs-24 JSLIB=-lmozjs-24

For debugging (assuming a debug build of mozjs already):
CFLAGS="-g -gdb" CXXFLAGS="-g -gdb" make <js_settings> STRIP=""

Where <js_settings> is the js set up required to make things compile.

Cheers,
Adam.
_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev

Reply via email to