Error CMAKE build

Error CMAKE build

Postby fabricio.ribeiro » 11 Jul 2018, 04:18

Hello guys.
I'm trying to make modifications to the supertux, however I'm not able to build the project in Windows. I have on my PC Windows 7 Ultimate and Visual Basic 2015, but when I try to follow the procedures to build the project from CMake (3.12.0) (https://github.com/SuperTux/supertux/bl ... ual-studio) the following message appears:

{l Code}: {l Select All Code}
D:\Arquivos\Workspace\C++\supertux-master\build>cmake ..
-- Building for: Visual Studio 14 2015
-- 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
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studi
o 14.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studi
o 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 Deprecation Warning at CMakeLists.txt:49 (CMAKE_POLICY):
  The OLD behavior for policy CMP0043 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.

-- Check if the system is big endian
-- Searching 16 bit integer
-- 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 unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Boost version: 1.61.0
-- Found the following Boost libraries:
--   filesystem
--   system
--   date_time
--   locale
-- Found OpenGL: opengl32
-- Found OpenAL: D:/Arquivos/Workspace/C++/supertux-master/src/dependencies/lib/
OpenAL32.lib
-- Looking for vorbis_bitrate_addblock in vorbis
-- Looking for vorbis_bitrate_addblock in vorbis - not found
-- Found OggVorbis: D:/Arquivos/Workspace/C++/supertux-master/src/dependencies/l
ib/libvorbisfile.lib;D:/Arquivos/Workspace/C++/supertux-master/src/dependencies/
lib/libvorbis.lib;D:/Arquivos/Workspace/C++/supertux-master/src/dependencies/lib
/libogg.lib
-- Could NOT find PhysFS (missing: PHYSFS_LIBRARY PHYSFS_INCLUDE_DIR)
-- Looking for PHYSFS_getPrefDir
-- Looking for PHYSFS_getPrefDir - not found
CMake Error at CMakeLists.txt:190 (message):
  physfs submodule is not checked out or
  D:/Arquivos/Workspace/C++/supertux-master/external/physfs/CMakeLists.txt is
  missing

-- Configuring incomplete, errors occurred!
See also "D:/Arquivos/Workspace/C++/supertux-master/build/CMakeFiles/CMakeOutput
.log".
See also "D:/Arquivos/Workspace/C++/supertux-master/build/CMakeFiles/CMakeError.
log".

D:\Arquivos\Workspace\C++\supertux-master\build>


[b]The "CMakeError.log" file displays this error:[/b]

{l Code}: {l Select All Code}
Determining if the function vorbis_bitrate_addblock exists in the vorbis failed with the following output:
Change Dir: D:/Arquivos/Workspace/C++/supertux-master/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_96ddc.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 10/07/2018 23:54:09.

Project "D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\cmTC_96ddc.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_96ddc.dir\Debug\".

  Creating directory "D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_96ddc.dir\Debug\cmTC_96ddc.tlog\".

InitializeBuildStatus:

  Creating "cmTC_96ddc.dir\Debug\cmTC_96ddc.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D CHECK_FUNCTION_EXISTS=vorbis_bitrate_addblock /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_96ddc.dir\Debug\\" /Fd"cmTC_96ddc.dir\Debug\vc140.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Program Files\CMake\share\cmake-3.12\Modules\CheckFunctionExists.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86

  Copyright (C) Microsoft Corporation.  All rights reserved.

  cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D CHECK_FUNCTION_EXISTS=vorbis_bitrate_addblock /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_96ddc.dir\Debug\\" /Fd"cmTC_96ddc.dir\Debug\vc140.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Program Files\CMake\share\cmake-3.12\Modules\CheckFunctionExists.c"

  CheckFunctionExists.c

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\Debug\cmTC_96ddc.exe" /INCREMENTAL /NOLOGO vorbis.lib "D:\Arquivos\Workspace\C++\supertux-master\src\dependencies\lib\libvorbisfile.lib" "D:\Arquivos\Workspace\C++\supertux-master\src\dependencies\lib\libvorbis.lib" "D:\Arquivos\Workspace\C++\supertux-master\src\dependencies\lib\libogg.lib" kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"D:/Arquivos/Workspace/C++/supertux-master/build/CMakeFiles/CMakeTmp/Debug/cmTC_96ddc.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/Arquivos/Workspace/C++/supertux-master/build/CMakeFiles/CMakeTmp/Debug/cmTC_96ddc.lib" /MACHINE:X86 /SAFESEH  /machine:X86 cmTC_96ddc.dir\Debug\CheckFunctionExists.obj

LINK : fatal error LNK1104: cannot open file 'vorbis.lib' [D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\cmTC_96ddc.vcxproj]

Done Building Project "D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\cmTC_96ddc.vcxproj" (default targets) -- FAILED.

Build FAILED.

"D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\cmTC_96ddc.vcxproj" (default target) (1) ->

(Link target) ->

  LINK : fatal error LNK1104: cannot open file 'vorbis.lib' [D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\cmTC_96ddc.vcxproj]

    0 Warning(s)

    1 Error(s)

Time Elapsed 00:00:00.49

Determining if the PHYSFS_getPrefDir exist failed with the following output:
Change Dir: D:/Arquivos/Workspace/C++/supertux-master/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_49de5.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 10/07/2018 23:54:10.

Project "D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\cmTC_49de5.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTC_49de5.dir\Debug\".

  Creating directory "D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\Debug\".

  Creating directory "cmTC_49de5.dir\Debug\cmTC_49de5.tlog\".

InitializeBuildStatus:

  Creating "cmTC_49de5.dir\Debug\cmTC_49de5.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_49de5.dir\Debug\\" /Fd"cmTC_49de5.dir\Debug\vc140.pdb" /Gd /TC /analyze- /errorReport:queue "D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\CheckSymbolExists.c"

  Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86

  Copyright (C) Microsoft Corporation.  All rights reserved.
 

  cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_49de5.dir\Debug\\" /Fd"cmTC_49de5.dir\Debug\vc140.pdb" /Gd /TC /analyze- /errorReport:queue "D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\CheckSymbolExists.c"
 
  CheckSymbolExists.c

D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\CheckSymbolExists.c(2): fatal error C1083: Cannot open include file: 'PHYSFS_INCLUDE_DIR-NOTFOUND/physfs.h': No such file or directory [D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\cmTC_49de5.vcxproj]

Done Building Project "D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\cmTC_49de5.vcxproj" (default targets) -- FAILED.

Build FAILED.

"D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\cmTC_49de5.vcxproj" (default target) (1) ->

(ClCompile target) ->

  D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\CheckSymbolExists.c(2): fatal error C1083: Cannot open include file: 'PHYSFS_INCLUDE_DIR-NOTFOUND/physfs.h': No such file or directory [D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\cmTC_49de5.vcxproj]

    0 Warning(s)

    1 Error(s)

Time Elapsed 00:00:00.49


File D:/Arquivos/Workspace/C++/supertux-master/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <PHYSFS_INCLUDE_DIR-NOTFOUND/physfs.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef PHYSFS_getPrefDir
  return ((int*)(&PHYSFS_getPrefDir))[argc];
#else
  (void)argc;
  return 0;
#endif
}




I believe that the file 'vorbis.lib' is missing, however I have already installed several versions of CMake, but always appreciate this problem or similar.
Please, somebody help me!
fabricio.ribeiro
 
Posts: 1
Joined: 11 Jul 2018, 03:47

Re: Error CMAKE build

Postby Tobbi » 20 Jul 2018, 10:28

{l Code}: {l Select All Code}
D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\CheckSymbolExists.c(2): fatal error C1083: Cannot open include file: 'PHYSFS_INCLUDE_DIR-NOTFOUND/physfs.h': No such file or directory [D:\Arquivos\Workspace\C++\supertux-master\build\CMakeFiles\CMakeTmp\cmTC_49de5.vcxproj]


Run
{l Code}: {l Select All Code}
 git submodule update --init --recursive
in the supertux root dir and this should be done.

Update:
Wait, I know this isn't the error, but please do this first so that we can rule out any side effects.
SuperTux developer.
User avatar
Tobbi
 
Posts: 316
Joined: 12 Oct 2013, 13:08

Who is online

Users browsing this forum: No registered users and 1 guest