> I wonder if this would be better written in wxWindows so it can integrate
> into the Plucker Desktop.  Then you could view the plucked file right after
> it was created.

You still can.  There's nothing stopping the desktop from popping up
the document in the viewer after it's plucked the home URL.

The text widget in GTK+ seemed much more capable.

> Okay, when I look at Makefile.in I see
> CPPFLAGS        = @CPPFLAGS@ -DPLUCKER_VERSION="@VERSION@"
> -DPLUCKER_CONFIG_DIR="@sysconfdir@" -DSYS_CONFIG_FILE_NAME="pluckerrc"
> -DUSER_CONFIG_FILE_NAME=".pluckerrc" -DFILE_SEPARATOR_CHAR_S="/"
> -DOS_SECTION_NAME="posix"
> 
> So, I just set each define when I compiled with VC.  I'm not sure if I got
> them right though.  What do you run on Makefile.in?

The configure script in the top-level directory takes Makefile.in and
replaces configure variables like @sysconfdir@ with the appropriate
value.

> What would it produce for these defines?

On Unix, it would typically be /usr/local/lib, or perhaps
/usr/local/share/plucker/.  On Windows, it would be whatever path you
keep the system-wide .ini file in.

> I'm assuming that if you have plucker stuff in a
> different spot than me, I couldn't just take a copy of your binary and use
> it on my system (assuming same platforms) since some things seem to be hard
> coded in (like sysconfdir).  I'll try building this again with some
> different options for these values.

The installation process on Windows should determine the correct value
for sysconfdir (I don't really have a clue as to what that would be on
Windows), and create a Makefile for the tools/unpluck directory which
has the right value substituted in.

> I think I found a bug (at least on Windows) in unpluck.c where we are
> opening the file in function plkr_OpenDBFile.  I need this change:
>   fp = open(filename, O_RDONLY);
> to
>   fp = open(filename, O_RDONLY | O_BINARY);
> 
> to make it work properly on Windows.  It seems to default to text mode and
> is trying to translate the data read in.

Ah, yes, that Windows gotcha.  OK, I'll fold that in as a patch.

Wish I had a Windows machine to test your viewer distribution on!

Bill
_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev

Reply via email to