I want to create a Brl-cad project using Clojure programming language in which I can create a database and some solid figure like sphere.I have written the code using ``sh`` clojure function but getting error. The ``sh`` function is working fine as I have checked in repl.
This is the code I'm using:
(ns brl-cad.core
(:require [clojure.java.shell :refer [sh]]))
(defn example []
(println (:out (sh "-c" "./mged" "test.g"))))
I have added the mged path also: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:Applications/BRL-CAD\ \:\ MGED\ 7.24.0.app/Contents/Resources/rel-7.24.0/bin:/opt/X11/bin
Error which I'm getting: Execution error (IOException) at java.lang.ProcessImpl/forkAndExec (ProcessImpl.java:-2).
error=2, No such file or directory
I am using Mac OSX.
I'm having problem with creating database and solid figure like sphere.
Thank You