Arx Libertatis Bug Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report #694  -  Can't compile ArxLibertatis under Window Visual Studio 2013
Posted Dec 05, 2014 - updated Dec 09, 2014   Shortlink: http://arx.vg/694
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
icon_info.png This issue has been closed with status "Fixed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
     
    Fixed
  • Assigned to
    Not assigned to anyone
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     Guest user
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Category
    Not determined
  • Resolution
    RESOLVED
  • Priority
    Not determined
  • Reproducability
    Always
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • OS
    icon_customdatatype.png Not determined
  • Architecture
    icon_customdatatype.png Not determined
  • Fixed in
    icon_customdatatype.png Not determined
Issue description
I have followed the steps outlined in the wiki page :http://wiki.arx-libertatis.org/Downloading_and_Compiling_under_Windows , trying to compile it under Windows, and yet I received an error message in Visual Studio 2013 complaining "cannot find QApplication" I am wondering how can I resolve this?

Also include to output of the cmake command with a clean build:

  1. Windows PowerShell
  2. Copyright (C) 2013 Microsoft Corporation. All rights reserved.
  3.  
  4. C:\Users\Helen Wong\Documents\GitHub> cd ArxLibertatis
  5. C:\Users\Helen Wong\Documents\GitHub\ArxLibertatis [master]> git pull
  6. Already up-to-date.
  7. C:\Users\Helen Wong\Documents\GitHub\ArxLibertatis [master]> mkdir build_vc12
  8.  
  9.  
  10. Directory: C:\Users\Helen Wong\Documents\GitHub\ArxLibertatis
  11.  
  12.  
  13. Mode LastWriteTime Length Name
  14. ---- ------------- ------ ----
  15. d---- 12/5/2014 11:50 AM build_vc12
  16.  
  17.  
  18. C:\Users\Helen Wong\Documents\GitHub\ArxLibertatis [master]> cd build_vc12
  19. C:\Users\Helen Wong\Documents\GitHub\ArxLibertatis\build_vc12 [master]> cmake .. -G "Visual Studio 12" -DUNITY_BUILD=1
  20. -- The C compiler identification is MSVC 18.0.30501.0
  21. -- The CXX compiler identification is MSVC 18.0.30501.0
  22. -- Check for working C compiler using: Visual Studio 12 2013
  23. -- Check for working C compiler using: Visual Studio 12 2013 -- works
  24. -- Detecting C compiler ABI info
  25. -- Detecting C compiler ABI info - done
  26. -- Check for working CXX compiler using: Visual Studio 12 2013
  27. -- Check for working CXX compiler using: Visual Studio 12 2013 -- works
  28. -- Detecting CXX compiler ABI info
  29. -- Detecting CXX compiler ABI info - done
  30. -- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
  31. -- Looking for include file pthread.h
  32. -- Looking for include file pthread.h - not found
  33. -- Found Threads: TRUE
  34. -- Found ZLIB: C:/Users/Helen Wong/Documents/GitHub/ArxWindows/libs/zlib/lib/x86/zlib.lib (found version "1.2.5")
  35. -- Found Freetype: C:/Users/Helen Wong/Documents/GitHub/ArxWindows/libs/freetype/lib/x86/freetype.lib (found version "2.
  36. 4.4")
  37. -- Found OpenGL: opengl32
  38. -- Found GLEW: C:/Users/Helen Wong/Documents/GitHub/ArxWindows/libs/opengl/lib/x86/glew32s.lib
  39. -- Found OpenAL: C:/Users/Helen Wong/Documents/GitHub/ArxWindows/libs/openal/lib/x86/OpenAL.lib (Required is at least ve
  40. rsion "1.1")
  41. -- Found OpenALEFX: C:/Users/Helen Wong/Documents/GitHub/ArxWindows/libs/openal/include
  42. -- Could NOT find SDL2 (missing: SDL2_LIBRARY)
  43. -- Found SDL: C:/Users/Helen Wong/Documents/GitHub/ArxWindows/libs/sdl/lib/x86/SDL.lib (found suitable version "1.2.15",
  44. minimum required is "1.2")
  45. -- Boost version: 1.55.0
  46. -- Found GLM: C:/Users/Helen Wong/Documents/GitHub/ArxWindows/libs/glm
  47. -- Found unsuitable Qt version "" from NOTFOUND
  48. -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
  49. -- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
  50. CMake Warning (dev) at cmake/BuildSystem.cmake:123 (if):
  51. Policy CMP0054 is not set: Only interpret if() arguments as variables or
  52. keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
  53. details. Use the cmake_policy command to set the policy and suppress this
  54. warning.
  55.  
  56. Quoted variables like "WIN32" will no longer be dereferenced when the
  57. policy is set to NEW. Since the policy is not set the OLD behavior will be
  58. used.
  59. Call Stack (most recent call first):
  60. CMakeLists.txt:1104 (set_binary_installdir)
  61. This warning is for project developers. Use -Wno-dev to suppress it.
  62.  
  63. CMake Warning (dev) at cmake/BuildSystem.cmake:310 (if):
  64. Policy CMP0054 is not set: Only interpret if() arguments as variables or
  65. keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
  66. details. Use the cmake_policy command to set the policy and suppress this
  67. warning.
  68.  
  69. Quoted variables like "WIN32" will no longer be dereferenced when the
  70. policy is set to NEW. Since the policy is not set the OLD behavior will be
  71. used.
  72. Call Stack (most recent call first):
  73. cmake/BuildSystem.cmake:375 (_shared_build_add_binary)
  74. CMakeLists.txt:1439 (unity_build)
  75. This warning is for project developers. Use -Wno-dev to suppress it.
  76.  
  77. CMake Warning (dev) at CMakeLists.txt:1481 (get_property):
  78. Policy CMP0026 is not set: Disallow use of the LOCATION target property.
  79. Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
  80. command to set the policy and suppress this warning.
  81.  
  82. The LOCATION property should not be read from target "arx". Use the target
  83. name directly with add_custom_command, or use the generator expression
  84. $<TARGET_FILE>, as appropriate.
  85.  
  86. This warning is for project developers. Use -Wno-dev to suppress it.
  87.  
  88.  
  89. Configuration:
  90. - Filesystem backend: Win32
  91. - Renderer: OpenGL
  92. - Audio backend: OpenAL with EFX
  93. - Windowing: SDL 1.2
  94. - Crash handler: (none)
  95. - Crash reporter: disabled
  96. - Tools: enabled
  97.  
  98. -- Configuring done
  99. -- Generating done
  100. -- Build files have been written to: C:/Users/Helen Wong/Documents/GitHub/ArxLibertatis/build_vc12
Steps to reproduce this issue
I am using Window 8.1, 64 bit. With MinGW, MSYS, git bash and Visual Studio 2013 installed.

#1
icon_reply.pngReply
Comment posted by
 Guest user
Dec 05, 20:05
This is in my CMake error log -----------------------------------------------------------------------------------------
  1. Determining if files pthread.h exist failed with the following output:
  2. Change Dir: C:/Users/Helen Wong/Documents/GitHub/ArxLibertatis/build_vc12/CMakeFiles/CMakeTmp
  3.  
  4. Run Build Command:"C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe" "cmTryCompileExec1882702174.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=12.0"
  5. Microsoft (R) Build Engine version 12.0.30501.0
  6.  
  7. [Microsoft .NET Framework, version 4.0.30319.34014]
  8.  
  9. Copyright (C) Microsoft Corporation. All rights reserved.
  10.  
  11.  
  12.  
  13. Build started 12/5/2014 11:50:53 AM.
  14.  
  15. Project "C:\Users\Helen Wong\Documents\GitHub\ArxLibertatis\build_vc12\CMakeFiles\CMakeTmp\cmTryCompileExec1882702174.vcxproj" on node 1 (default targets).
  16.  
  17. PrepareForBuild:
  18.  
  19. Creating directory "cmTryCompileExec1882702174.dir\Debug\".
  20.  
  21. Creating directory "C:\Users\Helen Wong\Documents\GitHub\ArxLibertatis\build_vc12\CMakeFiles\CMakeTmp\Debug\".
  22.  
  23. Creating directory "cmTryCompileExec1882702174.dir\Debug\cmTryCom.B486E84D.tlog\".
  24.  
  25. InitializeBuildStatus:
  26.  
  27. Creating "cmTryCompileExec1882702174.dir\Debug\cmTryCom.B486E84D.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
  28.  
  29. ClCompile:
  30.  
  31. C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec1882702174.dir\Debug\\" /Fd"cmTryCompileExec1882702174.dir\Debug\vc120.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Users\Helen Wong\Documents\GitHub\ArxLibertatis\build_vc12\CMakeFiles\CMakeTmp\CheckIncludeFiles.c"
  32.  
  33. Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30501 for x86
  34.  
  35. Copyright (C) Microsoft Corporation. All rights reserved.
  36.  
  37.  
  38.  
  39. cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec1882702174.dir\Debug\\" /Fd"cmTryCompileExec1882702174.dir\Debug\vc120.pdb" /Gd /TC /analyze- /errorReport:queue "C:\Users\Helen Wong\Documents\GitHub\ArxLibertatis\build_vc12\CMakeFiles\CMakeTmp\CheckIncludeFiles.c"
  40.  
  41.  
  42.  
  43. CheckIncludeFiles.c
  44.  
  45. C:\Users\Helen Wong\Documents\GitHub\ArxLibertatis\build_vc12\CMakeFiles\CMakeTmp\CheckIncludeFiles.c(2): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\Users\Helen Wong\Documents\GitHub\ArxLibertatis\build_vc12\CMakeFiles\CMakeTmp\cmTryCompileExec1882702174.vcxproj]
  46.  
  47. Done Building Project "C:\Users\Helen Wong\Documents\GitHub\ArxLibertatis\build_vc12\CMakeFiles\CMakeTmp\cmTryCompileExec1882702174.vcxproj" (default targets) -- FAILED.
  48.  
  49.  
  50.  
  51. Build FAILED.
  52.  
  53.  
  54.  
  55. "C:\Users\Helen Wong\Documents\GitHub\ArxLibertatis\build_vc12\CMakeFiles\CMakeTmp\cmTryCompileExec1882702174.vcxproj" (default target) (1) ->
  56.  
  57. (ClCompile target) ->
  58.  
  59. C:\Users\Helen Wong\Documents\GitHub\ArxLibertatis\build_vc12\CMakeFiles\CMakeTmp\CheckIncludeFiles.c(2): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [C:\Users\Helen Wong\Documents\GitHub\ArxLibertatis\build_vc12\CMakeFiles\CMakeTmp\cmTryCompileExec1882702174.vcxproj]
  60.  
  61.  
  62.  
  63. 0 Warning(s)
  64.  
  65. 1 Error(s)
  66.  
  67.  
  68.  
  69. Time Elapsed 00:00:00.54
  70.  
  71.  
  72. Source:
  73. /* */
  74. #include <pthread.h>
  75.  
  76.  
  77. int main(void){return 0;}
#5
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Dec 09, 12:38
The build failure should be fixed now.

The issue was updated with the following change(s):
  • This issue has been closed
  • The status has been updated, from New to Fixed.
  • The resolution has been updated, from Not determined to RESOLVED.
  • This issue's progression has been updated to 100 percent completed.