{"action":"created","issue":{"url":"https://api.github.com/repos/cdcseacave/openMVS/issues/86","repository_url":"https://api.github.com/repos/cdcseacave/openMVS","labels_url":"https://api.github.com/repos/cdcseacave/openMVS/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/cdcseacave/openMVS/issues/86/comments","events_url":"https://api.github.com/repos/cdcseacave/openMVS/issues/86/events","html_url":"https://github.com/cdcseacave/openMVS/issues/86","id":151518679,"number":86,"title":"does not compile on Ubuntu 14.04","user":{"login":"sweeneychris","id":799414,"avatar_url":"https://avatars.githubusercontent.com/u/799414?v=3","gravatar_id":"","url":"https://api.github.com/users/sweeneychris","html_url":"https://github.com/sweeneychris","followers_url":"https://api.github.com/users/sweeneychris/followers","following_url":"https://api.github.com/users/sweeneychris/following{/other_user}","gists_url":"https://api.github.com/users/sweeneychris/gists{/gist_id}","starred_url":"https://api.github.com/users/sweeneychris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweeneychris/subscriptions","organizations_url":"https://api.github.com/users/sweeneychris/orgs","repos_url":"https://api.github.com/users/sweeneychris/repos","events_url":"https://api.github.com/users/sweeneychris/events{/privacy}","received_events_url":"https://api.github.com/users/sweeneychris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-27T23:54:48Z","updated_at":"2016-04-28T04:54:37Z","closed_at":null,"body":"Hi Dan -- I just downloaded the master branch and tried to build OpenMVS. It mostly builds fine until it is time to build and link everything in the Apps folder. When linking InterfaceVisualSfM I get many errors that indicate to me that CUDA is not being linked properly:\r\n\r\nMesh.cpp:(.text._ZN7SEACAVE4CUDA8KernelRTclIIRNS_5cListINS_7TPoint3IfEERKS5_Li0ELi8192EjEERNS3_INS4_IjEERKSA_Li0ELi8192EjEENS1_11OutputParamEjEEE14cudaError_enumiDpOT_[_ZN7SEACAVE4CUDA8KernelRTclIIRNS_5cListINS_7TPoint3IfEERKS5_Li0ELi8192EjEERNS3_INS4_IjEERKSA_Li0ELi8192EjEENS1_11OutputParamEjEEE14cudaError_enumiDpOT_]+0x208): undefined reference to `cuLaunchGrid'\r\n../../lib/libMVS.a(Mesh.cpp.o): In function `cudaError_enum SEACAVE::CUDA::addKernelParam<unsigned int>(CUfunc_st*&, int&, unsigned int const&)':\r\nMesh.cpp:(.text._ZN7SEACAVE4CUDA14addKernelParamIjEE14cudaError_enumRP9CUfunc_stRiRKT_[_ZN7SEACAVE4CUDA14addKernelParamIjEE14cudaError_enumRP9CUfunc_stRiRKT_]+0x4a): undefined reference to `cuParamSetv'\r\n../../lib/libCommon.a(CUDA.cpp.o): In function `SEACAVE::CUDA::Device::~Device()':\r\nCUDA.cpp:(.text._ZN7SEACAVE4CUDA6DeviceD2Ev[_ZN7SEACAVE4CUDA6DeviceD5Ev]+0x24): undefined reference to `cuCtxDestroy_v2'\r\n\r\n\r\n\r\nThose are just a few examples. I have checked the base directory's CMakeLists.txt and CUDA (v7.5) is being found correctly. Even if I add a line target_link_libraries(InterfaceVisualSFM ${CUDA_LIBRARIES}) to the InterfaceVisualSFM cmake file it still does not work. Similarly, when I add message(\"${CUDA_LIBRARIES}\") to that file it indeed prints the correct location of the cuda library. \r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/cdcseacave/openMVS/issues/comments/215309798","html_url":"https://github.com/cdcseacave/openMVS/issues/86#issuecomment-215309798","issue_url":"https://api.github.com/repos/cdcseacave/openMVS/issues/86","id":215309798,"user":{"login":"cdcseacave","id":2802670,"avatar_url":"https://avatars.githubusercontent.com/u/2802670?v=3","gravatar_id":"","url":"https://api.github.com/users/cdcseacave","html_url":"https://github.com/cdcseacave","followers_url":"https://api.github.com/users/cdcseacave/followers","following_url":"https://api.github.com/users/cdcseacave/following{/other_user}","gists_url":"https://api.github.com/users/cdcseacave/gists{/gist_id}","starred_url":"https://api.github.com/users/cdcseacave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdcseacave/subscriptions","organizations_url":"https://api.github.com/users/cdcseacave/orgs","repos_url":"https://api.github.com/users/cdcseacave/repos","events_url":"https://api.github.com/users/cdcseacave/events{/privacy}","received_events_url":"https://api.github.com/users/cdcseacave/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T04:54:37Z","updated_at":"2016-04-28T04:54:37Z","body":"I do not have CUDA on my linux machine, so didn't test and can't debug, but one quick thing you can do is disable CUDA support, nothing is lost from the functionality of the pipeline. There is an option in the CMake configuration."}}