cychiang / webcamstudio

Automatically exported from code.google.com/p/webcamstudio
GNU General Public License v3.0
1 stars 0 forks source link

Ubuntu 12.04+ #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install DEB package from Download section
2. Try to execute Webcamstudio
3. It will not work

What is the expected output? What do you see instead?
It should open the program

What version of the product are you using? On what operating system?
webcamstudio_0.57beta4_all.deb on Ubuntu 12.04 32 Bit

Please provide any additional information below.

Error: /usr/bin/webcamstudio: line 42: /usr/lib/jvm/java-6-sun/bin/java: No 
such file or directory

Webcamstudio is related to java-6 but since 11.10 Ubuntu uses OpenJRE.

Original issue reported on code.google.com by luisalvaradox on 11 Jun 2012 at 11:04

GoogleCodeExporter commented 9 years ago
Hi,luisalvaradox.
I got same error.

What steps will reproduce the problem?
1. install DEB package from Download section
2. Try to execute Webcamstudio
3. It will not work
What is the expected output? What do you see instead?
It should open the program

What version of the product are you using? On what operating system?
webcamstudio_0.57beta4_all.deb on Ubuntu 12.04 64 Bit

Please provide any additional information below.

Error: /usr/bin/webcamstudio: line  45: /usr/lib/jvm/java-6-sun/bin/java: No 
such file or directory

This issue causes that your and my machine does not have the appropriate 
directory.
Appropriate directory is /usr/lib/jvm/java-6-sun-(i386|amd64)/bin/java,isn't it?
From Ubuntu12.04, it seems to be appended architecture name, such as i386 or 
amd64, to the directory of OpenJDK's Java VM.

So I write this issue patch.
This patch fix two issue.
One is to determine appropriate architecture name.(e.g. i386 or amd64)
The other is fix JAVA_DIR path.

Cheers.
Hiro.

Original comment by cosmo092...@gmail.com on 20 Jun 2012 at 2:30

Attachments:

GoogleCodeExporter commented 9 years ago
thank you very much cosmo092.

Original comment by luisalvaradox on 20 Jun 2012 at 11:28

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi, luisalvaradox.

I'm apologize to write a low-quality patch.

It seems to be appropriate "uname -m" than "uname -i" to determine architecture.
Because lately "uname -i" command output GenuineIntel or AuthenticAMD and so on.

'uname -m' is always output architecture name, such as i386 or x86_64 or armel 
etc.

I rewrote "uname -i" to "uname -m".

Original comment by cosmo092...@gmail.com on 23 Jun 2012 at 7:29

Attachments:

GoogleCodeExporter commented 9 years ago
Got it. Again thank you for the quick answer. +1

Original comment by luisalvaradox on 24 Jun 2012 at 12:56

GoogleCodeExporter commented 9 years ago
after I download the patch where do I place it, which file

Original comment by madpuppi...@gmail.com on 28 Jul 2012 at 12:50

GoogleCodeExporter commented 9 years ago
Sorry I am very new to linux but love the program, but it will not launch in 
ubuntu 12.04 for me

Original comment by madpuppi...@gmail.com on 28 Jul 2012 at 12:51

GoogleCodeExporter commented 9 years ago
Hi, madpuppi.
>after I download the patch where do I place it, which file

Please put patch where you like anywhere,for example, put in $HOME.
Then, type following command:
sudo patch `which webcamstudio` < (The directory where you placed 
patch)/diff_webcamstudio_uname.patch

Original comment by cosmo092...@gmail.com on 3 Aug 2012 at 6:05

GoogleCodeExporter commented 9 years ago
Hello,

 I had the same problem with the JAVA directory. When I try to apply patch as explained in Comment #8 by Cosmo, I receive the following output: 

 patching file 'which webcamstudio'
Hunk #1 FAILED at 4.
1 out of 1 hunk FAILED -- saving rejects to file 'which webcamstudio.rej'

Original comment by odoro...@hotmail.com on 8 Aug 2012 at 8:06

GoogleCodeExporter commented 9 years ago
Ok... sorted. I just edited the webcamstudio file directly, instead of using 
the patch. thanks!

Original comment by odoro...@hotmail.com on 8 Aug 2012 at 8:30

GoogleCodeExporter commented 9 years ago
 Comment 5 by luisalvaradox , Jun 23, 2012

Got it. Again thank you for the quick answer. +1

Delete comment
Comment 6 by madpuppi...@gmail.com , Jul 27, 2012

after I download the patch where do I place it, which file

Delete comment
Comment 7 by madpuppi...@gmail.com , Jul 27, 2012

Sorry I am very new to linux but love the program, but it will not launch in 
ubuntu 12.04 for me

Comment 8 by cosmo092...@gmail.com , Aug 2, 2012

Hi, madpuppi.
>after I download the patch where do I place it, which file

Please put patch where you like anywhere,for example, put in $HOME.
Then, type following command:
sudo patch `which webcamstudio` < (The directory where you placed 
patch)/diff_webcamstudio_uname.patch

Comment 9 by odoro...@hotmail.com , Aug 8, 2012

thanks sooo much, this totally worked

Original comment by madpuppi...@gmail.com on 17 Aug 2012 at 12:10

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Ubuntu 10.04 64bit
2. Install WebcamStudio
3. Upgrade to Ubuntu 12.04 64Bit

What is the expected output? What do you see instead?
It should open the program

What version of the product are you using? On what operating system?
webcamstudio_0.57beta4_all.deb on Ubuntu 12.04 64 Bit

===First Error 
$ webcamstudio
Using JRE: /usr/lib/jvm/java-6-sun/bin
/usr/bin/webcamstudio: line 42: /usr/lib/jvm/java-6-sun/bin/java: No such file 
or directory

=== Google search brings up this thread as the first hit. Tried patch 
$ sudo patch 'which webcamstudio'<diff_webcamstudio.patch 
patching file 'which webcamstudio'
Hunk #1 FAILED at 4.
1 out of 1 hunk FAILED -- saving rejects to file 'which webcamstudio.rej'
$ 

== If this cannot be resolved,  can webcamstudio be installed at all on Ubuntu 
12.04 64bit?  I've tried it before, But Have recieved the videoh errors.

Original comment by neuman1...@gmail.com on 21 Sep 2012 at 7:50

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi, neuman1.
>== If this cannot be resolved,  can webcamstudio be installed at all on Ubuntu 
12.04 64bit?
No. If this error cannot be resolved, you cannot run webcamstudio on Ubuntu 
12.04 64bit. You needs to resolve error.

First Error says that "/usr/lib/jvm/java-6-sun/bin/java" directory not found 
your computer.
Second Error says that patch command cannot resolve hunk at 4.

There are two solutions.

One is rewrite directly the JAVA_DIR=/usr/lib/jvm/java-6-sun/bin/ to 
JAVA_DIR=/usr/lib/jvm/java-7-oracle/bin/ or 
JAVA_DIR=/usr/lib/jvm/java-7-openjdk-amd64/bin.

The Other is modify diff_webcamstudio_uname.patch.

Could you attach your rej file?
And what happens in this new diff_webcamstudio_modify.patch?

Original comment by cosmo092...@gmail.com on 21 Sep 2012 at 10:09

Attachments:

GoogleCodeExporter commented 9 years ago
$ sudo patch 'which webcamstudio'<diff_webcamstudio_modify.patch 
[sudo] password for burt: 
patching file 'which webcamstudio'
Hunk #1 FAILED at 3.
1 out of 1 hunk FAILED -- saving rejects to file 'which webcamstudio.rej'
$ 
rej file attached.

====
Just an FYI.  I had originally tried to install WCS directly to 12.04 before, 
But I was getting an error with the install.   You can see my original post on 
the Ubuntuforums http://ubuntuforums.org/showthread.php?t=2055935       It 
appeared to be an issue with videodev.h not being compiled with my kernal.   So 
thats when I reinstalled ubuntu 10..installed webcam and upgraded.  I was 
hopping that the issue would be resolved during the upgrade.  

Original comment by neuman1...@gmail.com on 21 Sep 2012 at 10:17

Attachments:

GoogleCodeExporter commented 9 years ago
@neuman1
what happen in the following command?
$ sudo patch `which webcamstudio` <diff_webcamstudio_modify.patch
Please use `(back quote).

It appears these errors which are posted to the forum is 
/usr/bin/webcamstudio's(bash script) bug.

Original comment by cosmo092...@gmail.com on 21 Sep 2012 at 10:34

GoogleCodeExporter commented 9 years ago
That appears to be it.   changed to the `(backquote)  and it worked  wcs 
started up.

Original comment by neuman1...@gmail.com on 21 Sep 2012 at 10:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
tried running diff_webcamstudio_modify.patch  but still not working...
(also used `(backquote) but i get this... 

can't find file to patch at input line 3
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|--- /home/cosmo/webcamstudio.orig  2012-06-20 22:31:10.117328614 +0900
|+++ /home/cosmo/webcamstudio_patched   2012-06-20 22:45:07.207331138 +0900
--------------------------
File to patch: 

then i don't know what to do..?? sorry new to this....

Original comment by mayvi...@gmail.com on 1 Oct 2012 at 4:03

GoogleCodeExporter commented 9 years ago
What happen in the following command instead, mayvi?
$ sudo patch /usr/bin/webcamstudio <diff_webcamstudio_modify.patch

Original comment by cosmo092...@gmail.com on 1 Oct 2012 at 4:07

GoogleCodeExporter commented 9 years ago
it tries to start up. and stay like the image attached...

Original comment by mayvi...@gmail.com on 1 Oct 2012 at 4:59

Attachments:

GoogleCodeExporter commented 9 years ago
Mayvi, you are Linux newbie...?
OK.
What is displayed when you run the following command?:
$ webcamstudio

Could you attach file which is the results of above command?

Original comment by cosmo092...@gmail.com on 1 Oct 2012 at 9:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
yes a newbie to linux, thank you...

Original comment by mayvi...@gmail.com on 2 Oct 2012 at 12:39

Attachments:

GoogleCodeExporter commented 9 years ago
does this help uname -a

Linux mayvinrig 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:16:45 UTC 2012 
x86_64 x86_64 x86_64 GNU/Linux

??

Original comment by mayvi...@gmail.com on 2 Oct 2012 at 6:03

GoogleCodeExporter commented 9 years ago
Comment 24's log says that "Exception in thread "main" 
java.lang.UnsatisfiedLinkError: Unable to load library 'webcamstudio': 
libwebcamstudio.so: cannot open shared object file: No such file or directory".

It seems to be fail to install webcamstudio in kernel module compile phase.

What is displayed when you run the following command?:
$ sudo /etc/init.d/webcamstudio restart

Please try reinstall Webcamstudio.

Original comment by cosmo092...@gmail.com on 2 Oct 2012 at 3:18

GoogleCodeExporter commented 9 years ago
attached is what happened after command

$ sudo /etc/init.d/webcamstudio restart

i will try to reinstall webcamstudio.

Original comment by mayvi...@gmail.com on 2 Oct 2012 at 3:38

Attachments:

GoogleCodeExporter commented 9 years ago
it is now working after reinstall.
thank you very much for your quick replies and help.

Great Appreciated, Thank You.

Original comment by mayvi...@gmail.com on 2 Oct 2012 at 3:54

GoogleCodeExporter commented 9 years ago
Now it opens thanks to Comment #4

http://code.google.com/p/webcamstudio/issues/detail?id=75#c4
Thanks! 

Original comment by josernit...@gmail.com on 4 Oct 2012 at 8:12

GoogleCodeExporter commented 9 years ago
When I originally installed webcamstudio I kept getting the error 
/usr/bin/webcamstudio: line 42: /usr/lib/jvm/java-6-sun/bin/java: No such file 
or directory
then when I applied the patch I get /usr/bin/webcamstudio: line 59: 
/usr/lib/jvm/java-6-sun/bin/java: No such file or directory
or /usr/bin/webcamstudio: line 65: /usr/lib/jvm/java-6-sun/bin/java: No such 
file or directory

I assumed the patch would have changed every line of /usr/bin/webcamstudio that 
associated with /usr/lib/jvm/java-6-sun/bin/java... Any ideas to lead me in the 
right direction?

Original comment by BriD...@gmail.com on 8 Oct 2012 at 12:43

GoogleCodeExporter commented 9 years ago
>I assumed the patch would have changed every line of /usr/bin/webcamstudio 
that associated with /usr/lib/jvm/java-6-sun/bin/java...
Yes, in part.
This patch modifies /usr/bin/webcamstudio line 12 from line 7.

>Any ideas to lead me in the right direction?
In Ubuntu 12.04, sun-java6 is no longer provided.
Please install openjdk-7-jre or openjdk-6-jre or oracle-java7-installer.

When you install the oracle-java7-installer, the following special steps are 
required.

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java7-installer

Original comment by cosmo092...@gmail.com on 8 Oct 2012 at 8:31

GoogleCodeExporter commented 9 years ago
Comment 16 solution is doing the work on Ubuntu 12.04.1 LTS, reproduced here 
for the convenience of new people reading this:

Comment 16 by cosmo092...@gmail.com, Sep 21, 2012
@neuman1
what happen in the following command?
$ sudo patch `which webcamstudio` <diff_webcamstudio_modify.patch
Please use `(back quote).

It appears these errors which are posted to the forum is 
/usr/bin/webcamstudio's(bash script) bug.

Original comment by geppet...@gmail.com on 11 Oct 2012 at 5:22

GoogleCodeExporter commented 9 years ago

Tried all this....still not working in Linux Mint 14.  I really wish this 
program worked easily in latest versions of Ubuntu/Mint.  I have had same issue 
with this program and Ubuntu 12.04/12.10 and Mint 14.  I also wish there was 
another decent application like this for Linux.  I would support development 
through kickstarter. 

Original comment by mstuckl...@gmail.com on 11 Dec 2012 at 12:19

GoogleCodeExporter commented 9 years ago
I had also experience with non working WebcamStudio 0.57_beta 4 on ubuntu 12.04 
and 12.10 both 64bit - first issue was of course the wrong java path (because 
of my 64bit system) - like comment #14, however there was another one: missing 
file libwebcamstudio.so.1.0.1 - every solution I've seen was wrong, so there's 
my fix for this problem(you have to unpack the .deb file):

cd /usr/share/webcamstudio/webcamstudio-src
mkdir /tmp/webcamstudio-src
cp * /tmp/webcamstudio-src
cd /tmp/webcamstudio-src
make
make install
depmod -a
gcc -c -fPIC libwebcamstudio.c -o libwebcamstudio.o    

gcc -shared -o libwebcamstudio.so.1.0.1  libwebcamstudio.o //this line can be 
found on the whole internet with -Wl parameter which actually doesn't work 
there, but here goes the missing file finaly

cp libwebcamstudio.so.1.0.1 /usr/lib
cd /
rm -R /tmp/webcamstudio-src

So, I hope this helps someone.

Original comment by kyta...@gmail.com on 21 Jan 2013 at 1:15

GoogleCodeExporter commented 9 years ago
I applied the patch and followed comment #34, and it works for me. Thank you 
for posting it.

webcamstudio_0.57beta4_all.deb
Kubuntu 12.10 (64bit)
Linux laptop 3.5.0-19-generic #30-Ubuntu SMP Tue Nov 13 17:48:01 UTC 2012 
x86_64 x86_64 x86_64 GNU/Linux

Original comment by jsam...@gmail.com on 1 Mar 2013 at 7:58

GoogleCodeExporter commented 9 years ago
thank you, kyta

i needed to add a step to #34:

ln -n /usr/lib/libwebcamstudio.so.1.0.1 /usr/lib/libwebcamstudio.so

Original comment by rgilbert...@gmail.com on 8 Mar 2013 at 5:26

GoogleCodeExporter commented 9 years ago
0.57 versions are deprecated now...
Please try our 0.60 and up versions... The current SVN r443 should work for 
you...

You may also use our LP daily builds PPA

If possible provide feedback if all is fixed for you

Original comment by peter.u....@gmail.com on 3 Apr 2013 at 7:45

GoogleCodeExporter commented 9 years ago

Original comment by peter.u....@gmail.com on 21 Apr 2013 at 9:27

GoogleCodeExporter commented 9 years ago
please help. i was use all the suggestion instead. but not working at all. 

when i try this 
sudo patch `which wbecamstudio` < 
/home/jarvis/Downloads/diff_webcamstudio_modify.patch 
can't find file to patch at input line 3
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|--- /home/cosmo/webcamstudio.orig  2012-06-20 22:31:10.117328614 +0900
|+++ /home/cosmo/webcamstudio_patched   2012-06-20 22:45:07.207331138 +0900
--------------------------
File to patch: 

so what must do i do to continue ??
please help

Original comment by yarikatt...@gmail.com on 21 May 2013 at 4:50