Page 1 of 2

HMG.4 For Linux New Binaries+Source Release [RE-RELEASED]

Posted: Fri Sep 03, 2010 12:48 am
by Roberto Lopez
HMG.4 For Linux (Ubuntu 10.4)

1. Unpack the .tar.gz release file in any place you want (ie, your desktop). A new folder called hmg.4 will be created.

2. Open a terminal window.

3. Install QT:
$ sudo apt-get install libqt4-dev
4. Install libgpm:
sudo apt-get install libgpm-dev
5. Go to your desired sample folder (/svn/samples) and run the following command:
./build.sh demo_1
6. That's all!

Download: http://www.sourceforge.net/projects/hmg

Enjoy!

Roberto.

Re: HMG.4 For Linux New Binaries+Source Release

Posted: Fri Sep 03, 2010 1:25 am
by Rathinagiri
Thanks Roberto. I will check and revert back. :)

Re: HMG.4 For Linux New Binaries+Source Release

Posted: Fri Sep 03, 2010 12:15 pm
by raumi75
Hello Roberto,

I just tried it.

It did not work on first try: Here is my output verbatim:

Code: Select all

jan@jan-laptop:~/Desktop/hmg.4/svn/samples/button$ hbmk2 demo_1 -lhbcthbmk2: Processing local make script: hbmk.hbm
hbmk2: Processing configuration: /usr/bin/hbmk.cfg
Harbour 2.0.0 (Rev. 13372)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'demo_1.prg'...
Compiling '../../source/hmg.prg'...
Compiling '../../source/application.prg'...
Compiling '../../source/window.prg'...
Compiling '../../source/misc.prg'...
Compiling '../../source/button.prg'...
Compiling '../../source/checkbutton.prg'...
Compiling '../../source/control.prg'...
Compiling '../../source/textbox.prg'...
Compiling '../../source/label.prg'...
Compiling '../../source/checkbox.prg'...
Compiling '../../source/progressbar.prg'...
Compiling '../../source/frame.prg'...
Compiling '../../source/spinner.prg'...
Compiling '../../source/editbox.prg'...
Compiling '../../source/grid.prg'...
Compiling '../../source/datepicker.prg'...
Compiling '../../source/combobox.prg'...
Compiling '../../source/listbox.prg'...
Compiling '../../source/radiogroup.prg'...
Compiling '../../source/toolbar.prg'...
Compiling '../../source/toolbutton.prg'...
Compiling '../../source/tree.prg'...
Compiling '../../source/tab.prg'...
Compiling '../../source/tabpage.prg'...
Compiling '../../source/image.prg'...
Compiling '../../source/mainmenu.prg'...
Compiling '../../source/menupopup.prg'...
Compiling '../../source/menuitem.prg'...
Compiling '../../source/printer.prg'...
Compiling '../../source/slider.prg'...
Lines 61526, Functions/Procedures 383
Generating C source output to 'demo_1.c'... Done.
/usr/bin/ld: cannot find -lgpm
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc demo_1.o hbmk_13pwxs.o   -Wl,--start-group -lsupc++ -lhbqtcore -lQtCore -lQtGui -lhbqtgui -lQtUiTools -lhbqtnetwork -lQtNetwork -lhbct -lhbcplr -lhbdebug -lgpm -lharbour  -Wl,--end-group -odemo_1 -L/usr/lib/harbour

Re: HMG.4 For Linux New Binaries+Source Release

Posted: Fri Sep 03, 2010 12:19 pm
by raumi75
The above Problem can be solved by installing libgpm-dev.

Code: Select all

sudo apt-get install libgpm-dev
But after that, the linker just runs amok with lots of error messages. I will look into it and tell you more.

Raumi

Re: HMG.4 For Linux New Binaries+Source Release

Posted: Fri Sep 03, 2010 12:37 pm
by raumi75
I also had to uninstall harbour.

Code: Select all

sudo apt-get remove harbour
Then I discovered that the PATH needs to end with a /

So you should do

Code: Select all

PATH=$PATH:/home/USERNAME/Desktop/hmg.4/harbour/bin/linux/gcc/
Maybe uninstalling harbour was not necessary.

And after that TADAA!! It works great!

I am amazed. A big thank you to all developers in this forum.

Raumi

Re: HMG.4 For Linux New Binaries+Source Release

Posted: Fri Sep 03, 2010 4:46 pm
by Roberto Lopez
raumi75 wrote:The above Problem can be solved by installing libgpm-dev.

Code: Select all

sudo apt-get install libgpm-dev
Thanks, I've forgot that.

I've added a build script (build.sh) to all samples folders, so setting a path is not required anymore.

So, only with ./build.sh appname is enough.

I've updated the first post in this thread, please take a look at it.

Thanks for your report.

Re: HMG.4 For Linux New Binaries+Source Release

Posted: Fri Sep 03, 2010 8:52 pm
by raumi75
Roberto Lopez wrote: So, only with ./build.sh appname is enough.

I've updated the first post in this thread, please take a look at it.
Hello Roberto,

I just downloaded it and it works as advertised. ;-)

Maybe you should point out, that the samples directory lies in svn/samples and not in harbour/examples. But I am sure people figure that out on their own.

I will try to compile and run the samples and report on that. Or is that too early?

The Lable demo_4 causes the following runtime error, when I click on "Show Picture":

Code: Select all

Error HBQT/1000  Message not found :SETICON: QLABEL:SETICON

Called from QLABEL:SETICON(0)
Called from LABEL:_PICTURE(1035)
Called from (b)MAIN(145)
Called from QT_QAPPLICATION_EXEC(0)
Called from QAPPLICATION:EXEC(0)
Called from WINDOW:ACTIVATE(1853)
Called from MAIN(165)
Does a bug report like this belong here? Please let me know where I can report this properly.

Raumi

Re: HMG.4 For Linux New Binaries+Source Release [RE-RELEASED

Posted: Fri Sep 03, 2010 9:14 pm
by raumi75
Another observation on samples:

samples/checkbutton

The regular checkbutton always looks the same. You can not see, if it is pushed, or not.

The flat := .t. type changes its look.

Re: HMG.4 For Linux New Binaries+Source Release

Posted: Sat Sep 04, 2010 2:45 am
by Roberto Lopez
raumi75 wrote: Maybe you should point out, that the samples directory lies in svn/samples and not in harbour/examples. But I am sure people figure that out on their own.
Done.
raumi75 wrote: I will try to compile and run the samples and report on that. Or is that too early?

The Lable demo_4 causes the following runtime error, when I click on "Show Picture":

Code: Select all

Error HBQT/1000  Message not found :SETICON: QLABEL:SETICON

Called from QLABEL:SETICON(0)
Called from LABEL:_PICTURE(1035)
Called from (b)MAIN(145)
Called from QT_QAPPLICATION_EXEC(0)
Called from QAPPLICATION:EXEC(0)
Called from WINDOW:ACTIVATE(1853)
Called from MAIN(165)
Does a bug report like this belong here? Please let me know where I can report this properly.
Please, report on developers table thread indicating if the error arises in Linux or Windows.

Re: HMG.4 For Linux New Binaries+Source Release [RE-RELEASED

Posted: Sat Sep 04, 2010 5:44 am
by raumi75
One more thing. All files have the UNIX-properties rwx (read, write, execute) for everybody (owner, group, other).

That means, that double-clicking on non-executable-files like hmg4.html or changelog.txt leaves the computer confused.

files like that need to be (rw-)

Code: Select all

chmod a-x hmg.4.html
will fix that.

Also .prg should not be marked as executeable.

To recursively do this in all directories try

Code: Select all

find . -type f -name '*.prg' -exec chmod a-x {} \;
Raumi