On Wed, Jul 11, 2012 at 12:34 PM, Jeffrey Ray <
jeffrey...@gmail.com> wrote:
> Hi I am trying to install Gtk2::SourceView2 on a Windows 7, 64 bit operating
> system, I've gotten pretty far but am experiencing issues with perl crashing
> without much information when trying to run the test suite. I was hoping
> that you might be able to provide some insight into the issue.
>
> I installed the bloatware package of camelbox.
>
> I downloaded the binaries and developer files for gtksourceview-2.10.0 (from
>
http://ftp.gnome.org/pub/gnome/binaries/win32/gtksourceview/2.10/ ) and
> placed them inside my camelbox directory.
>
> (Upon writing this email, I also found binaries located at
>
http://ftp.gnome.org/pub/gnome/binaries/win64/, should I be using these
> instead of the win32 binaries?)
No, Camelbox is compiled against 32-bit Windows libraries, 64-bit
libraries would not be used if they were installed.
> Upon running perl
makefile.pl the first time, I get an error about
> missing libraries. I have updated the EXTRALIBS and LDLOADLIBS in the
> Makefile to include the necessary libs. (edited Makefile is attached)
> Upon running dmake test, I get an error dialog that pops up with this
> text:
>
> The program can’t start because zlib1.dll is missing from your computer.
> Try reinstalling the program to fix this problem.
1) I don't even get that far, I get undefined references to various
gperl_* functions.
2) zlib1.dll is already in C:\camelbox\bin, it was installed from the
gtk-support-bin lzma file. Check to see that
C:\camelbox\share\pkgslists\gtk-support-bin.txt exists on your system.
If it does, then you have a %PATH% issue that needs to be fixed so
that dmake can find the installed zlib. If it does not exist, then
something went wrong with your install.
> Next, after running dmake test again, I get this error:
>
> The program can’t start because libxml2-2.dll is missing from your computer.
> Try reinstalling the program to fix this problem.
>
>
>
> I found a binary (attached) and added libxml2-2.dll to c:\camelbox\bin
That doesn't sound right, libxml2.dll is already in C:\camelbox\bin.
> Next, after running dmake test again, I get this error:
>
> The procedure entry point g_malloc0_n could not be located in the dynamic
> link library libglib-2.0-0.dll.
>
>
>
> I assumed this means that I need a later version, and downloaded the
> binaries and dev packages for glib_2.28.8-1 from
>
http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28/ and extracted them
> to the camelbox folder.
>
> (One question I have is: Does this mean I need to re-install the Glib perl
> bindings now that I have newer version of Glib installed? The examples are
> still working fine, so I wasn’t sure about this. I did try after receiving
> the errors outline below, but encountered problems. I can try again and
> describe the issue if it is necessary to do so. )
This is correct, once you install new glib C libraries, you basically
need to recompile at a minimum the Perl Glib module, but I would
recompile the Perl Glib/Gtk2/Pango modules to be sure. This is most
likely the cause of your crashes, mismatches in library versions
between the C libraries and Perl XS files.
I personally think of the glib/gtk+ libraries (and their dependencies)
as a set, i.e. once you update one piece, you need to update
everything or you will have issues with missing library functions and
whatnot.
For what it's worth, if you really want to use this module, I would
compile all of the Perl modules required for Gtk2::SourceView2 from
scratch using a newer version of Strawberry, say 5.16 if it's out,
plus the latest GTK C library zipfiles. This way, you'll know for
sure that it's not an issue with library versions. In addition,
before starting, I would clean out your PATH environment variable, it
sounds like you have multiple copies of GTK libraries on your system,
which will only make your life miserable as you're trying to
troubleshoot problems.
I would not expect an updated Camelbox any time soon, I don't really
have the time right now to put something together.
My notes from building Gtk2-Perl are here:
http://code.google.com/p/camelbox/wiki/BuildCoreGtk
Thanks,
Brian