On Sat, 09 Aug 2008, Massimo Belgrano wrote:

Hi Massimo

> 1) Open Application accessory Terminal
> 2) If prompt is $ then type 
> sudo  -s
> 3) type follow command
> apt-get update; apt-get install wget cvs rcs build-essential ncurses-dev
> libslang2-dev tk8.3-dev unixodbc-dev subversion

OK.

> rm -fr /usr/src/harbour
> cd /usr/src
> svn co
> https://harbour-project.svn.sourceforge.net/svnroot/harbour-project/trun
> k/harbour harbour
> cd /usr/src/harbour

I suggest to drop root acount for above and always build Harbour
binaries from non root acount. I suggest it for all programs.
A small typo in build scripts may cause that your system will
be demaged.

   cd $HOME
   mkdir src
   cd src
   svn co 
https://harbour-project.svn.sourceforge.net/svnroot/harbour-project/trunk/harbour
 harbour
   cd harbour

> export HB_BIN_INSTALL=/usr/bin/; export HB_LIB_INSTALL=/usr/lib/; export
> HB_INC_INSTALL=/usr/include/
> chmod 700 make_gnu.sh
> sh ./make_gnu.sh clean; sh ./make_gnu.sh; sh ./make_gnu.sh install
> harbour -build

This works but if you are using Ubuntu then you can create native .deb
packages by:
   ./make_deb.sh
and then simply install harbour*.deb file in your system.

> Please post any comment or suggestion if I made same error

See above.

> How can I compile follow  sample in gtxwc and gttrm and other linux gt
> ??
> function main()
> do while .t.
>    setcolor("w/n")
>    clear screen
>    dummy:="N"
>    @ 3,3 say "Hello World" color "w/r"
>    @ 4,3 say "I am harbour!-)" color "w/b"
>    @ 5,3 say "Do you want exit? "
>    @ row(), col()+1 get dummy picture "@K!"
>    read
>    if dummy=="Y"
>       clear screen
>       quit
>    endif
>    @ 8,10 say "Ok You don't want exit from application"
>    inkey(2)
> enddo
> return nil

hbmk -n -w -es2 test.prg

see doc/howtobld.txt for detail description of hb* scripts.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to