Comments (13)
If I remember right, there are two versions of cxxtest: the one we use, and
a newer one which is not compatible with it. I'm guessing you installed
the new, incompatible one.
--linas
On 24 October 2012 17:47, Karl Sackett [email protected] wrote:
cmake produces this output:
-- Cxxtest was not found. Make sure CXXTEST_BIN_DIR is set.
The cxxtestgen executable is in /usr/bin, so I tried
CXXTEST_BIN_DIR=/usr/bin/ cmake ..
and got the same result.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/4.
from opencog.
The latest release is 4.0.3.
OSX: installed after downloading from github. No errors from cmake.
Debian Linux: installed the Debian package. Cmake can't find it. Removed the package and installed from the
github source. Cmake still can't find it whether CXXTEST_BIN_DIR is set or not.
from opencog.
opencog requires cxxtest version 3 and not version 4. The problem is that version 4 is not backwards-compatible with version 3, and no one has yet figured out how hard or easy it might be to move opencog to use cxxtest version 4. This would be an excellent beginner get-your-feet-wet project.
from opencog.
I found the problem and worked out a fix for it. It works for Debian, but I want to try it out on OS X next and then clean it up. I'll submit the pull request later this week.
from opencog.
On 25 November 2012 20:56, Karl Sackett [email protected] wrote:
I found the problem and worked out a fix for it.
What's the fix? small? big?
from opencog.
On 25 November 2012 21:07, Linas Vepstas [email protected] wrote:
On 25 November 2012 20:56, Karl Sackett [email protected] wrote:
I found the problem and worked out a fix for it.
What's the fix? small? big?
BTW, its OK to push to your private branch now, for review; just don't
issue a pull request, and it won't get merged until you are ready (i.e.
until you check in the remainings OSX pieces)
from opencog.
Here's the diff for a quick-and-dirty fix:
$ diff lib/FindCxxtest.cmake lib/FindCxxtest.cmake.orig
17c17
< FIND_PATH(CXXTEST_PYTHON_BIN_DIR cxxtestgen
---
> FIND_PATH(CXXTEST_PYTHON_BIN_DIR cxxtestgen.py
25c25
< SET(CXXTEST_GEN "${CXXTEST_PYTHON_BIN_DIR}/cxxtestgen")
---
> SET(CXXTEST_GEN "${CXXTEST_PYTHON_BIN_DIR}/cxxtestgen.py")
I guessing that since the earlier CxxTest release the Perl script was dropped and
the Python script was renamed 'cxxtestgen'.
I've since found that CxxTest has no installation scripts and I think the files have to
be installed manually. The changes I made to FindCxxtest.cmake are enough to
work under Debian Linux because the Debianized CxxTest package puts everything
where OpenCog can find it. So my fix and the Debian package should also work
under Ubuntu.
from opencog.
On Wed, Nov 28, 2012 at 12:03 PM, Karl Sackett [email protected]:
So my fix and the Debian package should also work under Ubuntu.
Great! I noticed that cxxtest 4.0.3 is packaged for Ubuntu 12.10 when I did
some early quantal testing.
http://packages.ubuntu.com/quantal/cxxtest
Did they make the same fixes as yours?
-dave
David Hart | +852 9875 1345
OpenCog Foundation | http://opencog.org
from opencog.
And after these changes, do the unit tests compile and mostly pass? Years
ago, when I last tried it, I got the impression that cxxtest 4.0 just
wasn't backward compatible with 3.0, and that we'd need a major revamp to
be able to use it.
from opencog.
anyway, I just merged a fix to the FindCxxtest.cmake file that should at least find the thing.
from opencog.
I've got cxxtest 4.0.3 installed and I'm getting the following errors
Generating ConfigUTest.cpp
/bin/sh: 1: --runner=ErrorPrinter: not found
make[3]: *** [tests/util/lru_cacheUTest.cpp] Error 127
make[2]: *** [tests/util/CMakeFiles/lru_cacheUTest.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
Generating LoggerUTest.cpp
/bin/sh: 1: --runner=ErrorPrinter: not found
make[3]: *** [tests/util/ConfigUTest.cpp] Error 127
make[2]: *** [tests/util/CMakeFiles/ConfigUTest.dir/all] Error 2
/bin/sh: 1: --runner=ErrorPrinter: not found
make[3]: *** [tests/util/LoggerUTest.cpp] Error 127
make[2]: *** [tests/util/CMakeFiles/LoggerUTest.dir/all] Error 2
[ 45%] Built target feature_selection
make[1]: *** [CMakeFiles/test.dir/rule] Error 2
make: *** [test] Error 2
from opencog.
Nevermind, this comes from another bug I'm trying to fix. When cmake is rerun then CXXTEST_GEN is set to cxxtestgen.py. I've fixed it and will commit it soon.
from opencog.
On 10 December 2012 06:51, ngeiswei [email protected] wrote:
Nevermind, this comes from another bug I'm trying to fix. When cmake is
rerun then CXXTEST_GEN is set to cxxtestgen.py. I've fixed it and will
commit it soon.
Hmm. I thought the new CMakefiles should have worked, although you'd
probably have to remove CMakeChache.txt to get a clean build with no cached
grunge left over.
--linas
from opencog.
Related Issues (20)
- cannot find -lBoost::filesystem HOT 6
- Ghosts unit tests failing. HOT 12
- No Relex2Logic output is generated after nlp-parse HOT 11
- Wrong type of atoms returned when using 'get_atoms_by_type' in Python HOT 6
- Opencog repo: Cannot find lBoost::filesystem, lBoost::system HOT 17
- [RuntimeError] Can't get the atomspace that guile is using. python3 bot HOT 7
- Sureal examples return Error HOT 1
- LgConnector is always interpreted as a node in Guile HOT 5
- NOP
- Unbound Variable: TypeSet HOT 5
- wont compile will these errors HOT 2
- unable to build HOT 5
- opencog/nlp/types/atom_types.h: No such file or directory HOT 4
- nlp-types build error HOT 1
- fatal error: opencog/nlp/types/atom_types.h: No such file or directory HOT 3
- Building opencog error HOT 1
- FuzzyUTest fails to build looking for AtomTable HOT 8
- Error when trying to set-relex-server-host from guile shell or cogserver scm shell. (Path to running GHOST) HOT 7
- New issue HOT 2
- [Website] The blog is down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencog.