On 09/02/2009 07:49 PM, Angel Pais wrote:
When trying to compile this new lib on Ubuntu I get...

an...@angel-laptop:~/src/harbour$ make
! Building Harbour 2.0.0beta2 from source - http://www.harbour-project.org
! MAKE: make 3.81 /bin/sh
! HB_INSTALL_PREFIX: /usr/bin
! HB_BIN_INSTALL: /usr/bin
! HB_LIB_INSTALL: /usr/lib
! HB_INC_INSTALL: /usr/include
! HB_HOST_PLAT: linux HB_SHELL: sh
! HB_PLATFORM: linux (autodetected)
! HB_COMPILER: gcc (autodetected: /usr/bin/)
! Component: 'openssl' found in /usr/include
! Component: 'gpm' found in /usr/include
! Component: 'slang' found in /usr/include
! Component: 'curses' found in /usr/include
! Component: 'x11' found in /usr/include
! Component: 'WATTCP/WATT-32' not supported on linux platform
! REVISION: 12394
make[2]: No se hace nada para `all'.
make[1]: No se hace nada para `all'.
make[3]: `../../../../../bin/linux/gcc/harbour' está actualizado.
make[3]: `../../../../../lib/linux/gcc/libhbrtl.a' está actualizado.
make[4]: `../../../../../../lib/linux/gcc/libgtcgi.a' está actualizado.
make[4]: `../../../../../../lib/linux/gcc/libgtcrs.a' está actualizado.
! 'gtdos' library skipped
! 'gtgui' library skipped
! 'gtos2' library skipped
...
....
....
make[3]: `../../../../../lib/linux/gcc/libhbgt.a' está actualizado.
make[3]: `../../../../../lib/linux/gcc/libhbmisc.a' está actualizado.
make[3]: `../../../../../lib/linux/gcc/libhbmzip.a' está actualizado.
make[2]: *** No hay objetivos. Alto.
make[1]: *** [hbnetio] Error 2
make: *** [contrib] Error 2
an...@angel-laptop:~/src/harbour$

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

In previous reply please replace the row:

hbwmk -static -n -w -es2 netiotst

with this:

hbwmk -static -n -w -es2 -gtwin netiotst



I repost entirely here for clarity

HOW TO BUILD AND INSTALL HARBOUR FROM SOURCE AND CROSS COMPILE HARBOUR
FOR WIN ON LINUX
=======================================================================================

*----------------------------------------
( Tested on Ubuntu 9.04 and Ubuntu 9.10 )
*----------------------------------------

To get main reference please read the INSTALL file under the harbour
source directory

You need to be connected to the Net.

First please  enable the "universe" repositories from menu System →
Administration → Software Sources and confirm repositorie reload
Please install these deb packages... so you have almost all packages to
compile contrib libraries and related stuffs

Please open a terminal window Applications → Accessories → Terminal and
type or copy and paste (one row a time then press <enter>)

sudo apt-get update

When you use "sudo" the system ask you for a password, please typein
your user password: you will not see any feedback (i.e terminal chars)
when you type your password, so type the password, then press enter;

sudo apt-get install wget cvs rcs build-essential ncurses-dev
libslang2-dev tk8.3-dev unixodbc-dev subversion libncurses-dev
libx11-dev libgpm-dev libcurl4-openssl-dev firebird2.1-dev
libfreeimage-dev libgd2-xpm-dev libmysqlclient15-dev libpq-dev
libqt4-dev liballegro4.2-dev libsqlite3-dev wine dosemu-freedos mingw32

Then update from svn Harbour

1) - Please open a terminal window Applications → Accessories → Terminal
2) - Please check the requested packages are installed see above;
3) - Type the commands rows below you can also do a copy and paste of
the row, please copy and paste a row a time then press enter;
mkdir $HOME/src
cd $HOME/src
svn co
https://harbour-project.svn.sourceforge.net/svnroot/harbour-project/trunk/harbour
harbour
cd $HOME/src/harbour
export HB_BIN_INSTALL=/usr/bin
export HB_INSTALL_PREFIX=/usr/bin
export HB_LIB_INSTALL=/usr/lib
export HB_INC_INSTALL=/usr/include
make
sudo -E make install

When you use "sudo" the system ask you for a password, please type-in
your user password: you will not see any feedback (i.e terminal chars)
when you type your password, so type the password, then press enter;

to verify your build date of harbour, type:
harbour -build

to generate Harbour for Win

cd $HOME/src/harbour/; make HB_PLATFORM=win

export HB_INSTALL_PREFIX=/tmp/hbwin; make install HB_PLATFORM=win

Possible cross-build targets: Windows, Windows CE, MS-DOS, OS/2

You can use HB_PLATFORM values to select other platforms than Linux:

    win     - MS Windows (all flavors)
    wce     - MS Windows CE
    dos     - MS-DOS (32-bit protected mode only)
              (MS-DOS compatible system also work, like dosemu)
    os2     - OS/2


To generate the win exe files to be run with wine using Harbour

export HB_BIN_COMPILE=/tmp/hbwin/bin
export PATH=/tmp/hbwin/bin:$PATH

to your *nix PATH and then:

cd $HOME/src/harbour/contrib/hbnetio

hbwmk -static -n -w -es2 -gtwin netiotst

To check the file generated

# file netiotst.exe
netiotst.exe: PE32 executable for MS Windows (GUI) Intel 80386 32-bit

to run the file type:

wine ./netiotst.exe

Hope this helps
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to