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
Related
I'm trying to use ECW files in my application. I've built GDAL Library whit this command:
./configure --with-ecw:/usr/local/hexagon
after completion of build process, when I Entered:
gdalinfo --formats | grep ECW
I got:
ECW -raster- (rw+): ERDAS Compressed Wavelets (SDK 5.5)
JP2ECW -raster,vector- (rw+v): ERDAS JPEG2000 (SDK 5.5)
also when I've used
gdalinfo map.ecw
it returns all metadata of ECW files.
but when I compile my C++ program, it returns:
Error: GDAL Dataset returned null from read
ERROR 4: `map.ecw' not recognized as a supported file format.
Dose anyone know why I can't use ECW files in C++ program?
By the way, I use
Cmake
,GDAL 3.3.0
,Erdas-ECW SDK 5.5 hexagon
for building the program.
I found the answer. This problem occurs if the gdal_bin binary package is installed before creating GDAL.
Just make sure gdal_bin is deleted before installing the version you created.
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>`
I am trying to execute linking of C++ and Python with BOOST.
Using the example from https://www.boost.org/doc/libs/1_63_0/libs/python/doc/html/tutorial/tutorial/hello.html#tutorial.hello.let_s_jam, and issuing bjam at ~/libs/python/example/tutorial/ which contains these files:
hello.cpp hello.py Jamfile
The read-out from the console error is:
/home/benjamin/boost/boost_1_71_0/tools/build/src/tools/types/xml.jam:12:
in load ERROR: rule "Copyright" unknown in module "xml".
Here is what I undertook to solve this problem:
I built boost from boost_1_71_0.tar.bz2 using the ./b2 file in the directory /boost/boost_1_71_0/ which is dated November 14, 2019.
My Ubuntu 18.04 system has a b2 link at /usr/bin/b2 -> bjam, which is older (March 6, 2018) and the bjam file (March 6, 2018).
No other bjam files exist on the system.
From bjam for boost 1.54, I tried:
sudo-apt install bjam
error: E: Package 'bjam' has no installation candidate.
All the programs in the user-config.jam file (e.g., c++, msvc/code, python3) are correct, which is located in my /home/benjamin/boost/boost_1_71_0/tools/build/example/.
For pity's sake and to help me (newbie), please advise.
Looking at error message it seems that error is with file /home/benjamin/boost/boost_1_71_0/tools/build/src/tools/types/xml.jam
I checked with my local installation (which is boost 1.65.1), but I am not able to locate any file with name xml.jam. But I have few other .jam file at location /usr/share/boost-build/src/tools/types/. As example
asm.jam
# Copyright Craig Rodrigues 2005. Distributed under the Boost
# Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
type ASM : s S asm ;
So it seems that your xml.jam either invalid OR few lines should be commented (as in above file).
Try below options.
Check your xml.jam, if there are any content which are not related jam then you should comment out information.
Rename your xml.jam to xml.jam.bkp. This file may not be needed.(Not needed in my case with boost 1.65.1)
Try to install everything from Ubuntu package manager and use that. You can install all boost module by sudo apt install libboost-all-dev. I tried https://github.com/boostorg/python/tree/develop/example code with my local installed boost (1.65.1) from package manager and it work fine.
I have built the openCV 3.0 alpha version from source with support for CUDA and TBB. Now, I want to do feature detection and feature matching using SURF algorithm. SurfFeatureDetector is present in the include file
opencv2/nonfree/features2d.hpp & opencv2/nonfree/features2d.hpp
But the module nonfree is missing in this version of openCV. I tried checking the opencv forums at answers.opencv.org but the site is under construction.
How to use the non free modules?
with opencv3.0, SURF/SIFT and some other things have been moved to a seperate opencv_contrib repo .
you will have to download that, add it to your main opencv cmake settings (please look at the readme there), and rerun cmake/make.
then:
#include "opencv2/xfeatures2d.hpp"
...
Ptr<SIFT> sift = cv::xfeatures2d::SIFT::create(...);
sift->detect(...);
You could also install all the non-free stuff from this PPA
sudo add-apt-repository ppa:ignaciovizzo/opencv3-nonfree
sudo apt-get update
sudo apt install libopencv-dev
It's been 2 days I'm trying to install the driver C++ of MongoDB but I keep running into the same mistake ( in Mac OS X environnement )
In file included from /opt/local/include/boost/filesystem/operations.hpp:24,
from /opt/local/include/boost/filesystem/convenience.hpp:22,
from pch.h:83,
from pch.cpp:18:
/opt/local/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
In file included from util/goodies.h:22,
from pch.h:161,
from pch.cpp:18:
util/concurrency/mutex.h: In function 'boost::xtime mongo::incxtimemillis(long long int)':
Before installing the lib ( by doing "scons" ), I installed pcre and boost via portmac ( sudo port install boost ).
Any ideas ? I'm really stuck right now..
Thx guys.
You need downgrade the boost library to 1.45 or earlier version to build the mongodb, because it depend on the boost::filesystem v2, but the latest boost (after v1.46) is using boost::filesystem v3 by default.
http://www.boost.org/users/history/version_1_46_0.html
Filesystem:
Version 3 of the library is now the default.
I had the same problem, and downgrading to boost 1.45 got it compiled for me (thanks Flier Lu). I use MacPorts to install Boost; here's instructions on how to downgrade:
https://trac.macports.org/wiki/howto/InstallingOlderPort