wxCam

There is a nice package wxCam that used to be included in the opensuse (last
one was, I think 10.3). Or perhaps I am wrong and it was from the Packman
repo. Who maintains these packages?

I installed it from source and it must have ended up installing about 200MB
of dependencies and dependencies of dependencies.
I am not knowledgeable enough to create an rpm (checkinstall does not seem
to be able to create an rpm). Is there an alternative?

Cheers

-G-

Maybe you will have to wait for a while for the availability from packman.
You can try cheese. It is the one I am using right now. Like you I am still waiting for another app (kino) for my video cam and hoping hat it will be available soon. I lost it since upgrading to 11.2.

What’s your “Arch” G? i586 or x86_64?

Having taken a peek at source code it requires some libs that aren’t packaged for 11.2 anymore, infact it seems some of them never have been thus it would require installing them by hand to be able to compile a working binary.

I suggest you take a look into other programs as a solution.

Hi, thanks for your reply.

Chrysantine wrote:
> What’s your “Arch” G? i586 or x86_64?
Arch is x86_64 bit.

> Having taken a peek at source code it requires some libs that aren’t
> packaged for 11.2 anymore, infact it seems some of them never have been
> thus it would require installing them by hand to be able to compile a
> working binary.

I see, yes I wondered if that was from Packman repo rather the official
distribution…
The other one I needed to install by hand was CImg (which is just a .h
file).

> I suggest you take a look into other programs as a solution.

OK, thanks. Any other suggestions of what program might record avi sequences
and work nicely with the Philips SPC900NC webcam?
I am using KDE, if that makes any difference.

Regards,

-G-

If you figure out, let me know.

With 11.1 and ffmpeg/mencoder, I could easily record such sequences with my Phillips webcam. See this thread: webcam & microphone command line fun … - openSUSE Forums

That does not work for me in 11.2 (with my Phillips webcam) and I have not had time to investigate, nor do I know why (I suspect something in v4l is packaged different in 11.2 compared to 11.1).

In fact, the only 11.2 program that I have found thus far that works with my webcam is amsn.

oldcpu wrote:

> If you figure out, let me know.
Hi oldcpu,
In on machine I did manage to compile wxCam and it works OK.
The only thing I had to observe was that the version of CImg.h was not the
latest, but 1.2.7 which is about the same date of some of the wxCam source
files.
The only down bit of compiling it is that there are so many devel packages
(and their dependencies) to install…

> In fact, the only 11.2 program that I have found thus far that works
> with my webcam is amsn.

Here skype works too after installing the driver:
sn9c20x-kmp-desktop
and some 32 bit libraries (so skype works in the 64bit architecture).

To make skype work in 11.2 x86_64 one needs these:
sudo zypper install xorg-x11-libXv-32bit libqt4-32bit libqt4-x11-32bit

Cheers,

-G-

oldcpu wrote:
> If you figure out, let me know.

I figured it out :slight_smile:
wxCam for opensuse 10.3 (x86_64) from Packman works in opensuse 11.2 if one
installs wxWidgets.

Cheers,

-G-

Thanks. I’ll have to try that.

I tried to rebuild the wxcam rpm with:

rpmbuild --rebuild wxcam-0.9.4-0.pm.0.src.rpm

and that failed.

Me personally I converted a .deb for ubuntu with alien to install it, works fine.
I never compiles unless its 100% needed.

I’ve converted .deb to rpm via alien many times.

… but I have to say that from my perspective it is far better to custom compile than it is to convert a .deb via alien.

OK, I downloaded the openSUSE-10.3 wxcam and took a look at its contents:

/usr/bin/wxcam
/usr/share/doc/packages/wxcam
/usr/share/doc/packages/wxcam/AUTHORS
/usr/share/doc/packages/wxcam/COPYING
/usr/share/doc/packages/wxcam/ChangeLog
/usr/share/doc/packages/wxcam/INSTALL
/usr/share/doc/packages/wxcam/NEWS
/usr/share/doc/packages/wxcam/README

It looked pretty harmless and easy to remove if necessary, so I installed it on my openSUSE-11.2.

You are right, it works nicely. Thanks!

All functions appear to work but “preferences” , and the openSUSE-10.3 wxcam (on 11.2) crashes with a segfault when ever that is pressed.

I removed the openSUSE-10.3 wxcam from my openSUSE-11.2, and tried one more time to custom compile wxcam from tarball, and also to rebuild the openSUSE-10.3 from src (with “rpmbuild --rebuild wxcam.src.rpm” ) on my openSUSE-11.2 with no luck.

So per TaraIkeda’s approach, I took at look at the 64-bit .deb file, … Its a newer version of wxcam (1.0.4) than the openSUSE-10.3 version (which is version 0.9.4). The debian " wxcam_1.0.4-1~getdeb1_amd64.deb " did indeed convert to an rpm relatively painlessly with no hiccups with “alien”, possibly because I had the pre-requisite apps already installed.

Its contents look like this:


/usr
/usr/bin
/usr/bin/wxcam
/usr/doc
/usr/doc/wxcam
/usr/doc/wxcam/AUTHORS
/usr/doc/wxcam/COPYING
/usr/doc/wxcam/ChangeLog
/usr/doc/wxcam/INSTALL
/usr/doc/wxcam/NEWS
/usr/doc/wxcam/README
/usr/share
/usr/share/applications
/usr/share/applications/wxcam.desktop
/usr/share/doc
/usr/share/doc/wxcam
/usr/share/doc/wxcam/changelog.Debian.gz
/usr/share/doc/wxcam/changelog.gz
/usr/share/doc/wxcam/copyright
/usr/share/locale
/usr/share/locale/es
/usr/share/locale/es/LC_MESSAGES
/usr/share/locale/es/LC_MESSAGES/wxcam.mo
/usr/share/locale/fr
/usr/share/locale/fr/LC_MESSAGES
/usr/share/locale/fr/LC_MESSAGES/wxcam.mo
/usr/share/locale/hu
/usr/share/locale/hu/LC_MESSAGES
/usr/share/locale/hu/LC_MESSAGES/wxcam.mo
/usr/share/locale/it
/usr/share/locale/it/LC_MESSAGES
/usr/share/locale/it/LC_MESSAGES/wxcam.mo
/usr/share/locale/pt_BR
/usr/share/locale/pt_BR/LC_MESSAGES
/usr/share/locale/pt_BR/LC_MESSAGES/wxcam.mo
/usr/share/locale/tr
/usr/share/locale/tr/LC_MESSAGES
/usr/share/locale/tr/LC_MESSAGES/wxcam.mo
/usr/share/pixmaps
/usr/share/pixmaps/wxcam.png

Again, it looks fairly easy to remove if need be (should be easily removable with a nominal rpm command) so I installed it on my 64-bit openSUSE-11.2.

TaraIkeda is correct, it runs well, better than the openSUSE-10.3 wxcam. It does not give a segfault when preferences are selected.

oldcpu wrote:
>> All functions appear to work but “preferences” , and the openSUSE-10.3
>> wxcam (on 11.2) crashes with a segfault when ever that is pressed.

Oh, I will check this next…

>> removed the openSUSE-10.3 wxcam from my openSUSE-11.2, and tried one
> more time to custom compile wxcam from tarball, and also to rebuild the
> openSUSE-10.3 from src (with “rpmbuild --rebuild wxcam.src.rpm” ) on my
> openSUSE-11.2 with no luck.

Well, I was able to compile the latest tar. What was the error CImage.h
missing? If so, you need an old version of that file (I used 1.2.7) copied
in the folder that you compile from.

> So per TaraIkeda’s approach, I took at look at the 64-bit .deb file,
> … Its a newer version of wxcam (1.0.4) than the openSUSE-10.3 version
> (which is version 0.9.4). The debian " wxcam_1.0.4-1~getdeb1_amd64.deb
> " did indeed convert to an rpm relatively painlessly with no hiccups
> with “alien”, possibly because I had the pre-requisite apps already
> installed.

I will try this too thanks.

-G-

Yes, I got the error CImage.h missing when I tried to compile from the latest tar. Like you, at that point I copied CImage.h (version 1.3.2) into the folder in which one compiles. But then I got more errors on CImage so I stopped at that point.

Did you build on a 32-bit or a 64-bit ? … or maybe just the functions have changed between 1.2.7 and 1.3.2 of CImage. Here are the final errors:

frame.cpp:473: error: no matching function for call to ‘cimg_library::CImg<unsigned char>::noise()’                                                           
../CImg.h:15586: note: candidates are: cimg_library::CImg<T>& cimg_library::CImg<T>::noise(double, unsigned int) [with T = unsigned char]                     
frame.cpp:478: error: no matching function for call to ‘cimg_library::CImg<unsigned char>::sharpen()’                                                         
../CImg.h:20772: note: candidates are: cimg_library::CImg<T>& cimg_library::CImg<T>::sharpen(float, bool, float, float, float) [with T = unsigned char]
frame.cpp:494: error: no matching function for call to ‘cimg_library::CImg<unsigned char>::draw_text(char [80], unsigned int, unsigned int, unsigned char [3], unsigned char [3], int)’
frame.cpp: In member function ‘cimg_library::CImg<unsigned char> Frame::cimg_from_rgb(const unsigned char*, unsigned int, unsigned int)’:
frame.cpp:553: error: ‘struct cimg_library::CImg<unsigned char>’ has no member named ‘ptr’
frame.cpp:553: error: ‘struct cimg_library::CImg<unsigned char>’ has no member named ‘ptr’
frame.cpp:553: error: ‘struct cimg_library::CImg<unsigned char>’ has no member named ‘ptr’
frame.cpp:555: error: invalid use of member (did you forget the ‘&’ ?)
frame.cpp:555: error: invalid use of member (did you forget the ‘&’ ?)
frame.cpp: In member function ‘void Frame::rgb_from_cimg(const cimg_library::CImg<unsigned char>&, unsigned char*)’:
frame.cpp:565: error: ‘const struct cimg_library::CImg<unsigned char>’ has no member named ‘dimx’
frame.cpp:565: error: ‘const struct cimg_library::CImg<unsigned char>’ has no member named ‘dimy’
frame.cpp:568: error: ‘const struct cimg_library::CImg<unsigned char>’ has no member named ‘ptr’
frame.cpp:569: error: ‘const struct cimg_library::CImg<unsigned char>’ has no member named ‘dim’
frame.cpp:569: error: ‘const struct cimg_library::CImg<unsigned char>’ has no member named ‘ptr’
frame.cpp:570: error: ‘const struct cimg_library::CImg<unsigned char>’ has no member named ‘dim’
frame.cpp:570: error: ‘const struct cimg_library::CImg<unsigned char>’ has no member named ‘ptr’
make[2]: *** [frame.o] Error 1
make[2]: Leaving directory `/home/oldcpu/tars/wxcam-1.0.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/oldcpu/tars/wxcam-1.0.4'
make: *** [all] Error 2

oldcpu wrote:

> Did you build on a 32-bit or a 64-bit ? … or maybe just the
> functions have changed between 1.2.7 and 1.3.2 of CImage. Here are the
> final errors:

Yes, that is the reason. 1.2.7 is dated about the same time of some wxcam
files. Yes, I got the same errors as you, but it compiles with 1.2.7.

I just converted the .deb to rpm in my laptop, I will test in the desktop
with the webcam next.
Many thanks for all the tips. I learned a lot in this process.

Cheers

-G-

As noted, I have a Phillips web cam.

After some a bunch of installs and uncharacteristically horrible notes, I installed camorma, cheese, gqcam, plus have mplayer/mencoder working under openSUSE-11.2 for my phillips web cam:

ID 0471:0311 Philips PCVC740K ToUcam Pro [pwc]

… I supposed its possible a similar (but hopefully more logically ordered approach) would work for you. :slight_smile: … I made note of what I “think” I did here in post#9: gspca in 11.2 - openSUSE Forums - post#9 in a support thread

Dumb question Where is alien of Open SUSE?

Chuck

I recommend you book mark the following two search engines:

Do a search on either for the package “alien”.