No suitable Visual Studio instances were found - c++

i like to download a library for c++ with vcpkg. ihave this error
This is shoul be a error because is red color in terminal:
No suitable Visual Studio instances were found
here the entire terminal code if you need it:
`Microsoft Windows [Versione 10.0.19042.1110]
(c) Microsoft Corporation. Tutti i diritti sono riservati.
C:\Users\laaou>.\vcpkg install ncurses
".\vcpkg" non è riconosciuto come comando interno o esterno,
un programma eseguibile o un file batch.
C:\Users\laaou>cd vcpkg
C:\Users\laaou\vcpkg>.\vcpkg install ncurses
Computing installation plan...
The following packages will be built and installed:
ncurses[core]:x86-windows -> 6.2#1
No suitable Visual Studio instances were found
C:\Users\laaou\vcpkg>`
what is mean? how to solve it.
now thank to #ChrisMM i can solve it, because i downloaded VS community edition!
but now i have this new error in red color:
Error: Building package ncurses:x86-windows failed with: BUILD_FAILED
the entirely code if you nedd it:
`C:\Users\laaou\vcpkg>.\vcpkg install ncurses
Computing installation plan...
The following packages will be built and installed:
ncurses[core]:x86-windows -> 6.2#1
Detecting compiler hash for triplet x86-windows...
Could not locate cached archive: C:\Users\laaou\AppData\Local\vcpkg\archives\b1\b1b913bc50ef64f802436d916589a69cf7c714cfce6f1d784a583d5c2ab8928f.zip
Starting package 1/1: ncurses:x86-windows
Building package ncurses[core]:x86-windows...
CMake Error at scripts/cmake/vcpkg_fail_port_install.cmake:96 (message):
Target 'Windows' not supported by ncurses!
Call Stack (most recent call first):
ports/ncurses/portfile.cmake:1 (vcpkg_fail_port_install)
scripts/ports.cmake:141 (include)
Error: Building package ncurses:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: ncurses:x86-windows
Vcpkg version: 2021-08-12-85ab112d5ee102bc6eac8cdbbfdd173a71374e04
Additionally, attach any relevant sections from the log files above.
C:\Users\laaou\vcpkg>`

Related

Point Cloud Library - Cannot find pcl_visualizer in Windows 10

I installed PCL 1.11.1 (head) on Windows 10 using vcpkg, but it seems it doesn't include the visualizer, even when I install PCL with VTK and OpenGL support.
I get this error:
fatal error C1083: Cannot open include file: 'pcl/visualization/pcl_visualizer.h': No such file or directory
And there are no file named pcl_visualizer.h in my disk.
Any ideas how to solve the problem without installing PCL from source?
Here is the list of libraries installed by vcpkg:
boost 1.74.0
boost-vcpkg-helpers:x86-windows 7#2
brotli:x86-windows 1.0.9
bzip2:x86-windows 1.0.8#1
curl:x86-windows 7.73.0#4
curl[non-http]:x86-windows
curl[schannel]:x86-windows
curl[ssl]:x86-windows
curl[sspi]:x86-windows
curl[winssl]:x86-windows
double-conversion:x86-windows 3.1.5
egl-registry:x86-windows 2020-02-20
eigen3:x86-windows 3.3.7#8
expat:x86-windows 2020-08-18
flann:x86-windows 2019-04-07-1
freeglut:x86-windows 3.2.1-4
freetype:x86-windows 2.10.2#5
freetype[bzip2]:x86-windows
freetype[png]:x86-windows
glew:x86-windows 2.1.0#9
harfbuzz:x86-windows 2.7.2#1
hdf5:x86-windows 1.12.0
hdf5[szip]:x86-windows
hdf5[zlib]:x86-windows
icu:x86-windows 67.1#6
jsoncpp:x86-windows 1.9.4
libharu:x86-windows 2017-08-15-9
libharu[notiffsymbols]:x86-windows
libiconv:x86-windows 1.16#6
libjpeg-turbo:x86-windows 2.0.5#1
liblzma:x86-windows 5.2.5#2
libogg:x86-windows 1.3.4#3
libpng:x86-windows 1.6.37#13
libtheora:x86-windows 1.2.0alpha1-2
libxml2:x86-windows 2.9.10#2
lz4:x86-windows 1.9.2-2
netcdf-c:x86-windows 4.7.4#1
opengl:x86-windows 0.0#8
openssl:x86-windows 1.1.1h#3
pcl:x86-windows 1.11.1#1
pcl[opengl]:x86-windows
pcl[vtk]:x86-windows
pegtl-2:x86-windows 2.8.3
proj4:x86-windows 7.2.0
proj4[database]:x86-windows
proj4[tiff]:x86-windows
pugixml:x86-windows 1.11.1
qhull:x86-windows 8.0.2
ragel:x86-windows 6.10-3
sqlite3:x86-windows 3.33.0
sqlite3[tool]:x86-windows
szip:x86-windows 2.1.1-6
tiff:x86-windows 4.1.0
utfcpp:x86-windows 3.1.2#1
vtk:x86-windows 9.0.1#2
xxhash:x86-windows 0.8.0#1
zlib:x86-windows 1.2.11#9
zstd:x86-windows 1.4.5#1
PCL Visualization does not currently support VTK 9.0
see discussions in https://github.com/microsoft/vcpkg/issues/11462 https://github.com/microsoft/vcpkg/issues/11601 https://github.com/microsoft/vcpkg/issues/15130

Installing darknet on Windows 10

I'm trying to install darknet on Windows 10 using the instructions in the following link:
https://github.com/kiyoshiiriemon/yolov4_darknet/tree/b504cc3b4e47617c2cf28c37a6581fc733854f06
However, I got the following error through Windows PowerShell:
-- Configuring x64-windows CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:106 (message):
Command failed: ninja -v
Working Directory: C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
C:\Users\hedey\vcpkg\buildtrees\opencv4\config-x64-windows-out.log
Call Stack (most recent call first): scripts/cmake/vcpkg_configure_cmake.cmake:312 (vcpkg_execute_required_process) ports/opencv4/portfile.cmake:280 (vcpkg_configure_cmake) scripts/ports.cmake:135 (include)
Error: Building package opencv4:x64-windows failed with: BUILD_FAILED Please ensure you're using the latest portfiles with `.\vcpkg update`, then submit an issue at https://github.com/Microsoft/vcpkg/issues including: Package: opencv4:x64-windows Vcpkg version:
2020.06.15-nohash
Additionally, attach any relevant sections from the log files above.
I'm totally stuck getting a solution for this issue.
This is the complete log file can be found in the following link:
https://www.dropbox.com/s/f30g354t26n1mvg/log_files.zip?dl=0
I noticed that the png.h file exists at C:\Users\hedey\vcpkg\installed\x64-windows\include\libpng16 instead of C:\Users\hedey\vcpkg\installed\x64-windows\include\libpng (which is where it's being searched for as in the CMakeError file.
Also, both of png.h and pthread.h exist at C:\Users\hedey\vcpkg\installed\x64-windows\include.
EDIT:
The above problem was solved after I updated vcpkg (using git pull).
However, I got another error as follows:
FAILED: modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.obj
cmd.exe /C "cd /D C:\Users\hedey\vcpkg\buildtrees\opencv4\x64-windows-dbg\modules\core\CMakeFiles\cuda_compile_1.dir\src\cuda && C:\Users\hedey\vcpkg\downloads\tools\cmake-3.18.4-windows\cmake-3.18.4-win32-x86\bin\cmake.exe -E make_directory C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/. && C:\Users\hedey\vcpkg\downloads\tools\cmake-3.18.4-windows\cmake-3.18.4-win32-x86\bin\cmake.exe -D verbose:BOOL=OFF -D build_configuration:STRING=Debug -D generated_file:STRING=C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.obj -D generated_cubin_file:STRING=C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.obj.cubin.txt -P C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.obj.Debug.cmake"
nvcc fatal : Unsupported gpu architecture 'compute_30'
CMake Error at cuda_compile_1_generated_gpu_mat.cu.obj.Debug.cmake:220 (message):
Error generating
C:/Users/hedey/vcpkg/buildtrees/opencv4/x64-windows-dbg/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.obj
I faced this problem before with the cmake gui, and it can be solved by setting CUDA_ARCH_BIN to the value that's suitable to the GPU (6.1 in my case).
However, I don't know how to solve it in case of installing using vcpkg. I tried to find a file where I can edit, and I think it's 'OpenCVDetectCUDA.cmake'. I tried some edits to that file, and I'm still getting the same error. Could you pls help me overcome this issue?

mxnet build with intel mkl always throw error "Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll."

os : windows 10 64bits
compiler : vc2015 64bits update 3
mxnet : 1.3.1
Building mxnet 1.3.1(mxnet1.4.0 has bugs, can't build it under windows,please check14203 for more details).
I can build the mxnet with cpp-package, but when I call the forward function o the Executor, it keep throwing
Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll.
Following are my steps to build the mxnet
git clone --recursive https://github.com/apache/incubator-mxnet mxnet
cd mxnet
Download intel mkl(w_mkl_2019.2.190.exe)
install it
open cmake3.11.0
I disable cpp_package,opencv,cuda,USE_MKLML_MKL(else mshadow will use openBLAS).
I disable USE_TENSORRT and USE_VTUNE too
press configure,disable BUILD_TESTING
press configure again, all green
press generate,all green
open ALL_BUILD.vcxproj
Select Release build
All build
All green, except install project fail
>file cannot create directory: C:/Program Files/mxnet/lib. Maybe need
1> administrative privileges.
Already open vc as admin, still the same error
Add Anaconda3 into PATH
Add libmxnet.dll and C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.2.190\windows\redist\intel64_win\mkl\mkl_rt.dll into a folder which could be found by the os
select build with cpp_package from cmake gui
configure->generate
reopen ALL_BUILD.vcxproj
Select ALL_BUILD->build
Because install do not work,I copy the files lib to build_cpu/install
Because lrs and wds of op.h do not declare type,I need to add mx_float for them
write a simple program, can compile
When I call forward of the Executor,the program throw Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll.
Add C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.2.190\windows\redist\intel64_win\mkl的mkl_intel_thread.dll into the folder could be found by the os
26.Run again,still the same error Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll.
My Anaconda3 install mxnet,it got mkl_intel_thread.dll and mkl_rt.dll too,I wonder there are confliction,problem is I did not add the bin path of Anaconda3 into the PATH.
I tried to copy different mkl_intel_thread.dll and mkl_rt.dll into the folder where the exe at, but every combination of them give me same error.
Those dll come from following path
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.2.190\windows\redist\intel64_win\mkl
C:\Users\yyyy\Anaconda3\envs\gluon\Library\bin
C:\Users\yyyy\Anaconda3\Library\bin
C:\Users\yyyy\Anaconda3\pkgs\mkl-2019.1-144\Library\bin
Do anyone know how to solve this issue?Thanks
This problem should be caused by static MKL linkage, here's some advice may helpful to you.
Have you ever tried to set environmental variable for pre-load libs,
Here is Linux
export LD_PRELOAD=/opt/intel/mkl/lib/intel64/libmkl_def.so:/opt/intel/mkl/lib/intel64/libmkl_avx2.so:/opt/intel/mkl/lib/intel64/libmkl_core.so:/opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so:/opt/intel/mkl/lib/intel64/libmkl_intel_thread.so:/opt/intel/lib/intel64_lin/libiomp5.so
In windows, setting env by mkl/bin/mklvars.bat intel64, then run your python in same environment
or in python to add the library manually sys.path.append(" your path to the library") or Pyinstaller numpy "Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll"...
If above suggestions did not help, please try to modify the 'CMakeList.txt' file, change line 44 ~ 47 to single-dynamic linkage and re-cmake to install:
if(MSVC)
set(LIBS ${LIBS} mkl_rt ${MKL_COMPILER_LIB_FILE} PARENT_SCOPE)
else()
set(LIBS ${LIBS} mkl_rt ${MKL_COMPILER_LIB_FILE} PARENT_SCOPE)

How to accept android licenses after installing Tools for Cordova using Visual Studio 2017

I installed Visual Studio 2017 with the "Mobile development with JavaScript" option and "Android SDK setup" selected.
When I check Tools->Options->Tools for Apache Cordova->Environment Variable Overrides I can see that ANDROID_HOME has been set to "C:\ProgramData\Microsoft\AndroidSDK\25"
When I try to build my project I get an error:
cordova-build error : > You have not accepted the license agreements
of the following SDK components: cordova-build error : [Android SDK
Platform 25].
I open a Windows command prompt and go to the directory containing the sdkmanager:
cd C:\ProgramData\Microsoft\AndroidSDK\25\tools\bin
I try sdkmanager --licenses but that results in
Error: Unknown argument --licenses
So I try sdkmanager --update and that results in
Warning: An error occurred during installation: Failed to move away or
delete existing target file:
C:\ProgramData\Microsoft\AndroidSDK\25\tools Move it away manually and
try again.
So I move up to the folder above the tools folder and rename it:
ren tools tools.old
then try the update again:
tools.old\bin\sdkmanager --update
this gave me a warning:
Warning: Observed package id 'tools' in inconsistent location
'C:\ProgramData\Microsoft\AndroidSDK\25\tools.old' (Expected
'C:\ProgramData\Microsoft\AndroidSDK\25\tools')
But after a lengthy wait the command reported that it was done and I could see that there was a new "tools" folder.
I tried to build my project again. Now my error is:
Could not find gradle wrapper within Android SDK. Might need to update
your Android SDK.
Looked here:
C:\ProgramData\Microsoft\AndroidSDK\25\tools\templates\gradle\wrapper
References:
https://stackoverflow.com/a/47305199/150342
https://developer.android.com/studio/command-line/sdkmanager.html
You have not accepted the license agreements of the following SDK components

QiBuild/CMake cannot not find BOOST_FILESYSTEM

I'm trying to build the C++ examples from Aldebaran like helloworld and sayhelloworld, but qiBuild keeps saying it cannot not find BOOST_FILESYSTEM. Boost is installed and working, I tested it with some other projects in Visual Studio.
This is the error after running qibuild configure -c atom1145:
[WARN ]: Nested worktrees detected:
d:\ald_sdk\naoqi-sdk-1.14.5-win32-vs2010\doc\examples is already in a worktree
(in d:\ald_sdk)
Current build worktree: d:\ald_sdk\naoqi-sdk-1.14.5-win32-vs2010\doc\examples
Using toolchain: atom1145
Build type: Debug
* (1/1) Configuring sayhelloworld
-- Using qibuild 3.7.1
-- Binary: sayhelloworld
CMake Error at D:/Programs/CMake/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find BOOST_FILESYSTEM (missing: BOOST_FILESYSTEM_LIBRARIES)
Call Stack (most recent call first):
D:/Programs/CMake/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
d:/Programs/Python27/share/cmake/qibuild/find.cmake:361 (find_package_handle_standard_args)
d:/Programs/Python27/share/cmake/qibuild/find.cmake:269 (_qi_call_fphsa)
d:/Programs/Python27/share/cmake/qibuild/modules/boostutils.cmake:39 (export_lib)
d:/Programs/Python27/share/cmake/qibuild/modules/boost_filesystem-config.cmake:9 (boost_flib)
d:/Programs/Python27/share/cmake/qibuild/internal/uselib.cmake:80 (find_package)
d:/Programs/Python27/share/cmake/qibuild/internal/uselib.cmake:94 (_qi_use_lib_get_deps)
d:/Programs/Python27/share/cmake/qibuild/internal/uselib.cmake:94 (_qi_use_lib_get_deps)
d:/Programs/Python27/share/cmake/qibuild/internal/uselib.cmake:94 (_qi_use_lib_get_deps)
d:/Programs/Python27/share/cmake/qibuild/internal/uselib.cmake:94 (_qi_use_lib_get_deps)
d:/Programs/Python27/share/cmake/qibuild/internal/uselib.cmake:158 (_qi_use_lib_get_deps)
d:/Programs/Python27/share/cmake/qibuild/stage.cmake:246 (_qi_use_lib_internal)
CMakeLists.txt:17 (qi_use_lib)
-- Configuring incomplete, errors occurred!
See also "D:/ALD_SDK/naoqi-sdk-1.14.5-win32-vs2010/doc/examples/core/sayhelloworld/build-atom1145/CMakeFiles/CMakeOutput.log".
See also "D:/ALD_SDK/naoqi-sdk-1.14.5-win32-vs2010/doc/examples/core/sayhelloworld/build-atom1145/CMakeFiles/CMakeError.log".
[ERROR]: ConfigureFailed Error occurred when configuring project sayhelloworld
After Boost compiled, I got the following paths:
The following directory should be added to compiler include paths:
D:/Programs/boost_1_57_0
The following directory should be added to linker library paths:
D:\Programs\boost_1_57_0\stage\lib
These are not the default path's and I guess that's causing some problems.
In the CMakeCache.txt I found that the Boost entries were "cleared":
//The directory containing a CMake configuration file for BOOST.
BOOST_DIR:PATH=d:/Programs/Python27/share/cmake/qibuild/modules
//The directory containing a CMake configuration file for BOOST_FILESYSTEM.
BOOST_FILESYSTEM_DIR:PATH=d:/Programs/Python27/share/cmake/qibuild/modules
//Cleared.
BOOST_FILESYSTEM_EXECUTABLE:STRING=
//Cleared.
BOOST_FILESYSTEM_EXECUTABLE_DEBUG:STRING=
//Cleared.
Boost_DEFINITIONS:STRING=
//Cleared.
Boost_EXECUTABLE:STRING=
//Cleared.
Boost_EXECUTABLE_DEBUG:STRING=
//Boost filesystem library (debug)
Boost_FILESYSTEM_LIBRARY_DEBUG:FILEPATH=Boost_FILESYSTEM_LIBRARY_DEBUG-NOTFOUND
//Boost filesystem library (release)
Boost_FILESYSTEM_LIBRARY_RELEASE:FILEPATH=Boost_FILESYSTEM_LIBRARY_RELEASE-NOTFOUND
//Path to a file.
Boost_INCLUDE_DIR:PATH=D:/ALD_SDK/naoqi-sdk-1.14.5-win32-vs2010/include
//Cleared.
Boost_INCLUDE_DIRS:STRING=
//Cleared.
Boost_LIBRARIES:STRING=
I tried to add some variables to the CMakeLists.txt like this, but it didn't help:
set(Boost_DEBUG true)
set(BOOST_ROOT "D:/Programs/boost_1_57_0")
set(BOOST_INCLUDEDIR "D:/Programs/boost_1_57_0/boost")
set(BOOST_LIBRARYDIR "D:/Programs/boost_1_57_0/stage/lib")
Any help would be really appreciated!
This was the solution from the Aldebaran support:
It seems to have some incompatibilty between the NAOqi 1.14.5 C++ SDK for windows and the latest version of qibuild.
On my side I have tested with the latest version of qibuild and it gave me the same error as yours.
I will let our team now to update the documentation.
In the mean time I can propose you a workaround, ie, uninstall qibuild by using
pip uninstall qibuild and reinstall a version that is working with the NAOqi 1.14.5 C++ SDK for windows
pip install qibuild==3.5.1
This one should be working.