I'm strugling to compile NLopt on windows. I have VS2012 and have just
installed CMake.
I then run CMake NLOpt\trunk
But then it states that it can not find api\nlopt.hpp. In the api folder
there is only a nlopt-in.hpp and a nlopt.h. What am I doing wrong?
Here is the output from CMake:
cmake-2.8.12.2-win32-x86\bin>cmake ..\..\nlopt\trunk
-- Building for: Visual Studio 11
-- The C compiler identification is MSVC 17.0.61030.0
-- The CXX compiler identification is MSVC 17.0.61030.0
-- Check for working C compiler using: Visual Studio 11
-- Check for working C compiler using: Visual Studio 11 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 11
-- Check for working CXX compiler using: Visual Studio 11 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include file unistd.h
-- Looking for include file unistd.h - not found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - not found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - not found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for isinf
-- Looking for isinf - not found
-- Looking for isinf
-- Looking for isinf - not found
-- Looking for gettimeofday
-- Looking for gettimeofday - not found
-- Looking for qsort_r
-- Looking for qsort_r - not found
-- Looking for time
-- Looking for time - found
-- Looking for copysign
-- Looking for copysign - not found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of uint32_t
-- Check size of uint32_t - done
-- NLOPT: Version number 2.4.1 found in configure.ac
-- Configuring done
CMake Error at CMakeLists.txt:149 (ADD_LIBRARY):
Cannot find source file:
api/nlopt.hpp
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
-- Build files have been written to: /Source/NLOpt/cmake-2.8.12.2-win32-
x86/bin
_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss