Share

Wednesday, February 24, 2010

B Nanohive-1 Ubuntu Install


How can I change the scope of
DataModel.cpp:290: error: 'strlen' was not declared in this scope

The contents of DataModel.cpp
http://pastebin.com/BLazVffS

Notes on my install
http://docs.google.com/View?id=dc26889x_149djrwgfgh

terminal commands and output

./configure --enable-standard-plugin-set --disable-console-command --
disable-mpqc-sclib --disable-openbabel --disable-sockets-pic-control

sudo make
sudo make install

http://tinypaste.com/6fe32



error from terminal

In file included from /usr/include/c++/4.4/backward/
strstream:46,
                 from ../../include/NanoHiveInterface/
MeasurementSet.h:
33,
                 from ../../include/NanoHiveInterface/NH_Cell.h:33,
                 from ../../include/NanoHiveInterface/DataModel.h:32,
                 from DataModel.cpp:20:
/usr/include/c++/4.4/backward/backward_warning.h:28:2: warning:
#warning This file includes at least one deprecated or antiquated
header which may be removed without further notice at a future date.
Please use a non-deprecated interface with equivalent functionality
instead. For a listing of replacement headers and interfaces, consult
the file backward_warning.h. To disable this warning use -Wno-
deprecated.
DataModel.cpp: In constructor 'nanohive::Atom::Atom(nanohive::ABMint,
const char*, const nanohive::Real&, const nanohive::Real&, const
nanohive::Real&, const nanohive::Real&, const nanohive::Real&, const
nanohive::Real&, const nanohive::Real&, const nanohive::Real&, const
nanohive::Real&, const nanohive::Real&, const nanohive::Real&, const
nanohive::Real&, const nanohive::Real&, const nanohive::Real&, const
nanohive::Real&)':
DataModel.cpp:290: error: 'strlen' was not declared in this scope
DataModel.cpp:291: error: 'strcpy' was not declared in this scope
DataModel.cpp: In copy constructor 'nanohive::Atom::Atom(const
nanohive::Atom&)':
DataModel.cpp:310: error: 'strlen' was not declared in this scope
DataModel.cpp:311: error: 'strcpy' was not declared in this scope
../../include/NanoHiveUtil/Utility.h: At global scope:
../../include/NanoHiveUtil/Utility.h:117: warning:
'nanohive::NSPRcodeToMeaning' defined but not used
make[1]: *** [libNanoHiveInterface_la-DataModel.lo] Error 1
make[1]: Leaving directory `/home/l/nh1/Nano-Hive-1.2.0-Beta-1/src/
NanoHiveInterface'
make: *** [install-recursive] Error 1
l@EV007:~/nh1/Nano-Hive-1.2.0-Beta-1/src$


error from Netbeans 6.8 with Python Plugin
NE-1 is running from Netbeans with NH-1 in the same folder -


/usr/bin/gmake  all-recursive
gmake[1]: Entering directory `/home/l/nh1/Nano-Hive-1.2.0-Beta-1/src'
Making all in NanoHiveUtil
gmake[2]: Entering directory `/home/l/nh1/Nano-Hive-1.2.0-Beta-1/src/
NanoHiveUtil'
if /bin/bash ../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -
I. -I. -I.. -I../../include -pthread -g -O2 -g -Wall -O2 -O2 -DNDEBUG
-
I/usr/include/nspr -I/usr/include   -O2 -MT libNanoHiveUtil_la-
CmdLine.lo -MD -MP -MF ".deps/libNanoHiveUtil_la-CmdLine.Tpo" -c -o
libNanoHiveUtil_la-CmdLine.lo `test -f 'CmdLine.cpp' || echo
'./'`CmdLine.cpp; \
        then mv -f ".deps/libNanoHiveUtil_la-CmdLine.Tpo" ".deps/
libNanoHiveUtil_la-CmdLine.Plo"; else rm -f ".deps/libNanoHiveUtil_la-
CmdLine.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../../include -pthread -g -O2 -g -
Wall -O2 -O2 -DNDEBUG -I/usr/include/nspr -I/usr/include -O2 -MT
libNanoHiveUtil_la-CmdLine.lo -MD -MP -MF .deps/libNanoHiveUtil_la-
CmdLine.Tpo -c CmdLine.cpp  -fPIC -DPIC -o .libs/libNanoHiveUtil_la-
CmdLine.o
CmdLine.cpp: In member function 'int
nanohive::CmdLine::SplitLine(const char*)':
CmdLine.cpp:46: error: 'strlen' was not declared in this scope
CmdLine.cpp:78: error: 'strcpy' was not declared in this scope
CmdLine.cpp: In member function 'bool
nanohive::CmdLine::IsSwitch(const char*)':
CmdLine.cpp:190: error: 'strlen' was not declared in this scope
CmdLine.cpp: In member function 'std::string
nanohive::CmdLine::GetArgument(const char*, int)':
CmdLine.cpp:295: warning: comparison between signed and unsigned
integer expressions
CmdLine.cpp: At global scope:
CmdLine.cpp:334: fatal error: opening dependency file .deps/
libNanoHiveUtil_la-CmdLine.Tpo: Permission denied
compilation terminated.
gmake[2]: *** [libNanoHiveUtil_la-CmdLine.lo] Error 1
gmake[2]: Leaving directory `/home/l/nh1/Nano-Hive-1.2.0-Beta-1/src/
NanoHiveUtil'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/l/nh1/Nano-Hive-1.2.0-Beta-1/src'
gmake: *** [all] Error 2

MAKE FAILED (exit value 2, total time: 801ms)

No comments: