Open alatnet opened 5 years ago
Ok, i think i got it. Have to do it manually but i essentially opened up a developer console (Visual Studio 2017 > Developer Command Prompt for VS 2017) and then set cmake in path with the command that i had above. Though Eigen didnt want to pull it's data from github and had to manually download the tree... I got to the point where i could try to build PSMoveService itself.
D:\Users\alatn\Desktop\psmoveservice\build>cmake -G "Visual Studio 14 2015 Win64" -DBOOST_ROOT=%BOOST_ROOT_PATH% -DBOOST_LIBRARYDIR=%BOOST_LIB_PATH% .. -- The C compiler identification is MSVC 19.0.24234.1 -- The CXX compiler identification is MSVC 19.0.24234.1 -- Check for working C compiler: D:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- Check for working C compiler: D:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/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: D:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- Check for working CXX compiler: D:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Project version: 0.9_alpha9.0.1 -- Using Eigen3 in submodule CMake Warning (dev) at cmake/ThirdParty.cmake:43 (find_package): Policy CMP0074 is not set: find_package uses
_ROOT variables. Run "cmake --help-policy CMP0074" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Environment variable Eigen3_ROOT is set to:
D:/Users/alatn/Desktop/psmoveservice/thirdparty/eigen
For compatibility, CMake is ignoring the variable. Call Stack (most recent call first): CMakeLists.txt:18 (include) This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Eigen3: D:/Users/alatn/Desktop/psmoveservice/thirdparty/eigen (Required is at least version "2.91.0") -- Boost version: 1.61.0 CMake Warning at D:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/FindProtobuf.cmake:455 (message): Protobuf compiler version doesn't match library version 3.9.1 Call Stack (most recent call first): cmake/ThirdParty.cmake:167 (find_package) CMakeLists.txt:18 (include)
CMake Error at D:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find Protobuf (missing: Protobuf_LIBRARIES) (found version "3.9.1") Call Stack (most recent call first): D:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) D:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.12/Modules/FindProtobuf.cmake:543 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) cmake/ThirdParty.cmake:167 (find_package) CMakeLists.txt:18 (include)
-- Configuring incomplete, errors occurred! See also "D:/Users/alatn/Desktop/psmoveservice/build/CMakeFiles/CMakeOutput.log".
Fun times ahead...
Edit: Somehow when trying to get Eigen it wiped protobuf... Edit2: And another git submodule that didnt download...
Ok, after everything, i got it to compile. My method, because of my build environment, is as followed for those who are trying to compile:
Edit: and opencv is giving me problems... Jesus christ i hate CMake...
Edit 2: So... due to some bs with visual studio's brand of git, i cannot download opencv AT ALL because it keeps throwing: SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version I Really Hate CMake...
Just install VS2015 and MSBuild is getting found
I've tried multiple times and i cannot build with VS2017. Have a unique build environment where i have VS on a separate drive. Modified the InitialSetup_X64.bat accordingly: -added "set PATH=%PATH%;D:\Users\alatn\Desktop\psmoveservice\cmake-3.15.2-win64-x64\bin" and "SET VCTargetsPath=D:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets" after setlocal. (using not installed version of cmake, does work fine).
Modified the path pointing to vcvarsall.bat from C drive to D drive.
Here's where I'm getting the errors: