Unable to compile and run sample programs

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
Pablo César
Posts: 4010
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 99 times
Been thanked: 159 times

Unable to compile and run sample programs

Post by Pablo César » Tue Feb 14, 2017 9:49 am

MY POINT OF VIEW
Offering help by TeamViewer seems like something for users with no programming experience (users/client support). Otherwise, this kind of help only concerns only the one who asks for help. For the spirit of the forum is to share. Share your experiences and share your doubts, your ideas and your techniques. When the help and solution is done through closed circuit the others do not know what happened, how it happened, how it was solved and how to avoid such situations.
Anyone who asks for help in a forum has to be prepared first to elaborate on their problem presentation. Provide if possible all the necessary information. Getting information such as: what HMG version, what Windows version, 32 or 64bits, where it was installed (exactly folder names), what was the example and preferably show your code. Help colleagues with the information they need to provide help. Providing help by TeamViewer, WhatsApp ... means that only those who can connect will know what is happening and the experiences are not shared in the forum.

This kind of help is the same as saying:

Send me a private message or email that I will help you. So I ask: what did you join the forum for ?

The forum does not serve as a message board. :x
It is for SHARE.

Well sorry for those who were affected by my comment. But we have to learn to be altruistic with each other ...
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
mol
Posts: 2671
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 72 times
Been thanked: 24 times
Contact:

Post by mol » Tue Feb 14, 2017 10:05 am

We can always share results of help. Sometimes language is too big barrier to find solution

User avatar
Pablo César
Posts: 4010
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 99 times
Been thanked: 159 times

Post by Pablo César » Tue Feb 14, 2017 10:12 am

You can share ? Good, I hope so.

With respect to the language barrier: do the same for all those who have difficulties with English.
Write in your language that you master, but do so in an academic way, in a clear and rich in detail and then put the translation in English.
How Hispanics do even in the Spanish section ... :mrgreen:

Have you ever wondered if this kind of help became fashionable ?
You or someone else would have to get stuck giving pier-to-pier support help ...
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Pablo César
Posts: 4010
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 99 times
Been thanked: 159 times

Post by Pablo César » Tue Feb 14, 2017 11:03 am

Hi Peter,

This is my HMG installed place:
Screen93.png
Screen93.png (76.49 KiB) Viewed 122 times
I have installed the HMG by copy not REGISTERED (made by installation program).

This mentioned example (Hello_World) I can compile without any problem and I can do it in many ways:
(Please note that is Hello_World not Hello World)
  1. By opening our IDE at \hmg.3.4.3\IDE\IDE.exe.
    1. Open project locating the folder of \hmg.3.4.3\SAMPLES\Basics\Hello_World
    2. Selecting hello.hbp file
    3. Clicking in building button
     
  2. By just clicking in the build.bat file located at the same demo's folder. It will compiles the respective demo.
     
  3. By the command line.
    1. I position myself in the folder where the example is. Typing:
    2. CD\hmg.3.4.3\SAMPLES\Basics\Hello_World
    3. BUILD
     
  4. By the command line. (simplest option)
    1. I position myself in the folder where the example is. Typing:
    2. \hmg.3.4.3\build hello.hbp
     
  5. By using Call_IDE.exe app already installed.
    1. Just clicking at hello.hbp file. Then will call IDE and open the hello project. Then I can compile.
The only problem I found at command line. Is when I try to use the DEMO's build.bat with parameter. I have only to type just BUILD (without parameter).

And the other problem with our IDE (not in our SAMPLES, at least I do not know if exist) when folder SAMPLES is the name is changed.
Leaving space in the name. Be it for folder names as well either as file names.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Peter
Posts: 8
Joined: Fri Feb 10, 2017 4:14 am

Post by Peter » Tue Feb 14, 2017 11:22 am

Hello Mol,

I completely uninstalled all HMG code and Mingw code.
I then reinstalled a fresh copy of HMG.3.4.3 to C:\HMG343 !!
Now everything is working finr:))

Thanks a lot for the help. Much obliged

Kind regards
Peter

User avatar
Pablo César
Posts: 4010
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 99 times
Been thanked: 159 times

Post by Pablo César » Tue Feb 14, 2017 11:44 am

I want to do a rectification of what I said with respect to that only the IDE has spaces problems or special characters.

I certify that BUILD.BAT also has this problem in this release.

You can download this Build.bat and replace of existing at \hmg.3.4.3\Build.bat:

viewtopic.php?p=49328#p49328

Must make positioning at folder where the example is.
The following file is accepting to do this:

CD\hmg.3.4.3\SAMPLES\Basics\Hello_World
Rename file hello.hbp by Hello World.hbp (just for testing)
\hmg.3.4.3\BUILD "HELLO WORLD"

Please note blue quotations.
Last edited by Pablo César on Tue Feb 14, 2017 12:29 pm, edited 3 times in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Pablo César
Posts: 4010
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 99 times
Been thanked: 159 times

Post by Pablo César » Tue Feb 14, 2017 11:54 am

Peter wrote:
Tue Feb 14, 2017 11:22 am
Hello Mol,

I completely uninstalled all HMG code and Mingw code.
I then reinstalled a fresh copy of HMG.3.4.3 to C:\HMG343 !!
Now everything is working finr:))

Thanks a lot for the help. Much obliged

Kind regards
Peter
In my opinion. You don't need to do this... (re-install your HMG, unless you have spoiled your HMG)

And please Peter, you don't need to be rude.

If you don't want to say thanks to my tries in helping you... (for me: I don't care)
but was not only me helping in this topic. Other colleagues tried to help you.

You see how is important to participate in forums ?
All informations in centered, stored and where everyone and stands for future consultations. And It also served to correct a problem.

If we were not interested in solving "your" problem, we would also have one without knowing that it still error exists for us... :mrgreen:

All the colleagues who participated here were attentive with you. There's no reason to thank only one person... :|

Anyway, thank you for returning and telling us what your solution was. :mrgreen:
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Peter
Posts: 8
Joined: Fri Feb 10, 2017 4:14 am

Post by Peter » Thu Feb 16, 2017 1:04 am

Dear Mr. Pablo Cesar,

My apologies. I had absolutely no intention to offend you.
I realise that you took the trouble to answer my question and should have thanked you.
My apologies.

Kind regards
Peter

User avatar
Pablo César
Posts: 4010
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 99 times
Been thanked: 159 times

Post by Pablo César » Thu Feb 16, 2017 9:25 am

Ohhh it's so right Peter, don't worry.

Have you welcome again to our community. :P
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest