xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
2 Pages V  1 2 >  
Reply to this topicStart new topic
> Large Openxdk Cvs Patch, 480p support, Input working all the time, faster video
d0wnlab
post Jul 18 2006, 05:23 AM
Post #1


X-S Expert
***

Group: Moderator
Posts: 557
Joined: 22-November 03
Member No.: 76129
Xbox Version: unk



Hello OpenXDK developers!

I have committed to CVS a number of patches that have been supplied to me by members of the scene over the last week or so.

From Guillaume Lamonoca:
480p support! Currently some problems with 780 and 1080, but the groundwork has been done to add those as well.

From Friedgold:
A workaround to the input handling issue that disables interrupts in favor of polling.
A number of other patches as well, see this thread.

Thanks a lot, guys!!

As I said before, with the OpenXDK version from CVS, input works in a stable manner (as far as we have been able to test), so everyone please update and tell us your findings as well.

There is also work being done on finding out why using interrupts for usb handling did not work - if you're interested in helping this effort PM me and I can get you in touch with the related people.

Cheers,
Tom

This post has been edited by d0wnlab: Jul 18 2006, 05:46 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
elupus
post Jul 22 2006, 03:18 PM
Post #2


X-S X-perience
**

Group: Members
Posts: 480
Joined: 5-January 04
Member No.: 89110



you didn't happen to remove the automatic init of video on startup did you? we kinda don't want video to init with xbmc shortcut xbe. yea i know it's an very easy fix that we could do ourself, but still think that should be default in oxdk.

regards

/elupus
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
d0wnlab
post Jul 23 2006, 06:18 PM
Post #3


X-S Expert
***

Group: Moderator
Posts: 557
Joined: 22-November 03
Member No.: 76129
Xbox Version: unk



hrm.. we haven't fixed that, I don't think it's my call to take that out, but I'll email the dev's and we'll talk about it.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
elupus
post Jul 24 2006, 12:08 PM
Post #4


X-S X-perience
**

Group: Members
Posts: 480
Joined: 5-January 04
Member No.: 89110



another minor annoyance in oxdk i found..

#ifdef _MSC_VER
PANSI_STRING imageFileName = (PANSI_STRING)XeImageFileName;
#else
PANSI_STRING imageFileName = (PANSI_STRING)&XeImageFileName;
#endif


think the global LaunchDataPage had the same issue, ie different indirection from xdk. Since those aren't really supposed to be accessed i have a fealing nobody will feel like changing that thou smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
d0wnlab
post Jul 24 2006, 04:59 PM
Post #5


X-S Expert
***

Group: Moderator
Posts: 557
Joined: 22-November 03
Member No.: 76129
Xbox Version: unk



afaik no one has OpenXDK working with MSVC, everyone uses GCC which is recommended.

We're not going to take out the video init because:
- it will break everything that current builds against openxdk
- you can make a rebuild yourself with it removed (if you want I can supply you with the precompiled library)

Let me know if you want me to build a version without it - but really it's pretty simple to do yourself.

Cheers,
Tom
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
elupus
post Jul 26 2006, 12:01 PM
Post #6


X-S X-perience
**

Group: Members
Posts: 480
Joined: 5-January 04
Member No.: 89110



I had a hard time building it last time i tried. Thou I initially tried under mingw, then didn't give it a proper try under cygwin instead. Doubt it'd be any huge problem should i try, (another dev took over dev on shortcut since i was busy with other stuff so i never needed it).

Actually we don't build under msvc, it was just that the code was supposed to work compiled both with oxdk and with xdk wich is why those stuff mattered. anyway it's a small program, so the workarounds isn't any big deal. Just a thought for making porting stuff simpler.

Cheers
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
d0wnlab
post Jul 26 2006, 06:17 PM
Post #7


X-S Expert
***

Group: Moderator
Posts: 557
Joined: 22-November 03
Member No.: 76129
Xbox Version: unk



My previous post might have been a little premature.. you might get your patch yet smile.gif

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
mokda
post Jul 28 2006, 01:31 AM
Post #8


X-S Young Member
*

Group: Members
Posts: 31
Joined: 5-September 05
Member No.: 244754



Forgive me for asking, but how do i go about applying this patch? Also, is it dependant on prior patches?

I have openxdk 0.7 as downloaded clean from Source Forge. I noticed that every time I would have to go back and change a few things that was causing problems.

I see that the patch is Makefile.am....how do I run/execute this? I'm using Windows XP fyi.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
TMaul
post Jul 30 2006, 12:14 PM
Post #9


X-S Senior Member
**

Group: Members
Posts: 230
Joined: 30-May 03
From: Over there --->
Member No.: 41184
Xbox Version: v1.2
360 version: v1 (xenon)



I have just tried updating my openxdk install to the latest cvs version and I get the following errors when building the samples, d0wnlabs wolf3d port and my own stuff:

QUOTE
/usr/local/openxdk/lib/libSDL.a(SDL_blit.o):SDL_blit.c:(.text+0x734): undefined
reference to `_SDL_CalculateBlit0'
/usr/local/openxdk/lib/libusb.a(misc.o):misc.c:(.text+0xab): undefined reference
to `_IoInputDword'


I've not yet had a look at why this is happening but I assume that something is missing from cvs thats causing linking problems? Or am I just stupid?

This post has been edited by TMaul: Jul 30 2006, 12:23 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
friedgold
post Jul 30 2006, 04:47 PM
Post #10


X-S Expert
***

Group: Moderator
Posts: 667
Joined: 28-December 04
From: Bristol, England
Member No.: 181403
Xbox Version: v1.1
360 version: none



QUOTE(mokda @ Jul 28 2006, 01:38 AM) *

Forgive me for asking, but how do i go about applying this patch? Also, is it dependant on prior patches?

I have openxdk 0.7 as downloaded clean from Source Forge. I noticed that every time I would have to go back and change a few things that was causing problems.

I see that the patch is Makefile.am....how do I run/execute this? I'm using Windows XP fyi.

For the moment if you want these changes you'll need to get the latest version from OpenXDK CVS. There's a guide to CVS on the sourceforge site with more info and links to CVS clients. You'll then need to carry out these install steps to configure and install OpenXDK.

The .am files are used by automake to generate the makefiles used in the build process. If you change a .am file you need to rebuild with make distclean followed by the standard install steps (./autogen.sh; ./configure...).

QUOTE
/usr/local/openxdk/lib/libusb.a(misc.o):misc.c:(.text+0xab): undefined reference
to `_IoInputDword'

This should easy to fix. Just add a -lopenxdk after -lusb in the linker options in the makefile.

QUOTE
/usr/local/openxdk/lib/libSDL.a(SDL_blit.o):SDL_blit.c:(.text+0x734): undefined
reference to `_SDL_CalculateBlit0'
Hmm, this is a bit more worrying. I'll try checking out a clean copy of OpenXDK and see if I get the same problem.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
friedgold
post Jul 30 2006, 06:16 PM
Post #11


X-S Expert
***

Group: Moderator
Posts: 667
Joined: 28-December 04
From: Bristol, England
Member No.: 181403
Xbox Version: v1.1
360 version: none



QUOTE
Just add a -lopenxdk after -lusb

Sorry, that should be add a -lhal after -lusb.

Anyway I've just checked out and built OpenXDK from CVS and can build Wolf3d with just that one change to the Wolf3d Makefile so I'm not sure what's happening for you. Did you rebuild OpenXDK completely after doing the CVS update (you need to run make distclean and rerun autogen.sh and configure). Might you have any other copies of the SDL libs or SDL header files in your path?

This post has been edited by friedgold: Jul 30 2006, 06:17 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
mokda
post Jul 30 2006, 10:14 PM
Post #12


X-S Young Member
*

Group: Members
Posts: 31
Joined: 5-September 05
Member No.: 244754



QUOTE(friedgold @ Jul 30 2006, 08:54 AM) *

For the moment if you want these changes you'll need to get the latest version from OpenXDK CVS. There's a guide to CVS on the sourceforge site with more info and links to CVS clients. You'll then need to carry out these install steps to configure and install OpenXDK.

The .am files are used by automake to generate the makefiles used in the build process. If you change a .am file you need to rebuild with make distclean followed by the standard install steps (./autogen.sh; ./configure...).


I figured out how to get the latest CVS build using TortoiseCVS. I went to compile the libraries using the steps on [url=http://www.openxdk.org/installing.html] and it gave me the following error:
CODE

ln -fs /usr/bin/strip build/bin/i386-pc-xbox-strip
touch directories-stamp
gunzip -cd ./Archive/newlib-1.12.0.tar.gz | (cd build/newlib; tar -x) && \
                (cd build/newlib;patch -p1) < ./Patches/newlib-1.12.0.diff && \

                mkdir -p build/newlib/newlib-1.12.0/i386-pc-xbox && \
                cp -a ./src/newlib-1.12.0/* build/newlib/newlib-1.12.0/
/bin/sh: line 1: patch: command not found
make[1]: *** [build/newlib/newlib-1.12.0/Makefile] Error 127
make[1]: Leaving directory `/usr/local/openxdk'
make: *** [all-recursive] Error 1


What did I forget to do or get?

Also, I found some errors in the install guide at openxdk.org...
1) Along with gcc, binutils, automake, and autoconf, you will need "make" for cygwin as well.
2) the first command for building the packaged source under cygwin should probably be:
cd /usr/local/openxdk

I think the error above is probably due to me missing a cygwin package I should have but didn't know to get.


User is offlineProfile CardPM
Go to the top of the page
+Quote Post
friedgold
post Jul 30 2006, 11:08 PM
Post #13


X-S Expert
***

Group: Moderator
Posts: 667
Joined: 28-December 04
From: Bristol, England
Member No.: 181403
Xbox Version: v1.1
360 version: none



QUOTE
I think the error above is probably due to me missing a cygwin package I should have but didn't know to get.
Yep, you need the patch package too (or whatever cygwin package contains patch).
QUOTE
Also, I found some errors in the install guide at openxdk.org...
1) Along with gcc, binutils, automake, and autoconf, you will need "make" for cygwin as well.
True, I'll try to update the docs sometime (the Input API stuff infomation is also out of date).
QUOTE
2) the first command for building the packaged source under cygwin should probably be:
cd /usr/local/openxdk
Even though you install OpenXDK to /usr/local/openxdk you would normally download and compile it elsewhere and then run make install to move the files to the correct directory. So I think the guide is correct in this instance.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
TMaul
post Jul 31 2006, 12:17 AM
Post #14


X-S Senior Member
**

Group: Members
Posts: 230
Joined: 30-May 03
From: Over there --->
Member No.: 41184
Xbox Version: v1.2
360 version: v1 (xenon)



QUOTE(friedgold @ Jul 30 2006, 06:23 PM) *

Sorry, that should be add a -lhal after -lusb.

Anyway I've just checked out and built OpenXDK from CVS and can build Wolf3d with just that one change to the Wolf3d Makefile so I'm not sure what's happening for you. Did you rebuild OpenXDK completely after doing the CVS update (you need to run make distclean and rerun autogen.sh and configure). Might you have any other copies of the SDL libs or SDL header files in your path?


Thanks, everything is building fine now. I did suspect that it might be something weird going on with the linking. Also, according to my command history I didn't do a make distclean, only make clean, and that seems to have been the cause of the SDL linking problem.

Thanks again!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Carcharius
post Jul 31 2006, 07:43 AM
Post #15


X-S Expert
***

Group: Members
Posts: 635
Joined: 11-May 03
Member No.: 37299



QUOTE(TMaul @ Jul 31 2006, 12:24 AM) *

Thanks, everything is building fine now. I did suspect that it might be something weird going on with the linking. Also, according to my command history I didn't do a make distclean, only make clean, and that seems to have been the cause of the SDL linking problem.

Thanks again!

Amateur tongue.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





2 Pages V  1 2 >
Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 24th May 2013 - 10:54 AM