From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ralf Mattes Newsgroups: gmane.lisp.guile.user Subject: Re: Solid modeling in Guile Date: Sun, 21 Aug 2016 13:54:32 +0200 Message-ID: <20160821115432.a2rz3j622lxqzdpy@seid-online.de> References: <20160820132337.ithrhyc4s53nrdmh@seid-online.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1471783281 18712 195.159.176.226 (21 Aug 2016 12:41:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 21 Aug 2016 12:41:21 +0000 (UTC) User-Agent: Mutt/1.6.2-neo (2016-07-23) Cc: guile-user@gnu.org To: Matthew Keeter Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Aug 21 14:41:17 2016 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bbS3w-0004Th-FG for guile-user@m.gmane.org; Sun, 21 Aug 2016 14:41:16 +0200 Original-Received: from localhost ([::1]:36546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbS3s-0000Lx-Ia for guile-user@m.gmane.org; Sun, 21 Aug 2016 08:41:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbS3W-0000Lp-3w for guile-user@gnu.org; Sun, 21 Aug 2016 08:40:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbS3Q-0003sk-UZ for guile-user@gnu.org; Sun, 21 Aug 2016 08:40:49 -0400 Original-Received: from mail.seid-online.de ([5.199.139.24]:54817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbS3Q-0003sQ-NX for guile-user@gnu.org; Sun, 21 Aug 2016 08:40:44 -0400 Original-Received: from ralf by mail.seid-online.de with local (Exim 4.87) (envelope-from ) id 1bbRKi-00066i-AL; Sun, 21 Aug 2016 13:54:32 +0200 Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 5.199.139.24 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:12851 Archived-At: On Sat, Aug 20, 2016 at 10:26:53AM -0400, Matthew Keeter wrote: > I added a cmath include and qualified isnan with std::, > try it out now and see if that fixes it (commit 61ce8e1). Yes, it does fix the compilation problem. There seems to be a problem with out-of-tree building (or isn't that supported by ninja?). When I start the build from /build64/ everything compiles fine but the ao-guile script ends up in /bin and _not_ in /build64/bin where it should be ... Strangely, libao.so ends up in the right place. When I run the program I the program finishes with the following line: $ GUILE_AUTO_COMPILE=0 bin/ao-guile .... under certain conditions; type `,show c' for details. Enter `,help' for help. Ao> guile-2.0: Couldn't find current GLX or EGL context. When I set GUILE_AUTO_COMPILE=1 that same error shows up, but already during compilation (?!). $ GUILE_AUTO_COMPILE=1 bin/ao-guile ... ;;; compiling /usr/local/src/LISP/ao/bin/../bind/guile/ao/shapes.scm guile-2.0: Couldn't find current GLX or EGL context. HTH RalfD > -Matt > > On Aug 20, 2016, at 9:23 AM, Ralf Mattes wrote: > > > On Thu, Aug 18, 2016 at 05:44:46PM -0400, Matthew Keeter wrote: > >> Hi Guile-folks, > >> > >> I wrote a computer-aided design (CAD) tool that you may find interesting. > >> > >> It’s a solid modeling tool that uses Guile scripts to define objects (and > >> constructive solid geometry + functional representations under the hood). > >> > >> Project page: http://www.mattkeeter.com/projects/ao/ > >> Source: https://github.com/mkeeter/ao > >> > >> I’d love feedback – Scheme is relatively new to me, so I’m sure there are > >> more elegant ways to accomplish a lot of what the code implements. > > > > > > Build fails over here: > > > > ../kernel/src/eval/evaluator.cpp: In function ‘Interval clause(Opcode, const Interval&, const Interval&)’: > > ../kernel/src/eval/evaluator.cpp:805:36: error: ‘isnan’ was not declared in this scope > > return (isnan(a.lower()) || isnan(a.upper())) ? b : a; > > ^ > > > > This is with: > > > > /usr/bin/c++ --version > > g++-5.real (Debian 5.4.0-6) 5.4.0 20160609 > > > > and /usr/include/c++/5/cmath from the package libstdc++-5-dev:amd64 > > on a Debian Testing system. > > > > But it looks very nice > > > > > > Cheers, Ralf Mattes > > > >> -Matt > >