{"action":"created","issue":{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/418","labels_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/418/labels{/name}","comments_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/418/comments","events_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/418/events","html_url":"https://github.com/OpenKinect/libfreenect2/issues/418","id":110227680,"number":418,"title":"Could NOT find TurboJPEG (missing: TURBOJPEG_WORKS)","user":{"login":"DarthSomebody","id":10331302,"avatar_url":"https://avatars.githubusercontent.com/u/10331302?v=3","gravatar_id":"","url":"https://api.github.com/users/DarthSomebody","html_url":"https://github.com/DarthSomebody","followers_url":"https://api.github.com/users/DarthSomebody/followers","following_url":"https://api.github.com/users/DarthSomebody/following{/other_user}","gists_url":"https://api.github.com/users/DarthSomebody/gists{/gist_id}","starred_url":"https://api.github.com/users/DarthSomebody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarthSomebody/subscriptions","organizations_url":"https://api.github.com/users/DarthSomebody/orgs","repos_url":"https://api.github.com/users/DarthSomebody/repos","events_url":"https://api.github.com/users/DarthSomebody/events{/privacy}","received_events_url":"https://api.github.com/users/DarthSomebody/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/labels/build","name":"build","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-10-07T13:38:33Z","updated_at":"2016-01-06T16:47:22Z","closed_at":"2015-11-06T12:00:50Z","body":"When I try to cmake libfreenect2, I get the error \"Could NOT find TurboJPEG (missing: TURBOJPEG_WORKS)\".\r\n\r\nHowever, TurboJPEG IS there. I checked the paths for the libs and include files and can't find out why he can't find it. I also tried to cmake it with different TurboJPEG versions, but none of them worked.\r\n\r\nThis is the CMakeError.log:\r\n```\r\nPerforming C SOURCE FILE Test TURBOJPEG_WORKS failed with the following output:\r\nChange Dir: D:/Documents/Arbeit/Libraries/libfreenect2/build/CMakeFiles/CMakeTmp\r\n\r\nRun Build Command:\"C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe\" \"cmTryCompileExec2473982567.vcxproj\" \"/p:Configuration=Debug\" \"/p:VisualStudioVersion=12.0\"\r\nMicrosoft (R) Build Engine version 12.0.40629.0\r\n\r\n[Microsoft .NET Framework, version 4.0.30319.34209]\r\n\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\n\r\n\r\nBuild started 07.10.2015 15:11:56.\r\n\r\nProject \"D:\\Documents\\Arbeit\\Libraries\\libfreenect2\\build\\CMakeFiles\\CMakeTmp\\cmTryCompileExec2473982567.vcxproj\" on node 1 (default targets).\r\n\r\nPrepareForBuild:\r\n\r\n  Creating directory \"cmTryCompileExec2473982567.dir\\Debug\\\".\r\n\r\n  Creating directory \"D:\\Documents\\Arbeit\\Libraries\\libfreenect2\\build\\CMakeFiles\\CMakeTmp\\Debug\\\".\r\n\r\n  Creating directory \"cmTryCompileExec2473982567.dir\\Debug\\cmTryCom.F68A2579.tlog\\\".\r\n\r\nInitializeBuildStatus:\r\n\r\n  Creating \"cmTryCompileExec2473982567.dir\\Debug\\cmTryCom.F68A2579.tlog\\unsuccessfulbuild\" because \"AlwaysCreate\" was specified.\r\n\r\nClCompile:\r\n\r\n  D:\\Programs\\Visual Studio Ultimate 2013\\VC\\bin\\CL.exe /c /I\"D:\\Documents\\Arbeit\\Libraries\\libfreenect2\\depends\\libjpeg-turbo64\\include\" /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D TURBOJPEG_WORKS /D _DEBUG /D \"CMAKE_INTDIR=\\\"Debug\\\"\" /D _MBCS /Gm- /RTC1 /MT /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo\"cmTryCompileExec2473982567.dir\\Debug\\\\\" /Fd\"cmTryCompileExec2473982567.dir\\Debug\\vc120.pdb\" /Gd /TC /analyze- /errorReport:queue D:\\Documents\\Arbeit\\Libraries\\libfreenect2\\build\\CMakeFiles\\CMakeTmp\\src.c\r\n\r\n  Microsoft (R) C/C++ Optimizing Compiler Version 18.00.40629 for x86\r\n\r\n  Copyright (C) Microsoft Corporation.  All rights reserved.\r\n\r\n\r\n\r\n  cl /c /I\"D:\\Documents\\Arbeit\\Libraries\\libfreenect2\\depends\\libjpeg-turbo64\\include\" /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D TURBOJPEG_WORKS /D _DEBUG /D \"CMAKE_INTDIR=\\\"Debug\\\"\" /D _MBCS /Gm- /RTC1 /MT /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo\"cmTryCompileExec2473982567.dir\\Debug\\\\\" /Fd\"cmTryCompileExec2473982567.dir\\Debug\\vc120.pdb\" /Gd /TC /analyze- /errorReport:queue D:\\Documents\\Arbeit\\Libraries\\libfreenect2\\build\\CMakeFiles\\CMakeTmp\\src.c\r\n\r\n\r\n\r\n  src.c\r\n\r\nLink:\r\n\r\n  D:\\Programs\\Visual Studio Ultimate 2013\\VC\\bin\\link.exe /ERRORREPORT:QUEUE /OUT:\"D:\\Documents\\Arbeit\\Libraries\\libfreenect2\\build\\CMakeFiles\\CMakeTmp\\Debug\\cmTryCompileExec2473982567.exe\" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib \"D:\\Documents\\Arbeit\\Libraries\\libfreenect2\\depends\\libjpeg-turbo64\\lib\\turbojpeg.lib\" /MANIFEST /MANIFESTUAC:\"level='asInvoker' uiAccess='false'\" /manifest:embed /DEBUG /PDB:\"D:/Documents/Arbeit/Libraries/libfreenect2/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec2473982567.pdb\" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:\"D:/Documents/Arbeit/Libraries/libfreenect2/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec2473982567.lib\" /MACHINE:X86 /SAFESEH  /machine:X86 /debug cmTryCompileExec2473982567.dir\\Debug\\src.obj\r\n\r\nsrc.obj : error LNK2019: unresolved external symbol _tjInitCompress referenced in function _main [D:\\Documents\\Arbeit\\Libraries\\libfreenect2\\build\\CMakeFiles\\CMakeTmp\\cmTryCompileExec2473982567.vcxproj]\r\n\r\nD:\\Documents\\Arbeit\\Libraries\\libfreenect2\\build\\CMakeFiles\\CMakeTmp\\Debug\\cmTryCompileExec2473982567.exe : fatal error LNK1120: 1 unresolved externals [D:\\Documents\\Arbeit\\Libraries\\libfreenect2\\build\\CMakeFiles\\CMakeTmp\\cmTryCompileExec2473982567.vcxproj]\r\n\r\nDone Building Project \"D:\\Documents\\Arbeit\\Libraries\\libfreenect2\\build\\CMakeFiles\\CMakeTmp\\cmTryCompileExec2473982567.vcxproj\" (default targets) -- FAILED.\r\n\r\n\r\n\r\nBuild FAILED.\r\n\r\n\r\n\r\n\"D:\\Documents\\Arbeit\\Libraries\\libfreenect2\\build\\CMakeFiles\\CMakeTmp\\cmTryCompileExec2473982567.vcxproj\" (default target) (1) ->\r\n\r\n(Link target) ->\r\n\r\n  src.obj : error LNK2019: unresolved external symbol _tjInitCompress referenced in function _main [D:\\Documents\\Arbeit\\Libraries\\libfreenect2\\build\\CMakeFiles\\CMakeTmp\\cmTryCompileExec2473982567.vcxproj]\r\n\r\n  D:\\Documents\\Arbeit\\Libraries\\libfreenect2\\build\\CMakeFiles\\CMakeTmp\\Debug\\cmTryCompileExec2473982567.exe : fatal error LNK1120: 1 unresolved externals [D:\\Documents\\Arbeit\\Libraries\\libfreenect2\\build\\CMakeFiles\\CMakeTmp\\cmTryCompileExec2473982567.vcxproj]\r\n\r\n\r\n\r\n    0 Warning(s)\r\n\r\n    2 Error(s)\r\n\r\n\r\n\r\nTime Elapsed 00:00:00.37\r\n\r\n\r\nSource file was:\r\n#include <turbojpeg.h>\r\nint main(void) { tjhandle h=tjInitCompress(); return 0; }\r\n```"},"comment":{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/comments/169384561","html_url":"https://github.com/OpenKinect/libfreenect2/issues/418#issuecomment-169384561","issue_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/418","id":169384561,"user":{"login":"rmkemker","id":14336785,"avatar_url":"https://avatars.githubusercontent.com/u/14336785?v=3","gravatar_id":"","url":"https://api.github.com/users/rmkemker","html_url":"https://github.com/rmkemker","followers_url":"https://api.github.com/users/rmkemker/followers","following_url":"https://api.github.com/users/rmkemker/following{/other_user}","gists_url":"https://api.github.com/users/rmkemker/gists{/gist_id}","starred_url":"https://api.github.com/users/rmkemker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmkemker/subscriptions","organizations_url":"https://api.github.com/users/rmkemker/orgs","repos_url":"https://api.github.com/users/rmkemker/repos","events_url":"https://api.github.com/users/rmkemker/events{/privacy}","received_events_url":"https://api.github.com/users/rmkemker/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T16:47:21Z","updated_at":"2016-01-06T16:47:21Z","body":"I figured it out...I was using the wrong compiler in cmake.  It defaulted to the x86 compiler instead of the x64 compiler.  Good to go...thanks!"}}