

Toutes les commandes tapées au dessus on été faites pour vous aider pour montrer que j'ai installé PB comme dit, etc...
Code : Tout sélectionner
$ su
password :
# pbcompiler
******************************************
PureBasic Linux x86 v3.81
******************************************
A filename must be specified.
#
Loading external modules...
Starting compilation...
153 lines processed.
Creating the executable.
sh: line 1: gtk-config: command not found
sh: line 1: gtk-config: command not found
sh: line 1: gtk-config: command not found
/usr/bin/ld: cannot find -lSDL
collect2: ld returned 1 exit status
Code : Tout sélectionner
#!/bin/sh
prefix=/mingw/bin
exec_prefix=${prefix}
exec_prefix_set=no
usage="\
Usage: gtk-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs]"
if test $# -eq 0; then
echo "${usage}" 1>&2
exit 1
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--prefix=*)
prefix=$optarg
if test $exec_prefix_set = no ; then
exec_prefix=$optarg
fi
;;
--prefix)
echo $prefix
;;
--exec-prefix=*)
exec_prefix=$optarg
exec_prefix_set=yes
;;
--exec-prefix)
echo $exec_prefix
;;
--version)
echo 2.4.3
;;
--cflags)
echo -I${prefix}/include/gtk-2.0 -DGTK=2
# The portable way of including GTK is #include <gtk/gtk.h"
#if test ${prefix}/include != /usr/include ; then
# # Handle oddities in Win32 path handling (assumes prefix)
# prefix=`echo ${prefix} | sed 's,^//\([A-Z]\),\1:,'`
#
# includes=-I${prefix}/include
#fi
#echo $includes -I${prefix}/include/gtk-2.0 -I${prefix}/include/glib-2.0 -I${prefix}/include/atk-1.0 -I${prefix}/include/pango-1.0 -DGTK=2
;;
--libs)
libdirs="-L${exec_prefix}/lib "
echo $libdirs -lgtk-win32-2.0 -lgdk-win32-2.0 -lgthread-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv
;;
--static-libs)
# --libs|--static-libs)
libdirs="-L${exec_prefix}/lib "
echo $libdirs -lgtk-win32-2.0 -lgdk-win32-2.0 -lgthread-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv
;;
*)
echo "${usage}" 1>&2
exit 1
;;
esac
shift
done