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

Author Topic: [SOLVED] SFML 1.2 RC  (Read 36081 times)

0 Members and 1 Guest are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[SOLVED] SFML 1.2 RC
« Reply #15 on: December 19, 2007, 02:19:40 am »
It seems obvious to me that the best implementation is the one which works for everyone by default.
I prefer to see a few people saying "my application rendering 1000 sprites is quite slow", than much more saying "I can't make OpenGL work at all" ;)

Something else : I want to keep a consistent default behaviour with sf::Window, as it's now a public base of sf::RenderWindow.
Laurent Gomila - SFML developer

Srejv

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
[SOLVED] SFML 1.2 RC
« Reply #16 on: December 25, 2007, 03:49:51 pm »
Okay, so I've done the following in gentoo linux:

Code: [Select]
svn co https://sfml.svn.sourceforge.net/svnroot/sfml sfml
cd sfml
make
make install


Then, created a new file test.cpp, the code:


Code: [Select]

#include <SFML/Graphics.hpp>

int main()
{
  sf::Window App(sf::VideoMode(800,600,32), "Test");
 
  bool Running = true;
  while(Running)
  {
     App.Display();
  }

  return EXIT_SUCCESS;
}


It compiles just fine but I'm getting "Segmentation fault" when running it.  :(

(I did this just 3 minutes ago)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[SOLVED] SFML 1.2 RC
« Reply #17 on: December 25, 2007, 04:38:02 pm »
What is your graphics card ?

Would you be able to run gdb to know exactly where the crash occurs ?
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[SOLVED] SFML 1.2 RC
« Reply #18 on: December 26, 2007, 03:48:36 am »
One more thing... The /include folder is not up to date (it's updated only when I make a new release), so if you use the SVN sources you should use the /src folder in your include path, instead of /include.
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[SOLVED] SFML 1.2 RC
« Reply #19 on: December 26, 2007, 08:32:43 am »
This folder layout was a bit more convenient for me, but it really caused issues to people using SVN.

I just changed it, so that the public headers in /include will now always be up to date.
Laurent Gomila - SFML developer

Srejv

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
[SOLVED] SFML 1.2 RC
« Reply #20 on: December 27, 2007, 02:40:09 pm »
Quote from: "Laurent"
This folder layout was a bit more convenient for me, but it really caused issues to people using SVN.

I just changed it, so that the public headers in /include will now always be up to date.


It works now, so I guess that fixed it. :) Thank you.

herc

  • Newbie
  • *
  • Posts: 3
    • View Profile
[SOLVED] SFML 1.2 RC
« Reply #21 on: December 28, 2007, 01:43:53 pm »
i am currently on a very slow modem connection, so i ask directly, before looking at svn:

does the new rc include the new image loaders, that are independent from external image libs like libjpeg or libpng ?

dabo

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://www.dabostudios.net
[SOLVED] SFML 1.2 RC
« Reply #22 on: December 29, 2007, 12:59:37 pm »
Any news on the release date?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[SOLVED] SFML 1.2 RC
« Reply #23 on: December 29, 2007, 01:12:13 pm »
Quote
does the new rc include the new image loaders, that are independent from external image libs like libjpeg or libpng ?

Yes it does, no more external libraries are needed to run the graphics package (except FreeType, but it is now linked statically on Windows).
Actually it also uses libjpeg and libpng, but the code is included directly into SFML, so that you don't have any external dependency.

Quote
Any news on the release date?

Should be very soon. The C++ and C parts are ok, and the Ruby and Python bindings should be ready in a few days. The only thing I'm not sure of is the OSX port, as its maintainer seems to have very little time to update it.
Laurent Gomila - SFML developer

Jowee

  • Newbie
  • *
  • Posts: 34
    • View Profile
[SOLVED] SFML 1.2 RC
« Reply #24 on: December 29, 2007, 06:42:56 pm »
Couldn't you do a pre-release of it?

CareBear

  • Newbie
  • *
  • Posts: 13
    • View Profile
[SOLVED] SFML 1.2 RC
« Reply #25 on: December 29, 2007, 09:42:50 pm »
Quote from: "Jowee"
Couldn't you do a pre-release of it?


Install: http://tortoisesvn.net/downloads
And checkout the trunk: https://sfml.svn.sourceforge.net/svnroot/sfml

Jowee

  • Newbie
  • *
  • Posts: 34
    • View Profile
[SOLVED] SFML 1.2 RC
« Reply #26 on: December 30, 2007, 12:19:46 am »
Already compiled everything but I mean some people have A LOT of problems with the compilation!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[SOLVED] SFML 1.2 RC
« Reply #27 on: December 30, 2007, 07:15:50 am »
Compiling SFML is really easy. The only hard part is the extra step needed to build the static libraries with MinGW ; but then if it's too troublesome just build the dynamic libraries, or install VC++ Express ;)
Laurent Gomila - SFML developer

T.T.H.

  • Full Member
  • ***
  • Posts: 112
    • View Profile
[SOLVED] SFML 1.2 RC
« Reply #28 on: January 01, 2008, 05:23:26 pm »
Hi there!

Short feedback for you: I just checked out revision 408 of SFML and compiled it with VC2005 Express under Windows 2000 - basically without any troubles (see below for details).

My own application is still running fine, I just had to rename "sf::Event::Close" to "sf::Event::Closed". In addition it's nice that there is no need for any additional DLLs anymore :)

I'm currently using the following libraries in my own application:

winmm.lib sfml-system.lib sfml-window.lib sfml-graphics.lib
winmm.lib sfml-system-d.lib sfml-window-d.lib sfml-graphics-d.lib

FYI: for the all the multithreading stuff I'm using Boost.

One problem I noticed so far is the following output on std::cerr when my application is closing. But please note that this is only happening in Debug mode, not in Release mode, and I have not investigated it further yet.

Code: [Select]
An internal OpenGL call failed in renderwindow.cpp (234) : GL_INVALID_OPERATION,
 the specified operation is not allowed in the current state
An internal OpenGL call failed in renderwindow.cpp (235) : GL_INVALID_OPERATION,
 the specified operation is not allowed in the current state
An internal OpenGL call failed in image.cpp (517) : GL_INVALID_OPERATION, the sp
ecified operation is not allowed in the current state
   [...same error a couple of times...]
An internal OpenGL call failed in image.cpp (517) : GL_INVALID_OPERATION, the sp
ecified operation is not allowed in the current state



Regarding compilation of SFML: here's the build log, stripped by the "everything is fine" parts:
(note: I neither have Qt no wxWidgets installed)

Code: [Select]

------ Build started: Project: sfml-window, Configuration: Release static Win32 ------
Creating library...
winmm.lib(WINMM.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in opengl32.lib(OPENGL32.dll); second definition ignored
winmm.lib(WINMM.dll) : warning LNK4221: no public symbols found; archive member will be inaccessible
sfml-window - 0 error(s), 2 warning(s)

------ Build started: Project: sfml-window, Configuration: Debug static Win32 ------
Creating library...
winmm.lib(WINMM.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in opengl32.lib(OPENGL32.dll); second definition ignored
winmm.lib(WINMM.dll) : warning LNK4221: no public symbols found; archive member will be inaccessible
sfml-window - 0 error(s), 2 warning(s)

------ Build started: Project: sfml-audio, Configuration: Release static Win32 ------
Creating library...
sndfile.lib(libsndfile-1.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in openal32.lib(OpenAL32.dll); second definition ignored
sndfile.lib(libsndfile-1.dll) : warning LNK4221: no public symbols found; archive member will be inaccessible
sfml-audio - 0 error(s), 2 warning(s)

------ Build started: Project: sfml-audio, Configuration: Debug static Win32 ------
Creating library...
sndfile.lib(libsndfile-1.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already defined in openal32.lib(OpenAL32.dll); second definition ignored
sndfile.lib(libsndfile-1.dll) : warning LNK4221: no public symbols found; archive member will be inaccessible
sfml-audio - 0 error(s), 2 warning(s)

------ Build started: Project: sfml-graphics, Configuration: Release DLL Win32 ------
Linking...
   Creating library E:\myProjects8\SFML\vc2005\..\lib\vc2005\dynamic\sfml-graphics.lib and object E:\myProjects8\SFML\vc2005\..\lib\vc2005\dynamic\sfml-graphics.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
Generating code
Finished generating code
Embedding manifest...
sfml-graphics - 0 error(s), 1 warning(s)

------ Build started: Project: sfml-graphics, Configuration: Debug DLL Win32 ------
Linking...
   Creating library E:\myProjects8\SFML\vc2005\..\lib\vc2005\dynamic\sfml-graphics-d.lib and object E:\myProjects8\SFML\vc2005\..\lib\vc2005\dynamic\sfml-graphics-d.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
Embedding manifest...
sfml-graphics - 0 error(s), 1 warning(s)

------ Build started: Project: postfx, Configuration: Release Win32 ------
Linking...
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
Embedding manifest...
postfx - 0 error(s), 1 warning(s)

------ Build started: Project: postfx, Configuration: Debug Win32 ------
Linking...
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
Embedding manifest...
postfx - 0 error(s), 1 warning(s)

------ Build started: Project: opengl, Configuration: Release Win32 ------
Linking...
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
Embedding manifest...
opengl - 0 error(s), 1 warning(s)

------ Build started: Project: opengl, Configuration: Debug Win32 ------
Linking...
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
Embedding manifest...
opengl - 0 error(s), 1 warning(s)

------ Build started: Project: wxwidgets, Configuration: Release Win32 ------
Compiling...
wxSFMLCanvas.cpp
e:\myprojects8\sfml\samples\wxwidgets\wxSFMLCanvas.hpp(9) : fatal error C1083: Cannot open include file: 'wx/wx.h': No such file or directory
Main.cpp
e:\myprojects8\sfml\samples\wxwidgets\wxSFMLCanvas.hpp(9) : fatal error C1083: Cannot open include file: 'wx/wx.h': No such file or directory
Generating Code...
wxwidgets - 2 error(s), 0 warning(s)

------ Build started: Project: wxwidgets, Configuration: Debug Win32 ------
Compiling...
Main.cpp
e:\myprojects8\sfml\samples\wxwidgets\wxsfmlcanvas.hpp(9) : fatal error C1083: Cannot open include file: 'wx/wx.h': No such file or directory
wxSFMLCanvas.cpp
e:\myprojects8\sfml\samples\wxwidgets\wxsfmlcanvas.hpp(9) : fatal error C1083: Cannot open include file: 'wx/wx.h': No such file or directory
Generating Code...
wxwidgets - 2 error(s), 0 warning(s)

------ Build started: Project: qt, Configuration: Release Win32 ------
Compiling...
QSFMLCanvas.cpp
e:\myprojects8\sfml\samples\qt\QSFMLCanvas.hpp(9) : fatal error C1083: Cannot open include file: 'Qt/qwidget.h': No such file or directory
Main.cpp
e:\myprojects8\sfml\samples\qt\QSFMLCanvas.hpp(9) : fatal error C1083: Cannot open include file: 'Qt/qwidget.h': No such file or directory
Generating Code...
qt - 2 error(s), 0 warning(s)

------ Build started: Project: qt, Configuration: Debug Win32 ------
Compiling...
Main.cpp
e:\myprojects8\sfml\samples\qt\qsfmlcanvas.hpp(9) : fatal error C1083: Cannot open include file: 'Qt/qwidget.h': No such file or directory
QSFMLCanvas.cpp
e:\myprojects8\sfml\samples\qt\qsfmlcanvas.hpp(9) : fatal error C1083: Cannot open include file: 'Qt/qwidget.h': No such file or directory
Generating Code...
qt - 2 error(s), 0 warning(s)

------ Build started: Project: pong, Configuration: Release Win32 ------
Linking...
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
Embedding manifest...
pong - 0 error(s), 1 warning(s)

------ Build started: Project: pong, Configuration: Debug Win32 ------
Linking...
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
Embedding manifest...
pong - 0 error(s), 1 warning(s)

========== Build: 40 succeeded, 4 failed, 0 up-to-date, 0 skipped ==========



The following examples are working fine:
win32
win32-d
window
window-d
sockets
sockets-d
opengl
opengl-d

The postfx and postfx-d examples start and even show some of the effects, but when I switch to other effects the application totally freezes.

I did not try any of the examples requiring OpenAL32.dll.


Hope this helps & happy new year,
T.T.H.

Srejv

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
[SOLVED] SFML 1.2 RC
« Reply #29 on: January 01, 2008, 10:28:07 pm »
I just updated to latest SVN (408 I think)

Code: [Select]
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libsfml-graphics.so: undefined reference to `sf::Image::GetTexCoords(sf::Rect<int> const&) const'
collect2: ld returned 1 exit status


 :(
I'm not even using sf::Image (at this moment)