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 - Xaymar

Pages: [1]
1
General / Re: Failing to compile with SJLJ SFML-2.0 binaries
« on: December 22, 2012, 06:51:15 pm »
Also it is interesting to note that the binaries you linked work, the ones I compiled myself however do not. Care to share your secret of using cmake properly?
What exactly do you mean by binaries? The examples or the SFML libs itself?

The dlls and libs themselves work without a problem.

There's one special trick I've to use for TDM-GCC, because TDM builds things statically by default, thus you have to explicitly tell the compiler when to link dynamically, but I don't know if that has anything to do with it. Other than that I use CMake like you would with any other compiler...

I had problems creating the dll files, so thanks for the information.

Edit: This error in particular:
Code: [Select]
mingw32-make[2]: *** No rule to make target `lib/sfml-system.a', needed by `lib/
sfml-window-2.dll'.  Stop.
mingw32-make[1]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2
mingw32-make: *** [all] Error 2

2
General / Re: Failing to compile with SJLJ SFML-2.0 binaries
« on: December 22, 2012, 06:31:16 pm »
Yeah, the project is compiled and run in debug mode (compiler and linker flag -g -ggdb).

Also it is interesting to note that the binaries you linked work, the ones I compiled myself however do not. Care to share your secret of using cmake properly?

3
General / Re: Failing to compile with SJLJ SFML-2.0 binaries
« on: December 22, 2012, 05:35:49 pm »
I'm fairly sure that the Bundle links provided on their websites link to the SJLJ version, since it is stated there. Libraries are mixed up either, sfml-system for release and sfml-system-d for debug (insert -s for static builds).

The Segmentation Fault seems to happen in the constructor for sf::Clock, but I do not know where, since the Call Stack shows ?? (). Debugging and stepping through seems impossible since GDB complains about "Cannot find bounds of current function" (Which is explained by the line "In ?? () ()" right before it).

It only happens with calls to SFML and it's modules. Calling OpenAL, OpenGL, RakNet and other libraries works fine.

The direct casting from float to uint64_t(unsigned long long on compilers that have it) seems to work without a problem so I see no need to change it right now, since all I want to is get this simple main() to run, however I will keep it in mind.

4
General / Re: Failing to compile with SJLJ SFML-2.0 binaries
« on: December 22, 2012, 04:43:31 pm »
I changed the code to match what you said, but it is still causing a Segmentation Fault. However, now it partially works in my Debug configuration, which led me to check what would cause that call to fail. It seems that "-O"(and it's variances) seem to cause the crash.
Or so I thought, because when I inserted the following code before that line, it crashes again:
std::cout << "Test" << std::endl;

Current Code:
/**
 * @file main.cpp
 * @author Shark Missile Interactive
 */


#include <SFML/System.hpp>

int main(int iArgumentCount, char *cArgumentValue[]) {
        //std::cout << "Test" << std::endl; //Uncomment to crash.
        sf::Clock oClock;

        uint64_t t1 = oClock.getElapsedTime().asSeconds();
        std::cout << t1 << std::endl;

        return EXIT_SUCCESS;
}

Right now I'm completely lost as to what would cause this.

Also is there a specific reason why you use TDM-GCC? The official MinGW build have made an update recently and now ship with GCC 4.7.2. ;)

At the time of setting up the project, TDM-GCC was the most stable with the toolset we used to compile. I would switch to MinGW, but it would require the remaining team to agree, and I also would have to write a new installation 'documentation'.

5
General / [Partially Solved] Failing to compile with SJLJ SFML-2.0 binaries
« on: December 22, 2012, 02:48:24 pm »
Hey,

I've recently tried compiling my project with TDM-GCC and SFML-2.0 RC SJLJ, since TDM-GCC uses SJLJ. However, all I get is a Segmentation Fault, at Address 0000002B and Function ?? (). I've already tried recompiling the binaries with TDM-GCC and CMake and then clean->build, which doesn't change anything.
I managed to make it compile and run once, but I'm not sure how or what magic did that.

What else is there to try? Or rather, what am I doing wrong?

OS: Windows 7 64bit
GCC: TDM-GCC / MinGW SJLJ
GCC Version: 4.7.1
SFML: tag/tip (local repository updates every four hours)
Code:
/**
 * @file main.cpp
 * @author Shark Missile Interactive
 */


#include <SFML/System.hpp>

int main(uint32_t uiArgumentCount, char *cArgumentValue[]) {
        sf::Clock* oClockPtr = new sf::Clock(); //SIGSEGV

        return false;
}
 
Debugger Log:
Building to ensure sources are up-to-date
Selecting target:
Win32 Debug
Adding source dir: F:\Projekte\[C++] No Sanctuary\Game\
Adding source dir: F:\Projekte\[C++] No Sanctuary\Game\
Adding file: F:\Projekte\[C++] No Sanctuary\GameContent\NoSanctuary.x86.Debug.exe
Changing directory to: F:/Projekte/_C___N~1/GAMECO~1
Set variable: PATH=.;F:\Projekte\[C++] No Sanctuary\GameLibrary\SFML-2.0\lib;F:\Compiler\TDM-GCC\bin;F:\Compiler\TDM-GCC;F:\Compiler\TDM64-GCC\bin;F:\Compiler\TDM64-GCC;C:\Windows;C:\Windows\System32;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseGit\bin;F:\Program Files (x86)\CMake 2.8\bin;C:\Program Files\TortoiseHg
Starting debugger: F:\Compiler\TDM64-GCC\bin\gdb.exe -nx -fullname  -quiet  -args F:/Projekte/_C___N~1/GAMECO~1/NOSANC~1.EXE
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.5
Child process PID: 5572
Program received signal SIGSEGV, Segmentation fault.
In ?? () ()
Debugger finished with status 0
Call Stack:
0 0000002B ?? ()  

6
C / Massive Error Wall at compile
« on: August 14, 2010, 04:07:08 pm »
Well, if thats the version i should have, its SJLJ not DW2, because im using it and it tells me that SJLJ Errors, and the Autodownloader version does the same.

7
C / Massive Error Wall at compile
« on: August 14, 2010, 02:34:12 pm »
A link to where i get each of those versions would be nice as the current autodownloader is downloading SJLJ. Im wondering why everything else works with all versions with gcc/mingw though(SPE, Irrlicht, SSDLW...)

8
C / Massive Error Wall at compile
« on: August 13, 2010, 10:58:37 pm »
I downloaded it using that link: http://downloads.sourceforge.net/sfml/SFML-1.6-sdk-windows-mingw.zip and i have no clue about what you're writing D=. I just wanted to run the samples from that package.

9
C / Massive Error Wall at compile
« on: August 13, 2010, 10:48:07 pm »
i tried that now. 50+ Errors now reduced to 44
Code: [Select]
||=== postfx, Release_Win32 ===|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `__gxx_personality_sj0'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `_Unwind_SjLj_Register'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `_Unwind_SjLj_Unregister'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `_Unwind_SjLj_Resume'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `_Unwind_SjLj_Resume'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `__gxx_personality_sj0'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `_Unwind_SjLj_Register'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `_Unwind_SjLj_Unregister'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `_Unwind_SjLj_Resume'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `__gxx_personality_sj0'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `_Unwind_SjLj_Register'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `_Unwind_SjLj_Unregister'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `_Unwind_SjLj_Resume'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `_Unwind_SjLj_Resume'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `__gxx_personality_sj0'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `_Unwind_SjLj_Register'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `_Unwind_SjLj_Unregister'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `_Unwind_SjLj_Resume'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp|| undefined reference to `_Unwind_SjLj_Resume'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp:(.text$_ZN2sf7Unicode4TextD1Ev[sf::Unicode::Text::~Text()]+0x9)||undefined reference to `__gxx_personality_sj0'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp:(.text$_ZN2sf7Unicode4TextD1Ev[sf::Unicode::Text::~Text()]+0x2b)||undefined reference to `_Unwind_SjLj_Register'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp:(.text$_ZN2sf7Unicode4TextD1Ev[sf::Unicode::Text::~Text()]+0x5a)||undefined reference to `_Unwind_SjLj_Unregister'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp:(.text$_ZN2sf7Unicode4TextD1Ev[sf::Unicode::Text::~Text()]+0x90)||undefined reference to `_Unwind_SjLj_Unregister'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp:(.text$_ZN2sf7Unicode4TextD1Ev[sf::Unicode::Text::~Text()]+0xa7)||undefined reference to `_Unwind_SjLj_Resume'|
::~Resource()]+0x9)||undefined reference to `__gxx_personality_sj0'|
::~Resource()]+0x2b)||undefined reference to `_Unwind_SjLj_Register'|
::~Resource()]+0x7d)||undefined reference to `_Unwind_SjLj_Unregister'|
::~Resource()]+0xa1)||undefined reference to `_Unwind_SjLj_Resume'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp:(.text$_ZN2sf6StringD1Ev[sf::String::~String()]+0xc)||undefined reference to `__gxx_personality_sj0'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp:(.text$_ZN2sf6StringD1Ev[sf::String::~String()]+0x2e)||undefined reference to `_Unwind_SjLj_Register'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp:(.text$_ZN2sf6StringD1Ev[sf::String::~String()]+0x136)||undefined reference to `_Unwind_SjLj_Unregister'|
..\..\..\Temp\postfx\Release_Win32\post-fx\PostFX.o:PostFX.cpp:(.text$_ZN2sf6StringD1Ev[sf::String::~String()]+0x25c)||undefined reference to `_Unwind_SjLj_Resume'|
)]+0xc)||undefined reference to `__gxx_personality_sj0'|
)]+0x2e)||undefined reference to `_Unwind_SjLj_Register'|
)]+0xcc)||undefined reference to `_Unwind_SjLj_Unregister'|
)]+0x18a)||undefined reference to `_Unwind_SjLj_Resume'|
)]+0x9)||undefined reference to `__gxx_personality_sj0'|
)]+0x2b)||undefined reference to `_Unwind_SjLj_Register'|
)]+0xfb)||undefined reference to `_Unwind_SjLj_Unregister'|
)]+0x133)||undefined reference to `_Unwind_SjLj_Resume'|
)]+0x12)||undefined reference to `__gxx_personality_sj0'|
)]+0x43)||undefined reference to `_Unwind_SjLj_Register'|
)]+0x133)||undefined reference to `_Unwind_SjLj_Unregister'|
)]+0x2cf)||undefined reference to `_Unwind_SjLj_Resume'|
||=== Build finished: 44 errors, 0 warnings ===|


Mingw Version before: 4.4.1 after 4.4.0

10
C / Massive Error Wall at compile
« on: August 13, 2010, 10:09:33 pm »
Code: [Select]
||=== postfx, Release_Win32 ===|
..\..\..\lib\libsfml-graphics-s.a(String.o):String.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(String.o):String.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(String.o):String.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(String.o):String.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(String.o):String.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(String.o):String.cpp|| more undefined references to `_Unwind_Resume' follow|
..\..\..\lib\libsfml-graphics-s.a(String.o):String.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
..\..\..\lib\libsfml-graphics-s.a(Font.o):Font.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(Font.o):Font.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(Font.o):Font.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(Font.o):Font.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(Font.o):Font.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(Font.o):Font.cpp|| more undefined references to `_Unwind_Resume' follow|
..\..\..\lib\libsfml-graphics-s.a(Font.o):Font.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
..\..\..\lib\libsfml-graphics-s.a(Sprite.o):Sprite.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(Sprite.o):Sprite.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(Sprite.o):Sprite.cpp:(.text$_ZN2sf6SpriteD1Ev[sf::Sprite::~Sprite()]+0x155)||undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(Sprite.o):Sprite.cpp:(.text$_ZN2sf6SpriteD0Ev[sf::Sprite::~Sprite()]+0x15d)||undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(Sprite.o):Sprite.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
..\..\..\lib\libsfml-graphics-s.a(PostFX.o):PostFX.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(PostFX.o):PostFX.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(PostFX.o):PostFX.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(PostFX.o):PostFX.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(PostFX.o):PostFX.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(PostFX.o):PostFX.cpp|| more undefined references to `_Unwind_Resume' follow|
..\..\..\lib\libsfml-graphics-s.a(PostFX.o):PostFX.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
..\..\..\lib\libsfml-graphics-s.a(RenderWindow.o):RenderWindow.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(RenderWindow.o):RenderWindow.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(RenderWindow.o):RenderWindow.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(RenderWindow.o):RenderWindow.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(RenderWindow.o):RenderWindow.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(RenderWindow.o):RenderWindow.cpp|| more undefined references to `_Unwind_Resume' follow|
..\..\..\lib\libsfml-graphics-s.a(RenderWindow.o):RenderWindow.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
..\..\..\lib\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(Image.o):Image.cpp|| more undefined references to `_Unwind_Resume' follow|
..\..\..\lib\libsfml-graphics-s.a(Image.o):Image.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
..\..\..\lib\libsfml-graphics-s.a(Drawable.o):Drawable.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
..\..\..\lib\libsfml-graphics-s.a(RenderTarget.o):RenderTarget.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
..\..\..\lib\libsfml-graphics-s.a(FontLoader.o):FontLoader.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(FontLoader.o):FontLoader.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(FontLoader.o):FontLoader.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(FontLoader.o):FontLoader.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(FontLoader.o):FontLoader.cpp|| undefined reference to `_Unwind_Resume'|
..\..\..\lib\libsfml-graphics-s.a(FontLoader.o):FontLoader.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
..\..\..\lib\libsfml-graphics-s.a(GraphicsContext.o):GraphicsContext.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
..\..\..\lib\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|


I used that Tutorial: http://www.sfml-dev.org/tutorials/1.6/start-cb.php , for setting CodeBlocks to use SFML and moved the paths to fit the new ones. I expected it to run, not to give me an error wall :( What am i doing wrong?

Pages: [1]