Emuforums.com

Go Back   Emuforums.com > Handheld Emulation > VBA-M Discussion
About Us Register FAQ Members List Calendar Mark Forums Read

Login to remove all ads!
Reply
 
LinkBack Thread Tools Display Modes
Old February 21st, 2008   #61 (permalink)
Menthol Flavored
 
TheCloudOfSmoke's Avatar
 
Join Date: Mar 2005
Location: In your butt. If I'm not there, I'm in Maryland, USA.
Posts: 2,890
Yes, the post that I directly replied to when I stated my problem.
TheCloudOfSmoke is online now   Reply With Quote
Old February 22nd, 2008   #62 (permalink)
MMP-2 Dude
 
Clements's Avatar
 
Join Date: Jun 2003
Location: UK
Posts: 1,633
I get the same message, probably due to not having the MSVC 2008 runtime package installed on my system.
Clements is offline   Reply With Quote
Old February 22nd, 2008   #63 (permalink)
Nobody Important...
 
Join Date: Feb 2007
Location: Nowhere important...
Posts: 1,503
I'm uploading the complete MSVC2008 runtimes to the server. Installing that should hopefully nullify the error.

EDIT: Uploaded. They are in the same location as the Qt4 DLLs
mudlord is offline   Reply With Quote
Old February 22nd, 2008   #64 (permalink)
Emu author
 
Spacy's Avatar
 
Join Date: Mar 2005
Location: Germany
Posts: 368
Ah, that should be the problem. I just launched Dependency Walker again, and I made the mistake to just include MSVCR90.DLL. I should have looked deeper into the dependency tree and I would have found out, that the Qt DLLs themselves need the CPP-Runtimes as well. (Lol, I was even wondering why I didn't need the CPP-runtimes xD).

I will upload the full corrected package ASAP.


Edit:
OK, the corrected archive is up: http://vba-m.ngemu.com/vbam/vbaother...vba_qt_dlls.7z

There's also a msvcm90.dll in my redist folder, but it's really not needed, so I didn't include it.


Edit2:
Current build: http://vba-m.ngemu.com/vbam/vbaother.../vba_qt_385.7z
Now saves settings to INI file (currently toolbar/sidebar placement and translation).
__________________
Windows XP Home SP3
Intel C2D E8200
4GB DDR2-800
GeForce 8800 GT
ASUS Xonar DX
KNC ONE TV-Station DVB-S
Technisat SkyStar HD (DVB-S2)
2x Samsung HD501LJ (RAID-0)

Last edited by Spacy; February 22nd, 2008 at 18:48.
Spacy is offline   Reply With Quote
Old February 22nd, 2008   #65 (permalink)
MNK
Registered User
 
MNK's Avatar
 
Join Date: Jan 2002
Location: Poland
Posts: 48
Of the boring things:
1. all of the qt-related source files in svn lack correct eol style (namely native)
2. why does this use precompiled headers ? in my experience they were almost always a speed loss instead of gain during build ?
MNK is offline   Reply With Quote
Old February 22nd, 2008   #66 (permalink)
MMP-2 Dude
 
Clements's Avatar
 
Join Date: Jun 2003
Location: UK
Posts: 1,633
Installing the MSVC2008 runtimes (vcredist_x86.exe) works fine.

However, the latest vba_qt_dlls package [Post #64] does not without MSVC2008 runtimes installed. There must be some other dependency. I tried copying the various DLLs from the redist from the WinSxS folder, with no luck.
Attached Images
File Type: jpg Error.jpg (91.4 KB, 24 views)
Clements is offline   Reply With Quote
Old February 23rd, 2008   #67 (permalink)
Penadinho
 
Omegainf's Avatar
 
Join Date: Jun 2001
Location: Rio de Janeiro
Posts: 2,556
Still no love for linux?
__________________

Omegainf is online now   Reply With Quote
Old February 23rd, 2008   #68 (permalink)
Emu author
 
Spacy's Avatar
 
Join Date: Mar 2005
Location: Germany
Posts: 368
Quote:
Originally Posted by Omegainf View Post
Still no love for linux?

We love Linux - and Mac of course. We just don't use it (mudlord&me).
If you want to try this out, use svn to get the code and compile it using the
short how-to on https://vbam.bountysource.com/wiki
If you're on Linux you should be used to that for special/new software that's not in the repos.


@Clements:
I tried it out for myself and you're right. If the two runtimes sit in the WinSxS folder, everything's fine. But if I rename one of them so WIndows won't find it and copy it with the correct name to the VBA.exe folder, it doesn't find it.
Welcome to Windows DLL hell

I'll try to figure something out, because I want VBA to be portable.

Edit:
OK, I read up on that issue and I came to the conclusion, that the embedded manifest file in the exe (done by the dynamic configuration of Qt) tells Windows to look only in the WinSxS folder instead of the local folder. Writing application configuration manifest files (xml) is pain in the ass. Solution: Compile with mingw or compile static. I think I'll create release builds with mingw from now on and only use MSVC for myself.
__________________
Windows XP Home SP3
Intel C2D E8200
4GB DDR2-800
GeForce 8800 GT
ASUS Xonar DX
KNC ONE TV-Station DVB-S
Technisat SkyStar HD (DVB-S2)
2x Samsung HD501LJ (RAID-0)

Last edited by Spacy; February 23rd, 2008 at 12:06.
Spacy is offline   Reply With Quote
Old February 23rd, 2008   #69 (permalink)
DS Cheat Code Hacker
 
Dualscreenman's Avatar
 
Join Date: Jun 2007
Location: New Hampshire, USA
Posts: 677
Is there anything special I have to do if I want to redist Linux executables? I use Linux regularly.
Dualscreenman is offline   Reply With Quote
Old February 23rd, 2008   #70 (permalink)
Emu author
 
Spacy's Avatar
 
Join Date: Mar 2005
Location: Germany
Posts: 368
I updated to Qt 4.3.4 and compiled with MinGW.

The DLL package has been updated and contains the new Qt DLLs (official build 4.3.4) and the official mingw runtime DLL (15 KB )

The other link contains the vba-qt-build using mingw.

This time it should really work ^^"


http://vba-m.ngemu.com/vbam/vbaother...vba_qt_dlls.7z
http://vba-m.ngemu.com/vbam/vbaother...a_qt_svn385.7z
__________________
Windows XP Home SP3
Intel C2D E8200
4GB DDR2-800
GeForce 8800 GT
ASUS Xonar DX
KNC ONE TV-Station DVB-S
Technisat SkyStar HD (DVB-S2)
2x Samsung HD501LJ (RAID-0)
Spacy is offline   Reply With Quote
Old February 23rd, 2008   #71 (permalink)
MMP-2 Dude
 
Clements's Avatar
 
Join Date: Jun 2003
Location: UK
Posts: 1,633
I can confirm that the newest build definitely works now without the MSVC2008 runtime package installed.
Clements is offline   Reply With Quote
Old February 23rd, 2008   #72 (permalink)
Emu author
 
Spacy's Avatar
 
Join Date: Mar 2005
Location: Germany
Posts: 368
Nice.
I set my build system up, so that I have the original mingw-compatible .a Qt-libs for release and msvc-compatible .lib libs for debug. I wouldn't have thought this would actually work without conflicts. I wrote a small cmd-line script to compile the release builds with a double-click on a desktop-icon, while I develop&debug with Visual C++ 2008 Express.

I can really recommend this combination for Windows Qt developers ^^


I just added ROM file selection, basic validation & loading code to the Qt build.



EDIT
I made changes to the rendering system.

It will now use either OpenGL or QPainter, depending on what is available.

The smart thing is that I can do everything with QPainter and Qt will translate it to OpenGL calls.


One issue in Qt is the timing. Even though I create a 60Hz timer, I only achieve about 40fps. But with idle time processing (timer interval 0) I get over 1000fps, so it should be possible to build something on top of that.


We'll also have to look into the Threading possibilities of our emulator.


Here's the binary for today: http://vba-m.ngemu.com/vbam/vbaother...a_qt_svn389.7z
__________________
Windows XP Home SP3
Intel C2D E8200
4GB DDR2-800
GeForce 8800 GT
ASUS Xonar DX
KNC ONE TV-Station DVB-S
Technisat SkyStar HD (DVB-S2)
2x Samsung HD501LJ (RAID-0)

Last edited by Spacy; February 24th, 2008 at 17:18. Reason: Automerged Doublepost
Spacy is offline   Reply With Quote
Old February 25th, 2008   #73 (permalink)
Nobody Important...
 
Join Date: Feb 2007
Location: Nowhere important...
Posts: 1,503
Quote:
It will now use either OpenGL or QPainter, depending on what is available.
The smart thing is that I can do everything with QPainter and Qt will translate it to OpenGL calls.
Neato!


Quote:
One issue in Qt is the timing. Even though I create a 60Hz timer, I only achieve about 40fps. But with idle time processing (timer interval 0) I get over 1000fps, so it should be possible to build something on top of that.

We'll also have to look into the Threading possibilities of our emulator.
Okay, have you looked into Boost::Threads by any chance? Qt also offers threading support too, which could be useful for dual core optimizations.
mudlord is offline   Reply With Quote
Old February 25th, 2008   #74 (permalink)
Emu author
 
Spacy's Avatar
 
Join Date: Mar 2005
Location: Germany
Posts: 368
I know Qt offers threads, but the question is, what exactly could be run as a seperate thread, as the data flow in VBA doesn't offer many possibilities.

In the MFC build it's like the following:

Emulate frame -> output frame (video/audio) -> Emulate frame...
The steps depend on each other. One way of optimizing would be to start emulating while the outputting the last frame.

Pixel filtering could also be thread-optimized by splitting an image into several areas and do filtering on them independently. Of course there has to be some overhead since you would see the borders in the image.
__________________
Windows XP Home SP3
Intel C2D E8200
4GB DDR2-800
GeForce 8800 GT
ASUS Xonar DX
KNC ONE TV-Station DVB-S
Technisat SkyStar HD (DVB-S2)
2x Samsung HD501LJ (RAID-0)
Spacy is offline   Reply With Quote
Old February 25th, 2008   #75 (permalink)
VBA-M Team
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 5,155
i think it would be useless to bother trying tbh.

if you want multithreading, try adding split screen linking support :P
Squall-Leonhart is online now   Reply With Quote
Old February 25th, 2008   #76 (permalink)
Nobody Important...
 
Join Date: Feb 2007
Location: Nowhere important...
Posts: 1,503
Quote:
I know Qt offers threads, but the question is, what exactly could be run as a seperate thread, as the data flow in VBA doesn't offer many possibilities.

In the MFC build it's like the following:

Emulate frame -> output frame (video/audio) -> Emulate frame...
The steps depend on each other. One way of optimizing would be to start emulating while the outputting the last frame.

Pixel filtering could also be thread-optimized by splitting an image into several areas and do filtering on them independently. Of course there has to be some overhead since you would see the borders in the image.
I think its time we have a IRC meeting on this issue as it will ultimately effect all platforms we target. Plus, Nach might have some valuable input into this issue.
mudlord is offline   Reply With Quote
Old February 27th, 2008   #77 (permalink)
DS Cheat Code Hacker
 
Dualscreenman's Avatar
 
Join Date: Jun 2007
Location: New Hampshire, USA
Posts: 677
When you do have a meeting, I'd like to sit in on it. I think it'd be good to announce it so that those who want to watch/participate can do so.
Dualscreenman is offline   Reply With Quote
Old February 27th, 2008   #78 (permalink)
Nobody Important...
 
Join Date: Feb 2007
Location: Nowhere important...
Posts: 1,503
In that case, get on IRC. Now. We are also discussing linking as well, plus loads other related topics to the Qt4 build.
mudlord is offline   Reply With Quote
Old February 28th, 2008   #79 (permalink)
MNK
Registered User
 
MNK's Avatar
 
Join Date: Jan 2002
Location: Poland
Posts: 48
It's not Qt related, but as this is most active thread lately, I think it's time to...
be annoying again.
In latest svn (rev. 413) following thing should be fixed:
in agb/GBA.cpp: GBAGFX.h!=GBAGfx.h
in agb/GBAGfx.h: there's a `#include "gbaGfx.h"` line
in sdl/SDL.cpp: few of `#include` headers need to be updated to new locations

I think there's at least one more thing, but as I already fixed it and forgot, it was probably just as trivial. After those fixes, svn works correctly.
MNK is offline   Reply With Quote
Old February 28th, 2008   #80 (permalink)
VBA-M Team
 
Squall-Leonhart's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 5,155
im not seeing GBAGfx.!
it says #include "GBAGfx.h"
Squall-Leonhart is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 23:08.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.0 Release Candidate 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5