Giter Club home page Giter Club logo

Comments (13)

linas avatar linas commented on May 18, 2024

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.

karlsackett avatar karlsackett commented on May 18, 2024

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.

linas avatar linas commented on May 18, 2024

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.

karlsackett avatar karlsackett commented on May 18, 2024

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.

linas avatar linas commented on May 18, 2024

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.

linas avatar linas commented on May 18, 2024

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.

karlsackett avatar karlsackett commented on May 18, 2024

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.

githart avatar githart commented on May 18, 2024

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.

linas avatar linas commented on May 18, 2024

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.

linas avatar linas commented on May 18, 2024

anyway, I just merged a fix to the FindCxxtest.cmake file that should at least find the thing.

from opencog.

ngeiswei avatar ngeiswei commented on May 18, 2024

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.

ngeiswei avatar ngeiswei commented on May 18, 2024

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.

linas avatar linas commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.