Thread: [Cppunit-devel] cppunit2 does not compile
Brought to you by:
blep
|
From: CppUnit d. m. l. <cpp...@li...> - 2006-08-24 18:09:39
|
Hi!
I just wanted to build cppunit2. But there seems to be something
missing. I tried with the build instructions in thewiki but they are
wrong :-(
With this I get:
~/src/cvs/cppunit2 $ python scons.py platform=linux-gcc
python: can't open file 'scons.py': [Errno 2] No such file or directory
So I did this:
~/src/cvs/cppunit2 $ python sconstruct platform=linux-gcc
Traceback (most recent call last):
File "sconstruct", line 9, in ?
options = Options()
NameError: name 'Options' is not defined
So I did:
~/src/cvs/cppunit2 $ scons platform=linux-gcc
scons: Reading SConscript files ...
Building using PLATFORM = linux-gcc
scons: *** No tool named 'srcdist': No module named srcdist
File "sconstruct", line 41, in ?
But as you can see, none of it worked :-(
So please tell me how to build cppunit2.
Thanks a lot, Fabian
|
|
From: CppUnit d. m. l. <cpp...@li...> - 2006-08-28 21:15:29
|
Hi!
(somehow this message did not get through so here once again)
I just wanted to build cppunit2. But there seems to be something
missing. I tried with the build instructions in thewiki but they are
wrong :-(
With this I get:
~/src/cvs/cppunit2 $ python scons.py platform=linux-gcc
python: can't open file 'scons.py': [Errno 2] No such file or directory
So I did this:
~/src/cvs/cppunit2 $ python sconstruct platform=linux-gcc
Traceback (most recent call last):
File "sconstruct", line 9, in ?
options = Options()
NameError: name 'Options' is not defined
So I did:
~/src/cvs/cppunit2 $ scons platform=linux-gcc
scons: Reading SConscript files ...
Building using PLATFORM = linux-gcc
scons: *** No tool named 'srcdist': No module named srcdist
File "sconstruct", line 41, in ?
But as you can see, none of it worked :-(
So please tell me how to build cppunit2.
Thanks a lot, Fabian
|
|
From: CppUnit d. m. l. <cpp...@li...> - 2006-09-05 07:42:01
|
CppUnit development mailing list wrote:
> Hi!
>
> (somehow this message did not get through so here once again)
>
> I just wanted to build cppunit2. But there seems to be something
> missing. I tried with the build instructions in thewiki but they are
> wrong :-(
>
> With this I get:
>
> ~/src/cvs/cppunit2 $ python scons.py platform=linux-gcc
> python: can't open file 'scons.py': [Errno 2] No such file or
> directory
Did you download and unpacked scons-local package as indicated ? The error
message seems to indicate you did not...
> So I did this:
>
> ~/src/cvs/cppunit2 $ python sconstruct platform=linux-gcc
> Traceback (most recent call last):
> File "sconstruct", line 9, in ?
> options = Options()
> NameError: name 'Options' is not defined
>
This one is wrong, sconstruct is not a python executable.
> So I did:
>
>
> ~/src/cvs/cppunit2 $ scons platform=linux-gcc
> scons: Reading SConscript files ...
> Building using PLATFORM = linux-gcc
>
> scons: *** No tool named 'srcdist': No module named srcdist
> File "sconstruct", line 41, in ?
Do you have the following file in your cvs tree ?
scons-tools/srcdist.py
What scons version are you using ? Here is how to get it:
---
E:\prg\vc\Lib\opentest>python scons.py -v
SCons by Steven Knight et al.:
script: v0.96.92.D002, 2006/04/11 07:39:43, by knight on roxbury
engine: v0.96.92.D002, 2006/04/11 07:39:43, by knight on roxbury
Copyright (c) 2001, 2002, 2003, 2004 The SCons Foundation
---
The directory was added a few weeks ago in CVS.
Baptiste.
>
>
> But as you can see, none of it worked :-(
>
> So please tell me how to build cppunit2.
>
> Thanks a lot, Fabian
---
Baptiste Lepilleur <bl...@us...>
CppUnit maintainer
OpenTest and CppUnit 2 developer.
|
|
From: CppUnit d. m. l. <cpp...@li...> - 2006-09-05 21:19:07
|
Hi!
Thanks for your reply.
On Tue, 2006-09-05 at 09:42 +0200, CppUnit development mailing list
wrote:
> Did you download and unpacked scons-local package as indicated ? The error
> message seems to indicate you did not...
> The directory was added a few weeks ago in CVS.
No I did not download the scons-local package, I thought this is only
necessary if you don't have scons installed at all.
So I now downloaded it and it starts compiling, but now I have a new
error:
g++ -o buildscons/linux-gcc/src/cpputtest/main.o -c -DCPPTL_NO_AUTOLINK -Iinclude -I. src/cpputtest/main.cpp
In file included from include/cpptl/smallmap.h:4,
from src/cpputtest/smallmaptest.h:4,
from src/cpputtest/main.cpp:10:
include/cpptl/_stlimpl.h: In function `void CppTL::Impl::copy_with_construct_value(OutputIt, unsigned int, const ValueType&)':
include/cpptl/_stlimpl.h:115: error: `value' is not a type
In file included from src/cpputtest/smallmaptest.h:4,
from src/cpputtest/main.cpp:10:
include/cpptl/smallmap.h: At global scope:
include/cpptl/smallmap.h:177: error: `Item' was not declared in this scope
Any ideas?
I have scons 0.96.1 installed and now I unpacked scons-local-0.96.92
and latest cvs update from today.
Thanks, Fabian
|
|
From: CppUnit d. m. l. <cpp...@li...> - 2006-09-06 17:35:29
|
CppUnit development mailing list wrote: > Hi! > > Thanks for your reply. > > On Tue, 2006-09-05 at 09:42 +0200, CppUnit development mailing list > wrote: > >> Did you download and unpacked scons-local package as indicated ? The >> error message seems to indicate you did not... >> The directory was added a few weeks ago in CVS. > > No I did not download the scons-local package, I thought this is only > necessary if you don't have scons installed at all. This should work, but change between Scons version are significant (in terms of feature). I think I'll add a check for a minimum Scons version. > So I now downloaded it and it starts compiling, but now I have a new > error: > > g++ -o buildscons/linux-gcc/src/cpputtest/main.o -c > -DCPPTL_NO_AUTOLINK -Iinclude -I. src/cpputtest/main.cpp > In file included from include/cpptl/smallmap.h:4, > from src/cpputtest/smallmaptest.h:4, > from src/cpputtest/main.cpp:10: > include/cpptl/_stlimpl.h: In function `void > CppTL::Impl::copy_with_construct_value(OutputIt, unsigned int, const > ValueType&)': include/cpptl/_stlimpl.h:115: error: `value' is not a > type > In file included from src/cpputtest/smallmaptest.h:4, > from src/cpputtest/main.cpp:10: > include/cpptl/smallmap.h: At global scope: > include/cpptl/smallmap.h:177: error: `Item' was not declared in this > scope > > > Any ideas? Yes, I just fixed that one yesterday. I had to use Comeau C++ to get a decent error message though (my version of gcc provided useless one, unlike yours) . Watch out for change in CVS for include/cpptl/_stlimp.h and include/cpptl/smallmap.h. > I have scons 0.96.1 installed and now I unpacked scons-local-0.96.92 > and latest cvs update from today. If you were using 0.96.1 it might explain the 'can not find tool' error. Option to specify a tool path in the scons Environment is fairly recent. I also noticed yesterday that reference documentation generation fails on Linux. You'll need to edit sconscruct and comment the last line. Change: buildProjectInDirectory( 'doc' ) to: #buildProjectInDirectory( 'doc' ) Sorry about this, Baptiste. > > Thanks, Fabian --- Baptiste Lepilleur <bl...@us...> CppUnit maintainer OpenTest and CppUnit 2 developer. |
|
From: CppUnit d. m. l. <cpp...@li...> - 2006-09-06 21:54:42
|
Hi!
On Wed, 2006-09-06 at 19:35 +0200, CppUnit development mailing list
wrote:
> CppUnit development mailing list wrote:
> I also noticed yesterday that reference documentation generation fails on
> Linux. You'll need to edit sconscruct and comment the last line. Change:
> buildProjectInDirectory( 'doc' )
> to:
> #buildProjectInDirectory( 'doc' )
>
> Sorry about this,
Don't worry about it, I guess your primary development platform is not
linux? Anyways I had to add -fpermissive to the linux target to compile
a few more files but now I am stuck with:
g++ -o buildscons/linux-gcc/src/cpputtest/smallmaptest.o -c -fpermissive
-DCPPTL_NO_AUTOLINK -Iinclude -I. src/cpputtest/smallmaptest.cpp
In file included from include/cpptl/smallmap.h:4,
from src/cpputtest/smallmaptest.h:4,
from src/cpputtest/smallmaptest.cpp:1:
include/cpptl/_stlimpl.h: In member function `T*
CppTL::MallocAllocator<T>::allocate()':
include/cpptl/_stlimpl.h:201: warning: there are no arguments to
`malloc' that depend on a template parameter, so a declaration of
`malloc' must be available
include/cpptl/_stlimpl.h: In member function `T*
CppTL::MallocAllocator<T>::allocateArray(unsigned int)':
include/cpptl/_stlimpl.h:211: warning: there are no arguments to
`malloc' that depend on a template parameter, so a declaration of
`malloc' must be available
I guess gcc 3.4.6 is not supported anymore. I will switch to 4.1.1 soon
and then try again.
So for now I will continue with cppunit (old version)
Thanks a lot, Fabian
|
|
From: CppUnit d. m. l. <cpp...@li...> - 2006-09-06 22:05:32
|
Sorry I posted the warning not the error.
So here it is:
In file included from src/cpputtest/smallmaptest.h:4,
from src/cpputtest/smallmaptest.cpp:1:
include/cpptl/smallmap.h: At global scope:
include/cpptl/smallmap.h:308: error: `size_t' does not name a type
include/cpptl/smallmap.h:308: error: (perhaps `typename
CppTL::SmallMapBase<CppTL::Pair<Key, Value> >::size_t' was intended)
include/cpptl/smallmap.h:393: error: `size_t' does not name a type
Thanks, Fabian
On Wed, 2006-09-06 at 23:56 +0200, CppUnit development mailing list
wrote:
> Don't worry about it, I guess your primary development platform is not
> linux? Anyways I had to add -fpermissive to the linux target to compile
> a few more files but now I am stuck with:
>
|