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.
 
 
 
 
 
 

40 lines
910 B

#!/bin/bash
# Build the sample Qt Widgets Application that comes with Qt Creator
# Workaround for:
# https://github.com/probonopd/linuxdeployqt/issues/65
unset QT_PLUGIN_PATH
unset LD_LIBRARY_PATH
unset QTDIR
cd tests/QtWidgetsApplication/
if [ -e build/ ] ; then
rm -rf build/
fi
mkdir build
cd build/
qmake ../QtWidgetsApplication.pro
make -j2
rm *.o *.cpp *.h Makefile
mkdir -p nonfhs fhs/usr/bin
cp QtWidgetsApplication nonfhs/
../../../linuxdeployqt-*-x86_64.AppImage nonfhs/QtWidgetsApplication
ldd nonfhs/QtWidgetsApplication
find nonfhs/
LD_DEBUG=libs nonfhs/QtWidgetsApplication &
echo $?
sleep 10
killall QtWidgetsApplication
cp QtWidgetsApplication fhs/usr/bin/
../../../linuxdeployqt-*-x86_64.AppImage fhs/usr/bin/QtWidgetsApplication
ldd fhs/usr/bin/QtWidgetsApplication
find fhs/
LD_DEBUG=libs fhs/usr/bin/QtWidgetsApplication &
echo $?
sleep 10
killall QtWidgetsApplication
cd ../../../