hughperkins / jeigen

Java wrapper for Eigen C++ fast matrix library
Other
106 stars 31 forks source link

building jeigen with ant: No CMAKE_C_COMPILER / CMAKE_CXX_COMPILER could be found. #18

Open pastokhey opened 2 years ago

pastokhey commented 2 years ago

Hello,

I have run into a problem when building Jeigen with ant. Basically, cmake can't find the C and/or CXX compiler. I have tried to run this in the command line as administrator, changing my Visual Studio version to 2013 and changing my java version to 6 (jdk1.6.0_45) at first, and then to 7 (jdk1.7.0_80), but none of this has changed much (except the switch to Visual Studio 2013).

Here you can find the output printed on the command line when executing the command specified in the readme of this git. I would highly appreciate any help, as this wrapper is critical to a project for my master's dissertation. Thank you in advance.

C:\Jeigen\jeigen>ant -Dcmake_home="c:\program files (x86)\Cmake" -Dgenerator="Visual Studio 12 2013 Win64"
Buildfile: C:\Jeigen\jeigen\build.xml

getinfo:
     [echo] os.arch: amd64 os.family ${os.family} os.name Windows 8.1 jvm.word.size 64
     [echo] build.dir.os win
     [echo] build.dir build/win-64

compile:
    [mkdir] Created dir: C:\Jeigen\jeigen\build\win-64\native
    [cmake] Running cmake...
    [cmake] CMakeHome: c:\program files (x86)\Cmake
    [cmake] ReleaseType: Release
    [cmake] Generator: Visual Studio 12 2013 Win64
    [cmake] Srcdir: C:\Jeigen\jeigen\src\native
    [cmake] Builddir: C:\Jeigen\jeigen\build\win-64\native
    [cmake] cmdstring: c:\program files (x86)\Cmake/bin/cmake
    [cmake] cmdstring: -G
    [cmake] cmdstring: Visual Studio 12 2013 Win64
    [cmake] cmdstring: -D
    [cmake] cmdstring: CMAKE_BUILD_TYPE:STRING=Release
    [cmake] cmdstring: C:\Jeigen\jeigen\src\native
    [cmake] working directory: C:\Jeigen\jeigen\build\win-64\native
    [cmake] ERROR> CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
    [cmake] ERROR>   Compatibility with CMake < 2.8.12 will be removed from a future version of
    [cmake] ERROR>   CMake.
    [cmake] ERROR>
    [cmake] ERROR>   Update the VERSION argument <min> value or use a ...<max> suffix to tell
    [cmake] ERROR>   CMake that the project does not need compatibility with older versions.
    [cmake] ERROR>
    [cmake] ERROR>
    [cmake] OUTPUT> -- The C compiler identification is unknown
    [cmake] OUTPUT> -- The CXX compiler identification is unknown
    [cmake] ERROR> CMake Error at CMakeLists.txt:3 (project):
    [cmake] ERROR>   No CMAKE_C_COMPILER could be found.
    [cmake] ERROR>
    [cmake] ERROR>
    [cmake] ERROR>
    [cmake] ERROR> CMake Error at CMakeLists.txt:3 (project):
    [cmake] ERROR>   No CMAKE_CXX_COMPILER could be found.
    [cmake] ERROR>
    [cmake] ERROR>
    [cmake] ERROR>
    [cmake] OUTPUT> -- Configuring incomplete, errors occurred!
    [cmake] OUTPUT> See also "C:/Jeigen/jeigen/build/win-64/native/CMakeFiles/CMakeOutput.log".
    [cmake] OUTPUT> See also "C:/Jeigen/jeigen/build/win-64/native/CMakeFiles/CMakeError.log".
    [cmake] cmdstring: C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe
    [cmake] cmdstring: ALL_BUILD.vcxproj
    [cmake] cmdstring: /p:Configuration=Release
    [cmake] working directory: C:\Jeigen\jeigen\build\win-64\native
    [cmake] OUTPUT> Microsoft (R) Build Engine version 4.8.4084.0
    [cmake] OUTPUT> [Microsoft .NET Framework, version 4.0.30319.42000]
    [cmake] OUTPUT> Copyright (C) Microsoft Corporation. All rights reserved.
    [cmake] OUTPUT>
    [cmake] OUTPUT> MSBUILD : error MSB1009: Project file does not exist.
    [cmake] OUTPUT> Switch: ALL_BUILD.vcxproj
    [mkdir] Created dir: C:\Jeigen\jeigen\build\win-64\classes
    [javac] Compiling 25 source files to C:\Jeigen\jeigen\build\win-64\classes
     [copy] Copying 25 files to C:\Jeigen\jeigen\build\win-64\classes
     [copy] Copying 1 file to C:\Jeigen\jeigen\build\win-64

download-win-runtime:
     [echo] downloading win runtime
      [get] Getting: https://deepcl.hughperkins.com/vc2010redist.zip
      [get] To: C:\Jeigen\jeigen\build\win-64\vc2010redist.zip
      [get] Error getting https://deepcl.hughperkins.com/vc2010redist.zip to C:\Jeigen\jeigen\build\win-64\vc2010redist.zip

BUILD FAILED
C:\Jeigen\jeigen\build.xml:72: javax.net.ssl.SSLException: Received fatal alert: protocol_version
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
        at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1979)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1086)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
        at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
        at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
        at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:736)
        at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:652)
        at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:642)

Total time: 6 seconds