Doug,
I will check it in a while from Linux.
Please have a look at the first draft for Harbour installation from Linux and Mac:
Doug,
I will check it in a while from Linux.
Please have a look at the first draft for Harbour installation from Linux and Mac:
sudo apt-get install subversion sudo apt-get install glade-2Doug,
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.
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.
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.
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.
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).
cd ./harbour-project/branches/harbour-1.0chmod +x ./make_gnu.sh
./make_gnu.shDoug,
> 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 ![]()
Doug,
>
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?
>
yes, thats the way we do it here ![]()
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.
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.
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.
I would explain what Linux packages are required to be installed in order to build and run FiveLinux applications.
Hi Antonio
I did try to quickly compile testdlg.prg from /fivelinux/samples/ using build.sh (rather than buildx.sh) but got an error so I've done something wrong.
Error message was:
/usr/bin/ld: cannot find -lcommon
I note that /harbour/lib/ has a libhbcommon.a
Regards
Doug
# ./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!
./$1Hi Antonio
I have been posting to this thread because it was the one started on the FiveTech wiki, but as this thread is getting rather long, and my work on the wiki is related to FiveLinux, I'll start a wiki thread on the FiveLinux forum and tell you what I've done.
Regards
Doug
Doug,
> I note that /harbour/lib/ has a libhbcommon.a
Yes, Harbour libs have been renamed in this past months.
> I'll start a wiki thread on the FiveLinux forum and tell you what I've done.
yes, good idea, specially for Linux specific issues. Thanks,