microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.06k stars 6.36k forks source link

port bug: ogre error #1308

Closed MVoz closed 7 years ago

MVoz commented 7 years ago
-- Package x86-windows-rel
CMake Error at E:/tools/vcpkg/scripts/cmake/vcpkg_execute_required_process.cmake:43 (message):
    Command failed: C:/Program Files/CMake/bin/cmake.exe;--build;.;--config;Release;--target;install;--;/p:VCPkgLocalAppDataDisabled=true;/p:UseIntelMKL=No;/m
    Working Directory: E:/tools/vcpkg/buildtrees/ogre/x86-windows-rel
    See logs for more information:
      E:\tools\vcpkg\buildtrees\ogre\package-x86-windows-rel-out.log
      E:\tools\vcpkg\buildtrees\ogre\package-x86-windows-rel-err.log

Call Stack (most recent call first):
  E:/tools/vcpkg/scripts/cmake/vcpkg_install_cmake.cmake:49 (vcpkg_execute_required_process)
  E:/tools/vcpkg/ports/ogre/portfile.cmake:42 (vcpkg_install_cmake)
  E:/tools/vcpkg/scripts/ports.cmake:73 (include)

[DEBUG] _wspawnlpe() returned 1
Error: Building package ogre:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: ogre:x86-windows
  Vcpkg version: 0.0.81-548ff8d3db47e83ebecc5b57dcbd63723cee7546-external

Additionally, attach any relevant sections from the log files above.
[DEBUG] ..\src\commands_install.cpp(399)

file empty - E:\tools\vcpkg\buildtrees\ogre\package-x86-windows-rel-err.log file E:\tools\vcpkg\buildtrees\ogre\package-x86-windows-rel-out.log

-- Found DirectX11: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.15063.0/um/x86/d3d11.lib
-- Looking for Cg...
-- Cg_PREFIX_PATH changed.
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Could not locate Cg

# Try to find nVidia's Cg compiler, runtime libraries, and include path.
# Once done this will define
#
# CG_FOUND        - system has NVidia Cg and it can be used. 
# CG_INCLUDE_PATH = directory where cg.h resides
# CG_LIBRARY = full path to libCg.so (Cg.DLL on win32)
# CG_GL_LIBRARY = full path to libCgGL.so (CgGL.dll on win32)
# CG_COMPILER = full path to cgc (cgc.exe on win32)

the dependence of https://developer.nvidia.com/cg-toolkit-download

MVoz commented 7 years ago

ok, install Cg compiler

-- The C compiler identification is MSVC 19.11.25303.0
-- The CXX compiler identification is MSVC 19.11.25303.0
-- Configuring OGRE 1.9.0
-- Check size of void*
-- Check size of void* - done
-- Search path: E:/tools/vcpkg/buildtrees/ogre/x86-windows-rel/Dependencies;E:/tools/vcpkg/buildtrees/ogre/src/sinbad-ogre-dd30349ea667/Dependencies;E:/tools/vcpkg/buildtrees/ogre/x86-windows-rel/../Dependencies;E:/tools/vcpkg/buildtrees/ogre/src/sinbad-ogre-dd30349ea667/../Dependencies
-- Looking for ZLIB...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Found ZLIB: optimized;E:/tools/vcpkg/installed/x86-windows/lib/zlib.lib;debug;E:/tools/vcpkg/installed/x86-windows/lib/zlib.lib
-- Looking for ZZip...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Found ZZip: optimized;E:/tools/vcpkg/installed/x86-windows/lib/zziplib.lib;debug;E:/tools/vcpkg/installed/x86-windows/lib/zziplib.lib
-- Looking for FreeImage...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Found FreeImage: optimized;E:/tools/vcpkg/installed/x86-windows/lib/FreeImage.lib;debug;E:/tools/vcpkg/installed/x86-windows/lib/FreeImage.lib
-- Looking for FREETYPE...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- CMAKE_PREFIX_PATH: E:/tools/vcpkg/buildtrees/ogre/x86-windows-rel/Dependencies;E:/tools/vcpkg/buildtrees/ogre/src/sinbad-ogre-dd30349ea667/Dependencies;E:/tools/vcpkg/buildtrees/ogre/x86-windows-rel/../Dependencies;E:/tools/vcpkg/buildtrees/ogre/src/sinbad-ogre-dd30349ea667/../Dependencies;E:/tools/vcpkg/installed/x86-windows
-- CMAKE_PREFIX_PATH: E:/tools/vcpkg/buildtrees/ogre/x86-windows-rel/Dependencies;E:/tools/vcpkg/buildtrees/ogre/src/sinbad-ogre-dd30349ea667/Dependencies;E:/tools/vcpkg/buildtrees/ogre/x86-windows-rel/../Dependencies;E:/tools/vcpkg/buildtrees/ogre/src/sinbad-ogre-dd30349ea667/../Dependencies;E:/tools/vcpkg/installed/x86-windows
-- Found FREETYPE: optimized;E:/tools/vcpkg/installed/x86-windows/lib/freetype.lib;debug;E:/tools/vcpkg/installed/x86-windows/lib/freetype.lib
-- Found OpenGL: opengl32  
-- Looking for DirectX9...
-- DirectX9_PREFIX_PATH changed.
-- Found DirectX9: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.15063.0/um/x86/d3d9.lib
-- Looking for DirectX11...
-- DirectX11_PREFIX_PATH changed.
-- Found DirectX11: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.15063.0/um/x86/d3d11.lib
-- Looking for Cg...
-- Cg_PREFIX_PATH changed.
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Could not locate Cg
-- Looking for POCO...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Could not locate POCO
-- Looking for TBB...
-- Found TBB: optimized;E:/tools/vcpkg/installed/x86-windows/lib/tbb.lib;debug;E:/tools/vcpkg/installed/x86-windows/lib/tbb.lib
-- Looking for TBB_MALLOC...
-- Found TBB_MALLOC: optimized;E:/tools/vcpkg/installed/x86-windows/lib/tbbmalloc.lib;debug;E:/tools/vcpkg/installed/x86-windows/lib/tbbmalloc.lib
-- Looking for TBB_MALLOC_PROXY...
-- Found TBB_MALLOC_PROXY: optimized;E:/tools/vcpkg/installed/x86-windows/lib/tbbmalloc_proxy.lib;debug;E:/tools/vcpkg/installed/x86-windows/lib/tbbmalloc_proxy.lib
-- Looking for GLSL_Optimizer...
-- GLSL_Optimizer_PREFIX_PATH changed.
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Could not locate GLSL_Optimizer
-- Looking for HLSL2GLSL...
-- HLSL2GLSL_PREFIX_PATH changed.
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Could not locate HLSL2GLSL
-- Looking for OIS...
-- OIS_PREFIX_PATH changed.
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Could not locate OIS
-- Found Doxygen: E:/tools/doxygen/bin/doxygen.exe  
-- Looking for Softimage...
-- Softimage_PREFIX_PATH changed.
-- Could not locate Softimage
-- Could NOT find TinyXML (missing:  TINYXML_INCLUDE_DIR TINYXML_LIBRARIES) 
-- Looking for CppUnit...
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE) 
-- Could not locate CppUnit
-- 
-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
+ zlib
+ zziplib
+ freeimage
+ freetype
+ OpenGL
+ OpenGL 3+
+ OpenGL ES 1.x
+ OpenGL ES 2.x
+ OpenGL ES 3.x
+ DirectX9
+ DirectX11
+ boost
+ boost-thread
+ boost-date_time
+ boost-system
+ boost-chrono
+ boost-atomic
+ tbb
+ Doxygen
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ cg: C for graphics shader language <http://developer.nvidia.com/object/cg_toolkit.html>
+ POCO: POCO framework <http://pocoproject.org/>
+ GLSL Optimizer: GLSL Optimizer <http://github.com/aras-p/glsl-optimizer/>
+ HLSL2GLSL: HLSL2GLSL <http://hlsl2glslfork.googlecode.com/>
+ OIS: Input library needed for the samples <http://sourceforge.net/projects/wgois>
+ Softimage: Softimage SDK needed for building XSIExporter <FALSE>
+ TinyXML: TinyXML needed for building OgreXMLConverter <FALSE>
+ CppUnit: Library for performing unit tests <http://cppunit.sourceforge.net>
-----------------------------------------------------------------------------

-- Could not find dependency: OIS
-- Skipping samples build
-- 
----------------------------------------------------------------------------
  FEATURE SUMMARY
----------------------------------------------------------------------------

Building components:
  + Paging
  + Property
  + Terrain
  + RTShader System
  + RTShader System Core Shaders
  + RTShader System Extensions Shaders
  + Volume
  + Overlay
Building plugins:
  + BSP scene manager
  + Octree scene manager
  + Portal connected zone scene manager
  + Particle FX
Building rendersystems:
  + Direct3D 11
  + OpenGL
Building executables:
  + Samples
Building core features:
  + DDS image codec
  + FreeImage codec
  + ZIP archives

Build type:                      dynamic
Threading support:               background (boost)
Use double precision:            disabled
Assert mode:                     standard
Allocator type:                  nedmalloc (pooling)
STL containers use allocator:    enabled
Strings use allocator:           disabled
Memory tracker (debug):          disabled
Memory tracker (release):        disabled
Use Boost:                       disabled

----------------------------------------------------------------------------

-- Configuring done
-- Generating done
-- Build files have been written to: E:/tools/vcpkg/buildtrees/ogre/x86-windows-rel
MVoz commented 7 years ago

http://www.ogre3d.org/forums/viewtopic.php?t=69274

  1. Dependencies

Dependencies-vc140-x86-12.03.2016.7z Size: 25.94M

Dependencies-vc140-x64-12.03.2016.7z Size: 28.94M

MVoz commented 7 years ago

~set PKG_CONFIG_EXECUTABLE=E:\tools\Bin\pkg-config.exe does not work copy E:\tools\Bin\pkg-config.exe > E:\tools\vcpkg\installed\x86-windows\bin work -- Found PkgConfig: E:/tools/vcpkg/installed/x86-windows/bin/pkg-config.exe (found version "0.28")~

*nux

MVoz commented 7 years ago

вроде скомпилировалось, насколько рабочее состояние, время покажет