Page 1 of 2

Restarting with FiveLinux

Posted: Fri Jan 04, 2008 2:45 pm
by Willy
Hello Antonio,

A few years ago I bought FiveLinux 1.0.

I just used it a short time to try it out.

I want to restart with it on a recent distribution. (Ubuntu)

This distribution is of course much evoluated newer version of GCC, GTK etc.

Is my old version working with the actual distributions or is it better to reinstall my old Mandrake version.

Greetings

Willy.

Posted: Fri Jan 04, 2008 7:02 pm
by Antonio Linares
Willy,

We strongly recommend you to use Ubuntu 7.10, as it is extremelly friendly and stable.

We will deliver you an upgraded build of FiveLinux, tested with that Ubuntu build.

Posted: Sat Jan 05, 2008 5:39 am
by Willy
Thanks Antonio,

I use already the latest Ubuntu.

Are you sending this to my email.

Greetings,

Willy.

Posted: Mon Jan 07, 2008 1:23 pm
by Antonio Linares
Willy,

Already sent by email,

Posted: Mon Jan 07, 2008 3:20 pm
by Willy
Thanks Antonio,

I will find it when I am back home

Posted: Mon Jan 07, 2008 9:12 pm
by Willy
I received the files.

Thanks.

In what map does I have to copy them.

The xHarbour installation files install xHarbour in a different place now.

Greetings,

Willy.

Posted: Mon Jan 07, 2008 10:16 pm
by Antonio Linares
Willy,

We prefer to manually create a folder at /home/<user>/harbour and unzip it there:

mkdir /home/<user>/harbour

Same for fivelinux

Posted: Tue Jan 08, 2008 9:48 am
by Willy
Hello,

The xHarbour files for Ubuntu are delivered in a .deb file.

They are automatically installed without the possibillity to choose the installation map.

I did not found another version.

Is there a way to install xHarbour in a choosed map.

Thanks,

Willy

Posted: Tue Jan 08, 2008 2:51 pm
by Willy
The same problem sames to occur with the Harbour binaries.

The ubunto version is only delivered in a .deb file

Any idea.

Thanks,

Willy.

Posted: Tue Jan 08, 2008 6:23 pm
by Antonio Linares
Willy,

Download Harbour and xHarbour for Linux from here:

www.fivetechsoft.com/files/harbour.zip
www.fivetechsoft.com/files/xharbour.zip

Unzip them where you want to :-)

Posted: Wed Jan 09, 2008 6:07 pm
by Willy
Thanks Antonio,

I've received the working files.

I still have some problems.

Compiling to C code seems to work.
Then The build file refer to GTK 2.O where ubuntu has GCC 4.. compiler

the result is the folowing error file

--------------------------------------
compiling...
xHarbour Compiler build 0.99.71 (SimpLex)
Copyright 1999-2007, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'tutor01.prg'...
Lines 9, Functions/Procedures 1
Generating C source output to 'tutor01.c'...
Done.
compiling C module...
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
-------------------------------------------

Is it nescesarry to install a GCC 2 compiler of can we use the latest compiler.

Is there a working build file for my system.

Because I have not much experience with Linux I do not know where to start.

Greetings

Willy

Posted: Wed Jan 09, 2008 7:15 pm
by Antonio Linares
Willy,

You have to install these packages from a terminal window:

sudo apt-get install libgtk2.0-dev
sudo apt-get install gcc
sudo apt-get install libncurses5-dev
sudo apt-get install libgpmg1-dev
sudo apt-get install libgnomeprintui2.2-dev
sudo apt-get install glade-2

Posted: Thu Jan 10, 2008 1:20 pm
by Willy
Thanks Antonio,

Again a step further.

The .prg files are already converted to .C and compiled to .o files

When linking there is still an error

Code: Select all

linking...
Package libglade-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libglade-2.0.pc'
to the PKG_CONFIG_PATH environment variable
I have tried te remove Glade and reinstalled it several times.
I did not find a way to change the PKG_CONFIG_PATH variabele

Any idea.

Thanks

Willy

Posted: Thu Jan 10, 2008 2:05 pm
by Antonio Linares
Willy,

Please remove this `pkg-config --libs libglade-2.0` from samples\build.sh and try it again

Posted: Thu Jan 10, 2008 2:19 pm
by Willy
Antonio,

I had already tried that.
The glade-2.0 lib seems to be nescesarry for tutor01.prg

Then I have the following error

Code: Select all

linking...
./../lib/libfivec.a(lnx.o): In function `HB_FUN_SETRESOURCES':
lnx.c:(.text+0x27b): undefined reference to `glade_xml_new'
./../lib/libfivec.a(lnx.o): In function `HB_FUN_LOADDIALOG':
lnx.c:(.text+0x2a7): undefined reference to `glade_xml_get_widget'
./../lib/libfivec.a(lnx.o): In function `HB_FUN_LOADBUTTON':
lnx.c:(.text+0x3a8): undefined reference to `glade_xml_get_widget'
collect2: ld returned 1 exit status
done!
./buildx.sh: line 23: ./tutor01: No such file or directory
root@Willy:/home/willy/fivelinux/samples#