You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QnetGateway/build_wxBase

34 lines
753 B

#!/bin/bash
BAKEFILES=$(PWD)/bakefiles.zip
if [ -e $BAKEFILES ]
then
# move to the home directory and get the source comressed archive for wxBase
cd ~
wget http://sourceforge.net/projects/wxwindows/files/2.8.12/wxBase-2.8.12.tar.gz
tar -xzvf wxBase-2.8.12.tar.gz
# move into the directory, configure and build it
cd wxBase-2.8.12
./configure --disable-gui --without-expat
make
# add the bakefiles and install wxBase
cd build
unzip $BAKEFILES
cd ..
sudo make install
# add /usr/local/lib to /etc/ld.so.conf, if needed and relink the libraries
grep -q /usr/local/lib /etc/ld.so.conf
RETVAL=$?
if [ $RETVAL -eq 1 ]
then
sudo echo /usr/local/lib >> /etc/ld.so.conf
fi
sudo ldconfig
else
echo "$BAKEFILES not found, aborting!"
fi

Powered by TurnKey Linux.