LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 10-14-2016, 09:30 AM   #1
spongetron
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 61

Rep: Reputation: Disabled
Raspberry Pi 2 use libraries in /opt/vc/lib


How do I force a SlackBuild script to use libraries like libGLESv2 or libEGL in /opt/vc/lib instead of the ones in /usr/lib?
 
Old 10-15-2016, 02:40 AM   #2
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Rep: Reputation: 120Reputation: 120
This is just a guess not having a look at the source or slackbuild. a configure script usually allows you to provide alternative paths. './configure --help' will provide details of such options
Code:
<snipped>
 --libdir=DIR            object code libraries [EPREFIX/lib]
<snipped>
For example this is from the libdaemon.Slackbuild, note the entry for libdir. That would have to change in your slackbuild. Edit your slackbuild accordingly and see how it goes.
Code:
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --docdir=/usr/doc/$PRGNAM-$VERSION \
  --disable-static \
  --build=$ARCH-slackware-linux
 
Old 10-27-2016, 06:49 AM   #3
spongetron
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 61

Original Poster
Rep: Reputation: Disabled
The problem is that slackwares mesa packages has its own version of libGLESv2 and libEGL. ./configure always uses the libraries in /usr/lib over the ones in /opt/vc/lib. To workaround this problem I made symbolic links in /usr/lib for libEGL.so and libGLESv2.so that point to the versions in /opt/vc/lib.

--libdir=DIR controls where the libraries will be installed. What I was looking for is the environmental variable LDFLAGS.
 
Old 10-27-2016, 11:07 AM   #4
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Rep: Reputation: 120Reputation: 120
Yes, that's right now that I think of it again, silly me. I should have mentioned creating links I've done that myself in the past.
 
  


Reply



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] Epson L120 Doesn't Print with Error: "/opt/epson-inkjet-printer-201310w/cups/lib/filt malekmustaq Linux - Newbie 3 09-08-2014 02:43 PM
No libraries in /usr/local/lib neilcpp Linux - Software 4 05-27-2014 03:17 PM
Moved ALL libraries from /lib to /local/ teaser Linux - Newbie 10 07-25-2008 08:19 AM
Linux Environment : Can't open lib '/opt/oracle/instantclient/libsqora.so.10.1 mitesh Linux - Software 0 06-03-2007 12:35 AM
libraries compiling into /usr/lib acidjuice Slackware 4 05-14-2005 05:53 AM

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

All times are GMT -5. The time now is 09:18 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