You are not logged in.

#1 2006-01-11 02:35:48

vgx
Member
Registered: 2005-08-09
Posts: 35

Missing libwx_gtk2-2.6.so.0

I am trying to run code::blocks ide binary from following site
http://www.icpne.pl/~groman/cb-slack/co … 6-1pn7.tgz
but it is complaining of missing libwx_gtk2-2.6.so.0 library although i have wxgtk installed ..

Offline

#2 2006-01-11 03:04:28

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Missing libwx_gtk2-2.6.so.0

Dont use the binary. Use the source.

Offline

#3 2006-01-11 11:06:00

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Missing libwx_gtk2-2.6.so.0

That site is down at the moment - can't even ping it.

Do they provide the source code? If so, I'll have a look if/when it comes back up.

<edit>

Never mind - found it on sf.net.

Offline

#4 2006-01-11 13:05:46

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Missing libwx_gtk2-2.6.so.0

I can't get that to compile at the moment, but I'll do a bit more research and try again.

You might be able to get the binary going by creating a symlink as follows:

ln -s /usr/lib/libwx_gtk2_core-2.6.so.0 /usr/lib/libwx_gtk2-2.6.so.0

not an ideal fix, by any means, but no harm in giving it a try.

Offline

#5 2006-01-11 15:21:31

vgx
Member
Registered: 2005-08-09
Posts: 35

Re: Missing libwx_gtk2-2.6.so.0

Strange, i somehow managed to make my own package before i posted here but it didnt work, so i ended up fiddling with the binary listed above. Now i have tried my package and miraculously works without problems. So if is someone in case of emergency or whatever, he can use this NOT arch compliant pkgbuid.

pkgname=codeblocks-svn
pkgver=1.0rc2
pkgrel=1
pkgdesc="Code::Blocks is a free C/C++ IDE built specifically to meet the most demanding needs of its users. It has been designed, right from the start, to be extensible and configurable..."
url="http://www.codeblocks.org/"
license="GPL"
depends=(wxgtk)

build()
{
  svn checkout svn://svn.berlios.de/codeblocks/trunk
  cd $startdir/src/trunk/    
  ./bootstrap
  ./configure --prefix=$startdir/pkg
  make
  make install
}

Offline

#6 2006-01-11 18:48:09

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Missing libwx_gtk2-2.6.so.0

Alternatively, he, or she, could use the following completely compliant PKGBUILD, which will be in the AUR in a couple of minutes:

# Contributor: Tom K <tomk@runbox.com>

pkgname=codeblocks-svn
pkgver=1717    
pkgrel=1
depends=('wxgtk')
pkgdesc="C++ IDE built specifically to meet the most demanding needs of its users"
source=()
md5sums=()
license="GPL"
url="http://www.codeblocks.org/"

_svntrunk=svn://svn.berlios.de/codeblocks
_svnmod=trunk

build() {
  cd $startdir/src
  
  svn co $_svntrunk/$_svnmod --config-dir ./ -r $pkgver
    
  cp -r $_svnmod $_svnmod-build
  cd $_svnmod-build
        
  ./bootstrap
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
  find $startdir/pkg -name '*.la' -exec rm {} ;
}

The only signicant problems with yours are the absence of libtool-slay, and an odd choice of prefix for ./configure. The rest of the changes are to achieve compliance with the CVS/SVN guidelines for AUR packages.

Offline

#7 2006-01-11 19:26:28

vgx
Member
Registered: 2005-08-09
Posts: 35

Re: Missing libwx_gtk2-2.6.so.0

Nice work. smile

Offline

Board footer

Powered by FluxBB