{"action":"created","issue":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/812","labels_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/812/labels{/name}","comments_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/812/comments","events_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/812/events","html_url":"https://github.com/arrayfire/arrayfire/issues/812","id":87823405,"number":812,"title":"Build error - forge.h: No such file or directory","user":{"login":"munnybearz","id":11425416,"avatar_url":"https://avatars.githubusercontent.com/u/11425416?v=3","gravatar_id":"","url":"https://api.github.com/users/munnybearz","html_url":"https://github.com/munnybearz","followers_url":"https://api.github.com/users/munnybearz/followers","following_url":"https://api.github.com/users/munnybearz/following{/other_user}","gists_url":"https://api.github.com/users/munnybearz/gists{/gist_id}","starred_url":"https://api.github.com/users/munnybearz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munnybearz/subscriptions","organizations_url":"https://api.github.com/users/munnybearz/orgs","repos_url":"https://api.github.com/users/munnybearz/repos","events_url":"https://api.github.com/users/munnybearz/events{/privacy}","received_events_url":"https://api.github.com/users/munnybearz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-12T19:11:31Z","updated_at":"2015-06-12T19:12:39Z","closed_at":null,"body":"Hi.. It's really not my day today :(. Run into another build issue..\r\n\r\n```\r\n[  8%] Building CXX object src/backend/cpu/CMakeFiles/afcpu.dir/plot.cpp.o\r\nIn file included from /opt/arrayfire/src/backend/cpu/plot.hpp:13:0,\r\n                 from /opt/arrayfire/src/backend/cpu/plot.cpp:13:\r\n/opt/arrayfire/src/api/c/graphics_common.hpp:15:19: fatal error: forge.h: No such file or directory\r\n```\r\n\r\nI had a look around.. it looks like there is an extra fg/ subdirectory:\r\n\r\n```\r\nroot@e9e93eaf1d84:/opt/arrayfire/build# ll /opt/arrayfire/build/third_party/forge/include\r\ntotal 12\r\ndrwxr-xr-x 3 root root 4096 Jun 12 18:22 ./\r\ndrwxr-xr-x 8 root root 4096 Jun 12 18:22 ../\r\ndrwxr-xr-x 3 root root 4096 Jun 12 18:22 fg/\r\nroot@e9e93eaf1d84:/opt/arrayfire/build# ll /opt/arrayfire/build/third_party/forge/include/fg\r\ntotal 16\r\ndrwxr-xr-x 3 root root 4096 Jun 12 18:22 ./\r\ndrwxr-xr-x 3 root root 4096 Jun 12 18:22 ../\r\ndrwxr-xr-x 2 root root 4096 Jun 12 18:24 fg/\r\n-rw-r--r-- 1 root root  534 Jun 12 18:22 forge.h\r\n```\r\n\r\nI changed CMakeModules/build_forge.cmake from:\r\n\r\n```\r\n-SET(FORGE_INCLUDE_DIRECTORIES ${install_dir}/include)\r\n```\r\nto:\r\n```\r\n-SET(FORGE_INCLUDE_DIRECTORIES ${install_dir}/include/fg)\r\n```\r\n\r\nand it compiles now, but I am getting loads of link errors:\r\n\r\n```\r\nLinking C executable basic_c_cpu\r\n../third_party/forge/lib/libforge.so: undefined reference to `XcursorImageLoadCursor'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XineramaQueryExtension'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRGetCrtcInfo'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRGetCrtcGamma'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XineramaQueryScreens'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XineramaIsActive'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRSelectInput'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XcursorImageDestroy'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XISelectEvents'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRGetOutputPrimary'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XIQueryVersion'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRGetScreenResources'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRGetOutputInfo'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRAllocGamma'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRQueryExtension'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRUpdateConfiguration'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRGetScreenResourcesCurrent'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRSetCrtcConfig'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRGetCrtcGammaSize'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRSetCrtcGamma'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRFreeOutputInfo'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XcursorImageCreate'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRQueryVersion'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRFreeScreenResources'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRFreeGamma'\r\n../third_party/forge/lib/libforge.so: undefined reference to `XRRFreeCrtcInfo'\r\ncollect2: error: ld returned 1 exit status\r\nmake[2]: *** [test/basic_c_cpu] Error 1\r\nmake[1]: *** [test/CMakeFiles/basic_c_cpu.dir/all] Error 2\r\n```\r\n\r\nhelp :("},"comment":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/comments/111591816","html_url":"https://github.com/arrayfire/arrayfire/issues/812#issuecomment-111591816","issue_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/812","id":111591816,"user":{"login":"pavanky","id":364829,"avatar_url":"https://avatars.githubusercontent.com/u/364829?v=3","gravatar_id":"","url":"https://api.github.com/users/pavanky","html_url":"https://github.com/pavanky","followers_url":"https://api.github.com/users/pavanky/followers","following_url":"https://api.github.com/users/pavanky/following{/other_user}","gists_url":"https://api.github.com/users/pavanky/gists{/gist_id}","starred_url":"https://api.github.com/users/pavanky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavanky/subscriptions","organizations_url":"https://api.github.com/users/pavanky/orgs","repos_url":"https://api.github.com/users/pavanky/repos","events_url":"https://api.github.com/users/pavanky/events{/privacy}","received_events_url":"https://api.github.com/users/pavanky/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T19:12:39Z","updated_at":"2015-06-12T19:12:39Z","body":"We are fixing it as we speak :p"}}