LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 03:34 PM   #1
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,321

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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, 05:05 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,256

Rep: Reputation: Disabled
General answer: send an email to the maintainer of the SlackBuild, or to the Slackbuilds-users mailing list.
 
Old 01-24-2014, 02:38 PM   #3
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,321

Original Poster
Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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, 02:40 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,793

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

Rep: Reputation: 74
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, 03:31 PM   #6
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,321

Original Poster
Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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 03:59 PM
Can't compile wxPython Slackbuild in 32-bit (but works fine for 64-bit) Eldarby Linux - Software 7 07-29-2012 01:00 PM
Unable to compile 64 bit kernel on 64 bit machine even after successful compilation. atulsdeshmukh Linux - Kernel 2 09-18-2009 03:28 AM
Has anyone installed a 32-bit debian system to replace their current 64-bit system? BigVig Debian 2 06-27-2008 11:44 AM
how to compile 32 bit kernel on 64bit system slantoflight Linux - General 3 03-16-2006 12:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration