Problem with FXJPGImage on Ubuntu

View: New views
8 Messages — Rating Filter:   Alert me  

Problem with FXJPGImage on Ubuntu

by julien castelain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I installed FXRuby and fox on Ubuntu 8.04 started reading the documentation online and managed to run most of the example applications. I've also started reading the book and when I try to use the FXJPGImage class, it doesn't display images in the application.

The same code works without a problem on windows, so I wonder if I didn't forget to install something during the setup process. Has anyone faced this problem?

Thanks,



_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

Re: Problem with FXJPGImage on Ubuntu

by Joel VanderWerf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Julien Castelain wrote:

> Hi all,
>
> I installed FXRuby and fox on Ubuntu 8.04 started reading the
> documentation online and managed to run most of the example
> applications. I've also started reading the book and when I try to use
> the FXJPGImage class, it doesn't display images in the application.
>
> The same code works without a problem on windows, so I wonder if I
> didn't forget to install something during the setup process. Has anyone
> faced this problem?

just a guess... is the jpeg devel. package installed? (libjpeg62-dev on
my system).

--
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

Re: Problem with FXJPGImage on Ubuntu

by Lyle Johnson-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jun 23, 2008 at 3:53 PM, Julien Castelain <jcastelain@...> wrote:

> I installed FXRuby and fox on Ubuntu 8.04 started reading the documentation
> online and managed to run most of the example applications. I've also
> started reading the book and when I try to use the FXJPGImage class, it
> doesn't display images in the application.
>
> The same code works without a problem on windows, so I wonder if I didn't
> forget to install something during the setup process. Has anyone faced this
> problem?

This probably indicates that your FOX library wasn't built with JPEG
support. Did you install FOX from a package, or did you compile it
yourself?
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

Re: Problem with FXJPGImage on Ubuntu

by julien castelain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Lyle,

I'm compiling it myself, and you're right, I think I missed something when I built it, once again I should have read a bit more before complaining :)
So, if I understand what I'm doing, when I  ./configure I noticed  this

checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no

I downloaded this http://www.fox-toolkit.org/ftp/jpegsrc.v6b.tar.gz from the fox toolkit site, but I supposed that it's not been correctly installed. How can I fix this

Thanks



On Mon, Jun 23, 2008 at 11:38 PM, Lyle Johnson <lyle@...> wrote:
On Mon, Jun 23, 2008 at 3:53 PM, Julien Castelain <jcastelain@...> wrote:

> I installed FXRuby and fox on Ubuntu 8.04 started reading the documentation
> online and managed to run most of the example applications. I've also
> started reading the book and when I try to use the FXJPGImage class, it
> doesn't display images in the application.
>
> The same code works without a problem on windows, so I wonder if I didn't
> forget to install something during the setup process. Has anyone faced this
> problem?

This probably indicates that your FOX library wasn't built with JPEG
support. Did you install FOX from a package, or did you compile it
yourself?
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users


_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

Re: Problem with FXJPGImage on Ubuntu

by Jonathan Stott-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Have you tried just installing them from the repositories hardy
offers?  It should pull in all the deps.

sudo aptitude install libfox libfox-dev

I don't have hardy so I can't give the exact method names, but that
worked for me on Gutsy.  You may need to enable the universe
repository.

Regards,
Jon
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

Re: Problem with FXJPGImage on Ubuntu

by julien castelain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jon,

Perfect,

Thanks you all for the fast help,

Julien

On Tue, Jun 24, 2008 at 12:06 AM, Jonathan Stott <jonathan.stott@...> wrote:
Have you tried just installing them from the repositories hardy
offers?  It should pull in all the deps.

sudo aptitude install libfox libfox-dev

I don't have hardy so I can't give the exact method names, but that
worked for me on Gutsy.  You may need to enable the universe
repository.

Regards,
Jon
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users


_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

Re: Problem with FXJPGImage on Ubuntu

by Jeroen van der Zijp :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Monday 23 June 2008, Julien Castelain wrote:

> Hi Lyle,
>
> I'm compiling it myself, and you're right, I think I missed something when I
> built it, once again I should have read a bit more before complaining :)
> So, if I understand what I'm doing, when I  ./configure I noticed  this
>
> checking jpeglib.h usability... no
> checking jpeglib.h presence... no
> checking for jpeglib.h... no
>
> I downloaded this http://www.fox-toolkit.org/ftp/jpegsrc.v6b.tar.gz from the
> fox toolkit site, but I supposed that it's not been correctly installed. How
> can I fix this

On Linux systems there's hardly ever a need to install jpeg, tiff, or png (etc) support
from source.  Most distros have ready-made packages for these.

On Ubuntu, its likely all you need to do is something like:

        apt-get libjpeg-devel libjpeg

or something like that...


                - Jeroen

       
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

Re: Problem with FXJPGImage on Ubuntu

by julien castelain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Joel,

No libjpeg62-dev wasn't installed. However I just installed with aptidude" and everything works fine now, so it looks like I am ready to take a deep dive in the fxruby world,

Thanks again,

Julien


On Mon, Jun 23, 2008 at 10:59 PM, Joel VanderWerf <vjoel@...> wrote:
Julien Castelain wrote:
Hi all,

I installed FXRuby and fox on Ubuntu 8.04 started reading the documentation online and managed to run most of the example applications. I've also started reading the book and when I try to use the FXJPGImage class, it doesn't display images in the application.

The same code works without a problem on windows, so I wonder if I didn't forget to install something during the setup process. Has anyone faced this problem?

just a guess... is the jpeg devel. package installed? (libjpeg62-dev on my system).

--
     vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users


_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users
LightInTheBox - Buy quality products at wholesale price