jackuess / pirateplayer

Qt-based utility for watching and downloading swedish broadcasting.
http://pirateplay.se/
GNU General Public License v3.0
42 stars 12 forks source link

Unable to compile in/for OS X 10.9.5 #20

Open albsod opened 9 years ago

albsod commented 9 years ago

I tried to but failed to build pirateplayer in/for OS X 10.9.5. After running make, this happened:

clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.7 -O2 -arch x86_64 -Wall -W -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/HEAD/mkspecs/unsupported/macx-clang-libc++ -I. -I/usr/local/Cellar/qt/HEAD/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtOpenGL.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtOpenGL.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtDeclarative.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtDeclarative.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/include -I/usr/local/include -Iqmlapplicationviewer -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I. -F/usr/local/Cellar/qt/HEAD/lib -o download.o src/network/download.cpp
clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.7 -O2 -arch x86_64 -Wall -W -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/HEAD/mkspecs/unsupported/macx-clang-libc++ -I. -I/usr/local/Cellar/qt/HEAD/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtOpenGL.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtOpenGL.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtDeclarative.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtDeclarative.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/include -I/usr/local/include -Iqmlapplicationviewer -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I. -F/usr/local/Cellar/qt/HEAD/lib -o systemdownload.o src/network/systemdownload.cpp
clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.7 -O2 -arch x86_64 -Wall -W -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/HEAD/mkspecs/unsupported/macx-clang-libc++ -I. -I/usr/local/Cellar/qt/HEAD/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtNetwork.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtOpenGL.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtOpenGL.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtDeclarative.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/lib/QtDeclarative.framework/Versions/4/Headers -I/usr/local/Cellar/qt/HEAD/include -I/usr/local/include -Iqmlapplicationviewer -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I. -F/usr/local/Cellar/qt/HEAD/lib -o piratenetworkaccessmanager.o src/network/piratenetworkaccessmanager.cpp
In file included from src/network/piratenetworkaccessmanager.cpp:5:
In file included from src/network/piratenetworkreply.h:4:
src/network/rtmpsession.h:4:10: fatal error: 'librtmp/rtmp.h' file not found
#include <librtmp/rtmp.h>
         ^
1 error generated.
make: *** [piratenetworkaccessmanager.o] Error 1

I had previously installed Qt by entering brew install qt --HEAD, as suggested here.

qmake --version outputs:

QMake version 2.01a
Using Qt version 4.8.7 in /usr/local/Cellar/qt/HEAD/lib
atrus05 commented 9 years ago

Take this at face value as I am a non developer that has not compiled anything in my life. But I managed to get passed the fatal error: 'librtmp/rtmp.h' file not founderror by doing a brew install rtmpdump

After that I got a similar looking error that said fatal error: 'tidy.h' file not foundand after some googling I found that this worked: brew install tidy-html5

After that I ended up at this error: fatal error: 'archive.h' file not found. And there I am stuck. The name is too generic to google for it, and I am also painfully aware that the reason why I can't solve it is because I am just not good enough. I do not fully understand how dependencies between systems work. I am on OSX 10.10.5 and I can't find any way to install some dependencies because I do not know which are missing. It is very likely that it is stated somewhere in the documentation, but I am not capable enough to actually understand them from an OSX point of view :)

I did go into the archiveextractor.h and removed the includes for archive.h and archive_entry.h just for fun to see if I could get some more packages to give some info. But as you guys understand that just threw a bunch of errors around the archiveextractor :)

So if someone has any idea which brew package I should install to get archive.h and archive_entry.h to work as includes I would be eternally grateful. Because then I could at least see what the next error will be ;)

EDIT: And yes, I have run brew install libarchive. Still the same error: `In file included from src/gui/maingui.cpp:1: In file included from src/gui/maingui.h:5: src/gui/../extra/archiveextractor.h:8:10: fatal error: 'archive.h' file not found

include

     ^

1 error generated. make: *** [maingui.o] Error 1`