Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#26378 - 07/02/2001 22:15 emptool for win32
amold
journeyman

Registered: 31/12/2000
Posts: 78
For masochistic reasons, I'm trying to compile emptool on NT.
I got the protocol lib compiled by replacing connection_unix in the makefile with connection_win32.
I'm stuck in lib\core, because, for one thing, there are no
#ifdefs around includes for pthread.h etc.
There's obviously a lot of configuration missing. Anyone want to give me hints ? like what files are needed for win32, are there major pieces missing, etc.

pretty please ?




Top
#26379 - 08/02/2001 00:52 Re: emptool for win32 [Re: amold]
Smoker_Man
member

Registered: 29/08/2000
Posts: 165
Loc: Calgary, CANADA
run away...

hey, you said it not me, you are definetly trying to court the devil by trying to compile that under win32 api's...

Smoker_Man
#080000449 MkII - 36Gb Blue
_________________________
2x160Gb MkII Lighted Buttons 080000449

Top
#26380 - 08/02/2001 03:42 Re: emptool for win32 [Re: amold]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5680
Loc: London, UK
We've never built it on Win32 here, so you're a little on your own. You could, however, try building it with cygwin.


Roger - not necessarily speaking for empeg
_________________________
-- roger

Top
#26381 - 08/02/2001 06:06 Re: emptool for win32 [Re: amold]
fvgestel
old hand

Registered: 12/08/2000
Posts: 702
Loc: Netherlands
It's allready great news you compiled the connection classes. Would it be possible to put the connection stuff into a dll?
I'm using delphi to connect to the empeg over USB, but have only been able to setup a one-way communication. It's a real pain to use win32 api calls in delphi...
Unfortunately I cannot help you with the threading stuff on win32, as I do not have a clue how it's handled in C++/win32.
BTW, how did you compile usb_discovery_win32.cpp ? It requires include file win32_usb/EmpegUsbDevices.h , which I couldn't find anywhere...

Frank van Gestel
_________________________
Frank van Gestel

Top
#26382 - 08/02/2001 08:07 Re: emptool for win32 [Re: fvgestel]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5680
Loc: London, UK
Would it be possible to put the connection stuff into a dll?

Not as it stands, since the interface to it is C++. I don't know how you'd interface that with Delphi - I imagine that it only has C bindings.

It requires include file win32_usb/EmpegUsbDevices.h , which I couldn't find anywhere...

That's because it's not used by emptool, and therefore isn't included in the GPL'ed stuff. I'll have a chat with Mike and Peter about moving it into lib/protocol, and then it'll fall into that basket.


Roger - not necessarily speaking for empeg
_________________________
-- roger

Top
#26383 - 08/02/2001 08:33 Re: emptool for win32 [Re: Roger]
fvgestel
old hand

Registered: 12/08/2000
Posts: 702
Loc: Netherlands
Not as it stands, since the interface to it is C++. I don't know how you'd interface that with Delphi

here's how : http://www.inprise.com/delphi/papers/brick.html

Frank van Gestel
_________________________
Frank van Gestel

Top
#26384 - 08/02/2001 09:32 Re: emptool for win32 [Re: amold]
amold
journeyman

Registered: 31/12/2000
Posts: 78
I had to #ifdef out all the usb stuff in connection_win32, because there's a CritcSec class missing. anyway, i'm going to keep plodding one and try to see if come up with a workable binary.


Top
#26385 - 09/02/2001 03:17 Re: emptool for win32 [Re: fvgestel]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5680
Loc: London, UK
From a brief read of that page...

Yup, thought that's how it'd have to be done - write a C wrapper for the C++, and export that to Delphi.

Unless you can get hold of Borland C++ and compile it with that, in which case it might work.




Roger - not necessarily speaking for empeg
_________________________
-- roger

Top
#26386 - 09/02/2001 11:27 Re: emptool for win32 [Re: amold]
amold
journeyman

Registered: 31/12/2000
Posts: 78
Well,
I got the darn thing sort-of working with ethernet. The question is, why ?


Top