Camelbox,Active Perl integration problem..

63 views
Skip to first unread message

SrS

unread,
Jun 28, 2009, 10:59:28 PM6/28/09
to camelbox
Hello....

I have installed camelbox with out installing Perl 5.10 base package
using "Blotware" install type.I already have a Active Perl 5.10
installed in my system.My Perl installation is in F:\Perl\ directory.
Aftre installing camelbox,i checked the FAQ troublw shootting
samples..like Perl_Swiss_Army_Knife.pl..It works..But when i go for "C:
\Camelbox\examples\gyroscope.pl" it produce an error like below

Can't load 'F:/Perl/site/lib/auto/Glib/Glib.dll' for module Glib:
load_file:The specified procedure could not be found at F:/Perl/lib/
DynaLoader.pm....

I create a sample glade file and compiled it in Komodo IDE,but the
same error occurs...GLIB...
So i cant work in GTK..glade..etc..

What can i do to solve the problem...I am new to camelbox..i just
installed it..i dont know if there any configuration settings,or any
post installation procedure to run perl and camel box...

So pls help me to solve the problem....

Regards

Sreejith


spicyjack

unread,
Jun 29, 2009, 12:47:11 AM6/29/09
to camelbox


On Jun 28, 7:59 pm, SrS <srssreej...@gmail.com> wrote:
> Hello....
>
> I have installed camelbox with out installing Perl 5.10 base package
> using "Blotware" install type.I already have a Active Perl 5.10
> installed in my system.My Perl installation is in F:\Perl\ directory.
> Aftre installing camelbox,i checked the FAQ troublw shootting
> samples..like Perl_Swiss_Army_Knife.pl..It works..But when i go for "C:
> \Camelbox\examples\gyroscope.pl" it produce an error like below
>
> Can't load 'F:/Perl/site/lib/auto/Glib/Glib.dll' for module Glib:
> load_file:The specified procedure could not be found at F:/Perl/lib/
> DynaLoader.pm....

Camelbox is not meant to be used with ActiveState. Use either one
Perl or the other; the only things that you can reuse in ActiveState
from Camelbox without a lot of effort on your part would be the C
libraries (*.dll files) for things like GTK/PostgreSQL/MySQL/etc.

Since ActiveState's perl.exe doesn't know anything about Camelbox
(which would include the GTK libraries that come with Camelbox), this
is why you're seeing the error above.

The only way to run scripts using Camelbox when ActiveState is
installed is to write a wrapper batch file which sets up the
environment for Camelbox, including calling the Perl binary from
Camelbox; this is because ActiveState associates the *.pl extension
with it's Perl. Or you can uninstall ActiveState. Your choice.

Thanks,

Brian

SrS

unread,
Jul 1, 2009, 1:55:16 AM7/1/09
to camelbox
Hello...Brian

Thnk u for ur support and help..

I uninstalled Active Perl 5 and installed Camel Box's buit in Perl 5..
Now i checked the Gyroscope.pl in the camelbox's examples folder..Its
working smoothly..
After that i checked the Glade fiels in camelbox\examples\Gtk2-GladeXML
\..happy now..it also working nice...But There is a problem while
opening my own .glade file in Komodo IDE..The error description is
like below...

(perl.exe:980): libglade-WARNING **: Expected <glade-interface>. Got
<interface>.
(perl.exe:980): libglade-WARNING **: did not finish in PARSER_FINISH
state

If we run this same pl file in command prompt then, it shows "could
not find the .glade file..."
What can i do to solve this problem...Im using Glade3...

Regards..
Sreejith

spicyjack

unread,
Jul 1, 2009, 1:55:58 PM7/1/09
to camelbox


On Jun 30, 10:55 pm, SrS <srssreej...@gmail.com> wrote:
> After that i checked the Glade fiels in camelbox\examples\Gtk2-GladeXML
> \..happy now..it also working nice...But There is a problem while
> opening my own .glade file in Komodo IDE..The error description is
> like below...
>
> (perl.exe:980): libglade-WARNING **: Expected <glade-interface>.  Got
> <interface>.
> (perl.exe:980): libglade-WARNING **: did not finish in PARSER_FINISH
> state

I know nothing about the Komodo IDE. All I can help you with is
problems with Camelbox; more on this in a second...

> If we run this same pl file in command prompt then, it shows "could
> not find the .glade file..."
> What can i do to solve this problem...Im using Glade3...

This will be hard for us to diagnose without seeing your source code,
no?

Can you paste the sourcecode to someplace like pastebin.com so we can
take a look?

Thanks,

Brian

Sreejith S

unread,
Jul 3, 2009, 10:28:03 PM7/3/09
to came...@googlegroups.com
Hello...

Im using Glade3.Now the only problem is i canr run the GUI in Camelbox
Perl which i made using Glade3.I just run the program in command
promt..then also it produces the error....

Libglade warning...could not find the glade file...so..All other built
in Gtk2-Glade examples in camelbox can smoothly work..but a GUI of my
own never...Is there any problem in using Glade3 with camelbox..??Or
is there any settings needed befor we run the perl script to open a
glade3 file??

Ok..sure im pasting my perl script in perlbin.com..its just for
opening a glade file...pls check it out...

Thanks..
Sreejith

spicyjack

unread,
Jul 3, 2009, 11:28:29 PM7/3/09
to camelbox


On Jul 3, 7:28 pm, Sreejith S <srssreej...@gmail.com> wrote:
> Ok..sure im pasting my perl script in perlbin.com..its just for
> opening a glade file...pls check it out...

Sorry, if you sent a link to source code, it did not come through.

We won't be able to help you until we see the source of your program,
and try to run it ourselves.

Thanks,

Brian

SrS

unread,
Jul 4, 2009, 12:11:47 AM7/4/09
to camelbox
Hi...Brian..

This is the link...http://pastebin.com/m796d5cc7
pls chk it out...

SrS

unread,
Jul 4, 2009, 2:19:00 AM7/4/09
to camelbox
Hi...Brian..

Im sory..one thing i need to remember u befor get in to my problem..Im
using Glade3.6.1,which is already installed.Im not using C:\camelbox
\bin\Glade3.exe...Is that possible??Means..Glade software is
externally installed and integrate with Camelbox..i suppose this may b
the problem..Any way ur valuable help is needed...

Regards..
Sreejith

On Jul 4, 8:28 am, spicyjack <elspicyj...@gmail.com> wrote:

Brian Manning

unread,
Jul 4, 2009, 3:20:45 AM7/4/09
to came...@googlegroups.com
On Fri, Jul 3, 2009 at 11:19 PM, SrS<srssr...@gmail.com> wrote:
>
> Hi...Brian..
>
> Im sory..one thing i need to remember u befor get in to my problem..Im
> using Glade3.6.1,which is already installed.Im not using C:\camelbox
> \bin\Glade3.exe...Is that possible??Means..Glade software is
> externally installed and integrate with Camelbox..i suppose this may b
> the problem..Any way ur valuable help is needed...

It doesn't matter what version of Glade you use, as long as it
generates valid Glade XML for the glade library versions that come
with Camelbox. If you're unsure as to what version of the Glade
libraries comes with Camelbox, you can check the _versions.txt
document in your Camelbox distribution at
"C:\camelbox\share\pkglists\_version_list.txt".

I was able to get your script running after I modified your
'Sample.glade' file. Your Glade XML does not set the 'visible'
property for the GtkWindow 'main'. You might want to set this
property when you're using the Glade editor, no matter which version
of the editor you are using. You can see my changes in [1].

I suggest running and then examining the examples that come with
Camelbox if you run into problems in the future. The reasons I make
this suggestion are...

1) If you can run the example, you know Camelbox (and by extension
Gtk2::GladeXML) is working
2) You can use the examples you just verified as working as a template
for your scripts, since you know the examples are working for you.
This is how I figured out that you were not setting the 'visible'
property for the 'main' window, I used the examples to see what
properties you were missing where in your Sample.glade file.

I was not able to duplicate your original error about interface/glade-interface.

Thanks,

Brian

[1] http://pastebin.com/ma0cea11

SrS

unread,
Jul 4, 2009, 7:19:45 AM7/4/09
to camelbox
Hi...Brian..
Thank u very much...yea as u said thats the real problem.Now its
working smoothly...I am very new to Perl and Gtk/Glade concept.So need
to start from the beginning..Thanks for ur support..I do expect ur
support for my project...

Regards..
Sreejith


On Jul 4, 12:20 pm, Brian Manning <elspicyj...@gmail.com> wrote:

Brian Manning

unread,
Jul 4, 2009, 2:48:31 PM7/4/09
to came...@googlegroups.com
On Sat, Jul 4, 2009 at 4:19 AM, SrS<srssr...@gmail.com> wrote:
> Thank u very much...yea as u said thats the real problem.Now its
> working smoothly...I am very new to Perl and Gtk/Glade concept.So need
> to start from the beginning..Thanks for ur support..I do expect ur
> support for my project...

Your problems were with using Gtk2::GladeXML, Camelbox was not the
issue. You might find better support for Gtk2-Perl issues on the
gtk2-perl mailing list [1]. That list is certainly read more often by
more people.

Thanks,

Brian

[1] http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Steve

unread,
Aug 26, 2009, 1:15:20 PM8/26/09
to camelbox
On Jun 28, 10:59 pm, SrS <srssreej...@gmail.com> wrote:
> Hello....
>
> I have installed camelbox with out installing Perl 5.10 base package
> using "Blotware" install type.I already have a Active Perl 5.10
> installed in my system.My Perl installation is in F:\Perl\ directory.
> Aftre installing camelbox,i checked the FAQ troublw shootting
> samples..like Perl_Swiss_Army_Knife.pl..It works..But when i go for "C:
> \Camelbox\examples\gyroscope.pl" it produce an error like below
>
> Can't load 'F:/Perl/site/lib/auto/Glib/Glib.dll' for module Glib:
> load_file:The specified procedure could not be found at F:/Perl/lib/
> DynaLoader.pm....

I thought I was having the same problem because I had the same
situation: ActiveState 5.10 installed. So I uninstalled both
ActiveState and Camelbox, then reinstalled Camelbox from scratch. But
I'm still getting the same error.

If I run "perl C:\camelbox\examples\gyroscope.pl" from a Command
Prompt window I get

Can't load 'C:/camelbox/site/lib/auto/Glib/Glib.dll' for module Glib:
load_file: The specified procedure could not be found at C:/camelbox/
lib/DynaLoader.pm line 203. at gyroscope.pl line 16.

In addition, I get an error popup which says:

Entry Point Not Found
The procedure entry point g_ascii_strtoll could not be located in the
dynamic link library libglib-2.0.0.dll.


Here are the line references:

gyroscope.pl line 16: use Glib qw(TRUE FALSE);

Dynaloader.pm line 203: my $libref = dl_load_file($file, $module-
>dl_load_flags) or croak("Can't load '$file' for module $module:
".dl_error());

Any ideas??

Brian Manning

unread,
Aug 26, 2009, 3:41:49 PM8/26/09
to camelbox
On Aug 26, 10:15 am, Steve <sma...@brooklynrowhouse.com> wrote:
> > Can't load 'F:/Perl/site/lib/auto/Glib/Glib.dll' for module Glib:
> > load_file:The specified procedure could not be found at F:/Perl/lib/
> > DynaLoader.pm....
>
> I thought I was having the same problem because I had the same
> situation: ActiveState 5.10 installed.  So I uninstalled both
> ActiveState and Camelbox, then reinstalled Camelbox from scratch.  But
> I'm still getting the same error.
>
> If I run "perl C:\camelbox\examples\gyroscope.pl" from a Command
> Prompt window I get
>
> Can't load 'C:/camelbox/site/lib/auto/Glib/Glib.dll' for module Glib:
> load_file: The specified procedure could not be found at C:/camelbox/
> lib/DynaLoader.pm line 203. at gyroscope.pl line 16.
>
> In addition, I get an error popup which says:
>
> Entry Point Not Found
> The procedure entry point g_ascii_strtoll could not be located in the
> dynamic link library libglib-2.0.0.dll.

> Any ideas??

Sure. Have you read the FAQ [1] lately? Most likely, you're having
the problem described under the section labeled "Check the support
libraries (Gtk/Glib/Pango/Cairo)".

Can you read that section please and see if it fixes your issue?

You can get more info on the particulars of why people have %PATH%
issues in issue #4 in the Issue tracker [2]. I just added the bit
about other programs that use GTK and friends on Windows to the FAQ.

Thanks,

Brian
[1] http://code.google.com/p/camelbox/wiki/FAQ
[2] http://code.google.com/p/camelbox/issues/detail?id=4

Steve

unread,
Aug 26, 2009, 3:52:29 PM8/26/09
to camelbox
I found the fix. In my PATH there was an old environment variable for
QTK. I got rid of it and gyroscope.pl worked.
Reply all
Reply to author
Forward
0 new messages