Okay, I've built the viewer and made an installer for it for Windows if
anyone wants to try it out.
I've got it available for download at
http://bill.nalens.com/programs/Setup-PluckerViewer.exe

You will need to download (and install first) the GTK+ 2.0 runtime files
available on my site too.

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.

Let me know you think.

>Huh?  I don't understand what you mean here.  As far as I know, the
>unpluck library is completely ignorant of where "plucker" (the GTK
>viewer) is.  Or do you mean the config part of libunpluck, where it
>knows about PLUCKER_CONFIG_DIR?  On UNIX platforms, this variable in
>the Makefile is configured by the user automagically from the
>Makefile.in, using the configure variable "sysconfdir".  Something
>similar would have to be done for Windows.  I'd thought I put in
>enough indirection to make things easy for both Unix and Windows, but
>someone has to work out how to produce the Windows Makefile.

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?  What would it produce
for these defines?  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.  I do have access to all the regular
unix build tools through mingw and cygwin so I could set it up that way.
I'm just not very familiar with make files.

>I don't think so.  Why would that be the case?
>I see that sys_config_file_name and user_config_file_name are used in
unpluck, so I thought the >files might be needed.

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.



Bill



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

Reply via email to