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 - Fellow Traveler

Pages: [1]
1
General / Qt + SFML
« on: January 06, 2010, 11:35:38 am »
Quote
If I remember right Qt Creator uses the old GCC Compiler from MinGW on Windows. It is the version 3.4.5 or something. And I once read someting about problems between SJLJ and DW2 exception handling. You should have a look at the mingw.org Mailing List.


no, its one of latest release of Qt, and in manifest of Mingw said, what it is gcc 4.40....hm

Quote
Weird. What if you use static libraries?

I think i missed something. I used static libraries. I changed it to "-d.a", now project builds normal. But then i starts it, it crashes:

Quote
Lauching F:\my\Programming\qt\SFML\debug\SFML.exe...
F:\my\Programming\qt\SFML\debug\SFML.exe ends with code -1073741515

2
General / Qt + SFML
« on: January 05, 2010, 08:30:21 pm »
sorry, actually i use QtCreator i didn't worry about paramethers.

Quote
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I'c:/Qt/2009.05/qt/include/QtCore' -I'c:/Qt/2009.05/qt/include/QtGui' -I'c:/Qt/2009.05/qt/include' -I'c:/Qt/2009.05/qt/include/ActiveQt' -I'debug' -I'c:/Qt/2009.05/qt/mkspecs/win32-g++' -o debug/QSFMLCanvas.o QSFMLCanvas.cpp
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I'c:/Qt/2009.05/qt/include/QtCore' -I'c:/Qt/2009.05/qt/include/QtGui' -I'c:/Qt/2009.05/qt/include' -I'c:/Qt/2009.05/qt/include/ActiveQt' -I'debug' -I'c:/Qt/2009.05/qt/mkspecs/win32-g++' -o debug/graphics-qt.o graphics-qt.cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug/SFML.exe debug/QSFMLCanvas.o debug/graphics-qt.o -L'c:/Qt/2009.05/qt/lib' -lmingw32 -lqtmaind H:\libs\SFML-1.5\lib\mingw\libsfml-graphics-s-d.a H:\libs\SFML-1.5\lib\mingw\libsfml-main-d.a H:\libs\SFML-1.5\lib\mingw\libsfml-system-s-d.a H:\libs\SFML-1.5\lib\mingw\libsfml-window-s-d.a -lQtGuid4 -lQtCored4


after this i have 2 object files:
QSFMLCanvas.o
graphics-qt.o

there are really interesting errors like this:
Quote
H:\libs\SFML-1.5\lib\mingw\libsfml-graphics-s-d.a(RenderWindow.o): In function `ZN2sf12RenderWindowC2Ev':
D:/Programmation/Cpp/SFML/tags/1.5/src/SFML/Graphics/RenderWindow.cpp:41: undefined reference to `__gxx_personality_sj0'
D:/Programmation/Cpp/SFML/tags/1.5/src/SFML/Graphics/RenderWindow.cpp:41: undefined reference to `_Unwind_SjLj_Register'
D:/Programmation/Cpp/SFML/tags/1.5/src/SFML/Graphics/RenderWindow.cpp:41: undefined reference to `_Unwind_SjLj_Resume'
D:/Programmation/Cpp/SFML/tags/1.5/src/SFML/Graphics/RenderWindow.cpp:41: undefined reference to `_Unwind_SjLj_Unregister'
H:\libs\SFML-1.5\lib\mingw\libsfml-graphics-s-d.a(RenderWindow.o): In function `ZN2sf12RenderWindowC1Ev':
D:/Programmation/Cpp/SFML/tags/1.5/src/SFML/Graphics/RenderWindow.cpp:41: undefined reference to `__gxx_personality_sj0'
D:/Programmation/Cpp/SFML/tags/1.5/src/SFML/Graphics/RenderWindow.cpp:41: undefined reference to `_Unwind_SjLj_Register'
D:/Programmation/Cpp/SFML/tags/1.5/src/SFML/Graphics/RenderWindow.cpp:41: undefined reference to `_Unwind_SjLj_Resume'
D:/Programmation/Cpp/SFML/tags/1.5/src/SFML/Graphics/RenderWindow.cpp:41: undefined reference to `_Unwind_SjLj_Unregister'


I have not disk D and this folders at all.

3
General / Qt + SFML
« on: January 04, 2010, 08:03:37 pm »
i use g++. Here is the keys:
Quote
C:/Qt/2009.05/mingw/bin/mingw32-make.exe -w
mingw32-make: Entering directory `F:/my/Programming/qt/SFML'
C:/Qt/2009.05/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `F:/my/Programming/qt/SFML'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug/SFML.exe debug/QSFMLCanvas.o debug/graphics-qt.o -L'c:/Qt/2009.05/qt/lib' -lmingw32 -lqtmaind H:\libs\SFML-1.5\lib\mingw\libsfml-graphics-s-d.a H:\libs\SFML-1.5\lib\mingw\libsfml-main-d.a H:\libs\SFML-1.5\lib\mingw\libsfml-system-s-d.a H:\libs\SFML-1.5\lib\mingw\libsfml-window-s-d.a -lQtGuid4 -lQtCored4
mingw32-make[1]: Leaving directory `F:/my/Programming/qt/SFML'


I changed library to debug, i got warning like this:
Quote
F:/my/Programming/qt/SFML/QSFMLCanvas.cpp:17: undefined reference to `__gxx_personality_sj0'


and errors like this:
Quote
C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_tree.h:(.text$_ZN8MyCanvas6OnInitEv[MyCanvas::OnInit:-1: error: undefined reference to `__gxx_personality_sj0'

4
General / Qt + SFML
« on: January 04, 2010, 04:51:44 pm »
like this:
Quote
F:/my/Programming/qt/SFML/QSFMLCanvas.cpp:17: undefined reference to `__gxx_personality_sj0'
F:/my/Programming/qt/SFML/QSFMLCanvas.cpp:17: undefined reference to `_Unwind_SjLj_Register'
F:/my/Programming/qt/SFML/QSFMLCanvas.cpp:34: undefined reference to `_Unwind_SjLj_Resume'
F:/my/Programming/qt/SFML/QSFMLCanvas.cpp:34: undefined reference to `_Unwind_SjLj_Unregister'
C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_tree.h:(.text$_ZN8MyCanvas6OnInitEv[MyCanvas::OnInit:-1: error: undefined reference to `__gxx_personality_sj0'
C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_tree.h:(.text$_ZN8MyCanvas6OnInitEv[MyCanvas::OnInit:-1: error: undefined reference to `_Unwind_SjLj_Register'
C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_tree.h:(.text$_ZN8MyCanvasD1Ev[MyCanvas::~MyCanvas:-1: error: undefined reference to `_Unwind_SjLj_Resume'

5
General / Qt + SFML
« on: January 04, 2010, 03:41:25 pm »
I have Windows + Qt. I downloaded Windows - MinGW version

I tried this example:
http://www.sfml-dev.org/tutorials/1.5/graphics-qt.php

And still don't get, how to make work SFML on Qt.
I copied SFML headers files in Include directory of Qt. And here my .pro file:

Quote

HEADERS += QSFMLCanvas.hpp
SOURCES += QSFMLCanvas.cpp \
    graphics-qt.cpp
LIBS += H:\libs\SFML-1.5\lib\mingw\libsfml-graphics.a \
H:\libs\SFML-1.5\lib\mingw\libsfml-main.a \
H:\libs\SFML-1.5\lib\mingw\libsfml-system.a \
H:\libs\SFML-1.5\lib\mingw\libsfml-window.a


When I trying to make project i get link errors.
What i am doing wrong?

Pages: [1]