LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-22-2014, 02:34 PM   #1
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,840

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
guvcview fails to compile on 14.1 32 bit system.


When I run the slackbuild for guvcview, I get the following errors:

Code:
make  all-recursive
make[1]: Entering directory `/tmp/SBo/guvcview-src-1.7.2'
Making all in src
make[2]: Entering directory `/tmp/SBo/guvcview-src-1.7.2/src'
  CC       audio_effects.o
  CC       audio_tab.o
In file included from /usr/include/linux/videodev2.h:64:0,
                 from v4l2uvc.h:25,
                 from guvcview.h:30,
                 from callbacks.h:28,
                 from audio_tab.c:29:
/usr/include/linux/v4l2-controls.h:49:0: error: unterminated #ifndef
 #ifndef __LINUX_V4L2_CONTROLS_H
 ^
In file included from v4l2uvc.h:25:0,
                 from guvcview.h:30,
                 from callbacks.h:28,
                 from audio_tab.c:29:
/usr/include/linux/videodev2.h:84:1: error: expected ',' or '}' before 'enum'
 enum v4l2_field {
 ^
make[2]: *** [audio_tab.o] Error 1
make[2]: Leaving directory `/tmp/SBo/guvcview-src-1.7.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/guvcview-src-1.7.2'
make: *** [all] Error 2
I have searched the forum for similar problems. These errors are beyond my understanding. There are some problems with more than one copy of header files. However, I don't know which one I should have, and what might be an old one.

The system was recently upgraded from 14.0 to 14.1. I did a full install. I had a long list of sbopkg's to upgrade. All have worked, except guvcview, and tesseract. The errors in tesseract are similar, however, different .h files are mentioned.

Right now I would like to fix guvcview, and understand what is wrong with it. Then work on tesseract.

Suggestions?
 
Old 01-22-2014, 04:05 PM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,192

Rep: Reputation: 1025Reputation: 1025Reputation: 1025Reputation: 1025Reputation: 1025Reputation: 1025Reputation: 1025Reputation: 1025
General answer: send an email to the maintainer of the SlackBuild, or to the Slackbuilds-users mailing list.
 
Old 01-24-2014, 01:38 PM   #3
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,840

Original Poster
Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
An update. I have compiled guvcview on my laptop, copied the sbo package on to the failing system and installed the update. I did the same with tesseract. Both programs are now at the levels listed in slackbuilds for 14.1.

The laptop I compiled the programs was a clean install, I had partitioned the disk, and formatted, installed, and the slackbuilds run.

On the failing system, I had upgraded from 14.0; so now I think the problems were caused by some old files left around, that were not updated or replaced with the upgrade process.

Hope this helps anyone with similar problems.
 
Old 01-24-2014, 01:40 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,551

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You can use this command to check for missed packages during upgrade
slackpkg install-new
 
Old 01-24-2014, 02:02 PM   #5
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 273

Rep: Reputation: 56
the error is in file /usr/include/linux/v4l2-controls.h which come from package kernel-headers, if you can't fix it, reinstall or repackage it
 
Old 01-24-2014, 02:31 PM   #6
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,840

Original Poster
Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Willysr,

I ran 'slackpkg install-new' however nothing showed up as missing.

gengisdave,

I reinstalled the kernel headers
Quote:
kernel-headers-3.10.17_smp-x86-3
and was able to build guvcview without problems.

Thank-you both for your help. This thread is solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] If I compile from source on 64 bit system will the compiled program be 64 bit? SharpyWarpy Linux - Software 3 08-14-2012 02:59 PM
Can't compile wxPython Slackbuild in 32-bit (but works fine for 64-bit) Eldarby Linux - Software 7 07-29-2012 12:00 PM
Unable to compile 64 bit kernel on 64 bit machine even after successful compilation. atulsdeshmukh Linux - Kernel 2 09-18-2009 02:28 AM
Has anyone installed a 32-bit debian system to replace their current 64-bit system? BigVig Debian 2 06-27-2008 10:44 AM
how to compile 32 bit kernel on 64bit system slantoflight Linux - General 3 03-15-2006 11:12 PM


All times are GMT -5. The time now is 05:03 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration