webodf / WebODF

WebODF - JavaScript Document Engine
http://webodf.org/
787 stars 165 forks source link

Visual Studio 2015 Compile #936

Open wazahuis opened 8 years ago

wazahuis commented 8 years ago

Hi,

Can we have updated instructions on how to compile with the most recent versions as VS 2010 is very old: (as I have VS 2015 already installed on my system)

Windows 10 (x64) Visual Studio 2015 QT 5.7

I tried with VS 2015, downloading latest Java x32, QT 5.7 x32, cmake 3.6.2 x32. GIT appears to be already installed on my system.

However I get the following -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:5 (project): No CMAKE_C_COMPILER could be found.

CMake Error at CMakeLists.txt:5 (project): No CMAKE_CXX_COMPILER could be found.

-- Configuring incomplete, errors occurred! See also "C:/build/CMakeFiles/CMakeOutput.log". See also "C:/build/CMakeFiles/CMakeError.log".

satsuper commented 8 years ago

Did you change the cmake generator? It will need to be cmake -G "Visual Studio 14 2015"

There might be breaking changes so its not as simple as updating the instructions. I suggest checking out this stackoverflow answer to get a link to download VS2010 http://stackoverflow.com/questions/3061811/how-to-get-download-link-to-vs2010-express-for-use-in-a-download-manager

wazahuis commented 8 years ago

Thanks so much for the reply. No "Visual Studio 14 2015" option still came up with same error. I was hoping to use an existing VS2015 to avoid installing a new VM for this (don't want to corrupt my VS2015 dev environment) so...

Anyway I created a new machine Windows 10 (x64) machine with those instructions. One difference I noted is " QMake path e.g C:\QtSDK\bin" but QT default installs to C:\QT\Qt5.2.1. so I assume the path should point to: C:\Qt\Qt5.2.1\5.2.1\msvc2010\bin

Anyway I have done as per the instructions but fails....

C:\build>cmake -G "Visual Studio 10" ..\webodf -- WebODF version 0.5.10-10-g788820e -- external downloads will be stored/expected in: C:/build/downloads -- Android was not found: APK will not be built. No license was found for ..\programs\editor\FileSaver.js CMake Error at webodf/CMakeLists.txt:12 (include): include could not find load file:

C:/build/jsfileslist.txt

-- Configuring incomplete, errors occurred!

satsuper commented 8 years ago

Thats a generated file from memory, I would see if the step to generate it ran correctly here https://github.com/kogmbh/WebODF/blob/master/webodf/CMakeLists.txt#L8

I don't have a working build of this myself so you may have to do further debugging of these dependencies on your own.