Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile problem #2

Open
GoogleCodeExporter opened this issue May 25, 2015 · 2 comments
Open

compile problem #2

GoogleCodeExporter opened this issue May 25, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

I just get code from repository and try to compile QTFFmpegWrapper with this 
steps.

qmake config.pro
make

and output is


g++ -c -m64 -pipe -O2 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall -W 
-D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED 
-I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtGui 
-I/usr/include -IQVideoEncoder -I../QTFFmpegWrapper -I. -o QVideoEncoder.o 
../QTFFmpegWrapper/QVideoEncoder.cpp
In file included from ../QTFFmpegWrapper/QVideoEncoder.cpp:17:
../QTFFmpegWrapper/QVideoEncoder.h:42: error: ISO C++ forbids declaration of 
‘uint8_t’ with no type
../QTFFmpegWrapper/QVideoEncoder.h:42: error: expected ‘;’ before ‘*’ 
token
../QTFFmpegWrapper/QVideoEncoder.h:45: error: ISO C++ forbids declaration of 
‘uint8_t’ with no type
../QTFFmpegWrapper/QVideoEncoder.h:45: error: expected ‘;’ before ‘*’ 
token
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘virtual bool 
QVideoEncoder::close()’:
../QTFFmpegWrapper/QVideoEncoder.cpp:196: warning: comparison between signed 
and unsigned integer expressions
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘virtual int 
QVideoEncoder::encodeImage(const QImage&)’:
../QTFFmpegWrapper/QVideoEncoder.cpp:226: error: ‘outbuf’ was not declared 
in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:234: warning: comparison between signed 
and unsigned integer expressions
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘void 
QVideoEncoder::initVars()’:
../QTFFmpegWrapper/QVideoEncoder.cpp:264: error: ‘outbuf’ was not declared 
in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:265: error: ‘picture_buf’ was not 
declared in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘bool 
QVideoEncoder::initOutputBuf()’:
../QTFFmpegWrapper/QVideoEncoder.cpp:317: error: ‘outbuf’ was not declared 
in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:317: error: expected type-specifier before 
‘uint8_t’
../QTFFmpegWrapper/QVideoEncoder.cpp:317: error: expected ‘;’ before 
‘uint8_t’
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘void 
QVideoEncoder::freeOutputBuf()’:
../QTFFmpegWrapper/QVideoEncoder.cpp:327: error: ‘outbuf’ was not declared 
in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:329: error: type ‘<type error>’ 
argument given to ‘delete’, expected pointer
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘bool 
QVideoEncoder::initFrame()’:
../QTFFmpegWrapper/QVideoEncoder.cpp:341: error: ‘picture_buf’ was not 
declared in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:341: error: expected type-specifier before 
‘uint8_t’
../QTFFmpegWrapper/QVideoEncoder.cpp:341: error: expected ‘;’ before 
‘uint8_t’
../QTFFmpegWrapper/QVideoEncoder.cpp:340: warning: unused variable ‘size’
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘void 
QVideoEncoder::freeFrame()’:
../QTFFmpegWrapper/QVideoEncoder.cpp:356: error: ‘picture_buf’ was not 
declared in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:358: error: type ‘<type error>’ 
argument given to ‘delete’, expected pointer
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘bool 
QVideoEncoder::convertImage(const QImage&)’:
../QTFFmpegWrapper/QVideoEncoder.cpp:378: warning: comparison between signed 
and unsigned integer expressions
../QTFFmpegWrapper/QVideoEncoder.cpp:378: warning: comparison between signed 
and unsigned integer expressions
../QTFFmpegWrapper/QVideoEncoder.cpp:397: error: ‘picture_buf’ was not 
declared in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:421: error: ‘picture_buf’ was not 
declared in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘bool 
QVideoEncoder::convertImage_sws(const QImage&)’:
../QTFFmpegWrapper/QVideoEncoder.cpp:472: warning: comparison between signed 
and unsigned integer expressions
../QTFFmpegWrapper/QVideoEncoder.cpp:472: warning: comparison between signed 
and unsigned integer expressions
../QTFFmpegWrapper/QVideoEncoder.cpp:491: error: ‘uint8_t’ was not declared 
in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:491: error: ‘srcplanes’ was not 
declared in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:492: error: expected primary-expression 
before ‘)’ token
../QTFFmpegWrapper/QVideoEncoder.cpp:492: error: expected ‘;’ before 
‘img’
make: *** [QVideoEncoder.o] Error 1

Original issue reported on code.google.com by ozkan%[email protected] on 3 Jul 2010 at 9:38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant