Restarting with FiveLinux
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Antonio,
I've tried this several times in several ways
I still have the following result
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
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!
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
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)
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)
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
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.
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.
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
>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)
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)
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
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
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
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:
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)
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!
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)