[Olsr-dev] some questions about building in cygwin

xl (spam-protected)
Sat Mar 26 05:12:05 CET 2016


Hi,
I tried to build oonf(both dynamic and static parts) in the cygwin.And I get these 2 problems.
I do not know weather the oonf is designed to be OK with cygwin so I just post this.
Cmake version:3.3.2
Cygwin version:CYGWIN_NT 10.0


1.When doing cmake ,a warning followed with many errors comes out.
   Warning is about WIN32 on Cygwin.
***************************************************************************
CMake Warning at /usr/share/cmake-3.3.2/Modules/Platform/CYGWIN.cmake:15 (message):
  CMake no longer defines WIN32 on Cygwin!


  (1) If you are just trying to build this project, ignore this warning or
  quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
  the CMake cache.  If later configuration or build errors occur then this
  project may have been written under the assumption that Cygwin is WIN32.
  In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.


  (2) If you are developing this project, add the line


    set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required


  at the top of your top-level CMakeLists.txt file or set the minimum
  required version of CMake to 2.8.4 or higher.  Then teach your project to
  build on Cygwin without WIN32.
Call Stack (most recent call first):
  /usr/share/cmake-3.3.2/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
  CMakeLists.txt:1 (project)
****************************************************************************
  Errors are similar.Every api and plugin give an error like below.
********************************************************************
CMake Error at cmake/declare_library.cmake:26 (install):
  install Library TARGETS given no DESTINATION!
Call Stack (most recent call first):
  src-api/common/CMakeLists.txt:26 (oonf_create_library)
*********************************************************************


2.I found thosr cmake errors came frome the lib install in oonf_create_library,so I just 
del it and cmake give me the Makefile.But then when making olsrd2_static,it tell me my 
CC do not support "--enable-auto-import".I was thinking it was my cross complie toolchain's fault and just del
"--enable-auto-import" in cc_flags.cmake file.But it did not fix the error.On the same time ,
I found there is always a "--enable-auto-import" in the cmakeCache.txt.I am not good at 
cmake system.So I wonder if I did something wrong.


Best wishes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20160326/d45285bc/attachment.html>


More information about the Olsr-dev mailing list