[argyllcms] Re: Source code question

  • From: Graeme Gill <graeme@xxxxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Wed, 10 Sep 2014 09:44:02 +1000

Ulrich Oertel wrote:

> I think about an alternative to i1io on the basis of a DIY set
> (http://www.makeblock.cc/xy-plotter-robot-kit-v2-0/).

Looks feasible.

> Prerequisite is, of course, my ability to recompile and modify chartread 
> (Windows).

I guess you could do that, although structurally XY instruments are
intended to be implemented in the driver code, and chartread then deals
with them generically. For something like you are proposing (or the io), the
more natural way of adding that support would be as a psudo XY instrument
which is then a shim over the i1Pro driver.

> Unfortunately, in the past I only worked with Pascal (Delphi) and VB .net. In 
> my first
> attempt to recompile chartread (VS 2013 Express) I got error messages for 
> lines like
> sv &= ~inst_stat_savdrd_chart

Hmm. At least C is 5 x easier than C++ to learn, but porting to a new compile
environment is not fun, and might be an extreme test for a novice in the 

I haven't tried to compile Argyll in anything beyond VC++10, and I'm guessing
that VS 2013 Express won't install on my XP development machine without
some cunning & effort. So I could suggest that you could probably more easily
compile using MingW, but I know that is not going to be very attractive
for someone used to using Visual Studio.

> but I dont understand this "~" operator.

Binary negate or complement.

> The error message is:
> error C2676: Binärer Operator '&=': 'inst_stat_savdrd' definiert diesen 
> Operator oder eine
> Konvertierung in einen für den vordefinierten Operator geeigneten Typ nicht

The above message seems to hint at some problem with C++ changes leaking into 
compilation. Are you sure you are compiling the Argyll source as C and not C++ ?

Graeme Gill.

Other related posts: