TACC / DisplayCluster

a collaborative software environment for large-scale tiled display systems
Other
40 stars 26 forks source link

Problem with installation - make step #39

Open leonardocfor opened 7 years ago

leonardocfor commented 7 years ago

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_TYPEVIDEO) ^ /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_allocframe’ 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_FMTRGBA, 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_FMTRGBA, 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] avpicturefill((AVPicture *)avFrameRGB, buffer, PIX_FMTRGBA, 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_decodevideo2(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_decodevideo2(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 commented 7 years ago

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 gda@tacc.utexas.edumailto:gda@tacc.utexas.edu

[TACC Website]https://www.tacc.utexas.edu/

Connect With TACChttps://www.tacc.utexas.edu/

On Feb 3, 2017, at 11:58 PM, Leonardo Camargo Forero notifications@github.com<mailto:notifications@github.com> 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_TYPEVIDEO) ^ /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_allocframe’ 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_FMTRGBA, 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_FMTRGBA, 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] avpicturefill((AVPicture )avFrameRGB, buffer, PIX_FMTRGBA, 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_decodevideo2(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_decodevideo2(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 GitHubhttps://github.com/TACC/DisplayCluster/issues/39, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA-bRm5pSlPYkG_Uos8vtfeSY2USIDVWks5rZBOcgaJpZM4L3Dc4.

leonardocfor commented 7 years ago

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

                  ^

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 commented 7 years ago

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 gda@tacc.utexas.edumailto:gda@tacc.utexas.edu

[TACC Website]https://www.tacc.utexas.edu/

Connect With TACChttps://www.tacc.utexas.edu/

On Feb 6, 2017, at 4:32 PM, Leonardo Camargo Forero notifications@github.com<mailto:notifications@github.com> 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

^ 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 GitHubhttps://github.com/TACC/DisplayCluster/issues/39#issuecomment-277836201, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA-bRsRJTJ4nKSM-gN43rysjH_ZRWBH4ks5rZ5-YgaJpZM4L3Dc4.

leonardocfor commented 7 years ago

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 commented 7 years ago

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 gda@tacc.utexas.edumailto:gda@tacc.utexas.edu

[TACC Website]https://www.tacc.utexas.edu/

Connect With TACChttps://www.tacc.utexas.edu/

On Feb 6, 2017, at 6:11 PM, Leonardo Camargo Forero notifications@github.com<mailto:notifications@github.com> 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 GitHubhttps://github.com/TACC/DisplayCluster/issues/39#issuecomment-277857052, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA-bRi-S2FsKDy1cvI-exPnWIPQgUUm0ks5rZ7axgaJpZM4L3Dc4.

leonardocfor commented 7 years ago

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 :)

GregAbram commented 7 years ago

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 gda@tacc.utexas.edumailto:gda@tacc.utexas.edu

[TACC Website]https://www.tacc.utexas.edu/

Connect With TACChttps://www.tacc.utexas.edu/

On Feb 19, 2017, at 4:06 PM, Leonardo Camargo Forero notifications@github.com<mailto:notifications@github.com> 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 GitHubhttps://github.com/TACC/DisplayCluster/issues/39#issuecomment-280953314, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA-bRsupk8f25yCpUtDRJZH_iZMjdWx9ks5reLzmgaJpZM4L3Dc4.

GregAbram commented 7 years ago

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 gda@tacc.utexas.edumailto:gda@tacc.utexas.edu

[TACC Website]https://www.tacc.utexas.edu/

Connect With TACChttps://www.tacc.utexas.edu/

On Feb 20, 2017, at 3:55 PM, Greg Abram gda@tacc.utexas.edu<mailto:gda@tacc.utexas.edu> 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 gda@tacc.utexas.edumailto:gda@tacc.utexas.edu

[TACC Website]https://www.tacc.utexas.edu/

Connect With TACChttps://www.tacc.utexas.edu/

On Feb 19, 2017, at 4:06 PM, Leonardo Camargo Forero notifications@github.com<mailto:notifications@github.com> 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 GitHubhttps://github.com/TACC/DisplayCluster/issues/39#issuecomment-280953314, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA-bRsupk8f25yCpUtDRJZH_iZMjdWx9ks5reLzmgaJpZM4L3Dc4.

leonardocfor commented 7 years ago

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 commented 7 years ago

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 gda@tacc.utexas.edumailto:gda@tacc.utexas.edu

[TACC Website]https://www.tacc.utexas.edu/

Connect With TACChttps://www.tacc.utexas.edu/

On Mar 1, 2017, at 2:50 PM, Leonardo Camargo Forero notifications@github.com<mailto:notifications@github.com> 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 GitHubhttps://github.com/TACC/DisplayCluster/issues/39#issuecomment-283465629, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA-bRpB7ZBJbWXksSW0hiQvSX4o7a6c4ks5rhdn_gaJpZM4L3Dc4.