{"action":"created","issue":{"url":"https://api.github.com/repos/tdlib/td/issues/347","repository_url":"https://api.github.com/repos/tdlib/td","labels_url":"https://api.github.com/repos/tdlib/td/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/tdlib/td/issues/347/comments","events_url":"https://api.github.com/repos/tdlib/td/issues/347/events","html_url":"https://github.com/tdlib/td/issues/347","id":354916615,"node_id":"MDU6SXNzdWUzNTQ5MTY2MTU=","number":347,"title":"Cannot load/include TdTarget.cmake","user":{"login":"MaxiGH","id":19590037,"node_id":"MDQ6VXNlcjE5NTkwMDM3","avatar_url":"https://avatars3.githubusercontent.com/u/19590037?v=4","gravatar_id":"","url":"https://api.github.com/users/MaxiGH","html_url":"https://github.com/MaxiGH","followers_url":"https://api.github.com/users/MaxiGH/followers","following_url":"https://api.github.com/users/MaxiGH/following{/other_user}","gists_url":"https://api.github.com/users/MaxiGH/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxiGH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxiGH/subscriptions","organizations_url":"https://api.github.com/users/MaxiGH/orgs","repos_url":"https://api.github.com/users/MaxiGH/repos","events_url":"https://api.github.com/users/MaxiGH/events{/privacy}","received_events_url":"https://api.github.com/users/MaxiGH/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-28T21:47:44Z","updated_at":"2018-10-20T13:11:02Z","closed_at":"2018-08-28T22:04:42Z","author_association":"NONE","body":"Hallo again, I rearranged that project and have some new issues. I want to compile that project for Java x64 on Windows.\r\n\r\nSo what I am doing, is 2 steps for building. First: Build jnibuild:\r\n\r\n`cmake -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON -DCMAKE_INSTALL_PREFIX:PATH=../example/java/td .. -A x64 -DCMAKE_TOOLCHAIN_FILE=<VCPKG_DIR>/scripts/buildsystems/vcpkg.cmake`\r\n\r\nand after cmake configuration:\r\n\r\n`cmake --build . --target install --config Release`\r\n\r\nNow I go into /example/java/build:\r\n\r\n`cmake -DCMAKE_BUILD_TYPE=Release -DTd_DIR=<full path to TDLib sources>/example/java/td/lib/cmake/Td -DCMAKE_INSTALL_PREFIX:PATH=.. .. -A x64 -DCMAKE_TOOLCHAIN_FILE=<VCPKG_DIR>/scripts/buildsystems/vcpkg.cmake`\r\n\r\nthen I get a note in the progress, \r\n\r\nCMake Error at C:/Users/Maxi/Desktop/td/TdConfig.cmake:3 (include):\r\ninclude could not find load file:\r\n\r\nC:/Users/Maxi/Desktop/td/TdTargets.cmake\r\nCall Stack (most recent call first):\r\nCMakeLists.txt:5 (find_package)\r\n\r\nI tried to search for that file and found two, one in td/jnibuild and the other one somewhere in the java directory. I tried to copy both, but it ended with weird file include path errors. So I guess these files are not to be meant to use.\r\n\r\nafter that I assume to finish building process with:\r\n\r\n`cmake --build . --target install --config Release`\r\n\r\nI guess using the vcpkg toolchain file for both cmake parts (jnibuild and java/build) is right. I also use -A x64 in both lines.  If it would work, I would have used the same `cmake --build` command than before. Is that a correct assumption? I don't get what I'm missing, for jnibuild everything looked fine. Can you help me out?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tdlib/td/issues/comments/431579977","html_url":"https://github.com/tdlib/td/issues/347#issuecomment-431579977","issue_url":"https://api.github.com/repos/tdlib/td/issues/347","id":431579977,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTU3OTk3Nw==","user":{"login":"sophieonfire","id":25120916,"node_id":"MDQ6VXNlcjI1MTIwOTE2","avatar_url":"https://avatars3.githubusercontent.com/u/25120916?v=4","gravatar_id":"","url":"https://api.github.com/users/sophieonfire","html_url":"https://github.com/sophieonfire","followers_url":"https://api.github.com/users/sophieonfire/followers","following_url":"https://api.github.com/users/sophieonfire/following{/other_user}","gists_url":"https://api.github.com/users/sophieonfire/gists{/gist_id}","starred_url":"https://api.github.com/users/sophieonfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sophieonfire/subscriptions","organizations_url":"https://api.github.com/users/sophieonfire/orgs","repos_url":"https://api.github.com/users/sophieonfire/repos","events_url":"https://api.github.com/users/sophieonfire/events{/privacy}","received_events_url":"https://api.github.com/users/sophieonfire/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T13:11:02Z","updated_at":"2018-10-20T13:11:02Z","author_association":"NONE","body":"@MaxiGH Hey. U solved that Problem??? Are you german? =)"}}
{"actor":{"display_login":"sophieonfire"}}