{"action":"created","issue":{"url":"https://api.github.com/repos/ladislav-zezula/StormLib/issues/38","labels_url":"https://api.github.com/repos/ladislav-zezula/StormLib/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/ladislav-zezula/StormLib/issues/38/comments","events_url":"https://api.github.com/repos/ladislav-zezula/StormLib/issues/38/events","html_url":"https://github.com/ladislav-zezula/StormLib/issues/38","id":62184854,"number":38,"title":"not building bzip2 on linux","user":{"login":"Mistranger","id":10031125,"avatar_url":"https://avatars.githubusercontent.com/u/10031125?v=3","gravatar_id":"","url":"https://api.github.com/users/Mistranger","html_url":"https://github.com/Mistranger","followers_url":"https://api.github.com/users/Mistranger/followers","following_url":"https://api.github.com/users/Mistranger/following{/other_user}","gists_url":"https://api.github.com/users/Mistranger/gists{/gist_id}","starred_url":"https://api.github.com/users/Mistranger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mistranger/subscriptions","organizations_url":"https://api.github.com/users/Mistranger/orgs","repos_url":"https://api.github.com/users/Mistranger/repos","events_url":"https://api.github.com/users/Mistranger/events{/privacy}","received_events_url":"https://api.github.com/users/Mistranger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-16T19:26:10Z","updated_at":"2015-03-16T20:10:45Z","closed_at":null,"body":"bzip2 sublibrary (in src/bzip2 folder) isn't compiling on Linux when running make. I'm use StormLib as a static library in my project and that gives me a compiling error when I'm trying to build my project with static libstorm.a\r\n/usr/local/lib/libstorm.a(SCompression.cpp.o): In function `Compress_BZIP2(void*, int*, void*, int, int*, int)':\r\nSCompression.cpp:(.text+0x7cb): undefined reference to `BZ2_bzCompressInit'\r\nSCompression.cpp:(.text+0x814): undefined reference to `BZ2_bzCompress'\r\nSCompression.cpp:(.text+0x831): undefined reference to `BZ2_bzCompressEnd'\r\n/usr/local/lib/libstorm.a(SCompression.cpp.o): In function `Decompress_BZIP2(void*, int*, void*, int)':\r\nSCompression.cpp:(.text+0x888): undefined reference to `BZ2_bzDecompressInit'\r\nSCompression.cpp:(.text+0x8be): undefined reference to `BZ2_bzDecompress'\r\nSCompression.cpp:(.text+0x8db): undefined reference to `BZ2_bzDecompressEnd'\r\nI made a workaround by adding ${ZLIB_BZIP2_FILES} in CMakeLists.txt, line 286.\r\n"},"comment":{"url":"https://api.github.com/repos/ladislav-zezula/StormLib/issues/comments/81909859","html_url":"https://github.com/ladislav-zezula/StormLib/issues/38#issuecomment-81909859","issue_url":"https://api.github.com/repos/ladislav-zezula/StormLib/issues/38","id":81909859,"user":{"login":"wheybags","id":1093274,"avatar_url":"https://avatars.githubusercontent.com/u/1093274?v=3","gravatar_id":"","url":"https://api.github.com/users/wheybags","html_url":"https://github.com/wheybags","followers_url":"https://api.github.com/users/wheybags/followers","following_url":"https://api.github.com/users/wheybags/following{/other_user}","gists_url":"https://api.github.com/users/wheybags/gists{/gist_id}","starred_url":"https://api.github.com/users/wheybags/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheybags/subscriptions","organizations_url":"https://api.github.com/users/wheybags/orgs","repos_url":"https://api.github.com/users/wheybags/repos","events_url":"https://api.github.com/users/wheybags/events{/privacy}","received_events_url":"https://api.github.com/users/wheybags/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T20:10:44Z","updated_at":"2015-03-16T20:10:44Z","body":"Yo're supposed to use system bzip on linux.\nAdd -lbzip2 (or whatever the actua flag is, can't remember) to the gcc\ncommand line\n\nOn Mon, Mar 16, 2015 at 7:26 PM, Mistranger <notifications@github.com>\nwrote:\n\n> bzip2 sublibrary (in src/bzip2 folder) isn't compiling on Linux when\n> running make. I'm use StormLib as a static library in my project and that\n> gives me a compiling error when I'm trying to build my project with static\n> libstorm.a\n> /usr/local/lib/libstorm.a(SCompression.cpp.o): In function Compress_BZIP2(void*,\n> int*, void*, int, int*, int)':\n> SCompression.cpp:(.text+0x7cb): undefined reference toBZ2_bzCompressInit'\n> SCompression.cpp:(.text+0x814): undefined reference to BZ2_bzCompress'\n> SCompression.cpp:(.text+0x831): undefined reference toBZ2_bzCompressEnd'\n> /usr/local/lib/libstorm.a(SCompression.cpp.o): In function Decompress_BZIP2(void*,\n> int*, void*, int)':\n> SCompression.cpp:(.text+0x888): undefined reference to\n> BZ2_bzDecompressInit'\n> SCompression.cpp:(.text+0x8be): undefined reference to BZ2_bzDecompress'\n> SCompression.cpp:(.text+0x8db): undefined reference toBZ2_bzDecompressEnd'\n> I made a workaround by adding ${ZLIB_BZIP2_FILES} in CMakeLists.txt, line\n> 286.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/ladislav-zezula/StormLib/issues/38>.\n>\n"}}