Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Windows, babun] This UNIX operating system is not supported by SFML library.  (Read 3477 times)

0 Members and 1 Guest are viewing this topic.

Miss__Aria

  • Newbie
  • *
  • Posts: 6
    • View Profile
Yet it should be? I'm compiling using babun, (http://babun.github.io/) which is a cygwin wrapper. Do you have any ideas on how to fix it? Here's my CMakeLists.txt.
Aria@Aria /d/projects/Treetop-paste/build$ cat ../CMakeLists.txt                                                                                                                                                                       2 ↵
# CMakeLists.txt

cmake_minimum_required(VERSION 2.6)
project(The_Treetop)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -std=c++11")

include_directories(${PROJECT_BINARY_DIR})

set(EXECUTABLE_NAME "The_Treetop")
add_executable(${EXECUTABLE_NAME} src/main.cpp)

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
set(SFML_ROOT "${CMAKE_SOURCE_DIR}/sfmlsrc")
MESSAGE(STATUS "nice: " ${SFML_ROOT})

find_package(SFML 2 REQUIRED system window graphics network audio)
include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(${EXECUTABLE_NAME} ${SFML_LIBRARIES})

install(TARGETS ${EXECUTABLE_NAME} DESTINATION bin)

include(InstallRequiredSystemLibraries)
include(CPack)
 


Console output:
Aria@Aria /cygdrive/d/Projects/Treetop-paste/build$ make
[ 50%] Building CXX object CMakeFiles/The_Treetop.dir/src/main.cpp.o
In file included from /d/projects/Treetop-paste/sfmlsrc/include/SFML/System.hpp:32:0,
                 from /d/projects/Treetop-paste/sfmlsrc/include/SFML/Window.hpp:32,
                 from /d/projects/Treetop-paste/sfmlsrc/include/SFML/Graphics.hpp:32,
                 from /d/projects/Treetop-paste/src/main.cpp:2:
/d/projects/Treetop-paste/sfmlsrc/include/SFML/Config.hpp:92:10: error: #error This UNIX operating system is not supported by SFML library
         #error This UNIX operating system is not supported by SFML library
          ^
In file included from /d/projects/Treetop-paste/sfmlsrc/include/SFML/Window.hpp:42:0,
                 from /d/projects/Treetop-paste/sfmlsrc/include/SFML/Graphics.hpp:32,
                 from /d/projects/Treetop-paste/src/main.cpp:2:
/d/projects/Treetop-paste/sfmlsrc/include/SFML/Window/Window.hpp:106:34: error: expected ‘)’ before ‘handle’
     explicit Window(WindowHandle handle, const ContextSettings& settings = ContextSettings());
                                  ^
/d/projects/Treetop-paste/sfmlsrc/include/SFML/Window/Window.hpp:151:17: error: ‘WindowHandle’ has not been declared
     void create(WindowHandle handle, const ContextSettings& settings = ContextSettings());
                 ^
/d/projects/Treetop-paste/sfmlsrc/include/SFML/Window/Window.hpp:468:5: error: ‘WindowHandle’ does not name a type
     WindowHandle getSystemHandle() const;
     ^
In file included from /d/projects/Treetop-paste/sfmlsrc/include/SFML/Graphics.hpp:47:0,
                 from /d/projects/Treetop-paste/src/main.cpp:2:
/d/projects/Treetop-paste/sfmlsrc/include/SFML/Graphics/RenderWindow.hpp:94:40: error: expected ‘)’ before ‘handle’
     explicit RenderWindow(WindowHandle handle, const ContextSettings& settings = ContextSettings());
                                        ^
CMakeFiles/The_Treetop.dir/build.make:62: recipe for target 'CMakeFiles/The_Treetop.dir/src/main.cpp.o' failed
make[2]: *** [CMakeFiles/The_Treetop.dir/src/main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/The_Treetop.dir/all' failed
make[1]: *** [CMakeFiles/The_Treetop.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
 
« Last Edit: May 14, 2016, 08:55:09 am by Miss__Aria »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
What CMake generator do you use?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Looks like __CYGWIN__ isn't part of the __unix__ block in Config.hpp. This platform hasn't been tested in any way though, so that has to come first.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

Miss__Aria

  • Newbie
  • *
  • Posts: 6
    • View Profile
What CMake generator do you use?
cmake version 3.3.2

 

anything