LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 09-07-2010, 08:58 AM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
wassup with lib32-libjpeg6 from AUR?


Hi

I downloaaded a demo version of a CAD package called BricCAD.

This is a clone of CAD based on IntelliCAD code ( compatible with autocad dwg/dxf formats from R10 till 2007 )

http://en.wikipedia.org/wiki/Bricscad

There is a demo version available for Download,

http://www.bricsys.com/en_INTL/

Anyway, I downloaded the deb, converted it with deb2targz, unpacked the thing into ~/Build/pkg, ( this creates an /opt/Bricsys/.... and an /usr/bin/bricscad which is a symlink to the app ) wrote a PKGBUILD,, packed it with makepkg -Rd PKGBUILD. and installed the created package.

This is a 32 bits app, and I have lib32 packages installed.

Tried to run bricscad, and it reported an error about a missing libjpeg.so.6, so here i go, and fetch lib32-libjpeg6 from AUR, created the package, and installed it... this landed in /usr/lib32.

:crossing fingers: ...ran bricscad again, and again it reported the missing libjpeg.so.6... but the link libjpeg.so.6 and the library proprer libjpeg.so.6.0.0 both live in /usr/lib32...

so I ran ldconfig -v as root, as user ran

ln -s /usr/lib32/libjpeg.so.6 .
export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH

tried to run bricscad, and still it complains about the same missing lib...

What is the problem here...?

Shouldn´t this run against a 32 bits libjpeg.so.6 that I created from AUR...?


http://aur.archlinux.org/packages.php?ID=29929


BRGDS


Alex
 
Old 09-09-2010, 07:17 PM   #2
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
Did you use ldd on the bricscad binary to see exactly which library it's looking for?
 
1 members found this post helpful.
Old 09-10-2010, 09:37 AM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi

ldd didn't help much...

Quote:
[root@iskandhar alex]# ls /opt/bricsys/bricscad/v10
bricscad libcommands.so libDD_Ge.so libicudata.so.38 libpth.so.20 libwx_gtk2u_core-2.8.so.0 ModelerGeometry.drx
bricscad.sh libdcl.so libDD_Gi.so libicuuc.so.38 libsds.so libwx_gtk2u_gl-2.8.so.0 PlotStyleServices.drx
DD_Ave.drx libDD_AcisBuilder.so libDD_Gs.so libLicenseManager5.so libtestapi.so libwx_gtk2u_html-2.8.so.0 pstyle_app
DD_DynBlocks.drx libDD_Alloc.so libDD_Id.so liblispex.ext libtests.so libwx_gtk2u_propgrid-2.8.so.0 RasterProcessor.drx
Fonts libDD_BrepRenderer.so libDD_Root.so liblispex.lsx libutils.so libwx_gtk2u_qa-2.8.so.0 RecomputeDimBlock.drx
libbcadtestrunner.so libDD_Br.so libDD_SpatialIndex.so liblispex.so libwx_baseu-2.8.so.0 libwx_gtk2u_richtext-2.8.so.0 ReleaseNotes.htm
libBrxBase.so libDD_DbRoot.so libflyoversnap.so liblispex.so.cfg libwx_baseu_net-2.8.so.0 libwx_gtk2u_xrc-2.8.so.0 RxRasterServices.drx
libBrxGeo.so libDD_Db.so libfreeimage.so.3 libodapp.so libwx_baseu_xml-2.8.so.0 libwxgui.so Support
libcadapp.so libDD_DwfUnderlay.so libfreetype.so libPDFToolkit.so libwx_gtk2u_adv-2.8.so.0 libxerces-c-3.0.so UserDataCache
libcmdapi.so libDD_FTFontEngine.so libgeometry.so libpstyle_ed.so libwx_gtk2u_aui-2.8.so.0 libzlib.so userprofilemanager
[root@iskandhar alex]# ldd /opt/bricsys/bricscad/v10/bricscad
not a dynamic executable...
 
Old 09-10-2010, 04:32 PM   #4
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
Is that a script that calls some other binary? Eventually you should be able to figure out what binary is calling for libjpeg, which version, and where. Then it shouldn't be too hard to get it working.
 
1 members found this post helpful.
Old 09-10-2010, 05:55 PM   #5
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi Meson

Nop, /opt/bricsys/bricscad/v10/bricscad is the binary... the calling script lives in /usr/bin :

Code:
[alex@iskandhar assmb4]$ ls -l /usr/bin/bricscad
lrwxrwxrwx 1 root root 37 Sep  7 02:19 /usr/bin/bricscad -> /opt/bricsys/bricscad/v10/bricscad.sh
[alex@iskandhar assmb4]$
Code:
[alex@iskandhar assmb4]$ cat /opt/bricsys/bricscad/v10/bricscad.sh
#!/bin/sh 
 export LD_LIBRARY_PATH=/opt/bricsys/bricscad/v10 
 exec /opt/bricsys/bricscad/v10/bricscad "$@" 
[alex@iskandhar assmb4]$


Allright...


I guess the script resets my LD_LIBRARY_PATH... I got this to complain about lib32-libpng12 now... libjpeg.so.6 is found... if i redirect LD_LIBRAY_PATH

I guess i'm on track again...

Thanks a lot

BRGDS

Alex
 
Old 09-10-2010, 10:39 PM   #6
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
To me, that LD_LIBRARY_PATH line means that this program comes with it's own libraries and shouldn't need any external dependencies.
 
  


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] Wassup with X...? Alexvader Arch 7 05-20-2010 06:05 PM
lib32 Compat in Arch 64bit Alexvader Arch 1 03-30-2010 07:31 AM
How do i run an ArchBuild ( AUR )...? Alexvader Arch 3 02-25-2010 08:45 PM
LXer: Archlinux tools: AUR LXer Syndicated Linux News 0 11-08-2007 02:10 AM
/lib64 /lib32 /lib Debian AMD64 Arnaud_B Debian 2 05-09-2007 01:12 PM

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

All times are GMT -5. The time now is 04:38 AM.

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