CMake error - cmTryCompileExec has stopped working (VTK) - c++

Hello I am trying to compile VTK and ITK with CMake under Windows 8. ITK compiled perfectly, but when I try to deal with VTK by CMake I get error cmTryCompileExec has stopped working. How can I solve this problem? My version of CMake is 2.8.12.1

It looks like the script which is running the try-compile test is crashing. Solution: Update VTK.

Related

Cmake doesn't find boost windows

I'm trying to run this code:
https://github.com/snukky/news-translit-nmt
I've installed boost and got the following messages:
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
C:\Program Files\boost\boost_1_67_0
The following directory should be added to linker library paths:
C:\Program Files\boost\boost_1_67_0\stage\lib
By the comment of #kenba I've added the following environment variables:
Try 1
When I try to run the following cmd:
cmake .. -DCMAKE_BUILD_TYPE=Release
I get:
-- Could NOT find Boost (missing: timer iostreams filesystem system chrono) (found version "1.67.0")
CMake Error at CMakeLists.txt:290 (message):
Cannot find Boost libraries. Terminating.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring incomplete, errors occurred!
See also "D:/ThesisResources/previous_works/news-translit-nmt-master/tools/marian-dev/build/CMakeFiles/CMakeOutput.log".
Try 2
When I try to give a custom boost by this ref
https://marian-nmt.github.io/docs/#custom-boost:
I run the following cmd:
cmake .. -DBOOST_ROOT="C:\Program Files\boost\boost_1_67_0"
I get the same error.
I've also tried working with Linux WSL (But problems with CUDA installation overthere, their team is working on it), Linux VirtualBox (Not enough resources), and Ubuntu 17.10 I have installed (But Cuda requires Ubuntu 16.04 / 18.04)
What am I missing here? I'm trying any suggestion, stuck on it for a few days. Thanks!
Edit:
I reinstalled Ubuntu 16.04 and the problem was solved. Still don't know how to solve it in windows, but i'll continue use Ubuntu 16.04.
I had this problem earlier while trying to build the Windows version of Marian NMT (the same component that you're having trouble with). I can't remember the exact steps to solve the problem, but the root cause is that the Marian NMT build for Windows does not work with newer versions of Boost, since the source code uses some deprecated calling conventions for timer and chrono libraries (maybe some others as well).
The error message kind of confirms this: it can't find Boost, but on the other hand it says it finds your version 1.67.0. The solution is to use an older version of boost, I've confirmed that it works with 1.60.0.
If you just require a Marian NMT decoder that works in Windows, a project I work on has released a plugin for the Trados Studio translation tool, which contains a compiled marian-decoder executable for Windows: https://object.pouta.csc.fi/fiskmo/TradosStudio/FiskmoTranslationProvider.sdlplugin. You can access the executable by unzipping the sdlplugin file, the StartMtPipe.bat shows how to use the decoder.

Clion cmake in ubuntu 18.04

I've seen this one over and over but every answer that was given before didn't help me.
I downloaded clion and cmake, and updated gcc.
When manualy using gcc/g++ the code is compiling.
from the clion's cmake I keep getting:
CMake Error at /home/dm/Downloads/CLion-2018.1.4/clion-2018.1.4/bin/cmake/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/usr/bin/gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/dm/CLionProjects/TheTestingGrounds/cmake-build-default/CMakeFiles/CMakeTmp
Run Build Command:"/usr/local/bin/cmake" "cmTC_9582b/fast"
CMake Error: The source directory "/home/dm/CLionProjects/TheTestingGrounds/cmake-build-default/CMakeFiles/CMakeTmp/cmTC_9582b/fast" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
CMake will not be able to correctly generate this project.
Thing is, the cmTC_9582b/fast obviously dosen't exist. What is clion trying to do? It looks like it's trying to test cmake with a bad test and when its failing Clion decideds there's a problem.
Any solution for that?

How do i setup Qt with VTK and Cmake on OS x?

Hi i've been having alot of trouble trying to set these things up correctly on mac OSx.
Ive downloaded qt, downloaded Cmake and downloaded VTK with qt from the shell on mac.
However, im having some trouble with a test project and compiling the files in there.
VTK configuration of cmake
Could someone provide some assistance please?

opencv2/opencv.hpp: No such file or directory using Eclipse IDE

I'm trying to test OpenCV (3.0.0) with Eclipse IDE (Version: Mars Release (4.5.0)) but for some reason I fail to successfully include all the library path.
Can you tell me how is it possible that the include directory is in the project explorer with the file *opencv.hpp* in it but still fails to find it during the build process? And how can I fix it?
I'm not sure what operating system you are using or how you installed OpenCV but I faced the same problem when installing OpenCV 3.1.0 on Ubuntu 15.10. I was following these instructions.
It turns out that after I ran make I forgot to run make install to actually install the compiled libraries.
I'm not sure if this problem has anything to do with Eclipse.

OpenCV3.0 and Qt creator

I need to use OpenCV with Qt creator, and need some help with OpenCV.
My problem occurs when I run any example or .exe made with OpenCV, after I install OpenCV with CMake (and checking WITH_QT in the process).
For example with the examples included in the installation, when I try to open one I get the following error:
http://answers.opencv.org/upfiles/1413994743487541.png
That says: Procedure entry point not found in the dynamic links library
My S.O. is Windows 8.1, 64 bits
I have tried to reinstall Qt and install differents versions, but the error is the same ever.
But, if I install OpenCV with CMake and donĀ“t check WITH_QT, the examples works perfectly.
I dont know what else can I do!
Thanks!