xplodwild / bbqscreen_client

Sources for the client app of BBQScreen
GNU General Public License v2.0
54 stars 23 forks source link

libswresample/version.h: No such file or directory #1

Closed vanous closed 10 years ago

vanous commented 10 years ago

Hello,

compiling on debian amd64:

Linux tc-vanek 3.12-trunk-amd64 #1 SMP Debian 3.12-1~exp1 (2013-11-17) x86_64 GNU/Linux

bild fails with libswresample/version.h: No such file or directory

include "libswresample/version.h"

full output below,

thank you

vanous@tc-vanek:/tmp/bbqscreen_client$ /usr/lib/x86_64-linux-gnu/qt5/bin/qmake BBQScreenClient2.linux.pro Project MESSAGE: You are running qmake on a generated .pro file. This may not work! RCC: Warning: No resources in 'mainwindow.qrc'. vanous@tc-vanek:/tmp/bbqscreen_client$ make /usr/lib/x86_64-linux-gnu/qt5/bin/uic mainwindow.ui -o GeneratedFiles/ui_mainwindow.h /usr/lib/x86_64-linux-gnu/qt5/bin/uic screenform.ui -o GeneratedFiles/ui_screenform.h g++ -c -std=c++11 -DNEW_FFMPEG_API -g -Wall -W -D_REENTRANT -fPIE -DQT_DLL -DQT_NETWORK_LIB -DQT_WIDGETS_LIB -DSTDC_CONSTANT_MACROS -DQT_OPENGL_LIB -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++-64 -I. -IGeneratedFiles -I. -I./GeneratedFiles/Debug -I/../qtmultimedia/include/QtMultimedia -I/../qtmultimedia/include -I/usr/include/qt5 -I/usr/include/qt5/QtOpenGL -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -IGeneratedFiles/debug -IGeneratedFiles -o debug/main.o main.cpp g++ -c -std=c++11 -DNEW_FFMPEG_API -g -Wall -W -D_REENTRANT -fPIE -DQT_DLL -DQT_NETWORK_LIB -DQT_WIDGETS_LIB -DSTDC_CONSTANT_MACROS -DQT_OPENGL_LIB -DQT_MULTIMEDIA_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++-64 -I. -IGeneratedFiles -I. -I./GeneratedFiles/Debug -I/../qtmultimedia/include/QtMultimedia -I/../qtmultimedia/include -I/usr/include/qt5 -I/usr/include/qt5/QtOpenGL -I/usr/include/qt5/QtMultimedia -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -IGeneratedFiles/debug -IGeneratedFiles -o debug/mainwindow.o mainwindow.cpp In file included from ./QTFFmpegWrapper/ffmpeg.h:45:0, from QStreamDecoder.h:33, from screenform.h:30, from mainwindow.cpp:22: ./QTFFmpegWrapper/libswresample/swresample.h:99:35: fatal error: libswresample/version.h: No such file or directory

include "libswresample/version.h"

                               ^

compilation terminated. make: *\ [debug/mainwindow.o] Error 1

xplodwild commented 10 years ago

Can you add "./QTFFmpegWrapper" to the INCLUDE paths in the linux.pro file?

vanous commented 10 years ago

this helped. thank you.

also, please add to the list of required -dev files:

libpulse-dev libswresample-dev

does the non-root adb based capture work in linux? no luck at this point.

xplodwild commented 10 years ago

It should. Make sure you run it in the ./Linux/ folder, as the path to prebuilts/adb is hardcoded as a relative path

vanous commented 10 years ago

running adb shell /data/data/org.bbqdroid.bbqscreen/files/bbqscreen -s 40 -720 manually allows for the discovery method to work. sorry, i am not really good in c so i cannot help further.

edit: just for the record: of course i run ./BBQScreenClient2 from ..Linux (/tmp/bbqscreen_client/Linux) and the /prebuilts with adb is present.

vanous commented 10 years ago

here is the issue, instead of this:

ifndef PLAT_APPLE

<------>mADBProcess->start("prebuilts/adb.exe", args);

else

    mADBProcess->start(QDir(QCoreApplication::applicationDirPath()).absolutePath() + "/" + ADB_PATH, args);

endif

you need something like this, but it seems that adb is started many times... as i said, i am not sure how process spanning is done in C:

ifdef PLAT_WINDOWS

<------>mADBProcess->start("prebuilts/adb.exe", args);

else

    mADBProcess->start(QDir(QCoreApplication::applicationDirPath()).absolutePath() + "/" + ADB_PATH, args);

endif

xplodwild commented 10 years ago

Fixed in 7b2bc23875a98155d8861e5e519113f4ef440b2e and aaf96f38006aafe04473624501572b6992f82661