WinCe tons off "Could not find the file xyz"

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Debster
Knows some wx things
Knows some wx things
Posts: 32
Joined: Sat Aug 20, 2005 6:01 pm

WinCe tons off "Could not find the file xyz"

Post by Debster » Sat Aug 20, 2005 6:08 pm

Hi,

I have just started playing around with wxWidget 2.6.1 and Microsoft Visual Studio eVC 4.0. I build a simple app for Pocket Windows 2003 and i get always a lot of "Could not find the file xyz" from the compiler, so i wondered if it might be a good idea to define a new platform like __WXMSWCE__, so you can better deal with all the plattform specific issues for WinCE. Looking forward for your comments.

thanks

KevinHock
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 236
Joined: Sat Sep 04, 2004 1:49 pm
Location: Ohio, USA
Contact:

Post by KevinHock » Sat Aug 20, 2005 6:15 pm

How did you build wxWidgets for Pocket PC? Did you use the vcw workspace provided? And the sample's vcw? I did this very recently and it worked without a hitch.

As for the platform, there is already __WXWINCE__ which represents Pocket PC.

Debster
Knows some wx things
Knows some wx things
Posts: 32
Joined: Sat Aug 20, 2005 6:01 pm

Post by Debster » Sat Aug 20, 2005 6:23 pm

I have build the minimal example and my own simple test app. The Messages i get are like:

wxWidgets-2.6.1\include\wx\wxchar.h(107): Could not find the file wcstr.h.
wxWidgets-2.6.1\include\wx\string.h(47): Could not find the file strings.h.
wxWidgets-2.6.1\include\wx\string.h(51): Could not find the file StringMgr.h.
wxWidgets-2.6.1\include\wx\log.h(579): Could not find the file wx/cocoa/log.h.

Don't get me wrong. It works. If there is already a define for that plattform it maybe missing some #if define statements ?

KevinHock
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 236
Joined: Sat Sep 04, 2004 1:49 pm
Location: Ohio, USA
Contact:

Post by KevinHock » Sat Aug 20, 2005 7:37 pm

Oh! Those. That's a "feature" of eVC. It tries to find all headers, even if they're inside of #if blocks that don't apply, like "#ifdef __WXCOCOA__". I don't think there are any known workarounds. :( FWIW, Visual Studio 2005 Beta 2 doesn't have this problem; VS2005 will replace eVC4 (i.e. there will not be an eVC 5).

ad454
In need of some credit
In need of some credit
Posts: 2
Joined: Thu Aug 25, 2005 9:00 am
Location: Toronto

Post by ad454 » Fri Aug 26, 2005 3:24 am

Hi KevinHock:

As someone with experience building <b>wxWince 1.61</b> apps, I would greatly appreciate it, if you could please tell me what command line options you use to compile and link the "<b>minimal.exe</b>" wx sample application for PocketPC.

These are the command line options that I use:
###############################################
<b>clarm.exe /DWIN32 /DWINCE /DARM /D_ARM_ /DUNICODE /D_UNICODE /DUNDER_CE=300 /DWIN32_PLATFORM_UNKNOWN /D_WIN32_WCE=300 /D__WXWINCE__ /DNOPCH /nologo /W3 /O2 /J /Ob2 /MC /Fominimal.obj minimal.cpp</b>

<b>link.exe /nologo /subsystem:windowsce /machine:arm /out:minimal.exe minimal.obj coredll.lib ole32.lib commctrl.lib winsock.lib oleaut32.lib uuid.lib wininet.lib wxwince26.lib wxjpeg.lib wxpng.lib wxzlib.lib /incremental:no</b>
###############################################

But something must be wrong since the resulting frames are broken, as you can see here in this screen capture for the "<b>minimal.exe</b>" app.

<img src="http://www1.engine.ca:1081/alicia/wx/minimal.jpg">

Thanks in advance.
Alicia.

User avatar
ABX
Can't get richer than this
Can't get richer than this
Posts: 810
Joined: Mon Sep 06, 2004 1:43 pm
Location: Poznan, Poland
Contact:

Post by ABX » Fri Aug 26, 2005 6:10 am

KevinHock wrote:As for the platform, there is already __WXWINCE__ which represents Pocket PC.
That's not quite true. __WXWINCE__ represents WinCE in general, while different SDKs have own definitions. See "Hardware type" section in http://www.wxwidgets.org/manuals/2.6.1/ ... dwareconst

ABX
CVS Head, 2.8.X
wxMSW, wxWinCE, wxPalmOS, wxOS2, wxMGL, bakefile
gcc 3.2.3, bcc 5.51, dmc 8.48, ow 1.6, vc 7.1, evc 3/4, pods 1.2

User avatar
ABX
Can't get richer than this
Can't get richer than this
Posts: 810
Joined: Mon Sep 06, 2004 1:43 pm
Location: Poznan, Poland
Contact:

Post by ABX » Fri Aug 26, 2005 6:34 am

ad454 wrote:As someone with experience building <b>wxWince 1.61</b> apps
Just a minor note here. It is 2.6.1! Not 2.61
ad454 wrote:I would greatly appreciate it, if you could please tell me what command line options you use to compile and link the "<b>minimal.exe</b>" wx sample application for PocketPC.
Out of curiosity, why don't you check it yourself? IIRC eVC project files were included in wxMSW distribution so you have everything to verify this.
ad454 wrote:These are the command line options that I use:
###############################################
<b>clarm.exe /DWIN32 /DWINCE /DARM /D_ARM_ /DUNICODE /D_UNICODE /DUNDER_CE=300 /DWIN32_PLATFORM_UNKNOWN /D_WIN32_WCE=300 /D__WXWINCE__ /DNOPCH /nologo /W3 /O2 /J /Ob2 /MC /Fominimal.obj minimal.cpp</b>

<b>link.exe /nologo /subsystem:windowsce /machine:arm /out:minimal.exe minimal.obj coredll.lib ole32.lib commctrl.lib winsock.lib oleaut32.lib uuid.lib wininet.lib wxwince26.lib wxjpeg.lib wxpng.lib wxzlib.lib /incremental:no</b>
###############################################
You seem to miss that we do not build wxWinCE samples from command line. Our build system use project files automatically generated by bakefiles. If you use GNUmake (as you stated in wx-users) you are on your own way. But at least you have project files pregenerated to compare settings. IIRC you can tell IDE to generate makefiles too but I never explored this feature myself because IDE worked fine (except annoying warning mentioned earlier in this thread).
ad454 wrote: But something must be wrong since the resulting frames are broken, as you can see here in this screen capture for the "<b>minimal.exe</b>" app.

<img src="http://www1.engine.ca:1081/alicia/wx/minimal.jpg">
BTW: are resources included? Resource file is obligatory on SmartphoneCE because it had initial menubar included. I think similar requirement relates to PPC. I wonder why your screenshot contains fame window at the bottom. I don't have fresh screenshot at this moment but it should look more like:
Image

BTW: Are you sure you build against correct SDK? Your command line mentioned CE3, are you using eVC3 compiler? With PPC SDK 2002?

ABX
CVS Head, 2.8.X
wxMSW, wxWinCE, wxPalmOS, wxOS2, wxMGL, bakefile
gcc 3.2.3, bcc 5.51, dmc 8.48, ow 1.6, vc 7.1, evc 3/4, pods 1.2

Post Reply