View unanswered posts | View active topics It is currently Fri May 24, 2013 2:46 am



Post new topic Reply to topic  [ 10 posts ] 
 Compiling bbTaskSwitch 
Author Message
BBAdult
User avatar

Joined: Mon May 15, 2006 4:58 am
Posts: 36
Reply with quote
Post Compiling bbTaskSwitch
I would like make some modifications in bbTaskSwitch, however the file bbapi-c.h is missing. Could anyone help me?


Tue May 16, 2006 4:56 pm
Report this post
Profile
Sponsored Links
Google Adsense


BBDinosaur
User avatar

Joined: Fri Jan 27, 2006 4:16 am
Posts: 794
Location: Karlstad, Sweden
Reply with quote
Post Re: Compiling bbTaskSwitch
TiCL wrote:
I would like make some modifications in bbTaskSwitch, however the file bbapi-c.h is missing. Could anyone help me?


Any solution yet? Feels like i'm chasing the goddamn grinch around here or smth :(

_________________
Don't forget to check the BlackBox FAQs.

Jabber: noccy@jabber.se | Web: www.noccy.com | Blog: Minimal Security


Wed Jun 20, 2007 3:42 am
Report this post
Profile ICQ YIM WWW
Site Admin
User avatar

Joined: Sun Dec 05, 2004 8:59 pm
Posts: 1316
Location: Boise, Idaho
Reply with quote
Post 
bbapi-c.h is included in the bblean source iirc. It's is the same bbapi.h with a couple definitions for types that are not defined in C

_________________
-- Brian


Wed Jun 20, 2007 5:25 pm
Report this post
Profile ICQ YIM WWW
BBDinosaur
User avatar

Joined: Fri Jan 27, 2006 4:16 am
Posts: 794
Location: Karlstad, Sweden
Reply with quote
Post 
tresni wrote:
bbapi-c.h is included in the bblean source iirc. It's is the same bbapi.h with a couple definitions for types that are not defined in C


Hm, I can't find it anywhere in my source directory, and bbTaskSwitch won't compile without it :/

_________________
Don't forget to check the BlackBox FAQs.

Jabber: noccy@jabber.se | Web: www.noccy.com | Blog: Minimal Security


Wed Jun 20, 2007 7:32 pm
Report this post
Profile ICQ YIM WWW
Site Admin
User avatar

Joined: Sun Dec 05, 2004 8:59 pm
Posts: 1316
Location: Boise, Idaho
Reply with quote
Post 
I thought I had seen it, but I am mistaken. I sent an email off to kana, who is the only plugin author I know of that used it. Maybe we'll see something, maybe not. But he's a cool guy and has always been forthcoming in the past.

_________________
-- Brian


Wed Jun 20, 2007 11:04 pm
Report this post
Profile ICQ YIM WWW
BBDinosaur
User avatar

Joined: Fri Jan 27, 2006 4:16 am
Posts: 794
Location: Karlstad, Sweden
Reply with quote
Post 
I've gotten this far (in converting it to cpp from c):

Code:
$ make -f makefile-gcc
gcc -Os -Wall -Os -o BBTaskSwitch.dll -shared \
        -Wl,--no-whole-archive ../../blackbox/libBlackbox.a BBTaskSwitch.o cpp_adaptor.o misc.o
BBTaskSwitch.o:BBTaskSwitch.cpp:(.text+0x41c): undefined reference to `GetBBWnd'
BBTaskSwitch.o:BBTaskSwitch.cpp:(.text+0xc7c): undefined reference to `GetBBWnd'
BBTaskSwitch.o:BBTaskSwitch.cpp:(.text+0xcb7): undefined reference to `GetBBWnd'
BBTaskSwitch.o:BBTaskSwitch.cpp:(.text+0xcdd): undefined reference to `GetBBWnd'
cpp_adaptor.o:cpp_adaptor.cpp:(.text+0x11): undefined reference to `CreateStyleFont'
cpp_adaptor.o:cpp_adaptor.cpp:(.text+0x27): undefined reference to `MakeStyleGradient'
collect2: ld returned 1 exit status
make: *** [BBTaskSwitch.dll] Error 1


I'm trying every way i can to include libBlackbox.a but for some reason it won't work :o

_________________
Don't forget to check the BlackBox FAQs.

Jabber: noccy@jabber.se | Web: www.noccy.com | Blog: Minimal Security


Mon Jun 25, 2007 7:02 pm
Report this post
Profile ICQ YIM WWW
BBDinosaur
User avatar

Joined: Wed Dec 13, 2006 7:33 pm
Posts: 263
Location: Pretoria, South Africa
Reply with quote
Post 
If I remember correctly you should be using
Code:
-l../../blackbox/libBlackbox.a
to link in the library.

The first character after the dash is a lowercase L if you're wondering, as I'm having trouble figuring it out looking at it just like that


Tue Jun 26, 2007 7:51 pm
Report this post
Profile WWW
BBDinosaur
User avatar

Joined: Fri Jan 27, 2006 4:16 am
Posts: 794
Location: Karlstad, Sweden
Reply with quote
Post 
[quote="Carsomyr"]If I remember correctly you should be using
Code:
-l../../blackbox/libBlackbox.a
to link in the library.

Apparently, moving the libs to the end of the command line did the trick. Now it's just unwilling to locate the GDI32 exports for ts.dll :X

Code:
$ make -f makefile-gcc
gcc -Os -Wall -s -lgdi32 -o ts.dll -shared \
        -Wl,--out-implib=ts.lib \
        ts.o ../../blackbox/libBlackbox.a
Creating library file: ts.lib
ts.o:ts.c:(.text+0x322): undefined reference to `CreateFontA@56'
ts.o:ts.c:(.text+0x362): undefined reference to `DeleteObject@4'
ts.o:ts.c:(.text+0xed5): undefined reference to `SetTextColor@8'
ts.o:ts.c:(.text+0xedd): undefined reference to `SetBkMode@8'
ts.o:ts.c:(.text+0xf15): undefined reference to `SetTextColor@8'
ts.o:ts.c:(.text+0xf61): undefined reference to `SetTextColor@8'
collect2: ld returned 1 exit status
make: *** [ts.dll] Error 1

_________________
Don't forget to check the BlackBox FAQs.

Jabber: noccy@jabber.se | Web: www.noccy.com | Blog: Minimal Security


Tue Jun 26, 2007 10:46 pm
Report this post
Profile ICQ YIM WWW
BBDinosaur
User avatar

Joined: Wed Dec 13, 2006 7:33 pm
Posts: 263
Location: Pretoria, South Africa
Reply with quote
Post 
Try moving the GDI library to the end of the command line as well. The linker is sensitive to the order and starts linking from the last argument, IIRC.


Wed Jun 27, 2007 9:46 am
Report this post
Profile WWW
BBDinosaur
User avatar

Joined: Fri Jan 27, 2006 4:16 am
Posts: 794
Location: Karlstad, Sweden
Reply with quote
Post 
Carsomyr wrote:
Try moving the GDI library to the end of the command line as well. The linker is sensitive to the order and starts linking from the last argument, IIRC.


That did the trick :) It compiles, just gotta take it for a spin to see if it works as intended. Thanks! :)

Cheers,
Chris

_________________
Don't forget to check the BlackBox FAQs.

Jabber: noccy@jabber.se | Web: www.noccy.com | Blog: Minimal Security


Thu Jun 28, 2007 12:06 am
Report this post
Profile ICQ YIM WWW
Sponsored Links
Google Adsense


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 


Who is online

Users browsing this forum: febzybcmr and 3 guests


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.