I'm new at PPC development and EVC and this is probably an easy question. (I did a search for relevant topics and found some useful stuff, but did not find anything for this question) I am trying to compile the alpha sample in x86 debug mode so that I can use the emulator. The problem that I'm having is that when I do so I get compiling errors that say that PocketFrog/PocketFrog.h doesn't exist. I can fix that by putting the whole path C:\Windows CE Tools\PocketFrog\PocketFrog\PocketFrog.h, but then I have to also do it for all the #includes that are included in PocketFrog.h. I was wondering why I'm having this problem at all though. How can the compiler include those files as is when compiling for ARM, but can't when compiling for x86?
Hi,
I just started a couple of weeks ago myself and ran into similar problems.
If I remember correctly, the samples originally did not have an X86 configuration, so you probably created it manually. (If I remember incorrectly, please disregard the rest of this post).
In the project settings (or the general settings), you will see that for each configuration, there are independent directory settings (I assume you use EVC). Go to "project/settings" and go to the directories tab. Select Platform "Pocket PC" and CPU "ARM" (or whatever configuration compiled well) and check the "include files" section. Compare the listed directories with the X86 configuration that did not work and update the latter accordingly.
BTW: you might need to do something similar with the library file section. Just keep in mind that those libraries are different for the different devices (thus, the settings probably will not be exactly the same).
In the long term, you might want to add all this stuff into the general settings (tools/options) instead of a per project level. This way, you do not have to do this each and every time you create a new project...
Best regards,
Jens
Thanks for the help. This got me past the compiling stage. I went to tools->options like you said and clicked the directories tab and changed the include files to include the pocketfrog folder. It won't link yet, but I'll mess around with it some and see what happens. Thanks again.
Glad I could help.
As far as linking is concerned: PocketFrog and PocketHal
require .lib-files. Make sure that you have the according directory entries in your project settings. If that doesn't help, let me know.
Btw: I was not able to get the samples to build with EVC 4. I had to downgrade to EVC 3 to make everything work fine...
You're right about having to include the library folder in the project. So that seemed to get me further and now I'm at the point where it gives me a linking error saying that PocketFrog_EMU_Debug.lib can't be opened. So I looked in the .lib folder and didn't find that file. Looked everywhere else and couldn't find it either. Did you run into this problem at all? Thanks,
-Tyler
So I looked in the .lib folder and didn't find that file. Looked everywhere else and couldn't find it either. Did you run into this problem at all?
Hmm... It's been a while and there was a lot of trial and error to it. If I remember correctly, what worked eventually was to take the *_x86.lib-files (and their debug versions), make copies of them and rename them accordingly. I'm not quite sure, but I think that's what I did.
I hope that helps...
Jens
[/quote]
When you download PocketFrog_0_8_1 do next steps:
When unzip PocketFrog_0_8_1 file remove read-only attrib from PocketFrog directory and all subdirectories
Open PocketFrog.vcw with EVC from the make subdirectory from the PocketFrog directory
In the workspace right click on the PocketFrog classes and choose Set As Active Project
Choose Build->Configurations->PocketFrog then click Add...
From the first combo choose Win32 (WCE x86em) and from the second combo choose PocketFrog - Win32 (WCE ARM) Debug and click OK.
Click Close
Click Project->Settings
Choose from left top combo Win32(WCE x86em) Debug
Choose Library tab on the right
In the Output file name text box replace substring ARM with substring EMU
Click OK
Choose Build->Set Active Configuration and select PocketFrog - Win32(WCE x86em) Debug and click OK
Choose Build->Build PocketFrog_EMU_Debug.lib
Thats it.
Now make Blit active project.
Choose Build->Configurations->Blit then click Add... and do the same steps like for PocketFrog (but skip the library (ARM -> EMU )settings).
Just one thing:
Click Project->Settings
Choose from left top combo Win32(WCE x86em) Debug
Choose from tree Blit
Click on Link tab on the right
From the Project Options text box: remove words on the end (delete them) /MACHINE:ARM and click OK.
Don't forget to choose Build->Set Active Configuration and select Blit - Win32(WCE x86em) Debug and click OK
Then you can run the game by hitting F7 key.
When I delete "/MACHINE:ARM ", eVC shows 37 errors.
Thanks nemanja dizdarevic! I've been too busy with my work the past couple weeks to try anymore PPC stuff, but I just tried your instructions and they worked flawlessly. I have no idea how someone would know all that. You're a genius. Thanks.