Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) #889

Closed
zaoqidewoniu opened this issue Oct 24, 2019 · 5 comments
Closed

Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) #889

zaoqidewoniu opened this issue Oct 24, 2019 · 5 comments

Comments

@zaoqidewoniu
Copy link

zaoqidewoniu commented Oct 24, 2019

Build error in windows10(×64)

cmake version 3.10.0

I had install zlib and jpeg to C:\Program Files (x86)\GnuWin32, but errors occurred when i execute $"cmake ."

and error log is:

`PS C:\Users\cw\Desktop\tigervnc-master> cmake . CMake Deprecation Warning at CMakeLists.txt:7 (cmake_policy):
The OLD behavior for policy CMP0022 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

-- Selecting Windows SDK version 10.0.14393.0 to target Windows 10.0.18362.
-- The C compiler identification is MSVC 19.0.24210.0
-- The CXX compiler identification is MSVC 19.0.24210.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_BUILD_TYPE = Release
-- VERSION = 1.10.80
-- BUILD_TIMESTAMP = 2019-10-24 09:25
-- 32-bit build
CMake Warning at CMakeLists.txt:174 (message):
Gettext NOT found. Native Language Support disabled.

CMake Error at C:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.10/Modules/FindJPEG.cmake:30 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:180 (find_package)`

Any help will be appreciated!

@CendioOssman
Copy link
Member

I don't think that's a directory that's searched by default. Could you try specifying those variables manually? E.g. -DJPEG_INCLUDE_DIR=C:\Program Files (x86)\GnuWin32.

@samhed
Copy link
Member

samhed commented Nov 26, 2019

no response

@samhed samhed closed this as completed Nov 26, 2019
@vedantroy
Copy link

Does anyone have updates on this issue? I have two questions

  1. How do I install the correct JPEG library? This link exists: http://gnuwin32.sourceforge.net/packages/jpeg.htm, but I don't what to download/where to put it.

  2. What do I pass into CMake, so it can find the library?

@ROBYER1
Copy link

ROBYER1 commented Dec 5, 2020

-DJPEG_INCLUDE_DIR=C:\Program Files (x86)\GnuWin32

This doesn't work for me, I tried in powershell with cmake before the line

@seyeeet
Copy link

seyeeet commented Jul 15, 2021

anyone able to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants