LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 03-13-2013, 01:44 PM   #1
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,839

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
opencv-2.4.4a won't build on Slack 14-32 bit.


The version of opencv available is now 2.4.4a and I can not get the slackbuild to work.

I edited the Slackbuild, and changed the version from 2.4.4 to 2.4.4a. I got this failure :

Code:
./opencv.SlackBuild: line 65: cd: OpenCV-2.4.4a: No such file or directory
I then changed the version back to 2.4.4, and renamed the bz2 file to OpenCV-2.4.4.tar.bz2 and got the following error:

Code:
./opencv.SlackBuild: line 65: cd: OpenCV-2.4.4: No such file or directory
Can some one that knows more about slackbuilds give me some guidance?

Not sure what to try next. FWIW, this fails on both my Slackware 14, 32 bit systems.
 
Old 03-13-2013, 02:02 PM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,428

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
opencv devs released a new tarball (taking away the old) changing some of their usual conventions.
here I modified the slackbuild like this, but who knows if with opencv-2.4.5 things will change again...
Code:
diff --git a/libraries/opencv/opencv.SlackBuild b/libraries/opencv/opencv.SlackBuild
index 70de7dd..66ab9aa 100644
--- a/libraries/opencv/opencv.SlackBuild
+++ b/libraries/opencv/opencv.SlackBuild
@@ -60,9 +60,9 @@ set -e
 rm -rf $PKG
 mkdir -p $TMP $PKG $OUTPUT
 cd $TMP
-rm -rf $SRCNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
-cd $SRCNAM-$VERSION
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$SRCNAM-${VERSION}a.tar.bz2
+cd $PRGNAM-$VERSION
 chown -R root:root .
 find . \
  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
diff --git a/libraries/opencv/opencv.info b/libraries/opencv/opencv.info
index 28e7cd1..2f2090a 100644
--- a/libraries/opencv/opencv.info
+++ b/libraries/opencv/opencv.info
@@ -1,8 +1,8 @@
 PRGNAM="opencv"
 VERSION="2.4.4"
 HOMEPAGE="http://opencv.willowgarage.com/wiki/"
-DOWNLOAD="http://downloads.sourceforge.net/opencvlibrary/OpenCV-2.4.4.tar.bz2"
-MD5SUM="bb7272c102a801a9f9ee01db6e7ad8e9"
+DOWNLOAD="http://downloads.sourceforge.net/opencvlibrary/OpenCV-2.4.4a.tar.bz2"
+MD5SUM="876dce80ea2648b7e4d4c5a567b4d37b"
 DOWNLOAD_x86_64=""
 MD5SUM_x86_64=""
 REQUIRES=""
EDIT: Re-reading it now, I should have incremented BUILD too.

Last edited by ponce; 03-13-2013 at 02:10 PM.
 
2 members found this post helpful.
Old 03-13-2013, 02:28 PM   #3
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,839

Original Poster
Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Ponce,

Thank-you for the quick response. I'm relatively new to slackbuilds. I'm not sure how to add the info from post 2 into the slackbuild.

Is there a guide somewhere on how to edit a slackbuild?
 
Old 03-13-2013, 02:55 PM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,428

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
the text above is in diff format, it shows which lines of the files are changed and how in respect of the present opencv.SlackBuild files that you got from SBo.

to use it with the patch command, copy the text above in a file, called for example my.patch, then go in the slackbuild folder you downloaded and issue a
Code:
patch -p3 < /path/to/my.patch
if you feel like, you can alternatively edit the files interested, opencv.info and opencv.SlackBuild, with any editor and change the lines as shown above: the lines that go away are the ones with the '-' at the beginning, and get substituted by the ones that start with the '+'.

Last edited by ponce; 03-13-2013 at 03:24 PM.
 
1 members found this post helpful.
Old 03-13-2013, 04:48 PM   #5
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,839

Original Poster
Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Ponce,

Thank-you very much for your assistance. I created the patch file, ran the patch command, and was able to build the new opencv-2.4.4a. I ran upgradepkg, and it worked without problems.

This problem 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] Dual boot Slack 32 bit and Slack 64 bit on two drives - lilo config? camorri Slackware 8 10-04-2012 07:50 PM
OpenCV - Pixel format of incoming image is unsupported by OpenCV golmschenk Programming 1 04-01-2011 12:32 PM
Build dependency conflict on 32 bit and 64 bit machines sahil.jammu Linux - Newbie 5 10-15-2010 06:27 AM
Mozilla Firefox 64-bit build for Linux with Adobe Flash Player 64-bit integrated silos Linux - Software 4 12-03-2009 07:40 PM
Apache & Tomcat build fine in RHEL5 32-bit, not in 64-bit. Why? jackofalltrades Linux - Newbie 1 10-30-2009 01:07 PM


All times are GMT -5. The time now is 01:03 AM.

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