Saturday, October 13, 2012

scons running time error

Last time while installing flvtool++ i have encountered the following error.

[/usr/local/src/flvtool++]# scons
scons: Reading SConscript files ...

AMFData.h:270: error: 'dmap' was not declared in this scope
AMFData.h: In member function 'virtual std::string AMFArray::asString() const':
AMFData.h:273: error: 'dmap' was not declared in this scope
AMFData.h: In member function 'virtual void AMFArray::write(fout&) const':
AMFData.h:282: error: 'dmap' was not declared in this scope
AMFData.h:283: error: 'dmap' was not declared in this scope
AMFData.cpp: At global scope:
AMFData.cpp:10: error: expected constructor, destructor, or type conversion before '<' token
scons: *** [AMFData.o] Error 1
scons: building terminated because of errors.

Fix:
[/usr/local/src/flvtool++]# yum install wget boost-devel gcc gcc-c++

and then execute

[/usr/local/src/flvtool++]# scons
scons: Reading SConscript files ...

scons: warning: The env.TargetSignatures() method is deprecated;
        convert your build to use the env.Decider() method instead.
File "/usr/local/src/flvtool++/SConstruct", line 3, in ?
scons: done reading SConscript files.
scons: Building targets ...
g++ -o AMFData.o -c -ggdb -O3 -Wall -I. -I/usr/local/include/boost-1_33_1 AMFData.cpp
g++ -o flvtool++.o -c -ggdb -O3 -Wall -I. -I/usr/local/include/boost-1_33_1 flvtool++.cpp
g++ -o flvtool++ -ggdb flvtool++.o AMFData.o
scons: done building targets.

No comments:

Post a Comment