diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/module/Module.cpp | 3 | ||||
-rwxr-xr-x | src/progs/ingen/ingen.dev | 5 | ||||
-rw-r--r-- | src/progs/ingen/main.cpp | 6 | ||||
-rwxr-xr-x | src/set_dev_environment.sh | 8 |
4 files changed, 8 insertions, 14 deletions
diff --git a/src/libs/module/Module.cpp b/src/libs/module/Module.cpp index 8f3d6e81..8d1399b1 100644 --- a/src/libs/module/Module.cpp +++ b/src/libs/module/Module.cpp @@ -78,7 +78,8 @@ load_module(const string& name) cerr << "Loaded module \"" << name << "\" from " << INGEN_MODULE_DIR << endl; return SharedPtr<Glib::Module>(module); } else { - cerr << "Unable to load module \"" << name << "\" (try setting INGEN_MODULE_PATH)." << endl; + cerr << "Unable to load module \"" << name << "\", is Ingen installed?" << endl + << "Use ./ingen.dev to run from the source tree." << endl; return SharedPtr<Glib::Module>(); } } diff --git a/src/progs/ingen/ingen.dev b/src/progs/ingen/ingen.dev new file mode 100755 index 00000000..023eba7e --- /dev/null +++ b/src/progs/ingen/ingen.dev @@ -0,0 +1,5 @@ +#!/usr/bin/env sh + +export INGEN_MODULE_PATH="`pwd`/../../libs/engine/.libs:`pwd`/../../libs/serialisation/.libs:`pwd`/../../libs/gui/.libs:`pwd`/../../libs/client/.libs:`pwd`/../../bindings/.libs" +export INGEN_GLADE_PATH="`pwd`/../../libs/gui/ingen_gui.glade" +./ingen $@ diff --git a/src/progs/ingen/main.cpp b/src/progs/ingen/main.cpp index 64cfd36b..5be5a8d3 100644 --- a/src/progs/ingen/main.cpp +++ b/src/progs/ingen/main.cpp @@ -109,8 +109,7 @@ main(int argc, char** argv) engine_module.reset(); } } else { - cerr << "Unable to load engine module, engine not loaded." << endl; - cerr << "Try using src/set_dev_environment.sh, or setting INGEN_MODULE_PATH." << endl; + cerr << "Unable to load engine module." << endl; } } @@ -132,7 +131,6 @@ main(int argc, char** argv) use_osc = true; } else { cerr << "Unable to load ingen_client module, aborting." << endl; - cerr << "Try using src/set_dev_environment.sh, or setting INGEN_MODULE_PATH." << endl; return -1; } } @@ -186,7 +184,6 @@ main(int argc, char** argv) } else { cerr << "Unable to load serialisation module, aborting." << endl; - cerr << "Try using src/set_dev_environment.sh, or setting INGEN_MODULE_PATH." << endl; return -1; } } @@ -204,7 +201,6 @@ main(int argc, char** argv) run(argc, argv, world); } else { cerr << "Unable to find GUI module, GUI not loaded." << endl; - cerr << "Try using src/set_dev_environment.sh, or setting INGEN_MODULE_PATH." << endl; } } diff --git a/src/set_dev_environment.sh b/src/set_dev_environment.sh deleted file mode 100755 index 63031123..00000000 --- a/src/set_dev_environment.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env sh - -# Source this file (e.g ". set_dev_environment.sh") to set up a development -# environment so dynamic modules in the source tree will be found and the -# executables can be run directly, or in gdb/valgrind/etc. - -export INGEN_MODULE_PATH="`pwd`/libs/engine/.libs:`pwd`/libs/serialisation/.libs:`pwd`/libs/gui/.libs:`pwd`/libs/client/.libs:`pwd`/bindings/.libs" -export INGEN_GLADE_PATH="`pwd`/libs/gui/ingen_gui.glade" |