Restarting with FiveLinux

User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Willy,

> I did not find a way to change the PKG_CONFIG_PATH variable

Please uninstall and reinstall glade-2 and if the problem remains there, then do:

export PKG_CONFIG_PATH=<path_to_glade-2>
regards, saludos

Antonio Linares
www.fivetechsoft.com
Willy
Posts: 117
Joined: Thu Mar 02, 2006 11:06 am
Location: Belgium

Post by Willy »

Antonio,

I've tried this several times in several ways

I still have the following result

Code: Select all

compiling C module...
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!
I've used
export PKG_CONFIG_PATH=usr/bin/
export PKG_CONFIG_PATH=/usr/bin/
export PKG_CONFIG_PATH="/usr/bin/"
export PKG_CONFIG_PATH='/usr/bin/'

and so on.

Always the same result.

Greetings

Willy
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Willy,

Are you using Ubuntu 7.10 ? Here it works fine

All you need is to do:
sudo apt-get install glade-2
regards, saludos

Antonio Linares
www.fivetechsoft.com
Willy
Posts: 117
Joined: Thu Mar 02, 2006 11:06 am
Location: Belgium

Post by Willy »

Indeed,

I use an Ubunto gnome 7.10 English on a windows xp/vmware session

and an Ubunto 7.10 Dutch on a dual boot system.

I shall retry after complete reinstalling the OS.

Greetings,

Willy.
User avatar
xProgrammer
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Post by xProgrammer »

Willy

To get your missing library go

sudo apt-get install libglade2-dev

It was left off the list Antonio sent you I believe

Regards

xProgrammer
Willy
Posts: 117
Joined: Thu Mar 02, 2006 11:06 am
Location: Belgium

Post by Willy »

Thanks xProgrammer.

I've just executed the "hello world"

So the environment seems to work.

Do you also know if there is sql library for Linux like the commercial sql from xharbour.com

Thanks

Willy
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Willy,

>
I've just executed the "hello world"
So the environment seems to work.
>

Good! :-)

>
Do you also know if there is sql library for Linux like the commercial sql from xharbour.com
>

I don't know it... :-(
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
xProgrammer
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Post by xProgrammer »

Hi Willy

Good luck with your current look at FiveLinux. I hope you end up using it. Whilst it hasn't got all the cute extensions that FiveWin has, and there are a few minor issues, you can produce robust, well designed applications with it. My application ran without any problems whilst I took a 6 week holiday.

As to your question re an SQL library for Linux like xHarbour SQLRDD I believe that the xHarbour SQLRDD already supports Linux - and that it is code compatible with the Windows version.

Another option would appear to be the Advantage Data Base Server - now a Sybase company. I believe it supports Linux and Windows based clients and table (traditional xBase style) and query (SQL style) interaction with the data base server.

Regards
Doug
(xProgrammer)
Willy
Posts: 117
Joined: Thu Mar 02, 2006 11:06 am
Location: Belgium

Post by Willy »

Hello,

I've just ordered the Linux version of SQLRDD.

Thanks for the support.

Willy
User avatar
xProgrammer
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Post by xProgrammer »

Hi Willy

When you have had a chance to play with it, let me know what your impressions are.

I have just started setting up an NFS network and will soon be testing file locking the traditional xBase way with xHarbour/FiveLinux.

Regards
Doug
(xProgrammer)
Willy
Posts: 117
Joined: Thu Mar 02, 2006 11:06 am
Location: Belgium

Post by Willy »

Hello,

I had to reinstall my whole developper PC because I had a Harddisk crash.

So that is done now.

That means also that I had the chance to start from nothing. Now I have a dual boot with 300 GB Windows and 200 GB Ubuntu 7.10.

On the new installation the FiveLinux is already working.

I wait for the SQL driver from Patrick Mast to do some test with it.

The goal is "write once" compile twice. (Linux and Windows ) and have an executable for more platforms for different DBMS.

But there is still a llong way to go.

Greetings,

Willy.
User avatar
xProgrammer
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Post by xProgrammer »

>The goal is "write once" compile twice. (Linux and Windows ) and have an executable for more platforms for different DBMS.<

Should be achievable but you'll have to restrict the features you use and get familiar with both systems as their are some differences. A few #command's and #ifdef's would help.

I code all my screens rather than use resources (which wouldn't be compatible - for linux you would have to use glade), That code could be the same for fivewin and fivelinux I believe but there are restrictions such as:

fivelinux doesn't support PIXEL so you have to use simulated row, column.

fivelinux doesn't support READONLY but you can substitute WHEN .F. (which works fine on both platforms).

with fivelinux you'll need more SIZE clauses for says and gets

I started with fivewin (because I knew the platform better) but the goal was to use fivelinux. Because I had no knowledge of the differences between the two I had a bit of conversion to do when I switched platforms - but not a great deal. I think most of the code I write now would require very little change to compile with fivewin but I haven't tested that. You do have to forgo all the fancy extras that come with fivewin.

I'll follow your progress with interest.

Regards
Doug
(xProgrammer)
Willy
Posts: 117
Joined: Thu Mar 02, 2006 11:06 am
Location: Belgium

Post by Willy »

Hello,

Well, because I am not already a Linux specialist it will not go fast.

I can just spend some spare time to this project.

I received the SQL lib but it is a RPM file.

I hope to receive the .deb file also. I've asked it already.

Now I am searching for a good make sample.

Do you know where I can find some samples.

Already many thanks for the ge-reat support Doug.

Bey,

Willy
User avatar
xProgrammer
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Post by xProgrammer »

Hi Willy

When you ask for a good make sample do you mean a make file to build SQLRDD from source or to build xHarbour / fivelinux / SQLRDD applications?

For the latter just modify buildx.sh. As I don't have SQLRDD I can't tell you what additional libraries you need to link in, but it should be easy enough.

For the application I am currently working on my build file looks like this:

Code: Select all

# ./mb.sh

clear


echo compiling mSYS xHarbour code to C code ...
./../../xharbour/bin/harbour mSYS.prg -n -I./../include -I./../../xharbour/include 
echo compiling mTEMLIST xHarbour code to C code ...
./../../xharbour/bin/harbour mTEMLIST.prg -n -I./../include -I./../../xharbour/include
echo compiling xOBJECTS xHarbour code to C code ...
./../../xharbour/bin/harbour xOBJECTS.prg -n -I./../include -I./../../xharbour/include
echo compiling PATIENT_Class xHarbour code to C code ...
./../../xharbour/bin/harbour PATIENT_Class.prg -n -I./../include -I./../../xharbour/include
echo compiling PATFILE_Class xHarbour code to C code ...
./../../xharbour/bin/harbour PATFILE_Class.prg -n -I./../include -I./../../xharbour/include
echo compiling EXTEND5 xHarbour code to C code ...
./../../xharbour/bin/harbour EXTEND5.prg -n -I./../include -I./../../xharbour/include
echo compiling DOCTOR_Classes xHarbour code to C code ...
./../../xharbour/bin/harbour DOCTOR_Classes.prg -n -I./../include -I./../../xharbour/include
echo compiling OSTEO_Class xHarbour code o C code ...
./../../xharbour/bin/harbour OSTEO_Class.prg -n -I./../include -I./../../xharbour/include


echo compiling mSYS C module...
gcc mSYS.c -c -I./../include -I./../../xharbour/include `pkg-config --cflags gtk+-2.0`
echo compiling mTEMLIST C module...
gcc mTEMLIST.c -c -I./../include -I./../../xharbour/include `pkg-config --cflags gtk+-2.0`
echo compiling xOBJECTS C module...
gcc xOBJECTS.c -c -I./../include -I./../../xharbour/include `pkg-config --cflags gtk+-2.0`
echo compiling PATIENT_Class C module...
gcc PATIENT_Class.c -c -I./../include -I./../../xharbour/include `pkg-config --cflags gtk+-2.0`
echo compiling PATFILE_Class C module...
gcc PATFILE_Class.c -c -I./../include -I./../../xharbour/include `pkg-config --cflags gtk+-2.0`
echo compiling EXTEND5 C module...
gcc EXTEND5.c -c -I./../include -I./../../xharbour/include `pkg-config --cflags gtk+-2.0`
echo compiling OSTEO C module...
gcc OSTEO_Class.c -c -I./../include -I./../../xharbour/include `pkg-config --cflags gtk+-2.0`



echo linking...
gcc mSYS.o  mTEMLIST.o xOBJECTS.o PATIENT_Class.o PATFILE_Class.o EXTEND5.o OSTEO_Class.o -omSYS -L./../lib -L./../../xharbour/lib `pkg-config --libs gtk+-2.0` `pkg-config --libs libglade-2.0` `pkg-config --libs libgnomeprintui-2.2` -Wl,--start-group -lfivex -lfivec -lcommon -lvm -lrtl -lrdd -lmacro -llang -lcodepage -lpp -ldbfntx -ldbfcdx -ldbffpt -lhbsix -lhsx -lpcrepos -lusrrdd -ltip -lct -lcgi -lgtnul -lgtstd -lgtcgi -lgtcrs -lhbodbc -ldebug -lm -lgpm -lncurses -Wl,--end-group

echo done!
Like you starting out with fivelinux was pretty much my introduction to linux itself also. I still have a lot to learn. But I have picked up enough to possibly be a bit helpful. If you need the fivelinux build files explained further I think I can manage that. Just let me know. If we get a few more serious developers using it fivelinux will only improve - and its really good already.

I have just set up NFS networking and am about to extend that across a VPN. To date my fivelinux software has been single user only but I hope to be multi-user shortly (code was already set up for multi user). There is a lot of "HOW TO" information available on the internet, but so often its incomplete or assumes knowledge that you just don't have. I needed information out of four different how to's on NFS networking to get NFS version 4 up and running!

Regards
Doug
(xProgrammer)
Post Reply