Welcome
Welcome to a320

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

Problems with S2D SDK!!!

Any and all A320 homebrew topics

Moderator: Moderators

Problems with S2D SDK!!!

Postby cdesign30 on Tue May 05, 2009 11:32 pm

Hi,

I had some problems compiling the sources.

1- I install sucefullly the S2DSDK but, when I compile the examples and other sources, the screen is doubled, and with the half size. I test with VC++ 6.0 and VC 2008 Express Edition in two differents machines. How to fix it?
Image

2- The code does not compile. I run "buid.bat", transfered the "target.app" to MP4 and not working.

Can someone help me?

Thanks in advance, Doug
cdesign30
 
Posts: 23
Joined: Sun Apr 26, 2009 8:04 pm

Re: Problems with S2D SDK!!!

Postby cdesign30 on Wed May 06, 2009 2:54 pm

Ok, I solve item 2. I can compile for MP4 and generating "target.app" sucefully, just placing a CD-ROM in drive "D:", following some tips in Soft3D.org . :D

But the problem with win32 compilation still. The screen continues like above. :cry:

Any help is welcome. Thanks.

Cheers, Doug
cdesign30
 
Posts: 23
Joined: Sun Apr 26, 2009 8:04 pm

Re: Problems with S2D SDK!!!

Postby Wiredbomb0 on Thu May 07, 2009 1:51 am

I have no idea if this will help, as I am yet to set up my sdk, but is there any varibles that define the height/width of the screen? If there is, you should check that those are the correct values.
Wiredbomb0
 
Posts: 166
Joined: Thu Apr 23, 2009 10:08 am
Location: Victoria, Australia

Re: Problems with S2D SDK!!!

Postby cdesign30 on Thu May 07, 2009 2:07 am

Ohhh.... I found the solution! When I change the monitor color quality to 32 bits, all work fine!!!

Image

Thanks for help. All works fine now.

Cheers, doug
cdesign30
 
Posts: 23
Joined: Sun Apr 26, 2009 8:04 pm

Re: Problems with S2D SDK!!!

Postby Wiredbomb0 on Thu May 07, 2009 8:28 am

Wow, what a surprise. I would have never thought about that!

You can tell the difference between the colours, have a look. The green section on the 32bit quality, is purple on the other shot. Very nice. I'm glad that you got your SDK up and running. I am yet to get mine running.
Wiredbomb0
 
Posts: 166
Joined: Thu Apr 23, 2009 10:08 am
Location: Victoria, Australia

Re: Problems with S2D SDK!!!

Postby cdesign30 on Thu May 07, 2009 2:56 pm

What problem are you have with S2D SDK?
cdesign30
 
Posts: 23
Joined: Sun Apr 26, 2009 8:04 pm

Re: Problems with S2D SDK!!!

Postby Wiredbomb0 on Fri May 08, 2009 7:53 am

This is shocking. I've tried so many different ways. Basically, this is what I've done:

1) I've extracted the correct files into s2dsdk and cygwin.
2) I've downloaded and installed Microsoft Visual C++ 2008 Express Edition
3) I extract 200918035573499.rar to C:\s2dsdk\
4) I open the main.sln in the C:\s2dsdk\win32 VS2005\
5) I convert to a later version of the C++
6) Added the enviroment varibles
7) I compile and it gives me:

Compiling resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation. All rights reserved.
.\main.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.

Build log was saved at "file://c:\s2dsdk\win32 VS2005\Debug\BuildLog.htm"
main - 1 error(s), 0 warning(s)

I don't know what's going on. Before I compiled it this time, it gave me 25 warnings, and this time none. Anyone know what's going on? It's the best result so far!
Wiredbomb0
 
Posts: 166
Joined: Thu Apr 23, 2009 10:08 am
Location: Victoria, Australia

Re: Problems with S2D SDK!!!

Postby joyrider on Fri May 08, 2009 2:50 pm

try deleting and removing main.rc from the project (I believe i had gotten the same error at some point)

also make sure the environment variables are set. (either by using a batch file that sets them and starts the ide and the loading projects from within the ide so not double clicking the .sln file) or add them as system wide parameters.
joyrider
 
Posts: 77
Joined: Sun May 03, 2009 4:27 pm

Re: Problems with S2D SDK!!!

Postby SiENcE on Fri May 08, 2009 5:18 pm

Instead of using 'afxres.h' you can edit the "main.rc" file and use "windows.h".

just exhange
#include "afxres.h"

with

#include "windows.h"

Of couse you need Visual Studio 2008 Express (or VS 2005 Express + Windows SDK 2008).
SiENcE
 
Posts: 67
Joined: Wed Apr 29, 2009 9:19 am
Location: Berlin/Germany

Re: Problems with S2D SDK!!!

Postby Wiredbomb0 on Fri May 08, 2009 9:03 pm

After removing main.rc (I renamed it to OLDmain.rc) it gave me:

1>fatal error RC1110: could not open .\main.rc

Unsuccessful.

I changed the afxres.h to windows.h and this:

Compiling resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation. All rights reserved.
Compiling manifest to resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation. All rights reserved.
Linking...
Embedding manifest...
Project : error PRJ0003 : Error spawning 'cmd.exe'.

1 Failed

The furtherst so far. What's going on?
Wiredbomb0
 
Posts: 166
Joined: Thu Apr 23, 2009 10:08 am
Location: Victoria, Australia

Next

Return to Homebrew

Who is online

Users browsing this forum: nine10 and 2 guests