andrewssobral / andrewssobral/bgslibrary

Build fails every time

Abierto
#68 0 comentarios 0 reacciones 0 asignados Ver en GitHub
to investigate
Lenguaje dominante
C++
Estrellas
2.3k
Forks
735
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I have done every step as you did in the video, but this error happens:

**cMake:**

> C:\Users\Administrator\Downloads\bgslibrary2_java_opencv320_x64 (1)\wrapper_java
> \build_cmake>cmake -DOpenCV_DIR=%OpenCV_DIR% -G "Visual Studio 14 Win64" ..
> -- The C compiler identification is MSVC 19.0.24215.1
> -- The CXX compiler identification is MSVC 19.0.24215.1
> -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio
> 14.0/VC/bin/x86_amd64/cl.exe
> -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio
> 14.0/VC/bin/x86_amd64/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 Studi
> o 14.0/VC/bin/x86_amd64/cl.exe
> -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studi
> o 14.0/VC/bin/x86_amd64/cl.exe -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Found JNI: C:/Program Files/Java/jdk1.8.0_101/lib/jawt.lib
> -- JNI_INCLUDE_DIRS=C:/Program Files/Java/jdk1.8.0_101/include;C:/Program Files/
> Java/jdk1.8.0_101/include/win32;C:/Program Files/Java/jdk1.8.0_101/include
> -- JNI_LIBRARIES=C:/Program Files/Java/jdk1.8.0_101/lib/jawt.lib;C:/Program File
> s/Java/jdk1.8.0_101/lib/jvm.lib
> -- OpenCV ARCH: x64
> -- OpenCV RUNTIME: vc14
> -- OpenCV STATIC: OFF
> -- Found OpenCV: F:/extra/opencv/build (found version "3.2.0")
> -- Found OpenCV 3.2.0 in F:/extra/opencv/build/x64/vc14/lib
> -- You might need to add F:\extra\opencv\build\x64\vc14\bin to your PATH to be a
> ble to run your applications.
> -- OpenCV library status:
> -- version: 3.2.0
> -- libraries: opencv_calib3d;opencv_core;opencv_features2d;opencv_flann;open
> cv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_pho
> to;opencv_shape;opencv_stitching;opencv_superres;opencv_video;opencv_videoio;ope
> ncv_videostab;opencv_world
> -- include path: F:/extra/opencv/build/include;F:/extra/opencv/build/include
> /opencv
> You have called ADD_LIBRARY for library libbgs without any source files. This ty
> pically indicates a problem with your CMakeLists.txt file
> -- Configuring done
> CMake Error: CMake can not determine linker language for target: libbgs
> -- Generating done
> -- Build files have been written to: C:/Users/Administrator/Downloads/bgslibrary
> 2_java_opencv320_x64 (1)/wrapper_java/build_cmake
>
> C:\Users\Administrator\Downloads\bgslibrary2_java_opencv320_x64 (1)\wrapper_java
> \build_cmake>

**Visual Studio:**

> 1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
> 1> Checking Build System
> 1> CMake does not need to re-run because C:/Users/Administrator/Downloads/bgslibrary2_java_opencv320_x64 (1)/wrapper_java/build_cmake/CMakeFiles/generate.stamp is up-to-date.
> 2>------ Build started: Project: libbgs_java_module, Configuration: Debug x64 ------
> 2>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1611,5): warning : The referenced project 'C:/Users/Administrator/Downloads/bgslibrary2_java_opencv320_x64 (1)/wrapper_java/build_cmake/libbgs.vcxproj' does not exist.
> 2> Building Custom Rule C:/Users/Administrator/Downloads/bgslibrary2_java_opencv320_x64 (1)/wrapper_java/CMakeLists.txt
> 2> CMake does not need to re-run because C:\Users\Administrator\Downloads\bgslibrary2_java_opencv320_x64 (1)\wrapper_java\build_cmake\CMakeFiles\generate.stamp is up-to-date.
> 2> bgslibrary_java_module.cpp
> 2>F:\extra\opencv\build\include\opencv2/core/mat.hpp(2586): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
> 2>F:\extra\opencv\build\include\opencv2/core/persistence.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
> 2>F:\extra\opencv\build\include\opencv2/core/utility.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
> 2>F:\extra\opencv\build\include\opencv2/core/utility.hpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
> 2>f:\extra\opencv\build\include\opencv2\flann\logger.h(66): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
> 2> C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(205): note: see declaration of 'fopen'
> 2>F:\extra\opencv\build\include\opencv2/imgproc.hpp(592): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
> 2>c:\users\administrator\downloads\bgslibrary2_java_opencv320_x64 (1)\wrapper_java\bgslibrary_java_module.hpp(25): fatal error C1083: Cannot open include file: '../package_bgs/bgslibrary.h': No such file or directory
> 3>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------
> 3>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1611,5): warning : The referenced project 'C:/Users/Administrator/Downloads/bgslibrary2_java_opencv320_x64 (1)/wrapper_java/build_cmake/libbgs.vcxproj' does not exist.
> 3> Building Custom Rule C:/Users/Administrator/Downloads/bgslibrary2_java_opencv320_x64 (1)/wrapper_java/CMakeLists.txt
> 3> CMake does not need to re-run because C:\Users\Administrator\Downloads\bgslibrary2_java_opencv320_x64 (1)\wrapper_java\build_cmake\CMakeFiles\generate.stamp is up-to-date.
> ========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.