Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

wxCam and Ubuntu 10.04

Help
Vlad T
2010-05-02
2013-04-29
  • Vlad T
    Vlad T
    2010-05-02

    I am running Ubuntu 10.04:
    1. .deb file does not install as it expects libmjpegtools0c2a, while libmjpegtools-1.9 is available
    2. Source code does not compile without CImg (lack of it is not reported by configure, BTW), but again CImg 1.3.2 is available, not 1.2 as listed at project page
    3. So the following patch to src/frame.cpp helped (diff with 1.0.4):

    473c473
    <         image->noise();
    --
    >         image->noise(0.1);
    478c478
    <         image->sharpen();
    --
    >         image->sharpen(0.1);
    494c494
    <         image->draw_text(text, width - 110, height - 15, fgcolor, bgcolor, 12);
    --
    >         image->draw_text(width - 110, height - 15, text, fgcolor, bgcolor, 12);
    553c553,556
    <     unsigned char *pR = res.ptr(0, 0, 0, 0), *pG = res.ptr(0, 0, 0, 1), *pB=res.ptr(0, 0, 0, 2);
    --
    >     unsigned char
    >             *pR = res.begin() + res.offset(0, 0, 0, 0),
    >             *pG = res.begin() + res.offset(0, 0, 0, 1),
    >             *pB = res.begin() + res.offset(0, 0, 0, 2);
    555c558,559
    <     for (unsigned int off=res.width*res.height; off>0; -off) {
    --
    >
    >     for (unsigned int off = res.width() * res.height(); off > 0; -off) {
    565c569
    <     const unsigned int wh = cimg.dimx() * cimg.dimy();
    --
    >     const unsigned int wh = cimg.width() * cimg.height();
    568,570c572,575
    <             *ptr1 = cimg.ptr(0, 0, 0, 0),
    <             *ptr2 = cimg.dim>1?cimg.ptr(0, 0, 0, 1):ptr1,
    <             *ptr3 = cimg.dim>2?cimg.ptr(0, 0, 0, 2):ptr1;
    --
    >             *ptr1 = cimg.begin() + cimg.offset(0, 0, 0, 0),
    >             *ptr2 = cimg.spectrum() > 1 ? cimg.begin() + cimg.offset(0, 0, 0, 1) : ptr1,
    >             *ptr3 = cimg.spectrum() > 2 ? cimg.begin() + cimg.offset(0, 0, 0, 2) : ptr1;
    >

     
  • coldfusion
    coldfusion
    2010-05-04

    Thanks for submitting this. CVS head has already added your advices. I am now struggling with the new anjuta version and autotools in 10.10 to generate a tarball.