Page 1 of 1

CMake could not find JPEG

PostPosted: 28 Jan 2018, 22:00
by Mr.XX99
Hi,
I'm new to supertuxkart and wanted to build it on Windows (10 64-bit) because I would like to contribute to STK in the future.
I downloaded stk-code, stk-assets and the dependencies (with Git through Source Tree and Tortoise SVN) and followed the instructions (https://github.com/supertuxkart/stk-cod ... on-windows).
But I have a problem with CMake.

By the way: I think there is a mistake on the instruction for CMAKE:
... double click on the CMake icon on your desktop, and point it towards your stk-code directory in the 'Where is the source code' field, and point it to a directory called build or bld inside the stk-code directory [in the 'Where to build the binareies' field /*this is missing*/]

Or did I understand it wrong? Either way it is written confusing.

When I click on Configure I get the following outuput:
Selecting Windows SDK version 10.0.14393.0 to target Windows 10.0.16299.
The C compiler identification is MSVC 19.0.24215.1
The CXX compiler identification is MSVC 19.0.24215.1
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
No build type selected, default to STKRelease
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Found OpenGL: opengl32
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of off64_t
Check size of off64_t - failed
Looking for fseeko
Looking for fseeko - not found
Looking for unistd.h
Looking for unistd.h - not found
Performing Test HAVE_LD_VERSION_SCRIPT
Performing Test HAVE_LD_VERSION_SCRIPT - Failed
Performing Test HAVE_SOLARIS_LD_VERSION_SCRIPT
Performing Test HAVE_SOLARIS_LD_VERSION_SCRIPT - Failed
CMake Error at C:/ProgrammeSpezial/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:/ProgrammeSpezial/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
C:/ProgrammeSpezial/CMake/share/cmake-3.10/Modules/FindJPEG.cmake:30 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:163 (find_package)



Configuring incomplete, errors occurred!
See also "C:/Users/Alex/Documents/myGittRepos/STK/stk-code/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Alex/Documents/myGittRepos/STK/stk-code/build/CMakeFiles/CMakeError.log".


I searched the web for this error of missing JPEG_LIBRARY, but I did not find a working solution.
Can anyone please help me.

Re: CMake could not find JPEG

PostPosted: 28 Jan 2018, 23:18
by QwertyChouskie
Mr.XX99 {l Wrote}:By the way: I think there is a mistake on the instruction for CMAKE:
... double click on the CMake icon on your desktop, and point it towards your stk-code directory in the 'Where is the source code' field, and point it to a directory called build or bld inside the stk-code directory [in the 'Where to build the binareies' field /*this is missing*/]

Or did I understand it wrong? Either way it is written confusing.


I think the idea is to make an empty folder inside of stk-code called "build" and run cmake from there.

Re: CMake could not find JPEG

PostPosted: 28 Jan 2018, 23:37
by Mr.XX99
Thats exactly what I did when this error occured.

Re: CMake could not find JPEG

PostPosted: 28 Jan 2018, 23:58
by QwertyChouskie
Did you get the dependencies from https://github.com/supertuxkart/depende ... dows_64bit and rename "dependencies" to "dependencies-64bit"? Also make sure the folder is in stk-code. The source tree should look like this:
{l Code}: {l Select All Code}
> supertuxkart
  > stk-assets
    > karts
    > tracks
    > ...
  > stk-code
    > build
    > data
    > dependencies (or dependencies-64bit)
    > src
    > ...

Re: CMake could not find JPEG

PostPosted: 29 Jan 2018, 00:13
by Mr.XX99
Yep, I did everything like in the instructions.
I have stk-code and stk-assets in the same folder, named STK. In this folder there is also the full depencies repo, from which I copied (from the windows_64bit folder) the folder dependencies into the folder stk-code and renamed it to "dependencies-64bit".
I tried opening the CMake gui and pointing to the stk-code folder and I tried, how it is told in the instructions for command line, running the command "cmake .." in the folder build.

Re: CMake could not find JPEG

PostPosted: 29 Jan 2018, 00:30
by QwertyChouskie
Hmmm.... Maybe try also putting the 32bit deps folder in as "dependencies"?

Re: CMake could not find JPEG

PostPosted: 29 Jan 2018, 12:16
by Mr.XX99
QwertyChouskie {l Wrote}:Hmmm.... Maybe try also putting the 32bit deps folder in as "dependencies"?


Thank You very much, that fixed it! :)

Re: CMake could not find JPEG

PostPosted: 30 Jan 2018, 20:51
by QwertyChouskie
No problem.