From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 121CE77894 for ; Wed, 29 Jan 2014 05:44:36 -0800 (PST) Received: by mail-wg0-f48.google.com with SMTP id x13so3568249wgg.27 for ; Wed, 29 Jan 2014 05:44:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=zC8GG7Jj3SYh9WsRxXUx7s7hXne3EyeaWtBK1U+bJhM=; b=knhgiqI+PlTiDYcto7UJfm7ypt96Dk0CPsrQ0lgVWgbMtbwSetiXscdTpN2nllEq/k Io2qUg1O0gjQXc8Zkg6w/FN/enyAMlPsg+wVYh1cBvxeqTZOYuOABpTXARKIJeGGFAmi 3CR2zZACgvEJKq5CfMqA4GL3WYyxv0KN1k/ElZWbqzveCKkcQLgVf0W6F/zKyRBBj7Yp pzniR89m5ypR4cxzi6j7kQNJgm/mLC0NGOaPbt0qrVqr1HdVjoymEYTXEVhbga3j1p8m iNXNRTM+aEktz+a23ee5YhdkEyG9P8HGl6GhrIzqFjZCQ0vkrpLPQoACcn2crQzUQlGN nBag== X-Received: by 10.180.74.200 with SMTP id w8mr19365165wiv.58.1391003053043; Wed, 29 Jan 2014 05:44:13 -0800 (PST) Received: from toaster.adamthompson.me.uk (toaster.adamthompson.me.uk. [2001:8b0:1142:9042::2]) by mx.google.com with ESMTPSA id ev4sm5502639wib.1.2014.01.29.05.44.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 29 Jan 2014 05:44:12 -0800 (PST) Date: Wed, 29 Jan 2014 13:44:09 +0000 From: Adam Thompson To: Chuck Hallenbeck Message-ID: <20140129134409.GG7404@toaster.adamthompson.me.uk> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Edbrowse Development Subject: Re: [Edbrowse-dev] compiling edbrowse with js24 X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.17 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jan 2014 13:44:37 -0000 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 STRIP="" Where is the js set up required to make things compile. Cheers, Adam.