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

Problem with installation - make step #39

Open
leonardocfor opened this issue Feb 4, 2017 · 10 comments
Open

Problem with installation - make step #39

leonardocfor opened this issue Feb 4, 2017 · 10 comments

Comments

@leonardocfor
Copy link

Hi, I have been having this issue when I perform the make step on Ubuntu 14.04, I would appreciate any help:

[ 59%] Building CXX object CMakeFiles/displaycluster.dir/src/Movie.o
/opt/DisplayCluster/src/Movie.cpp: In constructor ‘Movie::Movie(std::string)’:
/opt/DisplayCluster/src/Movie.cpp:91:42: warning: ‘AVStream::codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if(avFormatContext_->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO)
^
/opt/DisplayCluster/src/Movie.cpp:91:42: warning: ‘AVStream::codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
/opt/DisplayCluster/src/Movie.cpp:105:64: warning: ‘AVStream::codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
avCodecContext_ = avFormatContext_->streams[videoStream_]->codec;
^
/opt/DisplayCluster/src/Movie.cpp:105:64: warning: ‘AVStream::codec’ is deprecated (declared at /opt/ffmpeg/include/libavformat/avformat.h:893) [-Wdeprecated-declarations]
/opt/DisplayCluster/src/Movie.cpp:143:36: error: ‘avcodec_alloc_frame’ was not declared in this scope
avFrame_ = avcodec_alloc_frame();
^
/opt/DisplayCluster/src/Movie.cpp:156:20: warning: ‘int avpicture_get_size(AVPixelFormat, int, int)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:5487) [-Wdeprecated-declarations]
int numBytes = avpicture_get_size(PIX_FMT_RGBA, avCodecContext_->width, avCodecContext_->height);
^
/opt/DisplayCluster/src/Movie.cpp:156:39: error: ‘PIX_FMT_RGBA’ was not declared in this scope
int numBytes = avpicture_get_size(PIX_FMT_RGBA, avCodecContext_->width, avCodecContext_->height);
^
/opt/DisplayCluster/src/Movie.cpp:160:5: warning: ‘int avpicture_fill(AVPicture*, const uint8_t*, AVPixelFormat, int, int)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:5472) [-Wdeprecated-declarations]
avpicture_fill((AVPicture )avFrameRGB_, buffer, PIX_FMT_RGBA, avCodecContext_->width, avCodecContext_->height);
^
/opt/DisplayCluster/src/Movie.cpp: In member function ‘void Movie::nextFrame(bool)’:
/opt/DisplayCluster/src/Movie.cpp:308:13: warning: ‘int avcodec_decode_video2(AVCodecContext
, AVFrame*, int*, const AVPacket*)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4831) [-Wdeprecated-declarations]
avcodec_decode_video2(avCodecContext_, avFrame_, &frameFinished, &packet);
^
/opt/DisplayCluster/src/Movie.cpp:308:85: warning: ‘int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4831) [-Wdeprecated-declarations]
avcodec_decode_video2(avCodecContext_, avFrame_, &frameFinished, &packet);
^
/opt/DisplayCluster/src/Movie.cpp:327:21: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4492) [-Wdeprecated-declarations]
av_free_packet(&packet);
^
/opt/DisplayCluster/src/Movie.cpp:327:43: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4492) [-Wdeprecated-declarations]
av_free_packet(&packet);
^
/opt/DisplayCluster/src/Movie.cpp:335:9: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4492) [-Wdeprecated-declarations]
av_free_packet(&packet);
^
/opt/DisplayCluster/src/Movie.cpp:335:31: warning: ‘void av_free_packet(AVPacket*)’ is deprecated (declared at /opt/ffmpeg/include/libavcodec/avcodec.h:4492) [-Wdeprecated-declarations]
av_free_packet(&packet);
^
make[2]: *** [CMakeFiles/displaycluster.dir/src/Movie.o] Error 1
make[1]: *** [CMakeFiles/displaycluster.dir/all] Error 2
make: *** [all] Error 2

@GregAbram
Copy link
Member

GregAbram commented Feb 4, 2017 via email

@leonardocfor
Copy link
Author

Hi Greg,

Thanks for your help. I have installed ffmpeg version 1.1.2 and it worked. However, now I am having this issue with PythonQt.h:

Building CXX object CMakeFiles/displaycluster.dir/src/SSaver.o
In file included from /opt/DisplayCluster/src/SSaver.cpp:42:0:
/opt/DisplayCluster/src/PythonConsole.h:43:22: fatal error: PythonQt.h: No such file or directory
#include <PythonQt.h>
^
compilation terminated.
make[2]: *** [CMakeFiles/displaycluster.dir/src/SSaver.o] Error 1
make[1]: *** [CMakeFiles/displaycluster.dir/all] Error 2
make: *** [all] Error 2

I am using Ubuntu 14.04 and I have Qt installed as one of DisplayCluster dependencies. Which package should I installed to get this PythonQt.h library?

Thanks :)

@GregAbram
Copy link
Member

GregAbram commented Feb 6, 2017 via email

@leonardocfor
Copy link
Author

OK, I did as you said. I had some issues with not finding Python.h as well but I set CPLUS_INCLUDE_PATH so it moved ahead but still PythonQt.h is not found. Is there a variable that needs to be set for this or something to change in the cmake modules?

@GregAbram
Copy link
Member

GregAbram commented Feb 8, 2017 via email

@leonardocfor
Copy link
Author

Hi Greg,

Thanks for your help. It compiled but now I am getting this:

[100%] Building CXX object CMakeFiles/displaycluster.dir/src/moc_Remote.o
Linking CXX executable displaycluster
CMakeFiles/displaycluster.dir/src/SSaver.o: In function QSSApplication::sleep_end()': SSaver.cpp:(.text+0x157): undefined reference to PythonConsole::pyqt()'
SSaver.cpp:(.text+0x15f): undefined reference to `MyPythonQt::stop_screen_saver()'
collect2: error: ld returned 1 exit status
make[2]: *** [displaycluster] Error 1
make[1]: *** [CMakeFiles/displaycluster.dir/all] Error 2
make: *** [all] Error 2

I appreciate your help :)

@GregAbram
Copy link
Member

GregAbram commented Feb 20, 2017 via email

@GregAbram
Copy link
Member

GregAbram commented Feb 28, 2017 via email

@leonardocfor
Copy link
Author

Hi greg,

No, not yet. I have been swamped with some stuff. I am sorry, what do you mean specifically by enabling python support in the CMAKE configuration?

@GregAbram
Copy link
Member

GregAbram commented Mar 1, 2017 via email

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

No branches or pull requests

2 participants