{"action":"created","issue":{"url":"https://api.github.com/repos/frostwire/frostwire-jlibtorrent/issues/73","labels_url":"https://api.github.com/repos/frostwire/frostwire-jlibtorrent/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/frostwire/frostwire-jlibtorrent/issues/73/comments","events_url":"https://api.github.com/repos/frostwire/frostwire-jlibtorrent/issues/73/events","html_url":"https://github.com/frostwire/frostwire-jlibtorrent/issues/73","id":127672521,"number":73,"title":"Cross-compilation for Windows fails","user":{"login":"rkfg","id":184066,"avatar_url":"https://avatars.githubusercontent.com/u/184066?v=3","gravatar_id":"","url":"https://api.github.com/users/rkfg","html_url":"https://github.com/rkfg","followers_url":"https://api.github.com/users/rkfg/followers","following_url":"https://api.github.com/users/rkfg/following{/other_user}","gists_url":"https://api.github.com/users/rkfg/gists{/gist_id}","starred_url":"https://api.github.com/users/rkfg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkfg/subscriptions","organizations_url":"https://api.github.com/users/rkfg/orgs","repos_url":"https://api.github.com/users/rkfg/repos","events_url":"https://api.github.com/users/rkfg/events{/privacy}","received_events_url":"https://api.github.com/users/rkfg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-20T12:30:49Z","updated_at":"2016-01-20T18:50:11Z","closed_at":null,"body":"So I've managed to compile it for Linux, no problems. Now I've installed mingw and trying to build the library but stuck at:\r\n```\r\n> ./build.sh --win32\r\nBOOST_ROOT = /home/rkfg/Development/boost_1_60_0\r\nLIBTORRENT_ROOT = /home/rkfg/Development/libtorrent\r\nCXXFLAGS =\r\nLDFLAGS =\r\nOS = LINUX\r\nbuilding boost from source directory:  /home/rkfg/Development/boost_1_60_0\r\nPerforming configuration checks\r\n\r\n    - 32-bit                   : yes (cached)\r\n    - arm                      : no  (cached)\r\n    - mips1                    : no  (cached)\r\n    - power                    : no  (cached)\r\n    - sparc                    : no  (cached)\r\n    - x86                      : yes (cached)\r\n    - symlinks supported       : yes (cached)\r\n...patience...\r\n...patience...\r\n...found 4456 targets...\r\n...updating 3 targets...\r\ngcc.compile.c++ bin/windows/x86/libtorrent_jni.o\r\nIn file included from /home/rkfg/Development/libtorrent/include/libtorrent/storage.hpp:55:0,\r\n                 from libtorrent_jni.cpp:704:\r\n/home/rkfg/Development/libtorrent/include/libtorrent/hasher.hpp:53:25: fatal error: openssl/sha.h: No such file or directory\r\ncompilation terminated.\r\n```\r\n\r\nI have libssl-dev installed and also cloned openssl git repo to ~/Development but it didn't change anything. Instructions on the main page are obsolete and should be updated but in the meantime I'm interested in solving this. I'm on Debian testing amd64. Mingw64 toolchain is installed from repo and symlinked: `~/Development/toolchains/windows-x86/bin -> /usr/bin`\r\n\r\nAlso I tried to symlink /usr/include/openssl to /usr/local/include (as it's used in compilation: -I\"/usr/local/include\") but in the end it failed on linking, -lcrypto and -lssl not found so I decided to find a more proper way to compile it."},"comment":{"url":"https://api.github.com/repos/frostwire/frostwire-jlibtorrent/issues/comments/173322392","html_url":"https://github.com/frostwire/frostwire-jlibtorrent/issues/73#issuecomment-173322392","issue_url":"https://api.github.com/repos/frostwire/frostwire-jlibtorrent/issues/73","id":173322392,"user":{"login":"rkfg","id":184066,"avatar_url":"https://avatars.githubusercontent.com/u/184066?v=3","gravatar_id":"","url":"https://api.github.com/users/rkfg","html_url":"https://github.com/rkfg","followers_url":"https://api.github.com/users/rkfg/followers","following_url":"https://api.github.com/users/rkfg/following{/other_user}","gists_url":"https://api.github.com/users/rkfg/gists{/gist_id}","starred_url":"https://api.github.com/users/rkfg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkfg/subscriptions","organizations_url":"https://api.github.com/users/rkfg/orgs","repos_url":"https://api.github.com/users/rkfg/repos","events_url":"https://api.github.com/users/rkfg/events{/privacy}","received_events_url":"https://api.github.com/users/rkfg/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T18:50:11Z","updated_at":"2016-01-20T18:50:11Z","body":"Thank you for suggestions. Now, it's not really related to the library but I wasn't able to find any instructions about cross-compiling OpenSSL. I saw some outdated stuff and statements that it \"works out of the box\" which isn't true in my case.\r\n\r\nWhat I did:\r\n\r\n1. cloned https://github.com/openssl/openssl\r\n1. git checkout OpenSSL_1_0_2-stable\r\n1. `./Configure no-dso mingw64` (without no-dso I get `fatal error: tlhelp32.h: No such file or directory` and with just `mingw` — `cc1: error: CPU you selected does not support x86-64 instruction set`)\r\n1. make depend\r\n1. make\r\n\r\nIt results in this:\r\n```\r\nx86_64cpuid.s: Assembler messages:\r\nx86_64cpuid.s:13: Error: unknown pseudo-op: `.def'\r\nx86_64cpuid.s:13: Error: unknown pseudo-op: `.scl'\r\nx86_64cpuid.s:13: Error: Missing symbol name in directive\r\nx86_64cpuid.s:13: Error: unrecognized symbol type \"32\"\r\nx86_64cpuid.s:13: Error: unknown pseudo-op: `.endef'\r\nx86_64cpuid.s:27: Error: unknown pseudo-op: `.def'\r\nx86_64cpuid.s:27: Error: unknown pseudo-op: `.scl'\r\nx86_64cpuid.s:27: Error: Missing symbol name in directive\r\n<...>\r\n```\r\n\r\nStuck again, can't find anything like that in google regarding OpenSSL..."}}