Suggestions for Linux Editor/IDE for Harbour/xBase

770 views
Skip to first unread message

Sanjay Arora

unread,
Sep 11, 2011, 7:15:03 AM9/11/11
to harbou...@googlegroups.com
Hello All

I have installed Harbour on Fedora 15 & CentOS 6 machines. I am looking for suggestions for editor/IDE to use. On Windoze I used Edit, but am hoping for something better with better coding related features...indentation, line numbers, colour coding etc.

Tell me about your favourite editor/IDE for Linux.

With best regards.
Sanjay.

Viktor Szakáts

unread,
Sep 11, 2011, 7:44:24 AM9/11/11
to harbou...@googlegroups.com
Kate

Teo Fonrouge

unread,
Sep 11, 2011, 1:18:49 PM9/11/11
to harbou...@googlegroups.com
Hello Sanjay,

Kate ( part of KDE developer suit ) is an excellent editor.

best regards,


Teo

--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

Pritpal Bedi

unread,
Sep 11, 2011, 1:40:47 PM9/11/11
to Harbour Users
Hi

> Kate

What about hbIDE ?
I would be interested what better Kate provides.

Pritpal Bedi

Massimo Belgrano

unread,
Sep 11, 2011, 2:00:18 PM9/11/11
to harbou...@googlegroups.com
hbide

2011/9/11 Sanjay Arora <sanjay....@gmail.com>

--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users



--
Massimo Belgrano

Viktor Szakáts

unread,
Sep 11, 2011, 2:17:31 PM9/11/11
to harbou...@googlegroups.com
Kate is a pure and fast _editor_, an answer to the original 
question.

HBIDE can be an alternative for the IDE part of the question
(BTW it starts up much faster there than on Windows), but 
besides basic tests (with results reported here). I have not 
enough personal experience with it. I hope there will be HBIDE 
developers in the future, who actually use Linux/OS X, so the 
remaining (mostly UI) glitches can be ironed out.

Sanjay Arora

unread,
Sep 11, 2011, 2:46:47 PM9/11/11
to harbou...@googlegroups.com
Pritpal ji

hbIDE seems to be widoze only ;-( I am looking for a Linux application.

I am saying final goodbye to windoze ;-) Last windoze machine in my company was the dbase accounting machine, which they did not want to let go in favour of any other software till level of application customization was matched....and harbour solved that issue...they will retain their software while completing the move to Linux!

With best regards.
Sanjay.


Massimo Belgrano

unread,
Sep 11, 2011, 3:40:56 PM9/11/11
to harbou...@googlegroups.com
hbide works also on linux,mac-os because is based on hbqt

2011/9/11 Sanjay Arora <sanjay....@gmail.com>



--
Massimo Belgrano

Sanjay Arora

unread,
Sep 11, 2011, 4:40:30 PM9/11/11
to harbou...@googlegroups.com
Massimo

On Mon, Sep 12, 2011 at 1:10 AM, Massimo Belgrano <mbel...@deltain.it> wrote:
hbide works also on linux,mac-os because is based on hbqt


Download link on hbide.vouch.info provides only a .exe file  Can you give the link to a Linux/OS X download, executable or source.

Would also welcome comment from you & various users of usability of the Linux version compared to the Windows one.

Ciao.
Sanjay.

Claudia Neumann

unread,
Sep 11, 2011, 4:51:17 PM9/11/11
to harbou...@googlegroups.com
Hi Pritpal,

I have to admit, that I returned to kate as well.

At first I thought "whow, what a nice editor". I had some difficulties with the
highlighting which I mastered with the help of the newsgroup.

But: there are still some problems editing the code with hbide. For instance I
had problems copying code from one file to another and the cursor made funny
things jumping from window to window.

Moreover, hbide is not so good with big projects. I prefer kate using the
sessions. One of my projects has over 500 code files. In kate I can start a
session with the code files for printing or another session with the code files
controlling the indexing. I don't know if hbide can do something like that. I
certainely don't want to load all 500 files for a coding session.

Kate has harbour highlighting as well. I use make with the terminal in kate.

Another problem was that hbide changed the code without warning: it changed
chr(255) to " " and some other characters. I know it is a problem in my code
because the databases use cp850, but I have to make output files in iso8859-15
and utf-8.

I will have a look at hbide from time to time. Perhaps I migrate eventually.

Best regards

Claudia

Viktor Szakáts

unread,
Sep 11, 2011, 5:13:28 PM9/11/11
to harbou...@googlegroups.com
> Another problem was that hbide changed the code without warning: it changed 
> chr(255) to " " and some other characters. I know it is a problem in my code 
> because the databases use cp850, but I have to make output files in iso8859-15 
> and utf-8.

Here again there is simple generic solution by using CHR( n ) function 
for any non-standard character codes (as suggested - and ignored - in 
original thread). Otherwise it's just a matter of time when a utility unaware 
of such usage will strip them or alter them (f.e. to '?' char) in undesirable 
fashion. On many new editors and systems it's not even possible to 
type ASCII 255 anymore, so keeping such chars around as-is doesn't 
seem like a good idea anyways. We also use this rule in Harbour SVN 
codebase.

So IMO this point can be easily solved with good coding practice and 
I wouldn't count it as a "HBIDE problem".

Claudia Neumann

unread,
Sep 11, 2011, 5:50:46 PM9/11/11
to harbou...@googlegroups.com, Viktor Szakáts
Hi Viktor,

yes, I know that and will change all characters " " to chr(255) when I come
across them. See, it is not all my code. The code might be 15 years old in some
files.

It was just an example. What bothered me most was the jumping cursor.

Best regards

Claudia

Pritpal Bedi

unread,
Sep 11, 2011, 6:13:03 PM9/11/11
to Harbour Users
Hi

> What bothered me most was the jumping cursor.

Now, this is entirely new phenomena
and I am at a loss what you mean by
"jumping cursor".

I am not a linux user, so cannot foresee
a glimpse what it might look as,
A better explanation would definitely had helped.

Pritpal Bedi

Sanjay Arora

unread,
Sep 11, 2011, 6:21:51 PM9/11/11
to harbou...@googlegroups.com
HI all

May I have a link to HbIDE linux download?

Thanks.
Sanjay.


Pritpal Bedi

unread,
Sep 11, 2011, 10:52:46 PM9/11/11
to Harbour Users
Hi

> May I have a link to HbIDE linux download?

Probably you need to build it yourself,
or, someone may help you on this front.
Sources are in Harbour repository
as a contrib application.

Pritpal Bedi

Massimo Belgrano

unread,
Sep 12, 2011, 2:29:02 AM9/12/11
to harbou...@googlegroups.com

Regarding hbide and harbour

http://www.elart.it/links/harbourhowto_deb_en.php


Deb packages requested to compile Harbour svn sources on Ubuntu (11.04 and prior release)

First be sure to have the Universe repository enabled, depending on Ubuntu release, from menu:
System > Administration > Update manager [settings] button
or from:
System > Administration > Software Sources: Ubuntu software [tab]


Then open terminal from Applications: Accessories: Terminal and type or better copy the red rows below and paste them into the terminal window:
sudo apt-get update; sudo apt-get install subversion wget rcs build-essential ncurses-dev libslang2-dev tk8.3-dev unixodbc-dev libncurses-dev libx11-dev libgpm-dev firebird2.1-dev libfreeimage-dev libmysqlclient15-dev libpq-dev libqt3-mt-dev liballegro4.2-dev wine dosemu-freedos mingw32 zlib1g-dev libpcre3-dev libncurses-dev libslang2-dev libx11-dev libgpmg1-dev unixodbc-dev libcurl4-gnutls-dev firebird2.1-dev libgd2-xpm-dev libsqlite3-dev libqt4-dev libwxbase2.8-dev libwxgtk2.8-dev wx-common libwebkit-dev libqt4-core 

Then to set some qt4 related system default, please type this commands:
sudo update-alternatives --set uic /usr/bin/uic-qt4
sudo update-alternatives --set moc /usr/bin/moc-qt4
sudo update-alternatives --set lupdate /usr/bin/lupdate-qt4
sudo update-alternatives --set lrelease /usr/bin/lrelease-qt4
sudo update-alternatives --set designer /usr/bin/designer-qt4


Harbour how to get source and compile them from SVN trunk
1) - Open a terminal window from menu Applications: Accessories: Terminal;
2) - Check the requested packages as specified on top of this page;
3) - Type or copy and paste (a row a time then press enter) into the terminal window:
mkdir $HOME/src
cd $HOME/src
svn co https://harbour-project.svn.sourceforge.net/svnroot/harbour-project/trunk/harbour harbour 
cd $HOME/src/harbour 
export HB_BIN_INSTALL=/usr/bin 
export HB_INSTALL_PREFIX=/usr/bin 
export HB_LIB_INSTALL=/usr/lib/harbour 
export HB_INC_INSTALL=/usr/include/harbour 
export HB_DOC_INSTALL=/usr/share/doc/harbour 
export HB_ETC_INSTALL=/etc/harbour 
export HB_CONTRIBLIBS="hbqt hbct hbqtutils hbhpdf xhb hbxml hbmzip hbzip hbxbp hbtip hbgd hbpgsql hbcurl hbmysql hbsqlit3 hbssl hbodbc rddsql gtqtc hbmisc hbcups hbziparc"
export HB_BUILD_SHARED=no 
make clean 
make 
is not strictly need to install Harbour binaries into system files, to use Harbour without install it simply add to your PATH enviroment variable the current path of your harbour binary, type:
nano .bashrc

and append this row:
export PATH=$PATH:$HOME/src/harbour/bin/linux/gcc

Then to force the read of env type:
source $HOME/.bashrc

While if you want to install Harbour into system wide binary type:
sudo -E make install

By the way to check which build of Harbour is called by the system, type:
harbour -build 


How to update and compile Harbour from svn sources

To update and compile Harbour from latest svn revision please download this shell script: using terminal type o better copy and paste the rows below, please copy and paste one row a time, then press enter:

mkdir $HOME/src 
cd $HOME/src 
wget http://www.elart.it/harbour/MBaggharbour2_svn 
chmod 700 MBaggharbour2_svn 
./MBaggharbour2_svn 

The above instructions are to be done only one time, then, to update and compile Harbour from SVN sources, you simply need to run the script by opening a terminal and typing: 

cd $HOME/src; ./MBaggharbour2_svn 

To compile the sources in the contrib directories for example hbide, type : 

cd $HOME/src/harbour/contrib/hbide 
hbmk2 hbide.hbp -rebuild 

To run the just compiled hbide type: 
./hbide 


2011/9/12 Pritpal Bedi <bedipr...@gmail.com>

Pritpal Bedi

--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users



-- 
Massimo Belgrano

Sanjay Arora

unread,
Sep 12, 2011, 2:37:49 AM9/12/11
to harbou...@googlegroups.com
Massimo

Thanks. This is great!

Ciao.
Sanjay.


Viktor Szakáts

unread,
Sep 12, 2011, 5:12:49 AM9/12/11
to harbou...@googlegroups.com
It's even greater, because it's much simpler than suggested by this doc.
(which has quite many obsolete parts)

I suggest to look into INSTALL (linked from the group's header and 
present in all official distros).

The basic concept is to:

1) install extra Linux packages (see "Linux (.deb based distros: Debian, Ubuntu)" 
section under "4. HOW TO ENABLE OPTIONAL COMPONENTS BEFORE BUILD" 
2) download Harbour source as suggested in "9. HOW TO GET HARBOUR"
3) build Harbour from source "1. HOW TO BUILD AND INSTALL HARBOUR FROM SOURCE".
Typing 'make' in source root dir will be enough in nearly all cases.

Reply all
Reply to author
Forward
0 new messages