DLR-SC / tigl

The TiGL Geometry Library to process aircraft geometries in pre-design.
https://dlr-sc.github.io/tigl/
Apache License 2.0
240 stars 61 forks source link

Cannot compile it on windows - I get the following error #288

Closed nrao1993 closed 7 years ago

nrao1993 commented 7 years ago

I get the following error while trying to compile tigl from source on Windows 10, 64Bit:

-- Coverage disabled
CMake Error at TIGLViewer/CMakeLists.txt:293 (install):
  install FILES given directory "/bin" to install.

I've installed all the supporting libraries(opencascade and QT) and added the "\bin"s to the path as well.

rainman110 commented 7 years ago

It seems, that the shader files of OpenCASCADE are not correctly found or set by yourself.

Could you please paste the complete cmake configuration (the arguments for the cmake call) and the complete cmake output when running it from a clean build directory?

To build TiGL from scratch by yourself, I would recommend you to follow all the steps from the appveyor.yml file. This download first opencascade and configures everything like we do.

I recommend also to follow the build instructions from our wiki: https://github.com/DLR-SC/tigl/wiki/Building-TiGL-from-Source

nrao1993 commented 7 years ago

I followed the steps as specified on the wiki from scratch but I somehow get the following errors.

tiglerror.txt

I presume this is the cmake system file

CMakeSystem.txt

This is the log

CMakeOutputlog.txt

The Cache

CMakeCache.txt

rainman110 commented 7 years ago

Apparently, you are generating a project for VC 2010 but opening it with a later visual studio: https://itayhauptman.wordpress.com/2016/04/10/msbuild-error-msb4019-the-imported-project-cmicrosoft-cpp-default-props-was-not-found-confirm-that-the-path-in-the-declaration-is-correct-and-that-the-file-exists-on-disk/

Apart from that, your casroot and Tixi_path variables are wrong. Don't use the bin directory but the root directory, containing bin, lib, include ...

rainman110 commented 7 years ago

@nrao1993 Did you solve your problems? Else, I'll close the issue.

nrao1993 commented 7 years ago

No, I'm still working on it.

rainman110 commented 7 years ago

@nrao1993 I think you could ask Jonas Jepsen for help. He built TiGL by himself and he is at your institure, right?

The building steps are the same for all cmake based software. Your issues are actually not TiGL specific.

nrao1993 commented 7 years ago

Yes, Jonas Jepsen is from our institute but he built TiGL on Linux and hence couldn't help me with compiling it on Windows.

nrao1993 commented 7 years ago

I get a tixi error now. I've changed the path to the binaries path as required.

C:\Users\Nithin Rao\Documents\DLR\tiglmakes\tigl_4\build>cmake -G "Visual Studio 10 2010" -DTIXI_PATH=C:\Users\Nithin Rao\Documents\DLR\tigl_remake\supp_tools\tixi -DCASROOT=C:\Users\Nithin Rao\Documents\DLR\tigl_remake\supp_tools\oce -DCMAKE_INSTALL_PREFIX=install ..
-- Setting build type to 'Release' as none was specified.
-- The C compiler identification is MSVC 16.0.30319.1
-- The CXX compiler identification is MSVC 16.0.30319.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:109 (find_package):
  Could not find a configuration file for package "TIXI" that is compatible
  with requested version "2.2.1".

  The following configuration files were considered but not accepted:

    C:/Program Files/TIXI 2.2.1/lib/tixi/tixi-config.cmake, version: 2.2.1 (64bit)

-- Configuring incomplete, errors occurred!

CMakeOutput.txt

rainman110 commented 7 years ago

You are building a 32 bit executable and try to use TiXI 64 bit. This is not going to work.

Download and use TiXI 32 bit. Also, download TiXI 2.2.4 as it is the latest release of TiXI 2.

Update: You just might have to uninstall TiXI 2.2.1 from your system.

nrao1993 commented 7 years ago

Thank you. I've successfully generated the build files. I'm working on building it and installing it now.