Commit 1768b009 authored by Christoffer Ackelman's avatar Christoffer Ackelman

Fixed GTK search path

parent d26e4fb9
...@@ -77,6 +77,12 @@ ename=$ver$hw ...@@ -77,6 +77,12 @@ ename=$ver$hw
desc=$verl desc=$verl
gui="qt" gui="qt"
if [ $gui == "qt" ]; then
export pwre_conf_qt=1
elif [ $gui == "gtk" ]; then
export pwre_conf_gtk=1
fi
pwre add $ename $root/src \"\" $root/rls $btype $os $hw "$desc" pwre add $ename $root/src \"\" $root/rls $btype $os $hw "$desc"
pwre init $ename pwre init $ename
...@@ -84,8 +90,9 @@ pwre init $ename ...@@ -84,8 +90,9 @@ pwre init $ename
mkdir -p $pwre_broot mkdir -p $pwre_broot
pwre configure pwre configure
pwre create_all_modules pwre create_all_modules
pwre build_kernel $gui pwre build_all_modules $gui
pwre method_build $gui #pwre build_kernel $gui
#pwre method_build $gui
# Create a package version html file # Create a package version html file
......
...@@ -398,7 +398,8 @@ if [ $pwre_hw == "hw_arm" ] && [ $ebuild -eq 1 ]; then ...@@ -398,7 +398,8 @@ if [ $pwre_hw == "hw_arm" ] && [ $ebuild -eq 1 ]; then
pwre_config_check_include qt QT 1 "/usr/include/qt4/QtCore/QtCore" pwre_config_check_include qt QT 1 "/usr/include/qt4/QtCore/QtCore"
pwre_config_check_include qt QT 1 "/usr/include/qt4/QtGui/QtGui" pwre_config_check_include qt QT 1 "/usr/include/qt4/QtGui/QtGui"
pwre_config_check_include qt QT 1 "/usr/include/qt4/QtNetwork/QtNetwork" pwre_config_check_include qt QT 1 "/usr/include/qt4/QtNetwork/QtNetwork"
else fi
if [ $pwre_conf_gtk -eq 1 ]; then
pwre_config_check_lib gtk GTK gtk gtk 0 "/usr/lib/libgtk-x11-2.0.so:/usr/lib/$hwpl-linux-$gnu/libgtk-x11-2.0.so" pwre_config_check_lib gtk GTK gtk gtk 0 "/usr/lib/libgtk-x11-2.0.so:/usr/lib/$hwpl-linux-$gnu/libgtk-x11-2.0.so"
pwre_config_check_include gtk GTK 1 "/usr/local/include/gtk-2.0/gtk.h:/usr/local/include/gtk-2.0/gtk/gtk.h:/usr/include/gtk-2.0/gtk/gtk.h" pwre_config_check_include gtk GTK 1 "/usr/local/include/gtk-2.0/gtk.h:/usr/local/include/gtk-2.0/gtk/gtk.h:/usr/include/gtk-2.0/gtk/gtk.h"
fi fi
...@@ -467,7 +468,8 @@ else ...@@ -467,7 +468,8 @@ else
echo "Mandatory :" echo "Mandatory :"
if [ $pwre_conf_qt -eq 1 ]; then if [ $pwre_conf_qt -eq 1 ]; then
pwre_config_check_lib qt QT qt qt 0 "/usr/lib/libQtGui.so:/usr/lib/$hwpl-linux-$gnu/libQtGui.so" pwre_config_check_lib qt QT qt qt 0 "/usr/lib/libQtGui.so:/usr/lib/$hwpl-linux-$gnu/libQtGui.so"
else fi
if [ $pwre_conf_gtk -eq 1 ]; then
pwre_config_check_lib gtk GTK gtk gtk 0 "/usr/lib/libgtk-x11-2.0.so:/usr/lib/$hwpl-linux-$gnu/libgtk-x11-2.0.so" pwre_config_check_lib gtk GTK gtk gtk 0 "/usr/lib/libgtk-x11-2.0.so:/usr/lib/$hwpl-linux-$gnu/libgtk-x11-2.0.so"
fi fi
...@@ -488,7 +490,8 @@ else ...@@ -488,7 +490,8 @@ else
pwre_config_check_include qt QT 1 "/usr/include/qt4/QtCore/QtCore" pwre_config_check_include qt QT 1 "/usr/include/qt4/QtCore/QtCore"
pwre_config_check_include qt QT 1 "/usr/include/qt4/QtGui/QtGui" pwre_config_check_include qt QT 1 "/usr/include/qt4/QtGui/QtGui"
pwre_config_check_include qt QT 1 "/usr/include/qt4/QtNetwork/QtNetwork" pwre_config_check_include qt QT 1 "/usr/include/qt4/QtNetwork/QtNetwork"
else fi
if [ $pwre_conf_gtk -eq 1 ]; then
pwre_config_check_include gtk GTK 1 "/usr/local/include/gtk-2.0/gtk.h:/usr/local/include/gtk-2.0/gtk/gtk.h:/usr/include/gtk-2.0/gtk/gtk.h" pwre_config_check_include gtk GTK 1 "/usr/local/include/gtk-2.0/gtk.h:/usr/local/include/gtk-2.0/gtk/gtk.h:/usr/include/gtk-2.0/gtk/gtk.h"
fi fi
pwre_config_check_include alsa ALSA 1 "/usr/include/alsa/asoundlib.h" pwre_config_check_include alsa ALSA 1 "/usr/include/alsa/asoundlib.h"
......
...@@ -155,20 +155,6 @@ set_env() ...@@ -155,20 +155,6 @@ set_env()
else else
export pwre_conf_mysql=0 export pwre_conf_mysql=0
fi fi
# Gtk
if [ -e /usr/lib/libgtk-x11-2.0.so ]; then
export pwre_conf_gtk=1
else
export pwre_conf_gtk=0
fi
# Qt
if [ -e /usr/lib/x86_64-linux-gnu/libQtGui.so ]; then
export pwre_conf_qt=1
elif [ -e /usr/lib/i386-linux-gnu/libQtGui.so ]; then
export pwre_conf_qt=1
else
export pwre_conf_qt=0
fi
# libusb # libusb
if [ -e /usr/lib/libusb-1.0.so ]; then if [ -e /usr/lib/libusb-1.0.so ]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment