forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Heimdall



Joined: 10 Nov 2005
Posts: 259
Location: Netherlands

PostPosted: Fri Feb 20, 2009 8:56 pm    Post subject: toolchain libraries need kubridge.h which is not in the SDK Reply with quote

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?
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Heimdall



Joined: 10 Nov 2005
Posts: 259
Location: Netherlands

PostPosted: Fri Feb 20, 2009 10:52 pm    Post subject: Reply with quote

actually answering myself, applying this patch:

Code:
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: asciidemo/Makefile
===================================================================
--- asciidemo/Makefile   (revision 2452)
+++ asciidemo/Makefile   (working copy)
@@ -9,7 +9,7 @@
 LIBDIR = $(PSPDEV)/SDK/lib ../libpspirkeyb
 LDFLAGS =
 
-LIBS = -lpspkubridge -lpspirkeyb -lpsppower
+LIBS = -lpspirkeyb -lpsppower
 
 BUILD_PRX = 1
 PSP_FW_VERSION = 401
Index: asciidemoprx/main.c
===================================================================
--- asciidemoprx/main.c   (revision 2452)
+++ asciidemoprx/main.c   (working copy)
@@ -13,7 +13,6 @@
 #include <pspctrl.h>
 #include <pspdebug.h>
 #include <psppower.h>
-#include <kubridge.h>
 
 #include <stdio.h>
 #include <string.h>
Index: asciidemoprx/Makefile
===================================================================
--- asciidemoprx/Makefile   (revision 2452)
+++ asciidemoprx/Makefile   (working copy)
@@ -9,7 +9,7 @@
 LIBDIR = $(PSPDEV)/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?
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Fri Feb 20, 2009 11:09 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Heimdall



Joined: 10 Nov 2005
Posts: 259
Location: Netherlands

PostPosted: Fri Feb 20, 2009 11:43 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Thu Feb 26, 2009 4:39 pm    Post subject: Reply with quote

Code:

Sending        pspirkeyb/asciidemo/Makefile
Sending        pspirkeyb/asciidemo/main.c
Sending        pspirkeyb/asciidemoprx/Makefile
Sending        pspirkeyb/asciidemoprx/main.c
Transmitting file data ....
Committed revision 2454.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group