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

Pages: [1] 2 3
1
General / Re: Is it normal GPU usage?
« on: August 25, 2016, 09:59:29 pm »
Hi.
How did you find out the GPU usage %? Did you use a tool like CPU-Z?
In my i7 @2.2Gz laptop a main loop is about 5-13%(one core).
One suggestion is after loop processing to write:

sf::sleep(sf::milliseconds(1));

This enables the CPU "rest" a bit between the main loop cycles and return control to the OS.
In my past games/apps i was around 20-30% and after i used this it dropped to the aforementioned %.


Edit: One more thing i discovered some time ago is that i had downloaded "modded" GPU drivers(my gfx card was itegrated graphics) and although CPU was around 20% i was rendering like 2-3fps. When i removed the modded and installed the official ones it worked normal.

2
Can you tell me how you got the PATH that is being used while running withing QtCreator?
I don't really know, it's generated on it's own when selecting:
Build Enviroment: You can select the System enviroment, or clear it and use a PATH and QTDIR only
Run Enviroment: Use Build Enviroment, System Enviroment, Clean Enviroment. On this part, it has selected
Build Enviroment whereas the System Enviroment selection contains my orignal OS PATH. Could i try this too?


Which makes me think that while compiling you're mixing libraries.
Can you tell me how you got the PATH that is being used while running withing QtCreator? That way I can check whether I have similar entries. And if possible you could try to do some cleaning in these paths, and keep only a path similar to what is stated on the Qt forum discussion, and rebuild the executable.
So this means the shipped version you provide is compiled with a differenct version of the runtime than the one
i have? If that's the case i could try to build sfeMovie from source?

By the way I had to copy OpenAL and sndfile dlls next to the executable to get it to show the error about libstdc++-6.dll. I suppose you have both of these libraries in your PATH.
Yes, they are in system32

3
I didn't forget you, was just busy moving house the past week :)

No worries mate

4
SFML projects / Re: Let There Be Light 2
« on: March 07, 2015, 09:46:44 pm »
What flags and what executable i must use? With MinGW i just used mingw32-make on the bin folder of the project and i got it compiled. I searched a bit and found out i must provide the *.cpp files manualy?
Don't get me wrong, i don't want anybody to build it for me, i just want to learn how to do it.
Thanks :)


Edit: I got some progress but still.. Now i get undefined references to __gxx_personality and some other which means i use wrong exception handling DW/SJLJ or smth?

5
SFML projects / Re: Let There Be Light 2
« on: March 07, 2015, 08:36:23 pm »
Hello, i try to compile your library with CMAKE but i run into std::make_unique error not defined. I did a bit
of research and it turned out that this is an upcoming c++14 function. Instead of injecting a template snippet in every *.h file is there an other way?

My OS is Win7 x64,
I tried with GCC 4.8.0 and 4.8.1.
Should i bother to try with 4.9.0?

Thanks :)

6
My OS PATH is:
(click to show/hide)


But QtCreator has it's own Run Enviroment when executing applications, i have selected Build Enviroment for this project and that PATH is a bit different than my OS PATH:

(click to show/hide)

7
Here you go: http://expirebox.com/download/be53ad3e0afca2551a4c2d3187a9c97f.html

I guess something must be wrong with my configuration.
Now my debug executable is not crashing but i get no video or sound but no errors,  loaded h264 video stream and acc stream, nothing else. Release still crashes with stack_hash both inside QtCreator and executable.
I included only sfml and sfeMovie libs and dlls, do you need something more?

Thanks!

8
No worries, this is the file: http://expirebox.com/download/7ab1c66cebc4827ce58276b499958c21.html
:D

It's cropped and plays both video and audio on vlc.
On debug when run from inside QtCreator it plays only the video with no sound and the above debug output.
Release from inside QtCreator and by running the .exe of both release & debug i get the runtime error.

9
Thanks for your help :)
i tried with another .wmv file but i got the same error.
Next i tried with an .mp4 and it works! but i don't have audio although i get this(Loaded acc audio stream):


I don't think it's the media's fault since it can play on vlc and windows media player fine.
I can still send you the videos to give them a try.

10
Heya Ceylo, got some results..

I tried with the full decoders pack.

When i run Release from QtCreator i get crash "StackHash_0a9e" but only when i call update or draw on the video
When i run Release from the executable i get crash on "libstdc++-6.dll" and this:


On Debug inside QtCreator it runs ok(no sound though, have to figure out how)
On Debug from executable i get the same crash like release on the end("libstdc++-6.dll"), rest debug is ok as i see:



My SFML is fresh build from source btw.
I read some things about "Runtime Errors", but my libstdc++.dll is the shipped with Qt,
could there be an issue with it?

Got excited when i saw the video playing on my game's window and sad at the same time
for not managing to make it work properly :/

11
Hey,
i have some issues with debug, am i missing something?
I get a hell lot of undefined references about sfml but why?

# sfeMovie libs
LIBS += -LC:/Qt/Qt5.2.1/Tools/mingw48_32/lib -lsfeMovie-d.dll
INCLUDEPATH += C:/Qt/Qt5.2.1/Tools/mingw48_32/include
DEPENDPATH += C:/Qt/Qt5.2.1/Tools/mingw48_32/include

LIBS += -LC:/Qt/Qt5.2.1/Tools/mingw48_32/lib/ -lsfml-graphics-d -lsfml-window-d -lsfml-system-d
INCLUDEPATH += C:/Qt/Qt5.2.1/Tools/mingw48_32/include
DEPENDPATH += C:/Qt/Qt5.2.1/Tools/mingw48_32/

# sfeMovie requires C++11
QMAKE_CXXFLAGS += -std=c++11


This is the g++ compile output, you can see in the last line the libs linked and i see them all in the correct order as well...
g++ -c -pipe -fno-keep-inline-dllexport -std=c++11 -g -std=c++0x -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_GUI_LIB -DQT_CORE_LIB -I. -I"..\..\..\..\Qt\Qt5.2.1\Tools\mingw48_32\include" -I"..\..\..\..\Qt\Qt5.2.1\Tools\mingw48_32\include" -I"..\..\..\..\Qt\Qt5.2.1\5.2.1\mingw48_32\include" -I"..\..\..\..\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtGui" -I"..\..\..\..\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtCore" -I"debug" -I"..\..\..\..\Qt\Qt5.2.1\5.2.1\mingw48_32\mkspecs\win32-g++" -o debug\entity.o entity.cpp
g++ -c -pipe -fno-keep-inline-dllexport -std=c++11 -g -std=c++0x -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_GUI_LIB -DQT_CORE_LIB -I. -I"..\..\..\..\Qt\Qt5.2.1\Tools\mingw48_32\include" -I"..\..\..\..\Qt\Qt5.2.1\Tools\mingw48_32\include" -I"..\..\..\..\Qt\Qt5.2.1\5.2.1\mingw48_32\include" -I"..\..\..\..\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtGui" -I"..\..\..\..\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtCore" -I"debug" -I"..\..\..\..\Qt\Qt5.2.1\5.2.1\mingw48_32\mkspecs\win32-g++" -o debug\player.o player.cpp
g++ -c -pipe -fno-keep-inline-dllexport -std=c++11 -g -std=c++0x -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_GUI_LIB -DQT_CORE_LIB -I. -I"..\..\..\..\Qt\Qt5.2.1\Tools\mingw48_32\include" -I"..\..\..\..\Qt\Qt5.2.1\Tools\mingw48_32\include" -I"..\..\..\..\Qt\Qt5.2.1\5.2.1\mingw48_32\include" -I"..\..\..\..\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtGui" -I"..\..\..\..\Qt\Qt5.2.1\5.2.1\mingw48_32\include\QtCore" -I"debug" -I"..\..\..\..\Qt\Qt5.2.1\5.2.1\mingw48_32\mkspecs\win32-g++" -o debug\weapon_bullet.o weapon_bullet.cpp
g++ -Wl,-subsystem,console -mthreads -o debug\SpaceGame.exe debug/main.o debug/game_engine.o debug/game_state.o debug/state_mainmenu.o debug/state_stage_normal.o debug/entity.o debug/player.o debug/weapon_bullet.o  -lglu32 -lopengl32 -lgdi32 -luser32 -LC:/Qt/Qt5.2.1/Tools/mingw48_32/lib -lsfeMovie-d.dll -lsfml-audio-d -lsfml-graphics-d -lsfml-main-d -lsfml-network-d -lsfml-window-d -lsfml-system-d -LC:\Qt\Qt5.2.1\5.2.1\mingw48_32\lib -lQt5Guid -lQt5Cored

12
Hey, i got good news and bad news..

I managed to get it work(almost), i was doing everything correctly during link but the dlls where not on the project root folder so it was runtime error all the time.. quite stupid i guess. Well since i am working full on Qt it's own dlls are loaded automatically from the bin folder when executed from QtCreator i thought it's the same with everything else as well.. oh well i overcame that.
Now i decided to play with the full decoder pack on an .mp4 video, so i load it, it returns true as seen on the ss but i get this error:




I get this on the draw step of the video, setVolume(), fit() and update() are all executed correctly.
I tried with .mp4 and .avi. Is it a codec issue?
I feel i'm so close.. duh..

13
Hmm i see..
I will try this .pro configuration and post back the result.

Thanks for your time Ceylo :D

14
Thank you for your reply.

So you mean i must find all the libs you refer on "Getting started" on this form?
Regarding the error on QtCreator i have already tried several solutions and still can't run it.
It happens when i add this: movie = new sfe::Movie(); on my code, when i remove it it works just fine :D

15
uhh i'm happy that this library is going so well but i still can't use it :(
I really need help; I just downloaded the MinGW release bin package(free decoders).

This is my .pro file(i work on Qt Creator):




The error i get all the time is: "Cannot obtain a handle to the inferior: The parameter is incorrect."
A cmd window(the output terminal) and no render window. When i don't use a cmd window for the output it says "The program has unexpectedly finished."
I also tried debugging but i get failed to start and a memory address with nothing else on output, function or variable..
Am i not linking to the correct libraries?

Pages: [1] 2 3