-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cmake crash during VTS setup #11
Comments
Did you clone the repository recursively? I.e. do you have checked out submodules? |
Yes. We have clone the repository recursively and also we have check the submodules. |
Please create a new empty folder and run the following script in it: (
echo "versions:" &&
sw_vers &&
git --version &&
cmake --version &&
clang --version &&
echo "git:" &&
git clone https://github.com/melowntech/vts-browser-cpp-build-wrapper.git vts-builder &&
cd vts-builder &&
git submodule update --init --recursive &&
echo "ls:" &&
ls -l externals/browser/browser/buildsys/cmake &&
echo "build" &&
mkdir build &&
cd build &&
cmake -DCMAKE_BUILD_TYPE=DEBUG ..
) 2>&1 | tee vts-build-output.txt Afterwards, post here the file vts-build-output.txt. Thanks. |
Hello tomas, I have attached vts-build-output.txt file. |
Do you have somehow nonstandard configuration of new lines? I do not understand how all the 'command not found' has got there. Anyway, it has corrupted the last command, so please go into the vts-builder folder and run the following command: rm -R build && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=DEBUG .. 2>&1 | tee vts-build-output-2.txt Be warned that the command starts with removing a folder - double check where you are running it. Afterwards, post the new vts-build-output-2.txt file. Thanks. |
Hello tomas, I have attached vts-build-output-2.txt. Also, I observed that in the above output file the process of "Configurating" and "Generating" is done, which implies the respective solutions should get generated in build directory, but still I don't see any xcode solutions generated over there. Kindly check and let me know your comments on this. |
Awesome, just run this in the same folder as previously: rm -R build && mkdir build && cd build && cmake -GXcode .. 2>&1 | tee vts-build-output-3.txt This will generate xcode project instead of a makefile. |
Hello Tomas, Thank you so much for your support. Also i am not able to understand what is the exact reason to crash Cmake UI? Do you have any inputs on it ? |
Based on this:
I suspect that you, indeed, had incorrectly cloned the repository, or that some symlinks have got corrupted, but I cannot say for sure. Cmake Gui should work. But I never tried it. Perhaps you can try to clone the repository the same way as in the script I send you, in some another new folder, and try the cmake gui again. |
CMakeError.log
We are trying to setup VTS on MacOS (tried on Mojave & Catalina), but the cmake is getting crashed while configuring in CmakeError.log file we are getting following error.
_"Build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_9581d.build/Objects-normal/x86_64/HAVE_JNI_H.dia -c /Users/ncircletech/Desktop/Sukanya/GitRepository/VTS\ Build/CMakeFiles/CheckIncludeFiles/HAVE_JNI_H.c -o /Users/ncircletech/Desktop/Sukanya/GitRepository/VTS\ Build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_9581d.build/Objects-normal/x86_64/HAVE_JNI_H.o
/Users/ncircletech/Desktop/Sukanya/GitRepository/VTS Build/CMakeFiles/CheckIncludeFiles/HAVE_JNI_H.c:2:10: fatal error: 'jni.h' file not found
#include <jni.h>
1 error generated.
** BUILD FAILED **
the following build commands failed:
CompileC CMAKE_TRY_COMPILE.build/Debug/cmTC_9581d.build/Objects-normal/x86_64/HAVE_JNI_H.o /Users/ncircletech/Desktop/Sukanya/GitRepository/VTS\ Build/CMakeFiles/CheckIncludeFiles/HAVE_JNI_H.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
"_
• For more details I have attached cmake crash log file with this query.
• While performing the same we got following error,
CMake Error at externals/browser/browser/CMakeLists.txt:9 (include):
include could not find load file:
buildsys/cmake/buildsys.cmake
CMake Error at externals/browser/browser/CMakeLists.txt:10 (enable_hidden_visibility):
Unknown CMake command "enable_hidden_visibility".
So can you please suggest any guidelines on this?
Any inputs would be really appreciated!
The text was updated successfully, but these errors were encountered: