Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-10-2007
phil++ phil++ is offline
Registered User
 
Name: Philip Kovacs
Organization: University of Pennsylvania
Project: Ice Storm Evaluation
 
Join Date: Jul 2007
Posts: 20
checksums

Section 4.20 indicates that you can include checksum support in your interfaces via code like this:
Quote:
This type can be incorporated into an application’s Slice definitions like this:

#include <Ice/SliceChecksumDict.ice>

interface MyServer {
idempotent Ice::SliceChecksumDict getSliceChecksums();
// ...
};
I don't have any .ice files in the /usr/include/Ice directory.

Are these instructions out-of-date?
Reply With Quote
  #2 (permalink)  
Old 08-10-2007
mes's Avatar
mes mes is online now
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Hi,

The file SliceChecksumDict.ice will reside in prefix/slice/Ice if you installed from a source distribution, or /usr/share/Ice-3.2.0/slice/Ice for an RPM install.

For example, when running the translator with an RPM install, you would do something like this:

$ slice2cpp -I/usr/share/Ice-3.2.0/slice MyServer.ice

Take care,
- Mark
Reply With Quote
  #3 (permalink)  
Old 08-10-2007
phil++ phil++ is offline
Registered User
 
Name: Philip Kovacs
Organization: University of Pennsylvania
Project: Ice Storm Evaluation
 
Join Date: Jul 2007
Posts: 20
Thanks. Found them just where you indicated.

Please consider adding pkg-config support with pkg-config vars to indicate where these directories are, or roll your own ice-config program to spit out this info. It would help package maintainers (i.e. people who write packages using Ice) who want to do things like rebuild source files using slice2cpp, instead of merely distributing the slice-generated files.

From the perspective of people who wish to write packages that use Ice and then distribute the source code for portable compilation, you really need these bells and whistles. As it is now, maintainers have figure out a way to discern the location of an Ice installation.

The GNU build tools and pkg-config would make it so much easy for consumers of Ice to distribute portable code. You could distribute, e.g. autoconf macros like Ice.m4 and pkg-config files like Ice.pc, so I could do things like:

AC_CHECK_ICE(3.2.0) in my autoconf configure.ac file and

pkg-config --cflags --libs Ice

to produce compilation flags, or even

pkg-config --variable=icefiles Ice

to spit out the location you mention above for compiling .ice files portably.

Phil

Last edited by phil++ : 08-10-2007 at 08:18 PM.
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


All times are GMT -4. The time now is 09:39 AM.


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