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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - automata

Pages: [1]
1
General discussions / SFML 2 for OS X comes true!
« on: December 25, 2010, 07:09:43 am »
Merry Christmas, Hiura; you've been making some great progress with the port! Keep up the good work.

My 32-bit OSX system choked on the current SVN commit; it looks like the precompiled sndfile library got built for 64-bits only. I was able to build from the SVN about a month ago on this system, so it's probably just a minor regression.

Code: [Select]
[ 84%] Building CXX object src/SFML/Audio/CMakeFiles/sfml-audio.dir/SoundStream.cpp.o
Linking CXX shared library ../../../lib/libsfml-audio.dylib
ld: warning: in /Users/Laptop/Documents/sfml2/extlibs/libs-osx/Frameworks/sndfile.framework/sndfile, file was built for unsupported file format which is not the architecture being linked (x86_64)
Undefined symbols:
  "_sf_open", referenced from:
      sf::priv::SoundFile::OpenRead(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in SoundFile.cpp.o
      sf::priv::SoundFile::OpenWrite(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)in SoundFile.cpp.o
  "_sf_open_virtual", referenced from:
      sf::priv::SoundFile::OpenRead(void const*, unsigned long)in SoundFile.cpp.o
  "_sf_seek", referenced from:
      sf::priv::SoundFile::Seek(float)in SoundFile.cpp.o
  "_sf_write_short", referenced from:
      sf::priv::SoundFile::Write(short const*, unsigned long)in SoundFile.cpp.o
  "_sf_strerror", referenced from:
      sf::priv::SoundFile::OpenRead(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in SoundFile.cpp.o
      sf::priv::SoundFile::OpenWrite(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)in SoundFile.cpp.o
      sf::priv::SoundFile::OpenRead(void const*, unsigned long)in SoundFile.cpp.o
  "_sf_read_short", referenced from:
      sf::priv::SoundFile::Read(short*, unsigned long)in SoundFile.cpp.o
  "_sf_close", referenced from:
      sf::priv::SoundFile::~SoundFile()in SoundFile.cpp.o
      sf::priv::SoundFile::~SoundFile()in SoundFile.cpp.o
      sf::priv::SoundFile::OpenRead(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in SoundFile.cpp.o
      sf::priv::SoundFile::OpenWrite(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)in SoundFile.cpp.o
      sf::priv::SoundFile::OpenRead(void const*, unsigned long)in SoundFile.cpp.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [lib/libsfml-audio.2.0.0.dylib] Error 1
make[1]: *** [src/SFML/Audio/CMakeFiles/sfml-audio.dir/all] Error 2
make: *** [all] Error 2

2
General discussions / SFML 2 for OS X comes true!
« 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?

3
General discussions / SFML 2 for OS X comes true!
« 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

4
General discussions / SFML 2 for OS X comes true!
« on: December 11, 2010, 04:57:19 am »
An issue with CMake and the current SVN version of sfml2:

Code: [Select]
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLEW_INCLUDE_PATH
   used as include directory in directory /Users/Laptop/Documents/sfml2/src/SFML/Graphics

Configuring incomplete, errors occurred!


I get this regardless of whether I try to setup a build environment for XCode or makefiles.

5
General discussions / Mac OS X port to be continued
« on: October 26, 2010, 01:32:56 am »
Yeah, the directory not existing was what was causing it to fail; SFML2 compiles now!

Unfortunately I can't figure out how to get any of the example projects to build. The first issue I run into is that it looks for the frameworks in the wrong hard-coded location, like:

Code: [Select]
/Users/marcoantognini/Library/Frameworks/sfml2-graphics-64.framework

That was easy enough for me to change (to my own hard-coded path; there has to be a portable way of doing this), but building the project gives me errors on every function call that exists in SFML2 but not SFML. Obviously the compiler is looking at my old installed SFML library instead of my newly compiled SFML2 library, but I'm not sure how to let it know that I don't want that. Am I missing some obvious way to do this?

6
General discussions / Mac OS X port to be continued
« on: October 25, 2010, 05:07:15 am »
That solved some problems; the linker gave me errors relating to OpenAL, but I am pretty sure that is due to the fact that the OpenAL development libraries on my computer have been corrupted (due to my ignorance while messing around a year back). By deleting the Audio framework from the build targets I bypass all of that, but still remain with a cryptic error in XCode's build script:

Code: [Select]
/bin/sh -c /Users/lew/Desktop/sfml2/build/xcode/sfml.build/dev_10_6/all.build/Script-4C2639F61219B1B70074EB9F.sh

usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-apvX] source_file target_file
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-apvX] source_file ... target_directory
Command /bin/sh failed with exit code 64


(The .sh file just contained the command to copy .framework files to a folder.) Very weird, I think it's probably something uniquely messed up about my computer though, not a general problem. Unfortunately this means I probably won't be able to do any experiments with the code until I get a chance to do a clean OS reinstall.

About your problem: That screenshot looks exactly like what I've seen happen in earlier versions of SFML for OSX in minimal graphical test programs with no calls to either Draw() or Clear(), just Display(). What seems to happen is that the SFML program recieves a junk graphical memory recycled from other programs, and displays that if it isn't overwritten by the program. Since using sf::Image and sf::Sprite gets you a blank screen, something involved in their use probably forces a Clear() on the RenderWindow.

Here is my theory: You can render OpenGL with Window, but the RenderWindow class fails. The main difference between these two seems to be that RenderWindow has a Draw() method. There is probably a problem with something used by Draw(), either a function called or some data that isn't getting properly set by some other system.

Since presumably this is a bug specific to the OSX implementation, maybe somewhere down the chain is failing silently. I'd check to see if there is some point at which a call to the system fails, it signals that error by returning a null pointer rather than a pointer to data, and then the SFML code treats that null as if it were optional data rather than an error signal.

Good luck!

7
General discussions / Mac OS X port to be continued
« on: October 23, 2010, 10:25:57 pm »
Quote from: "Hiura"
I'm still looking for the bug in my code (OSX port).


I couldn't figure out what bug you were referring to by reading the thread. I'm not really proficent with ObjC or Mac programming in general, but I'm willing to give a look if I can know what I am looking for.

8
General discussions / Mac OS X port to be continued
« on: October 23, 2010, 10:15:03 pm »
Hiura:

I downloaded the archive you linked to on mediafire. On OSX 10.6.4 with Xcode project file sfml.xcodeproj, set to configuration "dev_10_6":

I get link errors trying to build the window target.

Code: [Select]

Ld ../../lib/sfml2-window-64-dev.framework/Versions/10_6-dev/sfml2-window-64-dev normal x86_64
cd /Users/lew/Desktop/sfml2/build/xcode
setenv MACOSX_DEPLOYMENT_TARGET 10.6
/Developer/usr/bin/g++-4.2 -arch x86_64 -dynamiclib -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/lew/Desktop/sfml2/build/xcode/../../lib -L/Users/lew/Desktop/sfml2/build/xcode/../../extlibs/bin/x86_64 -F/Users/lew/Desktop/sfml2/build/xcode/../../lib -F/Users/lew/Desktop/sfml2/build/xcode/../../lib -filelist /Users/lew/Desktop/sfml2/build/xcode/sfml.build/dev_10_6/window.build/Objects-normal/x86_64/sfml2-window-64-dev.LinkFileList -install_name /Users/lew/Library/Frameworks/sfml2-window-64-dev.framework/Versions/10_6-dev/sfml2-window-64-dev -mmacosx-version-min=10.6 -framework Cocoa -framework OpenGL -framework IOKit -prebind -single_module -o /Users/lew/Desktop/sfml2/build/xcode/../../lib/sfml2-window-64-dev.framework/Versions/10_6-dev/sfml2-window-64-dev

Undefined symbols:
  "sf::GetDefaultLocale()", referenced from:
      sf::priv::WindowImplCocoa::SetTitle(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in WindowImplCocoa.o
  "sf::Clock::GetElapsedTime() const", referenced from:
      sf::Window::Display()    in Window.o
      sf::Window::Display()    in Window.o
  "sf::Clock::Clock()", referenced from:
      sf::Window::Window()in Window.o
      sf::Window::Window(void*, sf::ContextSettings const&)in Window.o
      sf::Window::Window(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, sf::ContextSettings const&)in Window.o
  "sf::ThreadLocal::~ThreadLocal()", referenced from:
      ___tcf_0 in GlContext.o
  "sf::ThreadLocal::ThreadLocal(void*)", referenced from:
      sf::ThreadLocalPtr<sf::priv::GlContext>::ThreadLocalPtr(sf::priv::GlContext*)in GlContext.o
  "sf::Clock::Reset()", referenced from:
      sf::Window::Display()    in Window.o
      sf::Window::Initialize()     in Window.o
  "sf::Err()", referenced from:
      sf::Window::SetActive(bool) constin Window.o
      sf::Window::Create(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, sf::ContextSettings const&)in Window.o
      sf::Window::Create(sf::VideoMode, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, sf::ContextSettings const&)in Window.o
      sf::priv::VideoModeImpl::GetFullscreenModes()     in VideoModeImpl.o
      sf::priv::VideoModeImpl::GetFullscreenModes()     in VideoModeImpl.o
      sf::priv::SFContext::CreateContext(sf::priv::SFContext*, sf::ContextSettings const&, unsigned int)in SFContext.o
      sf::priv::SFContext::CreateContext(sf::priv::SFContext*, sf::ContextSettings const&, unsigned int)in SFContext.o
      sf::priv::WindowImplCocoa::SetIcon(unsigned int, unsigned int, unsigned char const*)in WindowImplCocoa.o
      sf::priv::WindowImplCocoa::ProcessEvents(bool) in WindowImplCocoa.o
      sf::priv::WindowImplCocoa::WindowImplCocoa(void*)in WindowImplCocoa.o
      sf::priv::WindowImplCocoa::WindowImplCocoa(void*)in WindowImplCocoa.o
      sf::priv::WindowImplCocoa::WindowImplCocoa(void*)in WindowImplCocoa.o
  "sf::ThreadLocal::SetValue(void*)", referenced from:
      sf::ThreadLocalPtr<sf::priv::GlContext>::operator=(sf::priv::GlContext*)in GlContext.o
  "sf::Sleep(float)", referenced from:
      sf::Window::Display()    in Window.o
  "sf::ThreadLocal::GetValue() const", referenced from:
      sf::ThreadLocalPtr<sf::priv::GlContext>::operator->() constin GlContext.o
      sf::ThreadLocalPtr<sf::priv::GlContext>::operator sf::priv::GlContext*() constin GlContext.o
ld: symbol(s) not found
collect2: ld returned 1 exit status


Is the project building for you? If so, is there anything special you are doing to get it to build? Am I using the wrong xcode project file?

Pages: [1]