Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-06-2008
thonellp thonellp is offline
Registered User
 
Name: Peter Thonell
Organization: BatSoft
Project: Organiser for mobile devices
 
Join Date: Sep 2008
Posts: 6
IceE for Windows Mobile

I have made an application in C# for Windows Mobile, and wish to use IceE.

The plan is to generate an IceE library in C++ and build it into a .dll that my existing C# can call.

The problem is that I'm not proficient in C++ (using Visual Studio 2005). I've tried, I really have. But I'm struggling with compiling and linking. Would anyone like to run me through how to get the Printer example to compile? Once I get that working, I'm confident that I can work out the rest myself.
Reply With Quote
  #2 (permalink)  
Old 09-06-2008
dwayne's Avatar
dwayne dwayne is offline
ZeroC Staff
 
Name: Dwayne Boone
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Jan 2005
Location: St. John's, Newfoundland
Posts: 215
Have you looked at the demos that come with Ice-E? They can compile with either nmake or using project files, whichever you prefer to use. The simplest example is demo/IceE/minimal.

Dwayne
Reply With Quote
  #3 (permalink)  
Old 09-07-2008
thonellp thonellp is offline
Registered User
 
Name: Peter Thonell
Organization: BatSoft
Project: Organiser for mobile devices
 
Join Date: Sep 2008
Posts: 6
Thanks Wayne. Getting closer...

When trying to compile minimalC and minimalS, VS could not find:
IceE/BuiltinSequences.h (in file Initialize.h)
IceE/Identity.h (in file Proxy.h)
Reply With Quote
  #4 (permalink)  
Old 09-07-2008
dwayne's Avatar
dwayne dwayne is offline
ZeroC Staff
 
Name: Dwayne Boone
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Jan 2005
Location: St. John's, Newfoundland
Posts: 215
Those files are generated by the Slice to Ice-E compiler when you build the core dll. Did you build the core dll before you tried to build the demo? You should follow the instructions in INSTALL.WINCE in order to build Ice-E for Windows Mobile.
Reply With Quote
  #5 (permalink)  
Old 09-08-2008
thonellp thonellp is offline
Registered User
 
Name: Peter Thonell
Organization: BatSoft
Project: Organiser for mobile devices
 
Join Date: Sep 2008
Posts: 6
Aha! I didn't spot INSTALL.WINCE. Always good to read the Readme file.

I've now followed the instructions carefully and tried to build. The build fails with:
The system cannot find the path specified.
NMAKE : fatal error U1077: '"\VC\ce\bin\x86_arm\cl.exe' : return code '0x1'

The make files are too cryptic for me to figure out what variable I must set the VS path to.
(The path in the error refers to subdirectories inside the VS home dir.)

What system variable is the make file expecting will point to VS home?

(Perhaps because I chose C# to be the main production envinment for VS, the VS installation did not set the system variables the same as it would've if I'd chosen C++ as the main production envinment. Now I'm just hypothesising.)
Reply With Quote
  #6 (permalink)  
Old 09-08-2008
dwayne's Avatar
dwayne dwayne is offline
ZeroC Staff
 
Name: Dwayne Boone
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Jan 2005
Location: St. John's, Newfoundland
Posts: 215
The environment variable that appears not to be set is VSINSTALLDIR. Are you running nmake from a Visual Studio 2005 Command Prompt or just a regular Windows Command Prompt. When you use the VS2005 Command Prompt, this variable should be set. To run the VS2005 prompt you use "Programs->Microsoft Visual Studio 2005->Visual Studio Tools->Visual Studio 2005 Command Prompt".

Dwayne
Reply With Quote
  #7 (permalink)  
Old 09-08-2008
thonellp thonellp is offline
Registered User
 
Name: Peter Thonell
Organization: BatSoft
Project: Organiser for mobile devices
 
Join Date: Sep 2008
Posts: 6
Got it to work! Thank you.

So, the rumours that C++ takes a long time to compile are true.

Hope it'll be fairly straight forward making a VS C++ project compilable.

Note: In config\Make.rules.mak the EMBEDDED_OS property does not work with WindowsMobile6. (I got it to work using WindowsMobile5.0.)

Last edited by thonellp : 09-08-2008 at 01:35 PM.
Reply With Quote
  #8 (permalink)  
Old 09-08-2008
dwayne's Avatar
dwayne dwayne is offline
ZeroC Staff
 
Name: Dwayne Boone
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Jan 2005
Location: St. John's, Newfoundland
Posts: 215
Quote:
Originally Posted by thonellp View Post
Note: In config\Make.rules.mak the EMBEDDED_OS property does not work with WindowsMobile6. (I got it to work using WindowsMobile5.0.)
What failed with WindowsMobile6?
Reply With Quote
  #9 (permalink)  
Old 09-09-2008
thonellp thonellp is offline
Registered User
 
Name: Peter Thonell
Organization: BatSoft
Project: Organiser for mobile devices
 
Join Date: Sep 2008
Posts: 6
Building very soon hits this:

C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\ctype.h(175) : error C2448
: '_CRT_OBSOLETE' : function-style initializer appears to be a function definiti
on
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\basetsd.h(345)
: error C2065: 'ULONG_PTR' : undeclared identifier
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\basetsd.h(345)
: error C2146: syntax error : missing ')' before identifier 'p'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\basetsd.h(345)
: error C2059: syntax error : ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\basetsd.h(354)
: error C2144: syntax error : 'unsigned __int64' should be preceded by ')'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\basetsd.h(354)
: error C2059: syntax error : ')'
etc.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
A mobile device application by using Ice-E jli125 Help Center 3 03-09-2007 10:34 AM
getifaddrs() does not supported by glibc, IceE fails to make app in /IceE/test syseeker Help Center 2 07-02-2006 10:27 PM
IceE Mobile Phone davidcr1983 Help Center 1 02-15-2006 01:54 PM
About Mobile version level Help Center 4 07-12-2005 07:40 AM
When or which version Ice will support mobile? Mjollnir Help Center 3 12-07-2004 04:10 PM


All times are GMT -4. The time now is 11:33 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.