Windows CMake compilation Opendtect 6
I compiled it with Cmake3.5.2, QT5.4.2, and VS2013 (VS and Qt One by one, to download the QT version that supports OpenGL).
1. Install VS and QT, set environment variables and paths.
Error1:缺少lib。 直接考一份xxx.lib到缺少的目录下一份。Error2:stdint.h文件出错。 注释掉该文件第一行,保存。Error3:无法启动此程序,因为计算机中丢失xxx.dll。 从3rdParty_x86_x64\x64\bin文件夹中把xxx.dll复制到windows/systerm32下就行。剩余两个Error,关于X86、X64的和一个很长的问题不用管,不影响运行。编译完之后运行example测试一下。
2, compile Osggeo with OSG (the last two errors do not need to solve)
3. Compiling Opendtect
Add the compiled OSG and Osggeo files to the Opendtect\external
CMake Compile Error:
Error1: The Qidir path is not found, that is, Qtdir not set.
Error2: If the cmake error unsuitable qt version "" From NOTFOUND appears, this code requires QT 4.x
By modifying the Opendtect\cmakemodules\odqtutils.cmake to resolve
Error3: If Zlib.dll is missing, the download zlib is compiled with CMake and VS2013, and the compiled Zlib.dll is selected as the path.
VS2013 Compile Opendtect Error:
Error1: An unresolved internal symbol appears at compile time 、、、
The following changes are made in the properties->c/c++-> language of the basic project:
Error2: Od_helpids.h File not found
Download the od_helpids.h and place the file in the Opendtect\external\doc_csh directory (DOC_CSH is new).
Od_helpids.h Download Link: od_helpids.h
That's it, ^_^.
Compiling and installing Opendtect 6