xboxscene.org forums

Author Topic: Openxdk Patches  (Read 135 times)

friedgold

  • Archived User
  • Sr. Member
  • *
  • Posts: 266
Openxdk Patches
« on: July 08, 2006, 05:15:00 PM »

Logged

mokda

  • Archived User
  • Newbie
  • *
  • Posts: 10
Openxdk Patches
« Reply #1 on: July 09, 2006, 05:11:00 PM »

Thanks Friedgold.

The type redef fix solved one of my compiling problems.

I'm still getting linker issues that look like this:

 C:\Dev-Cpp\XboxProj\main.o(.text+0x46) In function `XBoxStartup':
  [Linker error] undefined reference to `XSleep'
  [Linker error] undefined reference to `XReboot'

 C:\cygwin\usr\local\openxdk\i386-pc-xbox\lib\libc.a(syscalls.o)(.text+0x19d) In function `execve':
  [Linker error] undefined reference to `XLaunchXBE'

And so on like that...most of the linker problems are complaining about libc.a.

Do you know how to fix this (what am I missing)? My code is same as ColdReader's short tutorial:

extern "C"{
#include <hal/xbox.h>
#include <openxdk/debug.h>
#include <xboxkrnl/xboxkrnl.h>
}

extern "C" void XBoxStartup(){
{
debugPrint("hi there\n");
debugPrint("string=%s\n", "string");
debugPrint("number=%d\n", 123);
XSleep(10000);
XReboot();
}
}

Logged

d0wnlab

  • Archived User
  • Sr. Member
  • *
  • Posts: 326
Openxdk Patches
« Reply #2 on: July 09, 2006, 05:53:00 PM »

mokda:  can you post your makefile?  That will be where linker problems will be solved.
Logged

d0wnlab

  • Archived User
  • Sr. Member
  • *
  • Posts: 326
Openxdk Patches
« Reply #3 on: July 09, 2006, 06:42:00 PM »

get that  '-L"C:/Dev-Cpp/lib" ' out of there, first of all, then see what happens.  There's no libraries in that directory that you want to link to, and right now it's probably using them instead of the openxdk libs.  Since you're using a generated makefile I suppose you'll have to edit that in the build settings somewhere - someone familiar with dev-cpp should have a better idea than myself.

Logged

elupus

  • Archived User
  • Full Member
  • *
  • Posts: 211
Openxdk Patches
« Reply #4 on: July 17, 2006, 06:05:00 AM »

Okey, i small request from xbmc devs for the openxdk devs out there. remove the automatic video init on startup, that should be up to starting application. causes double video init in our xbe shortcut.
Logged