aboutsummaryrefslogtreecommitdiffstats
path: root/src/machina.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-12-08 23:27:31 +0000
committerDavid Robillard <d@drobilla.net>2007-12-08 23:27:31 +0000
commit61e1a1a8a5b4934d2bed752967d3cf2446946745 (patch)
tree7d68970a39bae784ef04936f3dce23e4da50a7a3 /src/machina.cpp
parent8b186d26598af398c6bd8f21933b548eccff1edd (diff)
downloadmachina-61e1a1a8a5b4934d2bed752967d3cf2446946745.tar.gz
machina-61e1a1a8a5b4934d2bed752967d3cf2446946745.tar.bz2
machina-61e1a1a8a5b4934d2bed752967d3cf2446946745.zip
Fix compilation w/o Eugene.
git-svn-id: http://svn.drobilla.net/lad/machina@966 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/machina.cpp')
-rw-r--r--src/machina.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/machina.cpp b/src/machina.cpp
index ae75313..dfbd20c 100644
--- a/src/machina.cpp
+++ b/src/machina.cpp
@@ -15,6 +15,8 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#include CONFIG_H_PATH
+
#include <iostream>
#include <signal.h>
#include "machina/Action.hpp"
@@ -24,7 +26,9 @@
#include "machina/Machine.hpp"
#include "machina/MidiAction.hpp"
#include "machina/Node.hpp"
-#include "machina/Problem.hpp"
+#ifdef HAVE_EUGENE
+ #include "machina/Problem.hpp"
+#endif
using namespace std;
using namespace Machina;
@@ -61,19 +65,15 @@ main(int argc, char** argv)
Redland::World rdf_world;
Engine engine(driver, rdf_world);
- /*// FIXME: Would be nice if this could take URIs on the cmd line
+ /* FIXME: Would be nice if this could take URIs on the cmd line
char* uri = (char*)calloc(6 + strlen(argv[1]), sizeof(char));
strcpy(uri, "file:");
strcat(uri, argv[1]);
engine.load_machine(uri);
free(uri);
-*/
+ */
engine.load_machine(argv[1]);
- // FIXME: temporary hack
- SharedPtr<Problem> problem(new Problem("./gui/target.mid"));
- cout << "Fitness: " << problem->fitness(*engine.machine().get()) << endl;
-
driver->attach("machina");
signal(SIGINT, catch_int);