opencog / opencog-nix

Build definitions for the NIX package manager
7 stars 4 forks source link

[opencog] CogServer module paths are not correct #30

Closed Radivarig closed 5 years ago

Radivarig commented 5 years ago

Moving here from #28

Radivarig commented 5 years ago

Adding default paths in CogServer.cc:

+        module_paths.push_back("../../opencog/cogserver/server/");
+        module_paths.push_back("../../opencog/cogserver/shell/");

seems to work for ShellUTest.

linas commented 5 years ago

That will find the modules, when they are in the build-tree. But on non-nix systems, that is not the install location.

what's $CWD? is it enough to say

module_paths.push_back("./server/");
module_paths.push_back("./shell/");
Radivarig commented 5 years ago

I figured now that these are not needed when LD_LIBRARY_PATH is extended with location of *.so files that are produced by the build. As I did in postBuild phase for atomspace here, I added it here as well for some later tests to work. So, changing CogServer.cc is not necessary.

cwd was: build/tests/server without any *.so files.