-
Notifications
You must be signed in to change notification settings - Fork 27
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
Comments
Looks like a version problem in ffmpeg. We are using a pretty old version here - 1.1.2, I think, and it looks like ffmpeg has moved ahead with non-backwards compatible changes.
In particular, I think PIX_FMT_RGBA has been changed to AV_PIX_FMT_RGBA and https://ffmpeg.org/pipermail/libav-user/2016-February/008841.html might help with the error: ‘avcodec_alloc_frame’ was not declared in this scope problem.
Greg
Gregory D. Abram, Ph.D.
Research Engineering/Scientist Associate
Texas Advanced Computing Center
The University of Texas at Austin
(512) 471-8196
[email protected]<mailto:[email protected]>
[TACC Website]<https://www.tacc.utexas.edu/>
Connect With TACC<https://www.tacc.utexas.edu/>
On Feb 3, 2017, at 11:58 PM, Leonardo Camargo Forero <[email protected]<mailto:[email protected]>> wrote:
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#39>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AA-bRm5pSlPYkG_Uos8vtfeSY2USIDVWks5rZBOcgaJpZM4L3Dc4>.
|
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 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 :) |
Hi, Leonardo -
Its included with the source code in the ‘dependencies’ directory. Extract it, and assuming you have Qt (4.8.x - I haven’t tried anything else) installed and accessible, cd in and qmake, then make all.
Greg
Gregory D. Abram, Ph.D.
Research Engineering/Scientist Associate
Texas Advanced Computing Center
The University of Texas at Austin
(512) 471-8196
[email protected]<mailto:[email protected]>
[TACC Website]<https://www.tacc.utexas.edu/>
Connect With TACC<https://www.tacc.utexas.edu/>
On Feb 6, 2017, at 4:32 PM, Leonardo Camargo Forero <[email protected]<mailto:[email protected]>> wrote:
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 :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#39 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AA-bRsRJTJ4nKSM-gN43rysjH_ZRWBH4ks5rZ5-YgaJpZM4L3Dc4>.
|
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? |
Sorry - pretty swamped here. Yes, there are PythonQt CMAKE variables you’ll need to set - PythonQt_INCLUDE_DIR and PythonQt_LIBRARY Set PythonQt_INCLUDE_DIR to the src subdir of the PythonQt source tree.
Greg
Gregory D. Abram, Ph.D.
Research Engineering/Scientist Associate
Texas Advanced Computing Center
The University of Texas at Austin
(512) 471-8196
[email protected]<mailto:[email protected]>
[TACC Website]<https://www.tacc.utexas.edu/>
Connect With TACC<https://www.tacc.utexas.edu/>
On Feb 6, 2017, at 6:11 PM, Leonardo Camargo Forero <[email protected]<mailto:[email protected]>> wrote:
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?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#39 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AA-bRi-S2FsKDy1cvI-exPnWIPQgUUm0ks5rZ7axgaJpZM4L3Dc4>.
|
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 I appreciate your help :) |
Bet you need to enable Python support in the CMAKE confguration - the screen-saver stuff (which I recently added) really should be dependent on that being set.
Greg
Gregory D. Abram, Ph.D.
Research Engineering/Scientist Associate
Texas Advanced Computing Center
The University of Texas at Austin
(512) 471-8196
[email protected]<mailto:[email protected]>
[TACC Website]<https://www.tacc.utexas.edu/>
Connect With TACC<https://www.tacc.utexas.edu/>
On Feb 19, 2017, at 4:06 PM, Leonardo Camargo Forero <[email protected]<mailto:[email protected]>> wrote:
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 toPythonConsole::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 :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#39 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AA-bRsupk8f25yCpUtDRJZH_iZMjdWx9ks5reLzmgaJpZM4L3Dc4>.
|
Hey Leonardo - are you up and running?
Greg
Gregory D. Abram, Ph.D.
Research Engineering/Scientist Associate
Texas Advanced Computing Center
The University of Texas at Austin
(512) 471-8196
[email protected]<mailto:[email protected]>
[TACC Website]<https://www.tacc.utexas.edu/>
Connect With TACC<https://www.tacc.utexas.edu/>
On Feb 20, 2017, at 3:55 PM, Greg Abram <[email protected]<mailto:[email protected]>> wrote:
Bet you need to enable Python support in the CMAKE confguration - the screen-saver stuff (which I recently added) really should be dependent on that being set.
Greg
Gregory D. Abram, Ph.D.
Research Engineering/Scientist Associate
Texas Advanced Computing Center
The University of Texas at Austin
(512) 471-8196
[email protected]<mailto:[email protected]>
[TACC Website]<https://www.tacc.utexas.edu/>
Connect With TACC<https://www.tacc.utexas.edu/>
On Feb 19, 2017, at 4:06 PM, Leonardo Camargo Forero <[email protected]<mailto:[email protected]>> wrote:
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 toPythonConsole::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 :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#39 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AA-bRsupk8f25yCpUtDRJZH_iZMjdWx9ks5reLzmgaJpZM4L3Dc4>.
|
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? |
When you run cmake (or ccmake), there’s an option called ‘ENABLE_PYTHON_SUPPORT’ I think you should see it if you use ‘ccmake’ - the GUI version - or if you are using the command-line cmake version, set -DENABLE_PYTHON_SUPPORT=ON
Gregory D. Abram, Ph.D.
Research Engineering/Scientist Associate
Texas Advanced Computing Center
The University of Texas at Austin
(512) 471-8196
[email protected]<mailto:[email protected]>
[TACC Website]<https://www.tacc.utexas.edu/>
Connect With TACC<https://www.tacc.utexas.edu/>
On Mar 1, 2017, at 2:50 PM, Leonardo Camargo Forero <[email protected]<mailto:[email protected]>> wrote:
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?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#39 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AA-bRpB7ZBJbWXksSW0hiQvSX4o7a6c4ks5rhdn_gaJpZM4L3Dc4>.
|
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
The text was updated successfully, but these errors were encountered: