{"action":"closed","issue":{"url":"https://api.github.com/repos/WPO-Foundation/webpagetest/issues/464","labels_url":"https://api.github.com/repos/WPO-Foundation/webpagetest/issues/464/labels{/name}","comments_url":"https://api.github.com/repos/WPO-Foundation/webpagetest/issues/464/comments","events_url":"https://api.github.com/repos/WPO-Foundation/webpagetest/issues/464/events","html_url":"https://github.com/WPO-Foundation/webpagetest/issues/464","id":96748284,"number":464,"title":"Unable to build wpthook with mozjpeg","user":{"login":"kart","id":13124,"avatar_url":"https://avatars.githubusercontent.com/u/13124?v=3","gravatar_id":"","url":"https://api.github.com/users/kart","html_url":"https://github.com/kart","followers_url":"https://api.github.com/users/kart/followers","following_url":"https://api.github.com/users/kart/following{/other_user}","gists_url":"https://api.github.com/users/kart/gists{/gist_id}","starred_url":"https://api.github.com/users/kart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kart/subscriptions","organizations_url":"https://api.github.com/users/kart/orgs","repos_url":"https://api.github.com/users/kart/repos","events_url":"https://api.github.com/users/kart/events{/privacy}","received_events_url":"https://api.github.com/users/kart/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-23T07:10:02Z","updated_at":"2015-07-23T10:35:59Z","closed_at":"2015-07-23T10:35:59Z","body":"Building wpthook fails due to unavailable jconfig.h and jconfigint.h. The VS project expects it to be present in agent/wpthook/mozjpeg. However, only, .in files are present at that location. There is a jconfig.h and jconfigint.h in mozjpeg/win, but the jconfig.h in mozjpeg/win has a #cmakedefine which fails the build.\r\n\r\nI did the following to workaround for now:\r\n-- cloned the official mozjpeg repo.\r\n-- ran **cmake -DWITH_ARITH_ENC=0 -DWITH_ARITH_DEC=0 .** from the root directory\r\n-- copied the jconfig.h and jconfigint.h into agent/wpthook/mozjpeg\r\n\r\nWith this, I get a clean build. Interestingly, if I build with arithmetic encoding and decoding, I get a link time error in visual studio:\r\n```\r\n1>jccoefct.obj : error LNK2019: unresolved external symbol _jget_arith_rates referenced in function _compress_trellis_pass\r\n1>jcinit.obj : error LNK2019: unresolved external symbol _jinit_arith_encoder referenced in function _jinit_compress_master\r\n1>jctrans.obj : error LNK2001: unresolved external symbol _jinit_arith_encoder\r\n1>jdmaster.obj : error LNK2019: unresolved external symbol _jinit_arith_decoder referenced in function _master_selection\r\n1>jdtrans.obj : error LNK2001: unresolved external symbol _jinit_arith_decoder\r\n1>C:\\Users\\Public\\webpagetest\\Debug\\wpthook.dll : fatal error LNK1120: 3 unresolved externals\r\n```\r\n\r\nThis error is resolved if we include jcarith.c and jdarith.c in the project.\r\n"}}