{"action":"created","issue":{"url":"https://api.github.com/repos/sourcey/libsourcey/issues/236","repository_url":"https://api.github.com/repos/sourcey/libsourcey","labels_url":"https://api.github.com/repos/sourcey/libsourcey/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/sourcey/libsourcey/issues/236/comments","events_url":"https://api.github.com/repos/sourcey/libsourcey/issues/236/events","html_url":"https://github.com/sourcey/libsourcey/issues/236","id":320538852,"number":236,"title":"Problem with finding uv.h","user":{"login":"Aroslaw","id":27006678,"avatar_url":"https://avatars0.githubusercontent.com/u/27006678?v=4","gravatar_id":"","url":"https://api.github.com/users/Aroslaw","html_url":"https://github.com/Aroslaw","followers_url":"https://api.github.com/users/Aroslaw/followers","following_url":"https://api.github.com/users/Aroslaw/following{/other_user}","gists_url":"https://api.github.com/users/Aroslaw/gists{/gist_id}","starred_url":"https://api.github.com/users/Aroslaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aroslaw/subscriptions","organizations_url":"https://api.github.com/users/Aroslaw/orgs","repos_url":"https://api.github.com/users/Aroslaw/repos","events_url":"https://api.github.com/users/Aroslaw/events{/privacy}","received_events_url":"https://api.github.com/users/Aroslaw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-05T20:25:13Z","updated_at":"2018-05-06T12:28:19Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nWhen I tried to compile one of examples projects (deviceEnumerator.cpp) I got this error\r\n\r\n```\r\n### MESSAGE: Entering directory `/home/ak/TestProgram/'\r\n/bin/sh -c '/usr/bin/make -j 4'\r\n----------Building project:[ Pierwszy - Debug ]----------\r\n-- Could NOT find LIBUV (missing:  LIBUV_LIBRARIES LIBUV_INCLUDE_DIR)\r\n-- Could NOT find HTTPPARSER (missing:  HTTPPARSER_LIBRARIES HTTPPARSER_INCLUDE_DIR)\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /home/ak/TestProgram\r\n[ 50%] Building CXX object CMakeFiles/First.dir/src/Main.cpp.o\r\nIn file included from /usr/local/include/scy/logger.h:17:0,\r\n                 from /home/ak/TestProgram/src/Main.cpp:2:\r\n/usr/local/include/scy/error.h:18:16: fatal error: uv.h: No such file or directory\r\ncompilation terminated.\r\nCMakeFiles/First.dir/build.make:62: recipe for target 'CMakeFiles/First.dir/src/Main.cpp.o' failed\r\nmake[2]: *** [CMakeFiles/First.dir/src/Main.cpp.o] Error 1\r\nCMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/First.dir/all' failed\r\nmake[1]: *** [CMakeFiles/First.dir/all] Error 2\r\nMakefile:83: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n====1 errors, 1 warnings====\r\n```\r\n\r\n\r\nHere is my CMakeLists:\r\n```\r\n\r\ncmake_minimum_required (VERSION 2.8)\r\nproject (First)\r\ninclude(FindPackageHandleStandardArgs)\r\n\r\nset (CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} -Wall -Werror -std=c++14\")\r\nset (source_dir \"${PROJECT_SOURCE_DIR}/src/\")\r\n\r\nset(LibSourcey_ROOT_DIR \"/usr/local/share/libsourcey\")\r\nfind_package_handle_standard_args(LibSourcey DEFAULT_MSG LibSourcey_ROOT_DIR)\r\n\r\nset(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${LibSourcey_ROOT_DIR}/cmake)\r\nset(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} ${LibSourcey_ROOT_DIR}/cmake)\r\n\r\nfind_package(LibSourcey COMPONENTS uv base REQUIRED)\r\n\r\nfile (GLOB source_files \"${source_dir}/*.cpp\")\r\n\r\nadd_executable (First ${source_files})\r\n```\r\n\r\nI am running Ubuntu 16.04 distro.\r\nCould someone help and tell me what am i missing ? \r\n\r\nThank you in advance.\r\n"},"comment":{"url":"https://api.github.com/repos/sourcey/libsourcey/issues/comments/386875939","html_url":"https://github.com/sourcey/libsourcey/issues/236#issuecomment-386875939","issue_url":"https://api.github.com/repos/sourcey/libsourcey/issues/236","id":386875939,"user":{"login":"Aroslaw","id":27006678,"avatar_url":"https://avatars0.githubusercontent.com/u/27006678?v=4","gravatar_id":"","url":"https://api.github.com/users/Aroslaw","html_url":"https://github.com/Aroslaw","followers_url":"https://api.github.com/users/Aroslaw/followers","following_url":"https://api.github.com/users/Aroslaw/following{/other_user}","gists_url":"https://api.github.com/users/Aroslaw/gists{/gist_id}","starred_url":"https://api.github.com/users/Aroslaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aroslaw/subscriptions","organizations_url":"https://api.github.com/users/Aroslaw/orgs","repos_url":"https://api.github.com/users/Aroslaw/repos","events_url":"https://api.github.com/users/Aroslaw/events{/privacy}","received_events_url":"https://api.github.com/users/Aroslaw/received_events","type":"User","site_admin":false},"created_at":"2018-05-06T12:28:19Z","updated_at":"2018-05-06T12:28:19Z","author_association":"NONE","body":"So,\r\nThe problem was with my directory I've pointed to : set(LibSourcey_ROOT_DIR \"/usr/local/share/libsourcey\") \r\nI've changed it to /home/<userName>/libsourcey\r\nWhat is more i added to my CMakeLists include_directories(\"${LibSourcey_INCLUDE_DIRS}\") defined in FindLibSourcey.cmake file.\r\n\r\nNow to overdue other problem with unknown references I have to include also\r\n```\r\n#  LibSourcey_DEFINITIONS   - Compiler switches required for using the required components.\r\n- #  LibSourcey_LIBRARY_DIRS  - Library directories necessary for using the required components.\r\n- #  LibSourcey_LIBRARIES     - Link these to use the required components.\r\n```\r\nUnfortunately I don't see any references to these variables in find*.cmake so I have to define them on my own.\r\n\r\nCould anyone help me with this problem\r\nI have builded my project in /home/<username>/libsourcey and I have also files in /usr/local/share/libsourcey (from sudo make install ?) \r\nWhat path do I have to specify to include all files from LibSourcey to my own Project ? \r\n "}}
{"actor":{"display_login":"Aroslaw"}}