toolchain libraries need kubridge.h which is not in the SDK

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

toolchain libraries need kubridge.h which is not in the SDK

Post by Heimdall »

the lastest SVN pspirkeyb from PS2DEV SVN required kubridge.h, this header is not part of the SDK itself, it is from DA's SDK, if i want to keep my SDK with only open source code I cannot build it, is it really necessary to include kubridge.h and it's functions?
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

actually answering myself, applying this patch:

Code: Select all

Index: asciidemo/main.c
===================================================================
--- asciidemo/main.c	(revision 2452)
+++ asciidemo/main.c	(working copy)
@@ -9,7 +9,6 @@
 #include <pspkernel.h>
 #include <pspdebug.h>
 #include <pspctrl.h>
-#include <kubridge.h>
 
 #include <pspirkeyb.h>
 #include <pspirkeyb_rawkeys.h>
Index&#58; asciidemo/Makefile
===================================================================
--- asciidemo/Makefile	&#40;revision 2452&#41;
+++ asciidemo/Makefile	&#40;working copy&#41;
@@ -9,7 +9,7 @@
 LIBDIR = $&#40;PSPDEV&#41;/SDK/lib ../libpspirkeyb
 LDFLAGS =
 
-LIBS = -lpspkubridge -lpspirkeyb -lpsppower
+LIBS = -lpspirkeyb -lpsppower
 
 BUILD_PRX = 1
 PSP_FW_VERSION = 401
Index&#58; asciidemoprx/main.c
===================================================================
--- asciidemoprx/main.c	&#40;revision 2452&#41;
+++ asciidemoprx/main.c	&#40;working copy&#41;
@@ -13,7 +13,6 @@
 #include <pspctrl.h>
 #include <pspdebug.h>
 #include <psppower.h>
-#include <kubridge.h>
 
 #include <stdio.h>
 #include <string.h>
Index&#58; asciidemoprx/Makefile
===================================================================
--- asciidemoprx/Makefile	&#40;revision 2452&#41;
+++ asciidemoprx/Makefile	&#40;working copy&#41;
@@ -9,7 +9,7 @@
 LIBDIR = $&#40;PSPDEV&#41;/SDK/lib ../libpspirkeybprx
 LDFLAGS =
 
-LIBS = -lpspkubridge -lpspirkeybprx -lpsppower
+LIBS = -lpspirkeybprx -lpsppower
 
 BUILD_PRX = 1
 PSP_FW_VERSION = 401
removed non OSS code and libs and makes the library "buildable" again :)

Maybe another good patch for the SDK?
User avatar
Torch
Posts: 825
Joined: Wed May 28, 2008 2:50 am

Post by Torch »

Just make a kernel module and export the required functions yourself.

You could declare prototypes for the ku* functions without including kubridge.h and assign them at run time to either kubridge's functions (if present), or load your kernel module and assign them to it's functions.
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

that was not the point, the thing here was that the code was including a header and linking with a lib that is not part of the default SDK and none of the stuff from those header or lib is used, as you can see in my previous patch.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Code: Select all

Sending        pspirkeyb/asciidemo/Makefile
Sending        pspirkeyb/asciidemo/main.c
Sending        pspirkeyb/asciidemoprx/Makefile
Sending        pspirkeyb/asciidemoprx/main.c
Transmitting file data ....
Committed revision 2454.
Post Reply