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

Author Topic: SFML 2 for OS X comes true!  (Read 104590 times)

0 Members and 1 Guest are viewing this topic.

spacechase0

  • Newbie
  • *
  • Posts: 39
    • AOL Instant Messenger - thespacechase0
    • View Profile
    • http://spacechase0.com/
SFML 2 for OS X comes true!
« Reply #15 on: December 12, 2010, 01:05:12 am »
Just made a quick (and very sloppy) project template for graphic applications here . I just put it in "/Developer/Library/Xcode/Project Templates/Application" and it worked fine.

automata

  • Newbie
  • *
  • Posts: 8
    • View Profile
SFML 2 for OS X comes true!
« Reply #16 on: December 13, 2010, 01:37:14 am »
A new issue occurs in the current SVN version, for both unix makefiles and xcode. If it compiles for you, my guess at the root cause would be that for some reason __int64 is not defined on my system but is on yours. (I am using a MacBook Pro; it appears to use i386 rather than x86-64, maybe the architecture is the reason?)

Code: [Select]

In file included from /Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:32,
                 from /Users/Laptop/Documents/sfml2/src/SFML/Audio/Music.cpp:30:
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:308: error: '__int64' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:319: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:372: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:373: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:452: error: ISO C++ forbids declaration of 'sf_count_t' with no type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:452: error: typedef 'sf_count_t' is initialized (use __typeof__ instead)
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:452: error: 'sf_vio_get_filelen' was not declared in this scope
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:453: error: ISO C++ forbids declaration of 'sf_count_t' with no type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:453: error: typedef 'sf_count_t' is initialized (use __typeof__ instead)
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:453: error: 'sf_vio_seek' was not declared in this scope
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:454: error: ISO C++ forbids declaration of 'sf_count_t' with no type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:454: error: typedef 'sf_count_t' is initialized (use __typeof__ instead)
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:454: error: 'sf_vio_read' was not declared in this scope
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:455: error: ISO C++ forbids declaration of 'sf_count_t' with no type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:455: error: typedef 'sf_count_t' is initialized (use __typeof__ instead)
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:455: error: 'sf_vio_write' was not declared in this scope
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:456: error: ISO C++ forbids declaration of 'sf_count_t' with no type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:456: error: typedef 'sf_count_t' is initialized (use __typeof__ instead)
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:456: error: 'sf_vio_tell' was not declared in this scope
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:459: error: 'sf_vio_get_filelen' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:460: error: 'sf_vio_seek' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:461: error: 'sf_vio_read' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:462: error: 'sf_vio_write' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:463: error: 'sf_vio_tell' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:540: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:557: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:558: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:570: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:571: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:573: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:574: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:576: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:577: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:579: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:580: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:587: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:588: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:590: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:591: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:593: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:594: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:596: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:597: error: 'sf_count_t' does not name a type
In file included from /Users/Laptop/Documents/sfml2/src/SFML/Audio/Music.cpp:30:
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:170: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:171: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:172: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:173: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:174: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:178: error: 'sf_count_t' does not name a type

In file included from /Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:32,
                 from /Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundBuffer.cpp:29:
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:308: error: '__int64' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:319: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:372: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:373: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:452: error: ISO C++ forbids declaration of 'sf_count_t' with no type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:452: error: typedef 'sf_count_t' is initialized (use __typeof__ instead)
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:452: error: 'sf_vio_get_filelen' was not declared in this scope
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:453: error: ISO C++ forbids declaration of 'sf_count_t' with no type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:453: error: typedef 'sf_count_t' is initialized (use __typeof__ instead)
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:453: error: 'sf_vio_seek' was not declared in this scope
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:454: error: ISO C++ forbids declaration of 'sf_count_t' with no type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:454: error: typedef 'sf_count_t' is initialized (use __typeof__ instead)
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:454: error: 'sf_vio_read' was not declared in this scope
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:455: error: ISO C++ forbids declaration of 'sf_count_t' with no type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:455: error: typedef 'sf_count_t' is initialized (use __typeof__ instead)
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:455: error: 'sf_vio_write' was not declared in this scope
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:456: error: ISO C++ forbids declaration of 'sf_count_t' with no type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:456: error: typedef 'sf_count_t' is initialized (use __typeof__ instead)
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:456: error: 'sf_vio_tell' was not declared in this scope
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:459: error: 'sf_vio_get_filelen' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:460: error: 'sf_vio_seek' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:461: error: 'sf_vio_read' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:462: error: 'sf_vio_write' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:463: error: 'sf_vio_tell' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:540: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:557: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:558: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:570: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:571: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:573: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:574: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:576: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:577: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:579: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:580: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:587: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:588: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:590: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:591: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:593: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:594: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:596: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:597: error: 'sf_count_t' does not name a type
In file included from /Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundBuffer.cpp:29:
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:170: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:171: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:172: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:173: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:174: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:178: error: 'sf_count_t' does not name a type

In file included from /Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:32,
                 from /Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:28:
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:308: error: '__int64' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:319: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:372: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:373: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:452: error: ISO C++ forbids declaration of 'sf_count_t' with no type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:452: error: typedef 'sf_count_t' is initialized (use __typeof__ instead)
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:452: error: 'sf_vio_get_filelen' was not declared in this scope
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:453: error: ISO C++ forbids declaration of 'sf_count_t' with no type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:453: error: typedef 'sf_count_t' is initialized (use __typeof__ instead)
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:453: error: 'sf_vio_seek' was not declared in this scope
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:454: error: ISO C++ forbids declaration of 'sf_count_t' with no type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:454: error: typedef 'sf_count_t' is initialized (use __typeof__ instead)
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:454: error: 'sf_vio_read' was not declared in this scope
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:455: error: ISO C++ forbids declaration of 'sf_count_t' with no type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:455: error: typedef 'sf_count_t' is initialized (use __typeof__ instead)
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:455: error: 'sf_vio_write' was not declared in this scope
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:456: error: ISO C++ forbids declaration of 'sf_count_t' with no type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:456: error: typedef 'sf_count_t' is initialized (use __typeof__ instead)
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:456: error: 'sf_vio_tell' was not declared in this scope
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:459: error: 'sf_vio_get_filelen' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:460: error: 'sf_vio_seek' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:461: error: 'sf_vio_read' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:462: error: 'sf_vio_write' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:463: error: 'sf_vio_tell' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:540: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:557: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:558: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:570: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:571: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:573: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:574: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:576: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:577: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:579: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:580: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:587: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:588: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:590: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:591: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:593: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:594: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:596: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/extlibs/headers/sndfile.h:597: error: 'sf_count_t' does not name a type
In file included from /Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:28:
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:170: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:171: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:172: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:173: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:174: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.hpp:178: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp: In member function 'bool sf::priv::SoundFile::OpenRead(const std::string&)':
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:96: error: 'struct SF_INFO' has no member named 'frames'
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp: In member function 'bool sf::priv::SoundFile::OpenRead(const void*, size_t)':
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:124: error: 'struct SF_INFO' has no member named 'frames'
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp: In member function 'size_t sf::priv::SoundFile::Read(sf::Int16*, size_t)':
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:173: error: 'sf_read_short' was not declared in this scope
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp: In member function 'void sf::priv::SoundFile::Write(const sf::Int16*, size_t)':
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:189: error: 'sf_write_short' was not declared in this scope
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp: In member function 'void sf::priv::SoundFile::Seek(float)':
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:202: error: 'sf_count_t' was not declared in this scope
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:202: error: expected `;' before 'frameOffset'
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:203: error: 'frameOffset' was not declared in this scope
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:203: error: 'sf_seek' was not declared in this scope
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp: In member function 'SF_VIRTUAL_IO sf::priv::SoundFile::MemoryIO::Prepare(const void*, size_t)':
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:253: error: 'struct SF_VIRTUAL_IO' has no member named 'get_filelen'
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:253: error: 'GetLength' is not a member of 'sf::priv::SoundFile::MemoryIO'
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:254: error: 'struct SF_VIRTUAL_IO' has no member named 'read'
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:254: error: 'Read' is not a member of 'sf::priv::SoundFile::MemoryIO'
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:255: error: 'struct SF_VIRTUAL_IO' has no member named 'seek'
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:255: error: 'Seek' is not a member of 'sf::priv::SoundFile::MemoryIO'
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:256: error: 'struct SF_VIRTUAL_IO' has no member named 'tell'
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:256: error: 'Tell' is not a member of 'sf::priv::SoundFile::MemoryIO'
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:257: error: 'struct SF_VIRTUAL_IO' has no member named 'write'
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:257: error: 'Write' is not a member of 'sf::priv::SoundFile::MemoryIO'
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:262: error: 'myTotalSize' was not declared in this scope
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp: At global scope:
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:269: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:278: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:295: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:320: error: 'sf_count_t' does not name a type
/Users/Laptop/Documents/sfml2/src/SFML/Audio/SoundFile.cpp:329: error: 'sf_count_t' does not name a type

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML 2 for OS X comes true!
« Reply #17 on: December 13, 2010, 08:02:03 am »
There are two versions of sndfile.h, one for Windows and one for Mac OS X. Apparently it is picking the wrong one on your system, we definitely have to handle this more correctly.

I'll do a fix as soon as possible.
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML 2 for OS X comes true!
« Reply #18 on: December 13, 2010, 10:03:25 pm »
Is it better now?
Laurent Gomila - SFML developer

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML 2 for OS X comes true!
« Reply #19 on: December 13, 2010, 10:10:22 pm »
It seems good to me. And I like the new include dir.  :)
SFML / OS X developer

automata

  • Newbie
  • *
  • Posts: 8
    • View Profile
SFML 2 for OS X comes true!
« Reply #20 on: December 17, 2010, 04:57:27 am »
I am trying to build a simple OpenGL test program from the command line. The command I am using is

Code: [Select]
g++ opengl.cpp -lsfml-window -lsfml-system

I get errors saying that the various OpenGL functions and types have not been declared. I have inserted -framework OpenGL into various places in that line, with the same issue.

In my test code I include <SFML/Window.hpp>; I don't need to include anything else, do I?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML 2 for OS X comes true!
« Reply #21 on: December 17, 2010, 07:57:01 am »
Code: [Select]
#include <SFML/OpenGL.hpp>
;)
Laurent Gomila - SFML developer

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
SFML 2 for OS X comes true!
« Reply #22 on: December 20, 2010, 04:42:47 pm »
Here is what I get after updating the files from the SVN repository and trying to build SFML :
Quote
[ 85%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/Music.cpp.o
In file included from /Users/ceylo/sfml/branches/sfml2/src/SFML/Audio/Music.cpp:30:
/Users/ceylo/sfml/branches/sfml2/src/SFML/Audio/SoundFile.hpp:32:21: error: sndfile.h: No such file or directory
In file included from /Users/ceylo/sfml/branches/sfml2/src/SFML/Audio/Music.cpp:30:
/Users/ceylo/sfml/branches/sfml2/src/SFML/Audio/SoundFile.hpp:166: error: ‘SF_VIRTUAL_IO’ does not name a type
/Users/ceylo/sfml/branches/sfml2/src/SFML/Audio/SoundFile.hpp:170: error: ‘sf_count_t’ does not name a type
/Users/ceylo/sfml/branches/sfml2/src/SFML/Audio/SoundFile.hpp:171: error: ‘sf_count_t’ does not name a type
/Users/ceylo/sfml/branches/sfml2/src/SFML/Audio/SoundFile.hpp:172: error: ‘sf_count_t’ does not name a type
/Users/ceylo/sfml/branches/sfml2/src/SFML/Audio/SoundFile.hpp:173: error: ‘sf_count_t’ does not name a type
/Users/ceylo/sfml/branches/sfml2/src/SFML/Audio/SoundFile.hpp:174: error: ‘sf_count_t’ does not name a type
/Users/ceylo/sfml/branches/sfml2/src/SFML/Audio/SoundFile.hpp:178: error: ‘sf_count_t’ does not name a type
/Users/ceylo/sfml/branches/sfml2/src/SFML/Audio/SoundFile.hpp:184: error: ISO C++ forbids declaration of ‘SNDFILE’ with no type
/Users/ceylo/sfml/branches/sfml2/src/SFML/Audio/SoundFile.hpp:184: error: expected ‘;’ before ‘*’ token
make[2]: *** [src/SFML/Audio/CMakeFiles/sfml-audio.dir/Music.cpp.o] Error 1
make[1]: *** [src/SFML/Audio/CMakeFiles/sfml-audio.dir/all] Error 2
make: *** [all] Error 2


 :?
Want to play movies in your SFML application? Check out sfeMovie!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML 2 for OS X comes true!
« Reply #23 on: December 20, 2010, 04:44:52 pm »
You have to reconfigure manually using CMake. Some include paths have changed and the cache is messed up.
Laurent Gomila - SFML developer

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
SFML 2 for OS X comes true!
« Reply #24 on: December 20, 2010, 04:50:03 pm »
Indeed, I had run the cmake tool but I had not removed CMakeCache.txt :D . Thanks!
Want to play movies in your SFML application? Check out sfeMovie!

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
SFML 2 for OS X comes true!
« Reply #25 on: December 20, 2010, 07:08:14 pm »
Here is my feedback about the SFML 2 port.

1. When using fullscreen mode, you can only use the desktop video mode. Any other video mode will fail, saying it's invalid.

2. WaitEvent() works.. weirdly. I don't really know how it's supposed to behave. The documentation says it would return false whenever an error occurs. With the current implementation it will return false if :
- I move the mouse cursor when it's outside of the OpenGL area
- I move the window
- I use the mouse wheel when the cursor is outside of the OpenGL area but still on the application (menu bar, window title bar)
- I press the key modifiers (Fn, Shift, Caps Lock, Ctrl, Alt, Cmd), the ')' key; and the luminosity, playing controls or sounds keys
- the window loses or gains focus (but not when giving back the focus while clicking the app icon in the Dock)
Is it the expected behavior ?

3. As for the events being received, all of the keys seem to work fine except the one given above. Pressing the ')' key will print "Unknown key (released)" and "Unknown key (pressed)".

4. The arrow keys produce a text entered event but I suppose they should not.

5. sf::Window::SetPosition(0, 0) does not put the window at the right place as far as the Y axis is concerned.

6. Using sf::Window::SetSize() will produce 5 resize events whereas I suppose I should only get 1 (or 0 ?).

7. sf::Window::EnableKeyRepeat() has no effect. Key repeating is always enabled.

8. There is no working directory set. Thus the working directory is the directory containing the bundle application when launching from Xcode, and the user home directory when launching from the Finder. It is the expected behavior ?

9. Creating a window and then calling sf::Window::Create() on the same window object makes the app crash randomly.


That "all" I've to say for now, have fun ! :D
Want to play movies in your SFML application? Check out sfeMovie!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML 2 for OS X comes true!
« Reply #26 on: December 20, 2010, 07:28:27 pm »
Quote
2. WaitEvent() works.. weirdly. I don't really know how it's supposed to behave. The documentation says it would return false whenever an error occurs. With the current implementation it will return false if :
- I move the mouse cursor when it's outside of the OpenGL area
- I move the window
- I use the mouse wheel when the cursor is outside of the OpenGL area but still on the application (menu bar, window title bar)
- I press the key modifiers (Fn, Shift, Caps Lock, Ctrl, Alt, Cmd), the ')' key; and the luminosity, playing controls or sounds keys
- the window loses or gains focus (but not when giving back the focus while clicking the app icon in the Dock)
Is it the expected behavior ?

Nop, in fact WaitEvent returns a boolean to have the same prototype as GetEvent, but it should really never return false (there's no error that can happen).
After looking at the implementation, I noticed that it will eventually return false if there's an event that SFML doesn't handle -- which means that normally all these events that you list should never generate a sf::Event on OS X (even with GetEvent).
I should probably change the code to fix this.
Laurent Gomila - SFML developer

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
SFML 2 for OS X comes true!
« Reply #27 on: December 20, 2010, 07:38:36 pm »
Shouldn't it return false only when the window is closed (and the window impl deleted by SFML) ?
Want to play movies in your SFML application? Check out sfeMovie!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML 2 for OS X comes true!
« Reply #28 on: December 20, 2010, 07:43:55 pm »
Quote
Shouldn't it return false only when the window is closed (and the window impl deleted by SFML) ?

Sure, I forgot this obvious scenario :)
This is indeed the only case where WaitEvent should return false.
Laurent Gomila - SFML developer

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML 2 for OS X comes true!
« Reply #29 on: December 20, 2010, 08:07:24 pm »
Well, that's a lot of bugs!  :oops: Thanks for the report. I'll have a look ASAP.

Just a quick word about the working directory, isn't that the same behaviour on Linux/Windows when launching an exe from the window manager ?

About context (and therefor video mode), I'll definitely have to look at it deeply again (and again...). So don't expect too much from it now.
SFML / OS X developer

 

anything