{"action":"opened","issue":{"url":"https://api.github.com/repos/mattbeghin/FFmpegHapGlPlayer/issues/1","repository_url":"https://api.github.com/repos/mattbeghin/FFmpegHapGlPlayer","labels_url":"https://api.github.com/repos/mattbeghin/FFmpegHapGlPlayer/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mattbeghin/FFmpegHapGlPlayer/issues/1/comments","events_url":"https://api.github.com/repos/mattbeghin/FFmpegHapGlPlayer/issues/1/events","html_url":"https://github.com/mattbeghin/FFmpegHapGlPlayer/issues/1","id":354295443,"node_id":"MDU6SXNzdWUzNTQyOTU0NDM=","number":1,"title":"Linux portability","user":{"login":"ebachard","id":23149049,"node_id":"MDQ6VXNlcjIzMTQ5MDQ5","avatar_url":"https://avatars0.githubusercontent.com/u/23149049?v=4","gravatar_id":"","url":"https://api.github.com/users/ebachard","html_url":"https://github.com/ebachard","followers_url":"https://api.github.com/users/ebachard/followers","following_url":"https://api.github.com/users/ebachard/following{/other_user}","gists_url":"https://api.github.com/users/ebachard/gists{/gist_id}","starred_url":"https://api.github.com/users/ebachard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebachard/subscriptions","organizations_url":"https://api.github.com/users/ebachard/orgs","repos_url":"https://api.github.com/users/ebachard/repos","events_url":"https://api.github.com/users/ebachard/events{/privacy}","received_events_url":"https://api.github.com/users/ebachard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-27T12:17:44Z","updated_at":"2018-08-27T12:17:44Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nIs there an official port for Linux ? I tested (and fixed) the build, and it seems it works well.\r\n\r\nI've paste the chanes I did (see the next issue to make the player warnings free), for the people using Linux, and interested to build it under Linux.\r\n\r\nDisclaimer : qmake seems to not work as expected. Feel free to correct my changes\r\n\r\nConsider everything is under MIT license, so just don't forget to add my name somewhere in the contributor's list if ever the code is OK for you. Thanks :-)\r\n\r\nTested on x86_64, Linux kernel 4.15.X , LinuxMint \r\n\r\n\r\n````\r\n--- a/FFmpegHapGlPlayer.pro\r\n+++ b/FFmpegHapGlPlayer.pro\r\n@@ -100,6 +100,64 @@ windows {\r\n     LIBS += -lopengl32\r\n }\r\n \r\n-QMAKE_POST_LINK += echo cp -R $$_PRO_FILE_PWD_/shaders $${OUT_PWD};\r\n-QMAKE_POST_LINK += cp -R $$_PRO_FILE_PWD_/shaders $${OUT_PWD};\r\n+\r\n+linux {\r\n+\r\n+    # seems to be broken\r\n+    CC = clang\r\n+    CXX = clang\r\n+    CFLAGS += -fblocks\r\n+    CXXFLAGS += -fblocks\r\n+\r\n+    # important flag ;-)\r\n+    DEFINES += Linux\r\n+\r\n+    # Dependencies pathes\r\n+    # no change needed (works for me ...)\r\n+\r\n+    # Linux build is broken. \r\n+    # Since the changes above don't work, you'll need to manually tweak the Makefile at the end \r\n+    # \r\n+    # clang IS mandatory to build HAPAvFormatOpenGLRenderer.cpp\r\n+\r\n+    # replace CC = gcc with the line : CC = clang\r\n+    # replace CXX = g++ with the line : CXX = clang\r\n+    # replace the line CFLAGS = -m64 -pipe     with the line : CFLAGS = -m64 -fblock -pipe\r\n+    # replace the line CXXFLAGS = -m64 -pipe   with the line : CFLAGS = -m64 -fblock -pipe\r\n+\r\n+    # do not modify the LIBRARY_PATH. Should work without change anything\r\n+\r\n+    # OpenGL\r\n+    LIBS += -lGL\r\n+\r\n+    # libpthread :\r\n+    LIBS +=  -lpthread\r\n+\r\n+    # libdl :\r\n+    LIBS +=  -ldl\r\n+\r\n+    # libsnappy\r\n+    SNAPPY_LIB_PATH = $${SNAPPY_PATH}/lib\r\n+    LIBS += -lsnappy\r\n+\r\n+    # libdispatch\r\n+    LIBS += -ldispatch\r\n+\r\n+    # BlocksRuntime\r\n+    LIBS += -lBlocksRuntime\r\n+\r\n+    # ffmpeg :\r\n+    LIBS +=  `pkg-config --cflags --libs libavformat libavcodec libavutil`\r\n+\r\n+    # SDL2 :\r\n+    LIBS += `sdl2-config --cflags --libs`\r\n+\r\n+\r\n+\r\n+\r\n+}\r\n+\r\n+QMAKE_POST_LINK += echo cp -R $$_PRO_FILE_PWD_/shaders/* $${OUT_PWD};\r\n+QMAKE_POST_LINK += cp -R $$_PRO_FILE_PWD_/shaders/* $${OUT_PWD};\r\n+\r\n\r\n\r\n````\r\n\r\n\r\n"}}
{"actor":{"display_login":"ebachard"}}