On 12/02/2008 03:51 PM, Barry Jackson wrote:
I am trying to build xhgtk library in Linux.
I have extracted xhgtk_20080616.zip to /home/baz/xhgtk then:-
[EMAIL PROTECTED] xhgtk]$ ./build.sh
bash: ./build.sh: Permission denied
If I make build.sh executable, then:-
[EMAIL PROTECTED] xhgtk]$ ./build.sh
: command not found
: command not found
: No such file or directory
'. Stop. No rule to make target `Makefile
: command not found:
[EMAIL PROTECTED] xhgtk]$
I have also tried the above as root although I am sure that is not needed.
What am I doing wrong?
How download and compile xhgtk into Ubuntu
using Harbour (harbour from cvs)
Open a terminal and type:
cd
wget http://heanet.dl.sourceforge.net/sourceforge/xhgtk/xhgtk_20080616.zip
unzip xhgtk_20080616.zip
cd xhgtk
--------------------------------------------------------------------------------------
gedit source/gtk/gtkliststore.c +222
Change the row:
hb_dateFormat( hb_pardsbuff( szDate, 4 ), szFormatted,
hb_set.HB_SET_DATEFORMAT );
with
hb_dateFormat( hb_pardsbuff( szDate, 4 ), szFormatted,
hb_setGetDateFormat() );
------------
gedit source/gtk/gtkliststore.c +141
change the row:
hb_dateFormat( hb_pardsbuff( szDate, i+1 ), szFormatted,
hb_set.HB_SET_DATEFORMAT );
to
hb_dateFormat( hb_pardsbuff( szDate, i+1 ), szFormatted,
hb_setGetDateFormat() );
--------------------------------------------------------------------------------------
mkdir obj
mkdir lib
export HB_BIN_INSTALL=/usr/bin; export HB_INC_INSTALL=/usr/include
make
--------- How to compile sample/misc
To compile some examples, type:
sudo apt-get install tofrodos glade-gnome
cd samples/misc
dos2unix build.sh
gedit build.sh
Modify and add the -lgttrm library to as below
if [ $HB_GT_LIB = gtsln ]; then
LIBFILES="$LIBFILES -lgtsln -lslang -lgttrm"
fi
export HB_COMPILER=gcc; export HB_GT_LIB=gtsln
chmod 700 build.sh
./build.sh datepicker
--------- How to compile sample/glade these files are glade related
Glade Interface Designer is a graphical user interface builder for GTK+,
with additional components for GNOME.
In its third version, Glade is programming language–independent, and
does not produce code for events,
but rather an XML file that is then used with an appropriate binding
(such as gtkada for use with the
Ada programming language).
To install Glade
sudo apt-get install glade-gnome
cd ../gladea littel
dos2unix build.sh
chmod 700 build.sh
Modify and add the -lgttrm library to as below
if [ $HB_GT_LIB = gtsln ]; then
LIBFILES="$LIBFILES -lgtsln -lslang -lgttrm"
fi
Then type or better copy and paste
echo '#!/bin/bash' > lin_compile_all.sh
echo 'export HB_COMPILER=gcc; export HB_GT_LIB=gtsln' >> lin_compile_all.sh
ls -1 *.prg | sed 's/.prg//' | sed 's/^/.\/build.sh /' >> lin_compile_all.sh
chmod 700 lin_compile_all.sh
./lin_compile_all.sh
--------- How to compile sample/functions
cd ../functions
dos2unix build.sh
chmod 700 build.sh
Modify and add the -lgttrm library to as below
if [ $HB_GT_LIB = gtsln ]; then
LIBFILES="$LIBFILES -lgtsln -lslang -lgttrm"
fi
echo '#!/bin/bash' > lin_compile_all.sh
echo 'export HB_COMPILER=gcc; export HB_GT_LIB=gtsln' >> lin_compile_all.sh
ls -1 *.prg | sed 's/.prg//' | sed 's/^/.\/build.sh /' >> lin_compile_all.sh
chmod 700 lin_compile_all.sh
./lin_compile_all.sh
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour