PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

PocketFrog 0.8.0 (PocketHAL Edition) Released

Rub your eyes, you are not dreaming: I have ported PocketFrog 0.7.0 to PocketHAL. The result of this is a new release of PocketFrog (0.8.0).


Release notes:

* Converted PocketFrog to use PocketHAL. I tested all samples (except Hekkus) on PPC2000 MIPS, PPC2002 ARM and PPC2003 ARM. You should open the "dsw" or "vcw" workspace files from the "make directory". It includes all the samples with dependencies setup properly. I left the workspace files that were created by Frank in the samples directories. I have no idea if they work.
- Removed all emulator targets from projects. If you want to use the emulator, you will have to setup the projects yourself.
- Removed "Sprite" sample as the projects were messed up on PC.


Get it here: www.droneship.com
that's great news!

does this mean we will see active development on PocketFrog again or will you keep concentrating on PocketHAL?

bye,
Daniel
If you had just waited a few days Space Treker III would have been live & I would not have had to try out the PF/PHAL version to see if it's faster but as I'm still a couple of days from publishing I'm intrigued to see the results so will give it a go & report back :)
Great news. Just getting this all working in visual studio .net. Had to recompile the pocketfrog libs to work (typename needed to be added in a couple of places to conform with iso standard). However, there is no way to compile pocket hal to work with .net, any chance of a .net lib (both debug and release)?

Thanks, and once again - great work!
My mistake, PocketHal already works fine with .net :-)
Guest · 28 Jul 2004, 14:44 UTC — Holy shit!!
*jeremie pinches himself*
I thought this "weekend" would never come.

Thank you thank you thank you!
woops, wasn't logged in.
Thierry,

First of all, thanks for getting this released...

It looks like the rasterizer and raster2d code is untouched. Is that the case? I guess I'm asking where most of the changes were made and if there's going to be any problems with making the modifications to the framework like I did with 0.7.

Also, the issues I pointed out in this thread are still there (i.e. DrawVGAText won't work with color set to 0,0,0... and FillRect fails when target rect is clipped to screen):
http://www.pocketmatrix.com/forums/view ... highlight=

Not big problems, but I was hoping that they would get fixed eventually.

If you do want to fix them, I can tell you exactly where they are:
rasterizer.cpp
remove line 817 "if(color==null)...
add line 742
// Trivial reject
if (r.IsEmpty())
return;
and again at 762 (just after the r.Intersect( m_clipper );
drgoldie wrote:that's great news!

does this mean we will see active development on PocketFrog again or will you keep concentrating on PocketHAL?


My next priority is a Palm OS version of PocketHAL. After that, I want PocketFrog to work on all platforms that PocketHAL supports (Windows CE, Symbian and Palm OS). So yes, development resumed and should continue.

Conan wrote:If you had just waited a few days Space Treker III would have been live & I would not have had to try out the PF/PHAL version to see if it's faster but as I'm still a couple of days from publishing I'm intrigued to see the results so will give it a go & report back.


Let me know how it goes. The porting should be quite straightforward.

Jonnyboy28 wrote:My mistake, PocketHal already works fine with .net :-)


I was going to say... It works with .NET =)
fast_rx wrote:It looks like the rasterizer and raster2d code is untouched. Is that the case?


The code hasn't changed much in that area. The major thing is that STL isn't required anymore.

fast_rx wrote:I guess I'm asking where most of the changes were made and if there's going to be any problems with making the modifications to the framework like I did with 0.7.


The major changes are related to class Surface and Display. No longer is there pre-rotation of the surfaces. It's all PocketHAL powered now.

fast_rx wrote:Also, the issues I pointed out in this thread are still there (...) Not big problems, but I was hoping that they would get fixed eventually.


It's been so long and I haven't kept track of all the issues. The important thing for me was to get 0.8.0 released. Please post all known bugs and fixes here. I will shortly release a maintenance patch.
Errm, sorry to bother you but I've tried looking everywhere and can't find a way to disable the PocketHal 0.7.3 message which fades on when starting your app...thanks in advance.
Thierry: Do you plan to integrate the Intel GPP 4.0 raster ops into future versions of PocketKnife? The current GPP version supports very fast raster ops on Bulverde PXA270 processors (in fact those functions only run on that chip as far as i know).

Daniel
Fluxo28 wrote:Errm, sorry to bother you but I've tried looking everywhere and can't find a way to disable the PocketHal 0.7.3 message which fades on when starting your app...thanks in advance.


The only known way is to make a donation to the PocketHAL project. You can find more info here: http://www.droneship.com/pockethal/download.html

If you do not want to use PocketHAL, you can continue to use PocketFrog 0.7.0 that is based on GAPI.
drgoldie wrote:Thierry: Do you plan to integrate the Intel GPP 4.0 raster ops into future versions of PocketKnife? The current GPP version supports very fast raster ops on Bulverde PXA270 processors (in fact those functions only run on that chip as far as i know).


What's a PocketKnife? But yes... If it makes sense to support that library, I shall do so. I assume it's for 3D rasterization? Or is it for arbitrary pixel manipulations?
Ups, sorry. Of course i meant PocketFrog...

The GPP 4.0 includes new 2D code for manipulating pixel data such as blending, format conversion, etc.
These functions are targeted for 3D usage, but they work on pixel level.

from the gpp2d.h file:
Code:

/* ROP codes */
typedef enum {
GPP_ROP_DSTINVERT, /* dst = Not dst */
GPP_ROP_NOTSRCCOPY, /* dst = Not src */
GPP_ROP_NOTSRCERASE, /* dst = NOT (src OR dst) */
GPP_ROP_SRCAND, /* dst = src AND dst */
GPP_ROP_SRCERASE, /* dst = src AND (Not dst) */
GPP_ROP_SRCINVERT, /* dst = src XOR dst */
GPP_ROP_SRCPAINT, /* dst = src OR dst */
} GPP_ROP_MODE;

/* Source and Destination Blending Factors */
typedef enum {
GPP_BLENDFACTOR_ZERO, /* (0, 0, 0, 0) */
GPP_BLENDFACTOR_ONE, /* (1, 1, 1, 1,) */
GPP_BLENDFACTOR_SRCCOLOR, /* (Rs,Gs,Bs,As) */
GPP_BLENDFACTOR_INVSRCCOLOR, /* (1-Rs,1-Gs,1-Bs,1-As) */
GPP_BLENDFACTOR_SRCALPHA, /* (As,As,As,As) */
GPP_BLENDFACTOR_INVSRCALPHA, /* (1-As,1-As,1-As,1-As) */
GPP_BLENDFACTOR_DSTCOLOR, /* (Rd,Gd,Bd,Ad) */
GPP_BLENDFACTOR_INVDSTCOLOR, /* (1-Rd,1-Gd,1-Bd,1-Ad) */
GPP_BLENDFACTOR_DSTALPHA, /* (Ad,Ad,Ad,Ad) */
GPP_BLENDFACTOR_INVDSTALPHA, /* (1-Ad,1-Ad,1-Ad,1-Ad) */
} GPP_BLENDFACTOR_MODE;



bye,
Daniel
drgoldie wrote:The GPP 4.0 includes new 2D code for manipulating pixel data such as blending, format conversion, etc.
These functions are targeted for 3D usage, but they work on pixel level.


Yes, they seem quite usable. I will investigate after the cross-platform version of PocketFrog. This is when I will concentrate on further optimizations.

The bugs you reported are already fixed here. I will wait a few more days to see if there is other things coming up before releasing a patch.
Things I noticed different so far (for those who haven't tried porting an older pocketFrog program)...

DisplayDevice is now Display
Change ORIENTATION_NORTH, etc., to ORIENTATION_NORMAL

PocketPC::GetModel is missing, although I'm not really sure what it was ever used for.

The KeyList variable is already defined as m_keys, so you can remove the code that is something like
'const InputDevice::KeyList& keys = GetInput()->GetKeyList();'

Also, I had to move the pocketfrog.h file from pocketfrog/pocketfrog/ back one level to get it where it seemed like it needed to be (since it references things inside the source folder). Maybe it's something to do with how I've got my directories set up.
I can't get the compiled programs to run on my 2200. Are There any issues with ecv4?

I'll test it again with evc3 when I get home.
I was able to compile all samples with EVC4 for my iPAQ 2210 and they all work. So obviously something is different on your end.

What problems are you experiencing? Is this with the samples or your own project?
Just with the samples.

No changes made, I just loaded them in evc4, compiled in release mode and copied to the cf card.

None of them run, and in some cases they lock up the machine.
Strange. I ran the make project and now all the programs work. Sweet.
Mr X wrote:Strange. I ran the make project and now all the programs work. Sweet.


I am not sure I am following you. What did you do the first time that didn't work? And what have you done the second time that worked?
The first time, I compiled the individual projects in the sample directory. Copied them to the ppc and got nothing but pain.

The second time, I opened the make project and compiled that. The resulting exe's were about 10k smaller and worked. Mayube it rebuilt the libs or something?

Now I can compile the standalone apps and they work too. Very strange.

Still haven't got your email either btw.
When compiling in eVC3, I'm getting this message:
C:\PocketPC\PocketFrog\PocketHAL\symbian\symbian_defs.h(11): Could not find the file w32std.h.

But it's not preventing anything from being compiled. (Still says 0 warnings and 0 errors.)

Is that file included with eVC4 but not eVC3? I did a full search for it, and it's not even on the hard drive.

Thanks,
-John
Mr X wrote:Still haven't got your email either btw.


I sent it three times, the last one at the GMail address. Mmm. Maybe something is blocking .exe on your end? I just send it again with a ".txt" extension. Let me know.
Presto wrote:When compiling in eVC3, I'm getting this message:
C:\PocketPC\PocketFrog\PocketHAL\symbian\symbian_defs.h(11): Could not find the file w32std.h.


That file is included with the Symbian SDK and is definitely not needed for PPC/WinCE. The EVC resource compiler (or C++ compiler?) scans for it because it can see it in the #include statements. That's dumb and stupid and I haven't found a way to disable it. Not sure if anything can be done.

Do not worry about it.
Thierry wrote:
I sent it three times, the last one at the GMail address. Mmm. Maybe something is blocking .exe on your end? I just send it again with a ".txt" extension. Let me know.


Got the .txt one thanks. I advise against sending .exe files these days, too many spam filters just kill them imediatately.
Preliminary numbers:

"I did a comparison of the Blit sample with PF0.7.0 and PF0.8.0 on my Axim X5.

PF0.7.0 - 37fps
PF0.8.0 - 88-95fps"

If you have more numbers, please report them.
Using a benchmarker I wrote that uses a 'blit per frame' approach at a target of 30 FPS, I got the following improvements...

Axim x30
DrawVGAText
PF0.7: 754
PF0.8: 900 (+19.4%)

Blit
PF0.7: 4200
PF0.8: 4290 (+2.1%)


Toshiba e750
DrawVGAText
PF0.7: 254
PF0.8: 292 (+15.0%)

Blit
PF0.7: 780
PF0.8: 820 (+5.1%)
Thats great news
Congratulations Thierry for one more great release
As always, I was not logged in :wink:
jweldin · 01 Aug 2004, 18:49 UTC — Woo woo
I had been dealing with a memory leak, I believe, using 0.7.0. The app worked fine on the PC, but on the ppc it would just hang after exiting and wouldn't free the resources and I couldn't delete the executable until I killed the process or did a reset. Now that I am using 0.8.0 it works fine, the leak is gone. THANK YOU!!!
PocketFrog 0.8.1 has been released:

July 27, 2004

- Fixed: DrawVGAText() wouldn't draw when color was 0 (black)
- Fixed: FillRect() fails when target rect is entirely clipped
- Fixed: template code in Algo2d.h now compiles on VC7
- Added /NODEFAULTLIB:LIBCMT to samples in debug mode to remove the warning about linking with libcmt.dll.
Does this new release also include the fix for the exception on Dell Axim when cycling power (loss of focus)?
BapDude wrote:Does this new release also include the fix for the exception on Dell Axim when cycling power (loss of focus)?


Sure does.
I'm getting literally 1,000 errors related to DisplayDevice on converting from 0.7 to 0.8 (not just my own code but Gersen's font stuff as well)

Any pointers?

eg: DisplayDevice is now Display

No GetModel ???

No InputDevice ????

i found this post
DisplayDevice is now Display
Change ORIENTATION_NORTH, etc., to ORIENTATION_NORMAL

PocketPC::GetModel is missing, although I'm not really sure what it was ever used for.

The KeyList variable is already defined as m_keys, so you can remove the code that is something like
'const InputDevice::KeyList& keys = GetInput()->GetKeyList();'

Also, I had to move the pocketfrog.h file from pocketfrog/pocketfrog/ back one level to get it where it seemed like it needed to be (since it references things inside the source folder). Maybe it's something to do with how I've got my directories set up.

which tells some of the changes (why change Display? I will be typing for ages)
You pretty much listed what is now gone =)

"DisplayDevice" has been replaced with "Display".

InputDevice is gone as it isn't needed anymore (PocketHAL locks all the buttons for you and provide the keylist).

GetModel() is also gone, it wasn't useful. Were you using it for something? If so, simply add it back?

May I ask you why you are converting to PF 0.8 after release? This is not going to help you find the crash you are getting. We have already established that the problem is most probably not PocketFrog or Hekkus.
The reason was simply to prove that I was running the latest code set up correctly. If I was actually not running 0.7.0 at all then that would account for the crashes.

I now have the game building in 0.8.0 but it crashes in around the area of locking a surface, copying data & unlocking. Goes through the function once then stops. I'm still looking. I guess the best comparison is the Plasma demo.

ps: Everything is backed up pre-HAL. If I find that I get really stuck I will revert & prove to myself that I was using 0.7.0 correctly.

update: yes, a quick look at the plasma demo sorted my 3d but now this very simple piece of code dies 2nd time round the loop on the fillrect line ???
Code:
Display* display = GetDisplay();
r_general.Set(0,0,240,319);

// fade out the screen
if(menu_anim1 < 3)
{
int blend = 10;// start blend amount
for (int x = 0; x < 16; ++x)
{
display->SetBlending(blend);//transparent rect over key pressed
display->FillRect(r_general,Color(35,0,2));
display->Update();
blend+=2;// change blend amount
// Sleep(2);// pause in between fades
}
This crashes the second time around with PF 0.8.1?

You might consider sending me your code so that I can debug it... But if you don't want to I can perfectly understand.
Just a guess; does it not like the fact that your are calling Display->update() more than once per screen update? (I assume this code is in your main handler, so I'm thinking each frame your trying to do the update more than once)
fzammetti wrote:Just a guess; does it not like the fact that your are calling Display->update() more than once per screen update? (I assume this code is in your main handler, so I'm thinking each frame your trying to do the update more than once)


Oh yeah... That's wrong... You can't call display->Update() like that. You need to call display->BeginScene() before each update.
I don't see a function display->beginscene in PF 0.8.1 ?
Seems I mixed PocketHAL with PocketFrog.

Call display->GetBackBuffer() instead, this will force a call to PocketHAL's BeginScene().

You will notice that Game::GetDisplay() automatically does this for you and it is the reason all the samples work. So if you move your GetDisplay() call inside the loop (before rendering anything), it should work.
instead of changing all the displaydevice's, why not just use a #define?

we should also use a chack to see if display==null as well, right Thierry?
Hi Thierry,

I am converting my PPL project to 0.8.1 now, all compile errors are gone but...

Here is what I get:

LINK : fatal error LNK1104: cannot open file 'PocketHAL_ARM.lib'


Now, if I set the directory (PF\LIB) in my Tools\Options\Directories\Library Files

I get this:

Linking...
Font.obj : error LNK2019: unresolved external symbol "public: class Frog::Surface * __cdecl Frog::Display::CreateSurface(int,int)" (?CreateSurface@Display@Frog@@QAAPAVSurface@2@HH@Z) referenced in function "public: __cdecl Font::Font(class Frog::Dis
play *,unsigned short *,int,unsigned long,int)" (??0Font@@QAA@PAVDisplay@Frog@@PAGHKH@Z)
PPL.obj : error LNK2019: unresolved external symbol "public: class Frog::Surface * __cdecl Frog::Display::CreateSurface(int,int)" (?CreateSurface@Display@Frog@@QAAPAVSurface@2@HH@Z) referenced in function "void __cdecl _initsound(void)" (?_initsound
@@YAXXZ)
Font.obj : error LNK2019: unresolved external symbol "public: class Frog::Surface * __cdecl Frog::Display::GetBackBuffer(void)" (?GetBackBuffer@Display@Frog@@QAAPAVSurface@2@XZ) referenced in function "public: __cdecl Font::Font(class Frog::Display
*,unsigned short *,int,unsigned long,int)" (??0Font@@QAA@PAVDisplay@Frog@@PAGHKH@Z)
PPL.obj : error LNK2001: unresolved external symbol "public: class Frog::Surface * __cdecl Frog::Display::GetBackBuffer(void)" (?GetBackBuffer@Display@Frog@@QAAPAVSurface@2@XZ)
PPL.obj : error LNK2019: unresolved external symbol "public: class Frog::Rasterizer * __cdecl Frog::Display::CreateRasterizer(class Frog::Surface *)const " (?CreateRasterizer@Display@Frog@@QBAPAVRasterizer@2@PAVSurface@2@@Z) referenced in function "
bool __cdecl gapi_Init(struct HWND__ *,void *,int,bool)" (?gapi_Init@@YA_NPAUHWND__@@PAXH_N@Z)
PPL.obj : error LNK2019: unresolved external symbol "public: static class Frog::Display * __cdecl Frog::Display::Create(struct HWND__ *,struct PHAL::DisplayParameters &)" (?Create@Display@Frog@@SAPAV12@PAUHWND__@@AAUDisplayParameters@PHAL@@@Z) refer
enced in function "bool __cdecl gapi_Init(struct HWND__ *,void *,int,bool)" (?gapi_Init@@YA_NPAUHWND__@@PAXH_N@Z)
PPL.obj : error LNK2019: unresolved external symbol "class Frog::Surface * __cdecl Frog::LoadImageW(unsigned short const *)" (?LoadImageW@Frog@@YAPAVSurface@1@PBG@Z) referenced in function "void __cdecl _loadsprite(void)" (?_loadsprite@@YAXXZ)
PPL.obj : error LNK2019: unresolved external symbol "public: void __cdecl Frog::Display::Update(class Frog::Rect const *)" (?Update@Display@Frog@@QAAXPBVRect@2@@Z) referenced in function "void __cdecl _gupdate(void)" (?_gupdate@@YAXXZ)
PPL.obj : error LNK2019: unresolved external symbol "public: class Frog::Surface * __cdecl Frog::Display::SetRenderTarget(class Frog::Surface *)" (?SetRenderTarget@Display@Frog@@QAAPAVSurface@2@PAV32@@Z) referenced in function "void __cdecl _setsurf
ace(void)" (?_setsurface@@YAXXZ)
PPL.obj : error LNK2019: unresolved external symbol "public: __cdecl Frog::Display::~Display(void)" (??1Display@Frog@@QAA@XZ) referenced in function "public: __cdecl Frog::scoped_ptr<class Frog::Display>::~scoped_ptr<class Frog::Display>(void)" (??1
?$scoped_ptr@VDisplay@Frog@@@Frog@@QAA@XZ)
ARMV4Rel/PPL.exe : fatal error LNK1120: 8 unresolved externals
Error executing link.exe.

PPL.exe - 11 error(s), 0 warning(s)


I tried, the Clean and then Rebuild All like you have suggested in a previous post.

It is probably something very stupid I am not setting right!
Did you also rebuild PocketFrog? If not, try that.
Hi Thierry,

How would I do that? Sorry I am still very newbie with eVc at times.
Open the PocketFrog project file in the "PocketFrog\Make" folder. Select <Release> and <Rebuild All>.

Then try relinking your project.
Hi,

Ok, I think I was able to rebuild the library PocketFrog_ARM.lib. I opened the workspace in the Make\ directory and rebuilt "PocketFrog Files". But this didn't help.
Hi Thierry,

I got it to link now. I had a bunch of old .lib's in my main directory that I didn't know were there! :oops:
Hey no problem. That's why we have this forum =)
After reading other people's troubles with upgrading to PF 0.8, it seems there are a few obstacles to overcome to switch from PF 0.7 to PF/Hal 0.8. I'm about to release my first PF game and would like to switch to the PocketHal version. However, I don't want to get stuck in a lot of details to get my existing code to compile.

Can someone please provide a step-by-step list showing exactly what needs to be done to upgrade existing PF 0.7 code with minimal effort? I'll start the list:

1) Copy over existing PF 0.7 source file directory with PF/Hal 0.8 source files.
2) Search and replace all instances of "DisplayDevice" with "Display".
3) ?
4) ?
5) Rebuild PF libraries

Thanks...
:D
I think you pretty much nailed down what needs to be done in 90% of the cases. You don't want to copy PF0.8 over 0.7 though, simply replace it instead.

Otherwise you need to properly set your include path to the PF's root directory and set the lib path to "PF\lib".

Eveything has been discussed in this thread already. If you run into any other difficulty, simply ask here.
Make a backup of all your sources before beginning.

"DisplayDevice" has been replaced with "Display".

InputDevice is gone as it isn't needed anymore (PocketHAL locks all the buttons for you and provide the keylist).

GetModel() is also gone, it wasn't useful. Were you using it for something? If so, simply add it back?


Keys are now m_keys.vkRight etc instead of keys.

Currently I have got past the build stage but my game does not get very far so I am resorting back to the earlier version. I'm keeping the HAL version around so I can play some more in a few weeks. As I have some post go-live tweeks to do I cannot spend more time at present.
Sorry for newbie's question, but How to make pf0.8 works under emulation on pc? I've added new win32 Emulate configuration, but got linker's error. include & lib directories are set in evc4

Do I need to build pf project first? But there are a bounch of .lib files in /lib folder already?
Thierry wrote:- Removed all emulator targets from projects. If you want to use the emulator, you will have to setup the projects yourself.

That's from the very first post in this thread.

-John
Yep, I saw that, but how to set it corectly up again?

Tried to compile in vs2003 also - got couple error messages of linker - something with Clear() & SetBlending() (in Alpha sample). Looks like something wrong with namespaces. how to fix it (if that's the reason)?
I've built PocketFrog_EMU.lib for Win32(WCE emulator) Release configuration. Everything compiled ok without errors. Then open alpha sample, tried to build it, but gor linker error like this:
Code:

--------------------Configuration: alpha - Win32 (WCE emulator) Release--------------------
Compiling resources...
Compiling...
alpha.cpp
Linking...
PocketFrog_EMU.lib(rasterizer.obj) : error LNK2019: unresolved external symbol _sqrtf referenced
in function "public: void __thiscall Frog::Rasterizer::BlitRotated(int,int,float,class Frog::Surface const *)" (?BlitRotated@Rasterizer@Frog@@QAEXHHMPBV
Surface@2@@Z)
emulatorRel/alpha.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

alpha.exe - 2 error(s), 0 warning(s)


Does that mean I built PocketFrog_EMU.lib with errors or something wrong with alpha sample compilation?

I'm using evc4. lib & include pathes are set to pocketfrog folders ok.
The log says you are missing "sqrtf". I am not exactly sure why doesn't find it for the EMU. I will take a look later.
mmajidmike · 12 Aug 2004, 16:26 UTC — PocketFrog and Hekkus question ...
Hi,

I downloaded PocketFrog v0.8.1, this morning. I also downloaded v0.99.0 of Hekkus. I have managed to compile and run all the examples in the "samples/" directory (both on the workstation and on the ppc), except for the hekkus example.

The PocketFrog Hekkus example seems to use the class "Sound". I can't seem to find this in either PocketFrog or Hekkus.
Release notes for version 0.8.0 state that the Hekkus example was not tested.

Is this a known issue, or am I missing something obvious ?

This is just too much fun ...

cheers
I think the Hekkus sample is still designed for the pre-DLL version of Hekkus. It probably needs to be re-coded altogether.

-John
I believe the Hekkus object model was refactored slightly in the latest version or two... I think it was just naming changes... Take a look at the Hekkus docs, I think Sound is now hssSpeaker, or something along those lines. I was the one that wrote that Hekkus sample by the way, I can verify it works against earlier Hekkus versions (not sure which I wrote it to). I'm about 99.999% sure it works with the latest, just need to change the class names.
from the Hekkus ( http://www.shlzero.com/ ) page:

* changed classes name!
- Sound -> hssSpeaker
- Channel -> hssChannel
- Module -> hssMusic
- SoundFX -> hssSound

I think this was for version 0.99 and above
Yes, you need Hekkus. It's available here
http://www.shlzero.com/

There's a lib to use just like with PF. The latest version's syntax is different from earlier but I'm not sure what version your demo is for. It's easy to get working whatever
I really am supposed to be sanding the walls in the living room, before my wife gets home and kills me for taking a day off from work and not doing what I was supposed to be doing :)

However, I couldn't help myself...

I just compiled and test-ran the Hekkus sample against the latest version of Hekkus. This is with PF 0.7.0, but since your problems were with the Hekkus interation and not PF, this should all still be valid in 0.8.1. Here are the changes I made:

In Hekkus.h, change:

Code:

// Hekkus stuff: our Sound object, our MOD file and our WAVs
Sound m_sound;
Module m_module;
SoundFX m_sfx[4];

to:

Code:

// Hekkus stuff: our Sound object, our MOD file and our WAVs
hssSpeaker m_sound;
hssMusic m_module;
hssSound m_sfx[4];

In Hekkus.h, add this line after the includes:

Code:

#pragma comment(lib, "hss.lib")

In Hekkus.cpp, change:

Code:

// Initialize the Hekkus Sound System
m_sound.open(22050, 10, 10, true);

to:

Code:

// Initialize the Hekkus Sound System
m_sound.open(22050, 8, false, 10, 10);

In Hekkus.cpp, change:

Code:

m_sound.playMod(&m;_module);

to:

Code:

m_sound.playMusic(&m;_module);

In Hekkus.cpp, change:

Code:

m_sound.playSFX(&m;_sfx[i]);


to:
Code:

m_sound.playSound(&m;_sfx[i]);


That should do it. Be sure the Hekkus lib file and dll can be found by the compiler, and you should be all set.
Don't worry Frank, just make a lot of dust quickly & she will never know.
mmajidmike · 12 Aug 2004, 19:10 UTC — PocketFrog and Hekkus ...
Hi,

I just made the modifications suggested. It now works perfectly

Thank you. I really appreciate your effort and your fast response.

... way too much fun

cheers
Glad I could help!

Conan, you gotta see this place now... We pulled up the rug last weekend because we discovered we had a nice hardwood floor underneath. Well, at this point, we have what looks like ANTARCTICA for a floor! White spackle dust everywhere! And I only did one wall thus far, three more to go. Argh.

(The worst part is that I hermetically-sealed the archway from the living room to the kitchen because I moved all the furniture in there... Problem is, to get from the living room to the kitchen (or the downstairs bathroom), I have to go out the front door and come in the side door... I also sealed the doorways to the two upstairs bedroom, plus the bathroom up there, so it's a pain to get anywhere... The worst part is that after I sealed up the archway, I went around to the front door and realized I HADN'T UNLOCKED THE SCREEN DOOR! AARRGGHH!! In I go, tear down the drop-cloth I taped up so well, just so I could go unlock the damned door!... Ok, severely off-topic rant done :) )
Pocket Guest · 18 Mar 2005, 00:20 UTC
I've got the same error when linking under emulation:

Code:
--------------------Configuration: Plasma - Win32 (WCE emulator) Release--------------------
C:\Program Files\Microsoft eMbedded C++ 4.0\EVC\PocketFrog\PocketHAL\symbian\symbian_defs.h(11): Could not find the file w32std.h.
Compiling resources...
Compiling...
plasma.cpp
Linking...
PocketFrog_EMU.lib(rasterizer.obj) : error LNK2019: unresolved external symbol _sqrtf referenced in function "public: void __thiscall Frog::Rasterizer::BlitRotated(int,int,float,class Frog::Surface const *)" (?BlitRotated@Rasterizer@Frog@@QAEXHHMPBV
Surface@2@@Z)
emulatorRel/Plasma.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Plasma.exe - 2 error(s), 0 warning(s)
Rebuild the pf library...
Pocket Guest · 18 Mar 2005, 12:51 UTC
Oh God, I did! I've rebuild creating new configurations (debug and release for emulator) but it produces the same errors. Maybe it's problem with rebuilding pocketHAL.lib not pocketFrog?
Look at the top of rasterizer.cpp
Code:

#if defined(FROG_PC)
#include <math.h>
#else
...
#if (_WIN32_WCE < 400)
inline float sqrtf( float angle ) { return (float)sqrt( angle ); }
#endif
#endif


Probably something to do with the combination of compiler and target if I were to guess. You could always try manually including math.h, but that wouldn't be the 'right' thing to do.
Pocket Guest · 18 Mar 2005, 16:30 UTC
I deleted this sqrtf definition from the code and changed to sqrt () in the another place in rasterizer.cpp. Now it works but seems to be ugly hack. I have to check what is happening with this def (as for emulator it seems to be < wce 4.00)

Now I finally build all the examples. I'll have to write a tutorial on how to compile PF on emulator and eVC++ 4.

[/quote]
i also have the sqrtf() link problem when i run it at the 2003 ppc emulator but when i do this to rasterizer.cpp it is now gone... iam just wondering if it have any drawback.... why does it have to be in a conditional statement anyway?? what is it for??

Code:
#if defined(FROG_PC)
#include <math.h>
#else
inline float cosf( float angle ) { return (float)cos( angle ); }
inline float sinf( float angle ) { return (float)sin( angle ); }
inline float sqrtf( float angle ) { return (float)sqrt( angle ); }
#if (_WIN32_WCE < 400)
//inline float sqrtf( float angle ) { return (float)sqrt( angle ); }
#endif
#endif


as you can see i just copied the sqrtf function and i joined it with the other inline function....
Since the version _WIN32_WCE = 400 sqrtf function is intrinsic (if I am not mistaken). Therefore its announcement will turn back a mistake " error C2169: ' sqrtf ': intrinsic function, cannot be defined ", but this true only for PocketPC. For the emulator it is not actual. There can be such decision will approach?
Code:

#if defined (_X86 _)
inline float sqrtf (float angle) {return (float) sqrt (angle);}
#endif


For me works :D . But I use PocketPC2003 SDK.