Skip to content
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

Compile error on windows 10 using VS 2010 #48

Open
ivivyfei opened this issue Mar 2, 2016 · 2 comments
Open

Compile error on windows 10 using VS 2010 #48

ivivyfei opened this issue Mar 2, 2016 · 2 comments

Comments

@ivivyfei
Copy link

ivivyfei commented Mar 2, 2016

I compiled the libnabo follow the instructions. And errors occured as following:

Error in Cmake:
CMake Error at tests/CMakeLists.txt:95 (message):
Compiling a test executable failed.
Call Stack (most recent call first):
tests/CMakeLists.txt:105 (try_compile_cloud_types)

*I read about the error log, and I found the error that "unistd.h" can't be found. *
CheckSymbolExists.c(2): fatal error C1083: 无法打开包括文件:“unistd.h”: No such file or directory [D:\libnabo\build\CMakeFiles\CMakeTmp\cmTC_f5390.vcxproj]

File D:/libnabo/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */

include <unistd.h>

include <time.h>

int main(int argc, char** argv)
{
(void)argv;

ifndef _POSIX_TIMERS

return ((int*)(&_POSIX_TIMERS))[argc];

else

(void)argc;
return 0;

endif

}

@mounaattia
Copy link

I have the same error, I haven't a solution,
Please can you help me

@fengweichangzi
Copy link

fengweichangzi commented Sep 1, 2022

I used cmake 3.22.5 with VS2019 and got the following info when doing cmake configurate

OpenCL disabled, not looking for it
ANN not found, disabling it in benchmarks
FLANN not found, disabling it in benchmarks
Python version from interpreter is 3.9.9
Python libs and executable found, looking for numpy and boost::python
CMake Warning at D:/Program Files/cmake-3.22.5-windows-x86_64/share/cmake-3.22/Modules/FindBoost.cmake:1384 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  D:/Program Files/cmake-3.22.5-windows-x86_64/share/cmake-3.22/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
  D:/Program Files/cmake-3.22.5-windows-x86_64/share/cmake-3.22/Modules/FindBoost.cmake:2117 (_Boost_MISSING_DEPENDENCIES)
  python/CMakeLists.txt:46 (find_package)

numpy and boost::python found, generating python bindings
Configuring done

Looks no problem, but when I tried to generate, I got the errors as follows:

CMake Error in CMakeLists.txt:
  Evaluation file to be written multiple times with different content.  This
  is generally caused by the content evaluating the configuration type,
  language, or location of object files:

   D:/libpointmatcher/buildlibnabo107/libnaboConfig.cmake

Did anyone have the same errors and have some solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants