Error during CMake libnfc - installation

I'm really trying hard to install libnfc but i keep ketting the error:
It says:
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
CMake Error at cmake/modules/FindPCRE.cmake:30 (MESSAGE):
Could not find PCRE
Call Stack (most recent call first):
CMakeLists.txt:112 (FIND_PACKAGE)
Is there anyone who knows how i can fix this error? You will help me very much. If you have another example of a NFC libary thats oké to!

I already have the answer. When i added the LIBUSB_INCLUDE_DIRS and the LIBUSB_LIBARIES entry CMake added a lot of configuration. With the configuration of below it worked.

Related

CGAL Polyhedron demo (5.0.2) boost problem

I seem to be unable to configure the Polyhedron demo on Cgal 5.0.2.
I am able to make and build everything else so wondered what the problem was? I am faced with this output upon using cmake.
Boost version: 1.65.1
Found the following Boost libraries:
serialization
iostreams
regex
CMake Error at Installation/cmake/modules/CGAL_Boost_iostreams_support.cmake:36 (set_target_properties):
set_target_properties called with incorrect number of arguments.
Call Stack (most recent call first):
Polyhedron/demo/Polyhedron/Plugins/Classification/CMakeLists.txt:9 (include)
I am not well-versed on cmake etc. so apopolgies if there is something I have missed. I have trawled the internet on this to no avail on this so far. Can anyone help?
Thanks
Thanks to sehe for the suggestion. An upgrade from CMAKE 3.10 > 3.17 solved the problem and I was then able to make and build the demo.

CMake unable to find my Windows installation of wxWidgets

I've tried to link wxWidgets 3.0.2 to my C++ project but CMake can't seem to find it.
The wxWidgets that I'm trying to get CMake to find is from wxMSW-Setup-3.0.2.exe
This is the error it gives me:
-- Building for: Visual Studio 12 2013
CMake Error at D:/Program Files (x86)/CMake/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find wxWidgets (missing: wxWidgets_FOUND)
Call Stack (most recent call first):
D:/Program Files (x86)/CMake/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
D:/Program Files (x86)/CMake/share/cmake-3.3/Modules/FindwxWidgets.cmake:871 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:66 (find_package)
-- Configuring incomplete, errors occurred!
CMakeLists.txt:66 refers to this line:
find_package(wxWidgets REQUIRED core base)
I've tried changing the CMake generator, and running set(wxWidgets_ROOT_DIR "C:/wxWidgets-3.0.2"), both of which didn't fix the problem.
CMake is version 3.3.1.
I think cmake used environement variable to find wxwidgets. You have to set wxDir or wxWin variable to C:/wxWidgets-3.0.2
Use find_package(wxWidgets REQUIRED gl core base OPTIONAL_COMPONENTS net) instead of find_package(wxWidgets REQUIRED COMPONENTS core base). And when you build the wxWidgets https://wiki.wxwidgets.org/Compiling_wxWidgets_with_MinGW, use build the static libraries instead of dynamic libraries, I fixed it by using these two steps.

PCL Point-Cloud-Library cmake install error - OpenMP

this is my first post so please be gentle!
I'm getting what appear to be cmake errors when trying to configure an install of pcl 1.7 in OSX 10.8.5. The error which appears 18 times is:
Performing Test OpenMP_FLAG_DETECTED - Failed
and then after the 18 failed searches for OpenMP:
Could NOT find OpenMP (missing: OpenMP_C_FLAGS OpenMP_CXX_FLAGS)
Not found OpenMP
I'm also getting a red error (using cmake GUI) stating:
CMake Error at cmake/Modules/FindEigen.cmake:25 (file):
file Internal CMake error when trying to open file:
/Library/Frameworks/Eigen.framework/Eigen/src/Core/util/Macros.h for
reading.
Call Stack (most recent call first):
CMakeLists.txt:238 (find_package)
But then followed in black by:
Found Eigen: /Library/Frameworks/Eigen.framework
Eigen found (include: /Library/Frameworks/Eigen.framework, version: ..)
so perhaps this isn't the issue (also there are no references to Eigen in the CMakeError.log.
Any help diagnosing or fixing the problem would be greatly appreciated.
Thanks,
Mark
So it seems the OpenMP errors may be able to be resolved by switching the compiler from Clang to g++, though I haven't done this as I'll be OK without OpenMP. The Eigen error (which was what was halting the build) was fixed by uninstalling then reinstalling MacPorts.

CMake reports 'Boost_DIR-NOT_FOUND' when trying to find Boost

I want to build a library called CSWNet on my machine. Cmake can find Boost_INCLUDE_DIR and Boost_LIB_DIR but it cannot find an option called Boost_DIR which is a directory containing a CMake configuration file for Boost. Where is it? Please help, thanks ahead. The error I got is shown below and I installed boost from ubuntu repository and it's installed in /usr/local.
CMake Error at /usr/local/share/cmake-2.8/Modules/FindBoost.cmake:429 (message):
When requesting a specific version of Boost, you must provide at least the
major and minor version numbers, e.g., 1.34
Call Stack (most recent call first):
demos/CMakeLists.txt:149 (find_package)
It seems you misunderstood the meaning of Boost_DIR.
Boost_DIR is an environment variable used as a hint by CMake to find the boost installation directory. If this is set to Boost_DIR-NOTFOUND that does not mean that it did not find Boost. Boost_FOUND is used to indicate whether the search was successful:
find_package(Boost REQUIRED thread)
if(Boost_FOUND)
message(STATUS "Success!")
endif()
In case of a successful search, CMake will also print a diagnostic message during the configure phase which looks something like
Boost version: 1.53.0
Found the following Boost libraries:
thread
Hope its not too late to post this.
Passing it in the command line along with cmake command would resovle it
cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=dist -DBOOST_DIR="boost installation location"

Very frustrating problem with cmake

I am having a frustrating problem with cmake on windows. i have the kde libs installed.
when i am trying to compile my project with cmake . this shoots up again and again.
Found Qt-Version 4.7.0 (using C:/Qt/2010.05/qt/bin/qmake.exe)
CMake Error at c:/Program Files/KDE/share/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:198 (MESSAGE):
Did not find automoc4 (Automoc4Config.cmake, part of kdesupport).
(missing: AUTOMOC4_EXECUTABLE)
Call Stack (most recent call first):
c:/Program Files/KDE/share/apps/cmake/modules/FindAutomoc4.cmake:56 (find_package_handle_standard_args)
c:/Program Files/KDE/share/apps/cmake/modules/FindKDE4Internal.cmake:402 (find_package)
C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
CMakeLists.txt:96 (find_package)
Configuring incomplete, errors occurred!
Well i was digging around the net for this problem. and i got the automoc4 file which were missing with the default kde-win-installer. So i downloaded the files and ran cmake for the automoc4 and got the automoc4.exe which i place in the %KDE_INSTALL%/bin folder. But luck was not with me. And again my favorite error fires up.
Help me on this!!
Problem solved thanks to patrick and the kde-windows team
download the following files from this url
then open cmake-gui select the browse source to the downloaded folder, and build source to some folder.
generate the cmake , open cmd and navigate to the build folder and type mingw-make.
U then get the automoc4.exe.
1. place it in the %KDE_INSTALL%\bin.
2. Then place Automoc4Config.cmake,Automoc4.files.in and Automoc4Version.cmake in %KDE_INSTALL%\lib\automoc4.
Now just try now.
From what I can see, it seems that CMake is unable to find automoc4.
For CMake to find the excecutable, add the %KDE_INSTALL%/bin folder to the PATH environment variable. There might be a better way to fix this though.
Maybe you should take a look at Automoc4Confid.cmake to see where it looks for the thing. You should find that in the modules folder under the CMake folder

Resources