Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Build errors: expression error and missing boost_program_options #21

Open
JeroMiya opened this issue May 31, 2016 · 4 comments
Open

Build errors: expression error and missing boost_program_options #21

JeroMiya opened this issue May 31, 2016 · 4 comments

Comments

@JeroMiya
Copy link
Contributor

This may be difficult to reproduce - it only occurs on one of my PCs. I haven't determined what is different between the two.

Setup:
Crystax 10.1.0
CMake 3.4.3 (latest 3.5.x is exhibiting the same problem)
Using master of OSVR-Core, android-cmake, libusb, jsoncpp, hidapi (the git submodules are out of date, but they have the same errors)
The config scripts don't work for me, so I configured through cmake-gui
CMake target is Visual Studio 12 (2013) 32-bit.
host boost version is 1.57.0, I set CMAKE_PREFIX_PATH to the root of my boost download.

You'll note multiple errors in this log. The first is some kind of expression parsing error (search for "+0"), and the second one is about missing boost_program_options for json to c tool.

1>------ Rebuild All started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
1>  Checking Build System
1>  CMake does not need to re-run because D:/JeroMiya/OSVR-Android-Build-Build/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because D:/JeroMiya/OSVR-Android-Build-Build/src/CMakeFiles/generate.stamp is up-to-date.
2>------ Rebuild All started: Project: OpenCV_Download, Configuration: Debug Win32 ------
3>------ Rebuild All started: Project: jsoncpp_host, Configuration: Debug Win32 ------
4>------ Rebuild All started: Project: jsoncpp, Configuration: Debug Win32 ------
5>------ Rebuild All started: Project: libfunctionality, Configuration: Debug Win32 ------
6>------ Rebuild All started: Project: libusb, Configuration: Debug Win32 ------
7>------ Skipped Rebuild All: Project: force_rebuild, Configuration: Debug Win32 ------
7>Project not selected to build for this solution configuration 
2>  Building Custom Rule D:/JeroMiya/OSVR-Android-Build/src/CMakeLists.txt
2>  CMake does not need to re-run because D:\JeroMiya\OSVR-Android-Build-Build\src\CMakeFiles\generate.stamp is up-to-date.
2>  Generating OpenCV-2.4.11-android-sdk.zip
2>  -- SHA1 acfb4789b78752ae5c52cc5c151e2ae3dd006cef
2>  -- LOCAL_LOCATION D:/JeroMiya/OSVR-Android-Build-Build/src/OpenCV-2.4.11-android-sdk.zip
2>  -- EXTERNAL_LOCATION D:/JeroMiya/OSVR-Android-Build/src/OpenCV-2.4.11-android-sdk.zip
3>  Building Custom Rule D:/JeroMiya/OSVR-Android-Build/src/CMakeLists.txt
4>  Building Custom Rule D:/JeroMiya/OSVR-Android-Build/src/CMakeLists.txt
3>  CMake does not need to re-run because D:\JeroMiya\OSVR-Android-Build-Build\src\CMakeFiles\generate.stamp is up-to-date.
4>  CMake does not need to re-run because D:\JeroMiya\OSVR-Android-Build-Build\src\CMakeFiles\generate.stamp is up-to-date.
3>  Creating directories for 'jsoncpp_host'
4>  Creating directories for 'jsoncpp'
3>  No download step for 'jsoncpp_host'
3>  No update step for 'jsoncpp_host'
5>  Building Custom Rule D:/JeroMiya/OSVR-Android-Build/src/CMakeLists.txt
3>  No patch step for 'jsoncpp_host'
6>  Building Custom Rule D:/JeroMiya/OSVR-Android-Build/src/CMakeLists.txt
5>  CMake does not need to re-run because D:\JeroMiya\OSVR-Android-Build-Build\src\CMakeFiles\generate.stamp is up-to-date.
5>  Creating directories for 'libfunctionality'
6>  CMake does not need to re-run because D:\JeroMiya\OSVR-Android-Build-Build\src\CMakeFiles\generate.stamp is up-to-date.
6>  Creating directories for 'libusb'
3>  Performing configure step for 'jsoncpp_host'
4>  No download step for 'jsoncpp'
4>  No update step for 'jsoncpp'
5>  No download step for 'libfunctionality'
6>  No download step for 'libusb'
4>  No patch step for 'jsoncpp'
5>  No update step for 'libfunctionality'
6>  No update step for 'libusb'
5>  No patch step for 'libfunctionality'
4>  Performing configure step for 'jsoncpp'
6>  No patch step for 'libusb'
5>  Performing configure step for 'libfunctionality'
6>  Performing configure step for 'libusb'
3>  -- JsonCpp Version: 1.0.0
4>  CMake Error at D:/JeroMiya/OSVR-Android-Build/android-cmake/android.toolchain.cmake:429 (math):
4>    math cannot parse the expression: "+0": syntax error, unexpected exp_PLUS,
4>    expecting exp_OPENPARENT or exp_NUMBER (1)
4>  Call Stack (most recent call first):
5>  CMake Error at D:/JeroMiya/OSVR-Android-Build/android-cmake/android.toolchain.cmake:429 (math):
5>    math cannot parse the expression: "+0": syntax error, unexpected exp_PLUS,
4>    D:/JeroMiya/OSVR-Android-Build-Build/src/jsoncpp-prefix/src/jsoncpp-build/CMakeFiles/3.4.3/CMakeSystem.cmake:6 (include)
5>    expecting exp_OPENPARENT or exp_NUMBER (1)
4>    CMakeLists.txt:2 (PROJECT)
5>  Call Stack (most recent call first):
4>  
5>    D:/JeroMiya/OSVR-Android-Build-Build/src/libfunctionality-prefix/src/libfunctionality-build/CMakeFiles/3.4.3/CMakeSystem.cmake:6 (include)
4>  
5>    CMakeLists.txt:2 (project)
5>  
5>  
3>  -- Configuring done
3>  -- Generating done
3>  -- Build files have been written to: D:/JeroMiya/OSVR-Android-Build-Build/src/jsoncpp_host-prefix/src/jsoncpp_host-build
3>  Performing build step for 'jsoncpp_host'
3>  Microsoft (R) Build Engine version 12.0.40629.0
3>  [Microsoft .NET Framework, version 4.0.30319.42000]
3>  Copyright (C) Microsoft Corporation. All rights reserved.
3>  
3>  Build started 5/30/2016 10:17:08 PM.
3>  The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,37)" does not exist in the project, and will be ignored.
3>  The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,70)" does not exist in the project, and will be ignored.
3>  The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (40,38)" does not exist in the project, and will be ignored.
3>  The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (40,71)" does not exist in the project, and will be ignored.
3>  The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,37)" does not exist in the project, and will be ignored.
3>  The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,70)" does not exist in the project, and will be ignored.
3>  The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (40,38)" does not exist in the project, and will be ignored.
3>  The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (40,71)" does not exist in the project, and will be ignored.
3>  Project "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\ALL_BUILD.vcxproj" on node 1 (default targets).
3>  Project "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\ALL_BUILD.vcxproj" (1) is building "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
3>  InitializeBuildStatus:
3>    Creating "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
3>  CustomBuild:
3>    All outputs are up-to-date.
3>  FinalizeBuildStatus:
3>    Deleting file "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
3>    Touching "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
3>  Done Building Project "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\ZERO_CHECK.vcxproj" (default targets).
3>  The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,37)" does not exist in the project, and will be ignored.
3>  The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,70)" does not exist in the project, and will be ignored.
3>  The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (40,38)" does not exist in the project, and will be ignored.
3>  The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (40,71)" does not exist in the project, and will be ignored.
3>  Project "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\ALL_BUILD.vcxproj" (1) is building "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\src\lib_json\jsoncpp_lib.vcxproj" (3) on node 1 (default targets).
3>  InitializeBuildStatus:
3>    Creating "jsoncpp_lib.dir\Debug\jsoncpp_lib.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
3>  CustomBuild:
3>    All outputs are up-to-date.
3>  ClCompile:
3>    All outputs are up-to-date.
3>  Lib:
3>    All outputs are up-to-date.
3>    jsoncpp_lib.vcxproj -> D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\lib\Debug\jsoncpp.lib
3>  FinalizeBuildStatus:
3>    Deleting file "jsoncpp_lib.dir\Debug\jsoncpp_lib.tlog\unsuccessfulbuild".
3>    Touching "jsoncpp_lib.dir\Debug\jsoncpp_lib.tlog\jsoncpp_lib.lastbuildstate".
3>  Done Building Project "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\src\lib_json\jsoncpp_lib.vcxproj" (default targets).
3>  InitializeBuildStatus:
3>    Creating "Win32\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
3>  CustomBuild:
3>    All outputs are up-to-date.
3>  FinalizeBuildStatus:
3>    Deleting file "Win32\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild".
3>    Touching "Win32\Debug\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate".
3>  Done Building Project "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\ALL_BUILD.vcxproj" (default targets).
3>  
3>  Build succeeded.
3>      0 Warning(s)
3>      0 Error(s)
3>  
3>  Time Elapsed 00:00:00.67
3>  Performing install step for 'jsoncpp_host'
3>  Microsoft (R) Build Engine version 12.0.40629.0
3>  [Microsoft .NET Framework, version 4.0.30319.42000]
3>  Copyright (C) Microsoft Corporation. All rights reserved.
3>  
3>  Build started 5/30/2016 10:17:09 PM.
3>  The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,37)" does not exist in the project, and will be ignored.
3>  The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,70)" does not exist in the project, and will be ignored.
3>  The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (40,38)" does not exist in the project, and will be ignored.
3>  The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (40,71)" does not exist in the project, and will be ignored.
3>  The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,37)" does not exist in the project, and will be ignored.
3>  The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,70)" does not exist in the project, and will be ignored.
3>  The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (40,38)" does not exist in the project, and will be ignored.
3>  The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (40,71)" does not exist in the project, and will be ignored.
3>  The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,37)" does not exist in the project, and will be ignored.
3>  The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,70)" does not exist in the project, and will be ignored.
3>  The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (40,38)" does not exist in the project, and will be ignored.
3>  The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (40,71)" does not exist in the project, and will be ignored.
3>  Project "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\install.vcxproj" on node 1 (default targets).
3>  Project "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\install.vcxproj" (1) is building "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\ALL_BUILD.vcxproj" (2) on node 1 (default targets).
3>  Project "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\ALL_BUILD.vcxproj" (2) is building "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\ZERO_CHECK.vcxproj" (3) on node 1 (default targets).
3>  InitializeBuildStatus:
3>    Creating "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
3>  CustomBuild:
3>    All outputs are up-to-date.
3>  FinalizeBuildStatus:
3>    Deleting file "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
3>    Touching "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
3>  Done Building Project "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\ZERO_CHECK.vcxproj" (default targets).
3>  The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,37)" does not exist in the project, and will be ignored.
3>  The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (34,70)" does not exist in the project, and will be ignored.
3>  The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (40,38)" does not exist in the project, and will be ignored.
3>  The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets (40,71)" does not exist in the project, and will be ignored.
3>  Project "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\ALL_BUILD.vcxproj" (2) is building "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\src\lib_json\jsoncpp_lib.vcxproj" (4) on node 1 (default targets).
3>  InitializeBuildStatus:
3>    Creating "jsoncpp_lib.dir\Debug\jsoncpp_lib.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
3>  CustomBuild:
3>    All outputs are up-to-date.
3>  ClCompile:
3>    All outputs are up-to-date.
3>  Lib:
3>    All outputs are up-to-date.
3>    jsoncpp_lib.vcxproj -> D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\lib\Debug\jsoncpp.lib
3>  FinalizeBuildStatus:
3>    Deleting file "jsoncpp_lib.dir\Debug\jsoncpp_lib.tlog\unsuccessfulbuild".
3>    Touching "jsoncpp_lib.dir\Debug\jsoncpp_lib.tlog\jsoncpp_lib.lastbuildstate".
3>  Done Building Project "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\src\lib_json\jsoncpp_lib.vcxproj" (default targets).
3>  InitializeBuildStatus:
3>    Creating "Win32\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
3>  CustomBuild:
3>    All outputs are up-to-date.
3>  FinalizeBuildStatus:
3>    Deleting file "Win32\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild".
3>    Touching "Win32\Debug\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate".
3>  Done Building Project "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\ALL_BUILD.vcxproj" (default targets).
3>  InitializeBuildStatus:
3>    Creating "Win32\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
3>  PostBuildEvent:
3>    setlocal
3>    "C:\Program Files (x86)\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake
3>    if %errorlevel% neq 0 goto :cmEnd
3>    :cmEnd
3>    endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
3>    :cmErrorLevel
3>    exit /b %1
3>    :cmDone
3>    if %errorlevel% neq 0 goto :VCEnd
3>    :VCEnd
3>    -- Install configuration: "Debug"
3>    -- Up-to-date: D:/JeroMiya/OSVR-Android-Build-Build/host-install/lib/pkgconfig/jsoncpp.pc
3>    -- Up-to-date: D:/JeroMiya/OSVR-Android-Build-Build/host-install/lib/cmake/jsoncpp/jsoncppConfig.cmake
3>    -- Installing: D:/JeroMiya/OSVR-Android-Build-Build/host-install/lib/cmake/jsoncpp/jsoncppConfig-debug.cmake
3>    -- Up-to-date: D:/JeroMiya/OSVR-Android-Build-Build/host-install/lib/jsoncpp.lib
3>    -- Up-to-date: D:/JeroMiya/OSVR-Android-Build-Build/host-install/include/json/assertions.h
3>    -- Up-to-date: D:/JeroMiya/OSVR-Android-Build-Build/host-install/include/json/autolink.h
3>    -- Up-to-date: D:/JeroMiya/OSVR-Android-Build-Build/host-install/include/json/config.h
3>    -- Up-to-date: D:/JeroMiya/OSVR-Android-Build-Build/host-install/include/json/features.h
3>    -- Up-to-date: D:/JeroMiya/OSVR-Android-Build-Build/host-install/include/json/forwards.h
3>    -- Up-to-date: D:/JeroMiya/OSVR-Android-Build-Build/host-install/include/json/json.h
3>    -- Up-to-date: D:/JeroMiya/OSVR-Android-Build-Build/host-install/include/json/reader.h
6>  make.exe: Entering directory `D:/JeroMiya/OSVR-Android-Build/src/libusb/android/jni'
3>    -- Up-to-date: D:/JeroMiya/OSVR-Android-Build-Build/host-install/include/json/value.h
3>    -- Up-to-date: D:/JeroMiya/OSVR-Android-Build-Build/host-install/include/json/version.h
3>    -- Up-to-date: D:/JeroMiya/OSVR-Android-Build-Build/host-install/include/json/writer.h
3>  FinalizeBuildStatus:
3>    Deleting file "Win32\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild".
3>    Touching "Win32\Debug\INSTALL\INSTALL.tlog\INSTALL.lastbuildstate".
3>  Done Building Project "D:\JeroMiya\OSVR-Android-Build-Build\src\jsoncpp_host-prefix\src\jsoncpp_host-build\install.vcxproj" (default targets).
3>  
3>  Build succeeded.
3>      0 Warning(s)
3>      0 Error(s)
3>  
3>  Time Elapsed 00:00:00.93
6>  [armeabi-v7a] Clean          : dpfp [armeabi-v7a]
3>  Completed 'jsoncpp_host'
4>  -- JsonCpp Version: 1.0.0
8>------ Rebuild All started: Project: osvr_json_to_c_host, Configuration: Debug Win32 ------
6>  [armeabi-v7a] Clean          : dpfp_threaded [armeabi-v7a]
8>  Building Custom Rule D:/JeroMiya/OSVR-Android-Build/src/CMakeLists.txt
8>  CMake does not need to re-run because D:\JeroMiya\OSVR-Android-Build-Build\src\CMakeFiles\generate.stamp is up-to-date.
8>  Creating directories for 'osvr_json_to_c_host'
2>  -- File D:/JeroMiya/OSVR-Android-Build/src/OpenCV-2.4.11-android-sdk.zip matches expected hash, using it.
6>  [armeabi-v7a] Clean          : fxload [armeabi-v7a]
4>  -- Configuring incomplete, errors occurred!
4>  See also "D:/JeroMiya/OSVR-Android-Build-Build/src/jsoncpp-prefix/src/jsoncpp-build/CMakeFiles/CMakeOutput.log".
6>  [armeabi-v7a] Clean          : gnustl_shared [armeabi-v7a]
4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.
8>  No download step for 'osvr_json_to_c_host'
6>  [armeabi-v7a] Clean          : gnustl_static [armeabi-v7a]
8>  No update step for 'osvr_json_to_c_host'
6>  [armeabi-v7a] Clean          : hotplugtest [armeabi-v7a]
8>  No patch step for 'osvr_json_to_c_host'
8>  Performing configure step for 'osvr_json_to_c_host'
6>  [armeabi-v7a] Clean          : listdevs [armeabi-v7a]
6>  [armeabi-v7a] Clean          : sam3u_benchmark [armeabi-v7a]
6>  [armeabi-v7a] Clean          : stress [armeabi-v7a]
6>  [armeabi-v7a] Clean          : testlib [armeabi-v7a]
6>  [armeabi-v7a] Clean          : usb1.0 [armeabi-v7a]
6>  [armeabi-v7a] Clean          : xusb [armeabi-v7a]
6>  make.exe: Leaving directory `D:/JeroMiya/OSVR-Android-Build/src/libusb/android/jni'
5>  -- Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE) 
6>  Performing build step for 'libusb'
5>  -- Could NOT find Threads (missing:  Threads_FOUND) 
6>  make.exe: Entering directory `D:/JeroMiya/OSVR-Android-Build/src/libusb/android/jni'
6>  [armeabi-v7a] Compile thumb  : dpfp <= dpfp.c
8>  CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.4/Modules/FindBoost.cmake:1247 (message):
8>    Unable to find the requested Boost libraries.
8>  
8>    Boost version: 1.57.0
8>  
8>    Boost include path: D:/boost_1_57_0/boost_1_57_0
8>  
8>    Could not find the following static Boost libraries:
8>  
8>            boost_program_options
8>  
8>    No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
8>    directory containing Boost libraries or BOOST_ROOT to the location of
8>    Boost.
8>  Call Stack (most recent call first):
8>    CMakeLists.txt:36 (find_package)
8>  
8>  
8>  -- Configuring incomplete, errors occurred!
8>  See also "D:/JeroMiya/OSVR-Android-Build-Build/src/osvr_json_to_c_host-prefix/src/osvr_json_to_c_host-build/CMakeFiles/CMakeOutput.log".
5>  -- Could NOT find Markdown (missing:  MARKDOWN_EXECUTABLE) 
8>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.
9>------ Rebuild All started: Project: OpenCV, Configuration: Debug Win32 ------
5>  -- Configuring incomplete, errors occurred!
5>  See also "D:/JeroMiya/OSVR-Android-Build-Build/src/libfunctionality-prefix/src/libfunctionality-build/CMakeFiles/CMakeOutput.log".
5>  See also "D:/JeroMiya/OSVR-Android-Build-Build/src/libfunctionality-prefix/src/libfunctionality-build/CMakeFiles/CMakeError.log".
5>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.
9>  Building Custom Rule D:/JeroMiya/OSVR-Android-Build/src/CMakeLists.txt
9>  CMake does not need to re-run because D:\JeroMiya\OSVR-Android-Build-Build\src\CMakeFiles\generate.stamp is up-to-date.
9>  Creating directories for 'OpenCV'
9>  Performing download step (verify and extract) for 'OpenCV'
9>  -- verifying file...
9>       file='D:/JeroMiya/OSVR-Android-Build-Build/src/OpenCV-2.4.11-android-sdk.zip'
9>  -- verifying file... done
9>  -- extracting...
9>       src='D:/JeroMiya/OSVR-Android-Build-Build/src/OpenCV-2.4.11-android-sdk.zip'
9>       dst='D:/JeroMiya/OSVR-Android-Build-Build/src/OpenCV-prefix/src/OpenCV'
9>  -- extracting... [tar xfz]
6>  [armeabi-v7a] Compile thumb  : usb1.0 <= core.c
6>  [armeabi-v7a] Compile thumb  : usb1.0 <= descriptor.c
6>  [armeabi-v7a] Compile thumb  : usb1.0 <= hotplug.c
6>  [armeabi-v7a] Compile thumb  : usb1.0 <= io.c
6>  [armeabi-v7a] Compile thumb  : usb1.0 <= sync.c
6>  [armeabi-v7a] Compile thumb  : usb1.0 <= strerror.c
6>  [armeabi-v7a] Compile thumb  : usb1.0 <= linux_usbfs.c
9>  -- extracting... [analysis]
9>  -- extracting... [rename]
6>  [armeabi-v7a] Compile thumb  : usb1.0 <= poll_posix.c
6>  [armeabi-v7a] Compile thumb  : usb1.0 <= threads_posix.c
6>  [armeabi-v7a] Compile thumb  : usb1.0 <= linux_netlink.c
9>  -- extracting... [clean up]
9>  -- extracting... done
9>  No update step for 'OpenCV'
9>  No patch step for 'OpenCV'
9>  No configure step for 'OpenCV'
6>  [armeabi-v7a] SharedLibrary  : libusb1.0.so
9>  No build step for 'OpenCV'
9>  No install step for 'OpenCV'
9>  Completed 'OpenCV'
6>  [armeabi-v7a] Executable     : dpfp
6>  [armeabi-v7a] Install        : libcrystax.so => D:/JeroMiya/OSVR-Android-Build-Build/install/lib/libcrystax.so
6>  [armeabi-v7a] Install        : dpfp => D:/JeroMiya/OSVR-Android-Build-Build/install/lib/dpfp
6>  [armeabi-v7a] Compile thumb  : dpfp_threaded <= dpfp_threaded.c
6>  [armeabi-v7a] Executable     : dpfp_threaded
6>  [armeabi-v7a] Install        : dpfp_threaded => D:/JeroMiya/OSVR-Android-Build-Build/install/lib/dpfp_threaded
6>  [armeabi-v7a] Compile thumb  : fxload <= fxload.c
6>  [armeabi-v7a] Compile thumb  : fxload <= ezusb.c
6>  [armeabi-v7a] Executable     : fxload
6>  [armeabi-v7a] Install        : fxload => D:/JeroMiya/OSVR-Android-Build-Build/install/lib/fxload
6>  [armeabi-v7a] Compile thumb  : hotplugtest <= hotplugtest.c
6>  [armeabi-v7a] Executable     : hotplugtest
6>  [armeabi-v7a] Install        : hotplugtest => D:/JeroMiya/OSVR-Android-Build-Build/install/lib/hotplugtest
6>  [armeabi-v7a] Compile thumb  : listdevs <= listdevs.c
6>  [armeabi-v7a] Executable     : listdevs
6>  [armeabi-v7a] Install        : listdevs => D:/JeroMiya/OSVR-Android-Build-Build/install/lib/listdevs
6>  [armeabi-v7a] Compile thumb  : sam3u_benchmark <= sam3u_benchmark.c
6>  [armeabi-v7a] Executable     : sam3u_benchmark
6>  [armeabi-v7a] Install        : sam3u_benchmark => D:/JeroMiya/OSVR-Android-Build-Build/install/lib/sam3u_benchmark
6>  [armeabi-v7a] Compile thumb  : stress <= stress.c
6>  [armeabi-v7a] Compile thumb  : testlib <= testlib.c
6>  [armeabi-v7a] StaticLibrary  : libtestlib.a
6>  [armeabi-v7a] Executable     : stress
6>  [armeabi-v7a] Install        : stress => D:/JeroMiya/OSVR-Android-Build-Build/install/lib/stress
6>  [armeabi-v7a] Install        : libusb1.0.so => D:/JeroMiya/OSVR-Android-Build-Build/install/lib/libusb1.0.so
6>  [armeabi-v7a] Compile thumb  : xusb <= xusb.c
6>  [armeabi-v7a] Executable     : xusb
6>  [armeabi-v7a] Install        : xusb => D:/JeroMiya/OSVR-Android-Build-Build/install/lib/xusb
6>  make.exe: Leaving directory `D:/JeroMiya/OSVR-Android-Build/src/libusb/android/jni'
6>  Performing install step for 'libusb'
6>  Completed 'libusb'
10>------ Rebuild All started: Project: OSVR-Core, Configuration: Debug Win32 ------
10>  Building Custom Rule D:/JeroMiya/OSVR-Android-Build/src/CMakeLists.txt
10>  CMake does not need to re-run because D:\JeroMiya\OSVR-Android-Build-Build\src\CMakeFiles\generate.stamp is up-to-date.
10>  Creating directories for 'OSVR-Core'
10>  No download step for 'OSVR-Core'
10>  No update step for 'OSVR-Core'
10>  No patch step for 'OSVR-Core'
10>  Performing configure step for 'OSVR-Core'
10>  CMake Error at D:/JeroMiya/OSVR-Android-Build/android-cmake/android.toolchain.cmake:429 (math):
10>    math cannot parse the expression: "+0": syntax error, unexpected exp_PLUS,
10>    expecting exp_OPENPARENT or exp_NUMBER (1)
10>  Call Stack (most recent call first):
10>    D:/JeroMiya/OSVR-Android-Build-Build/src/OSVR-Core-prefix/src/OSVR-Core-build/CMakeFiles/3.4.3/CMakeSystem.cmake:6 (include)
10>    CMakeLists.txt:2 (project)
10>  
10>  
10>  -- Could not get revision information from Git! Calling this just version 0.6!
10>  -- Could NOT find OpenGL (missing:  OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR) 
10>  -- Could NOT find SDL2 (missing:  SDL2_LIBRARY SDL2_INCLUDE_DIR SDL2_SDLMAIN_LIBRARY) 
10>  CMake Error at D:/JeroMiya/OSVR-Android-Build-Build/src/libfunctionality-prefix/src/libfunctionality-build/libfunctionalityConfig.cmake:1 (include):
10>    include could not find load file:
10>  
10>      D:/JeroMiya/OSVR-Android-Build-Build/src/libfunctionality-prefix/src/libfunctionality-build/libfunctionalityTargets.cmake
10>  Call Stack (most recent call first):
10>    CMakeLists.txt:189 (find_package)
10>  
10>  
10>  CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
10>    Could NOT find Threads (missing: Threads_FOUND)
10>  Call Stack (most recent call first):
10>    C:/Program Files (x86)/CMake/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
10>    C:/Program Files (x86)/CMake/share/cmake-3.4/Modules/FindThreads.cmake:223 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
10>    CMakeLists.txt:218 (find_package)
10>  
10>  
10>  -- Configuring incomplete, errors occurred!
10>  See also "D:/JeroMiya/OSVR-Android-Build-Build/src/OSVR-Core-prefix/src/OSVR-Core-build/CMakeFiles/CMakeOutput.log".
10>  See also "D:/JeroMiya/OSVR-Android-Build-Build/src/OSVR-Core-prefix/src/OSVR-Core-build/CMakeFiles/CMakeError.log".
10>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.
11>------ Rebuild All started: Project: android_sensor_tracker, Configuration: Debug Win32 ------
12>------ Rebuild All started: Project: jniImaging, Configuration: Debug Win32 ------
12>  Building Custom Rule D:/JeroMiya/OSVR-Android-Build/src/CMakeLists.txt
11>  Building Custom Rule D:/JeroMiya/OSVR-Android-Build/src/CMakeLists.txt
12>  CMake does not need to re-run because D:\JeroMiya\OSVR-Android-Build-Build\src\CMakeFiles\generate.stamp is up-to-date.
12>  Creating directories for 'jniImaging'
11>  CMake does not need to re-run because D:\JeroMiya\OSVR-Android-Build-Build\src\CMakeFiles\generate.stamp is up-to-date.
11>  Creating directories for 'android_sensor_tracker'
12>  No download step for 'jniImaging'
11>  No download step for 'android_sensor_tracker'
11>  No update step for 'android_sensor_tracker'
12>  No update step for 'jniImaging'
11>  No patch step for 'android_sensor_tracker'
12>  No patch step for 'jniImaging'
12>  Performing configure step for 'jniImaging'
11>  Performing configure step for 'android_sensor_tracker'
12>  CMake Error at D:/JeroMiya/OSVR-Android-Build/android-cmake/android.toolchain.cmake:429 (math):
12>    math cannot parse the expression: "+0": syntax error, unexpected exp_PLUS,
12>    expecting exp_OPENPARENT or exp_NUMBER (1)
12>  Call Stack (most recent call first):
12>    D:/JeroMiya/OSVR-Android-Build-Build/src/jniImaging-prefix/src/jniImaging-build/CMakeFiles/3.4.3/CMakeSystem.cmake:6 (include)
12>    CMakeLists.txt:2 (project)
12>  
11>  CMake Error at D:/JeroMiya/OSVR-Android-Build/android-cmake/android.toolchain.cmake:429 (math):
12>  
11>    math cannot parse the expression: "+0": syntax error, unexpected exp_PLUS,
11>    expecting exp_OPENPARENT or exp_NUMBER (1)
11>  Call Stack (most recent call first):
11>    D:/JeroMiya/OSVR-Android-Build-Build/src/android_sensor_tracker-prefix/src/android_sensor_tracker-build/CMakeFiles/3.4.3/CMakeSystem.cmake:6 (include)
11>    CMakeLists.txt:2 (project)
11>  
11>  
11>  CMake Warning at CMakeLists.txt:9 (find_package):
12>  CMake Warning at CMakeLists.txt:9 (find_package):
12>    Could not find a configuration file for package "osvr" that is compatible
11>    Could not find a configuration file for package "osvr" that is compatible
11>    with requested version "".
12>    with requested version "".
11>  
12>  
11>    The following configuration files were considered but not accepted:
12>    The following configuration files were considered but not accepted:
11>  
12>  
11>      D:/JeroMiya/OSVR-Core-Build/osvrConfig.cmake, version: 0.6 (Windows)
12>      D:/JeroMiya/OSVR-Core-Build/osvrConfig.cmake, version: 0.6 (Windows)
11>  
12>  
11>  
12>  
12>  
11>  
12>  CMake Error at CMakeLists.txt:14 (osvr_convert_json):
11>  CMake Error at CMakeLists.txt:14 (osvr_convert_json):
11>    Unknown CMake command "osvr_convert_json".
12>    Unknown CMake command "osvr_convert_json".
11>  
12>  
12>  
11>  
12>  -- Configuring incomplete, errors occurred!
12>  See also "D:/JeroMiya/OSVR-Android-Build-Build/src/jniImaging-prefix/src/jniImaging-build/CMakeFiles/CMakeOutput.log".
11>  -- Configuring incomplete, errors occurred!
11>  See also "D:/JeroMiya/OSVR-Android-Build-Build/src/android_sensor_tracker-prefix/src/android_sensor_tracker-build/CMakeFiles/CMakeOutput.log".
12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.
11>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.
13>------ Rebuild All started: Project: ALL_BUILD, Configuration: Debug Win32 ------
13>  Building Custom Rule D:/JeroMiya/OSVR-Android-Build/CMakeLists.txt
13>  CMake does not need to re-run because D:\JeroMiya\OSVR-Android-Build-Build\CMakeFiles\generate.stamp is up-to-date.
14>------ Skipped Rebuild All: Project: INSTALL, Configuration: Debug Win32 ------
14>Project not selected to build for this solution configuration 
15>------ Skipped Rebuild All: Project: PACKAGE, Configuration: Debug Win32 ------
15>Project not selected to build for this solution configuration 
========== Rebuild All: 6 succeeded, 6 failed, 3 skipped ==========

@godbyk
Copy link

godbyk commented May 31, 2016

The CMake math() errors look to be related to a problem parsing the Android NDK release number. Are you running the exact same version of Android NDK on both PCs?

@JeroMiya
Copy link
Contributor Author

Yes. Crystax 10.1.0. I have also tried building with the latest Crystax 10.3.1. I have also tried a local branch of the android-cmake submodule which merges the three pull requests we have up there (and then tried building with both 10.1.0 and 10.3.1) but no change. I've never been able to build with the official NDK (no boost).

Hmm.. I did notice one difference. It looks like my CMake version on the "working" PC is 3.4.1, where the CMake version on the non-working PC was 3.4.3 or 5.x. Did something change in 3.4.2 or 3.4.3 that broke the build?

@JeroMiya
Copy link
Contributor Author

Tried building with CMake 3.5.2 upstairs. Build succeeded. So, it's probably not the CMake version.

@JeroMiya
Copy link
Contributor Author

JeroMiya commented Jun 1, 2016

So I tracked this down to the RELEASE.TXT file included in the crystax SDK. It looks like the android-cmake toolchain is expecting the official NDK release number scheme to be used in these files, but the one in crystax has "crystax-ndk-10.1.0 (64-bit)". And that's not all - it seems it's forgotten all about crystax because even if I add an r10 to the RELEASE.TXT to get past the expression error, it can't find either boost or -lcrystax.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants