FiveWin Wiki
- Antonio Linares
- Site Admin
- Posts: 42519
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
Hi Antonio
I will test it out from scratch. My guess is that if svn is required one would have to go
as a first step?
Also it might be worthwhile pointing out that sudo apt-get install is the command for Debian based (and therefore Ubuntu etc) LInux distributions ans distributions such as Red Hat, Centos etc will require different commands. The SVN web site you point them to is very helpful in this regard, but its probably something a LInux newbie especially needs to know as they will need to download libraries as well with commands like
Regards
Doug
I will test it out from scratch. My guess is that if svn is required one would have to go
Code: Select all | Expand
sudo apt-get install subversion
as a first step?
Also it might be worthwhile pointing out that sudo apt-get install is the command for Debian based (and therefore Ubuntu etc) LInux distributions ans distributions such as Red Hat, Centos etc will require different commands. The SVN web site you point them to is very helpful in this regard, but its probably something a LInux newbie especially needs to know as they will need to download libraries as well with commands like
Code: Select all | Expand
sudo apt-get install glade-2
Regards
Doug
- Antonio Linares
- Site Admin
- Posts: 42519
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
Hi Antonio
apt-get install advises if you have the latest version and if so does nothing so just suggesting that is possibly simpler.
When you said that the download would take some time you weren't kidding. Its been going in excess of 2 hours here. Downloading (I gather) source for many different releases of Harbour. (Thank goodness for large hard disks.) Would the average user want this or can they just download the l;atest? How do you determine which release you are going to make?
Good idea - I wonder if there is one that covers most distributions as they do rather differ? My suggestion would be to at least explain on the wiki for Ubuntu on the assumption that it is your suggested distribution. That's why I went Ubuntu.
Regards
Doug
Probably the first step is to type svn --version (or similar) and check if it is installed, so there is no need to install it.
apt-get install advises if you have the latest version and if so does nothing so just suggesting that is possibly simpler.
When you said that the download would take some time you weren't kidding. Its been going in excess of 2 hours here. Downloading (I gather) source for many different releases of Harbour. (Thank goodness for large hard disks.) Would the average user want this or can they just download the l;atest? How do you determine which release you are going to make?
Maybe we could point to a website where packages installation for Linux is explained, so we don't have to go to that level of details in the wiki.
Good idea - I wonder if there is one that covers most distributions as they do rather differ? My suggestion would be to at least explain on the wiki for Ubuntu on the assumption that it is your suggested distribution. That's why I went Ubuntu.
Regards
Doug
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
Hi Antonio
I haven't yet found a site that gives instructions on how to install packages on the various Linux distributions but I did find some excellent (and very detailed) documentation on apt at
http://www.debian.org/doc/user-manuals
under APT How To. Includes a lot of very useful information such as how to find package names (page 23 and following).
I haven't yet found a site that gives instructions on how to install packages on the various Linux distributions but I did find some excellent (and very detailed) documentation on apt at
http://www.debian.org/doc/user-manuals
under APT How To. Includes a lot of very useful information such as how to find package names (page 23 and following).
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
Hi Antonio
Download went fine. Rather than type the svn command in I copied the command into my text editor and saved it as geth.sh, made that file executable and ran the shell script. Less potential problem with typos that way?
I first had to find make_gnu.sh. That required:
(not in your current instructions). Then as you said
The make_gnu.sh shell script seemed to run fine although I did get some messages about ignoring certain libraries at the end.
Next step is to work out what I need to transfer to the regular directories. (Final instructions will need to be more specific here.)
It took a bit of effort to find the harbour executable. I didn't expect it to be in a fairly deep directory labelled source. It was at
./harbour-project/branches/harbour-1.0/source/main/linux/gcc
I've copied it to /harbour/bin which I assume is correct.
I assume there are a lot of libraries to be copied etc. Can you be a little more specific about what has to happen from hereon in?
Regards
Doug
Download went fine. Rather than type the svn command in I copied the command into my text editor and saved it as geth.sh, made that file executable and ran the shell script. Less potential problem with typos that way?
I first had to find make_gnu.sh. That required:
Code: Select all | Expand
cd ./harbour-project/branches/harbour-1.0
(not in your current instructions). Then as you said
Code: Select all | Expand
chmod +x ./make_gnu.sh
./make_gnu.sh
The make_gnu.sh shell script seemed to run fine although I did get some messages about ignoring certain libraries at the end.
Next step is to work out what I need to transfer to the regular directories. (Final instructions will need to be more specific here.)
It took a bit of effort to find the harbour executable. I didn't expect it to be in a fairly deep directory labelled source. It was at
./harbour-project/branches/harbour-1.0/source/main/linux/gcc
I've copied it to /harbour/bin which I assume is correct.
I assume there are a lot of libraries to be copied etc. Can you be a little more specific about what has to happen from hereon in?
Regards
Doug
- Antonio Linares
- Site Admin
- Posts: 42519
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
Doug,
> How do you determine which release you are going to make?
It depends on which build you are interested in: an "official" release or the "trunk" (current one). IMO Harbour and xHarbour are so stable that the current build can safely be used (if problems are found you can always go to a previous build).
Thats why I have not mentioned it. We don't know what build the user is interested in. Lets the user do some research by himself![Smile :-)](./images/smilies/icon_smile.gif)
> How do you determine which release you are going to make?
It depends on which build you are interested in: an "official" release or the "trunk" (current one). IMO Harbour and xHarbour are so stable that the current build can safely be used (if problems are found you can always go to a previous build).
Thats why I have not mentioned it. We don't know what build the user is interested in. Lets the user do some research by himself
![Smile :-)](./images/smilies/icon_smile.gif)
- Antonio Linares
- Site Admin
- Posts: 42519
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
- Antonio Linares
- Site Admin
- Posts: 42519
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
Doug,
>
It took a bit of effort to find the harbour executable. I didn't expect it to be in a fairly deep directory labelled source. It was at
./harbour-project/branches/harbour-1.0/source/main/linux/gcc
>
Yeah, its crazy where it gets placed
> I've copied it to /harbour/bin which I assume is correct.
Yes, much simpler
>
I assume there are a lot of libraries to be copied etc. Can you be a little more specific about what has to happen from hereon in?
>
I would explain what Linux packages are required to be installed in order to build and run FiveLinux applications.
>
It took a bit of effort to find the harbour executable. I didn't expect it to be in a fairly deep directory labelled source. It was at
./harbour-project/branches/harbour-1.0/source/main/linux/gcc
>
Yeah, its crazy where it gets placed
![Smile :-)](./images/smilies/icon_smile.gif)
> I've copied it to /harbour/bin which I assume is correct.
Yes, much simpler
![Smile :-)](./images/smilies/icon_smile.gif)
>
I assume there are a lot of libraries to be copied etc. Can you be a little more specific about what has to happen from hereon in?
>
I would explain what Linux packages are required to be installed in order to build and run FiveLinux applications.
- Antonio Linares
- Site Admin
- Posts: 42519
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
Hi Antonio
Thanks. That's the bit I wasn't sure about. Easy to find given the above skeleton. They are in
./harbour-project/branches/harbour-1.0/lib/linux/gcc
Include files were easy to find
./harbour-project/branches/harbour-1.0/include
as are the doc files
./harbour-project/branches/harbour-1.0/doc
(and) ./harbour-project/branches/harbour-1.0/doc/en (for me)
I'll try to get it working tomorrow (its late tonight) and then write it up. It all went a lot more smoothly than trying to create xHarbour from source - which I still need to resolve.
That bit I know rather well!
Regards
Doug
Also it may be a good idea to explain that libraries start with "lib..." and ends with ".a" and where they are placed by make_gnu.sh, so they can be copied all together to a lib folder.
Thanks. That's the bit I wasn't sure about. Easy to find given the above skeleton. They are in
./harbour-project/branches/harbour-1.0/lib/linux/gcc
Include files were easy to find
./harbour-project/branches/harbour-1.0/include
as are the doc files
./harbour-project/branches/harbour-1.0/doc
(and) ./harbour-project/branches/harbour-1.0/doc/en (for me)
I'll try to get it working tomorrow (its late tonight) and then write it up. It all went a lot more smoothly than trying to create xHarbour from source - which I still need to resolve.
I would explain what Linux packages are required to be installed in order to build and run FiveLinux applications.
That bit I know rather well!
Regards
Doug
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
Hi Antonio
I just got /samples/testdlg.prg compiling with harbour / FiveLinux. Maybe my build.sh was out of date? I had to change the names of many of the libraries to be linked in. Many now had hb in the name (eg had to change -lcommon to -lhbcommon), others had other changes as well ( eg -lcodepage to -lhbcpage ), the libraries that started dbf generally changed to rdd ( eg -ldbfntx to -lrddntx). Additionally I had to add a library ( -lgttrm).
My modified build.sh (I called it buildh.sh in order to keep the original intact for the time being) is as follows:
Is this correct?
Regards
Doug
I just got /samples/testdlg.prg compiling with harbour / FiveLinux. Maybe my build.sh was out of date? I had to change the names of many of the libraries to be linked in. Many now had hb in the name (eg had to change -lcommon to -lhbcommon), others had other changes as well ( eg -lcodepage to -lhbcpage ), the libraries that started dbf generally changed to rdd ( eg -ldbfntx to -lrddntx). Additionally I had to add a library ( -lgttrm).
My modified build.sh (I called it buildh.sh in order to keep the original intact for the time being) is as follows:
Code: Select all | Expand
# ./buildh.sh
clear
if [ $# = 0 ]; then
echo syntax: ./build.sh file [options...]
exit
fi
echo compiling...
./../../harbour/bin/harbour $1 -n -I./../include -I./../../harbour/include $2
echo compiling C module...
gcc $1.c -c -I./../include -I./../../harbour/include `pkg-config --cflags gtk+-2.0`
echo linking...
gcc $1.o -o$1 -L./../lib -L./../../harbour/lib `pkg-config --libs gtk+-2.0` `pkg-config --libs libglade-2.0` `pkg-config --libs libgnomeprintui-2.2` -Wl,--start-group -lfive -lfivec -lhbcommon -lhbvm -lhbrtl -lhbrdd -lhbmacro -lhblang -lhbcpage -lhbpp -lrddntx -lrddcdx -lrddfpt -lhbsix -lhbusrrdd -lhbct -lgtstd -lhbdebug -lgttrm -lm -lgpm -lncurses -Wl,--end-group
rm $1.c
rm $1.o
echo done!
./$1
Is this correct?
Regards
Doug
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
- Antonio Linares
- Site Admin
- Posts: 42519
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact: