Author Topic: Idiot's guide to compiling...?  (Read 181 times)

Idiot's guide to compiling...?
« on: May 17, 2019, 11:37:55 AM »
It's years since I compiled anything with QB64 -- I normally just run or edit in the IDE.  But a forthcoming move to a 64-bit machine means that it will be easier to have programs pre-compiled, as they rarely change.  Some of them were last updated several years ago.

So I could use a reminder on what to do.

Under "run" in the IDE the option "Output EXE to source folder" doesn't seem to do anything.

"Make EXE only" simply produces a gcc error that takes me around in a loop, needing Task Manager to execute a forced halt.

I'm running on a 32-bit machine, with QB64 1.3.

Malcolm

Offline Pete

  • Cuz I sez so, varmint!
Re: Idiot's guide to compiling...?
« Reply #1 on: May 17, 2019, 01:00:14 PM »
I'm on a 64-bit machine, and I don't experience those problems. I wonder if this is some incompatibility you stumbled upon, since you are running on a 32-bit machine? Hopefully, others will chime in to share their experiences.

Pete

Re: Idiot's guide to compiling...?
« Reply #2 on: May 17, 2019, 01:30:07 PM »
Hi Malcolm,

Is your version 32 bit or 64 bit? QB64.org homepage offers 1.3 for both.
B = B + ...

Re: Idiot's guide to compiling...?
« Reply #3 on: May 17, 2019, 04:59:33 PM »
I see from my download history that I downloaded both versions.  I often do this, as I also have 64-bit machines.

The present 32-bit machine is my main machine, though.

Is there any way to tell from the IDE, or anywhere else, which version I installed?

I can't think of a reason why I would install the 64-bit version on a 32-bit machine, but -- hey -- mistakes happen.

Malcolm

Re: Idiot's guide to compiling...?
« Reply #4 on: May 17, 2019, 06:09:59 PM »
My 64 bit version has numbers, Git 96937f0, in IDE Menu Help > About

If worse comes to worse, just download the sure 32 bit version.
B = B + ...

Re: Idiot's guide to compiling...?
« Reply #5 on: May 18, 2019, 10:30:12 AM »
Mine has the same Git number.  The title bar, though, proclaims it as "QB64 x32", I've just noticed.

That presumably means 32-bit?

Screenshot attached.

Malcolm

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Re: Idiot's guide to compiling...?
« Reply #6 on: May 18, 2019, 11:31:13 AM »

Re: Idiot's guide to compiling...?
« Reply #7 on: May 18, 2019, 01:32:15 PM »
I've done a bit more experimentation.

With QB64 v1.2, everything works as it always did -- I can start and run programs (from the Run menu), and make EXE files to run separately on a standalone basis.

With QB64 v1.3, I can do neither.  I get the message in the attached image, which takes me into a loop from which Task Manager is the only way out.

Malcolm

Re: Idiot's guide to compiling...?
« Reply #8 on: May 18, 2019, 09:57:30 PM »
Check your anti-virus/anti-malware apps to see if they are blocking the compile.  Real viruses often recompile themselves to avoid detection, so the virus apps often look for apps recompiling.  You can usually add an exception for individual exe file, such as QB64's exe.

Offline SMcNeill

  • QB64 Developer
Re: Idiot's guide to compiling...?
« Reply #9 on: May 18, 2019, 10:04:47 PM »
Check your anti-virus/anti-malware apps to see if they are blocking the compile.  Real viruses often recompile themselves to avoid detection, so the virus apps often look for apps recompiling.  You can usually add an exception for individual exe file, such as QB64's exe.

I would guess this is the problem as well.  You may have whitelisted version 1.2 in the past, or the folder it’s in, and your antivirus ignores it and lets it work; while version 1.3 is now being blocked/quarantined again.

Re: Idiot's guide to compiling...?
« Reply #10 on: May 19, 2019, 08:30:59 AM »
I would guess this is the problem as well.  You may have whitelisted version 1.2 in the past, or the folder it’s in, and your antivirus ignores it and lets it work; while version 1.3 is now being blocked/quarantined again.

Version 1.2 wasn't whitelisted (and I didn't remember whitelisting it, either).  But version 1.3 is whitelisted now.

Later today I will test it.

Malcolm

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Re: Idiot's guide to compiling...?
« Reply #11 on: May 19, 2019, 09:11:04 AM »
Version 1.2 wasn't whitelisted (and I didn't remember whitelisting it, either).  But version 1.3 is whitelisted now.

Later today I will test it.

Malcolm

It's a good idea to whitelist the whole QB64 folder instead of only qb64.exe.

Re: Idiot's guide to compiling...?
« Reply #12 on: May 19, 2019, 03:17:40 PM »
It's a good idea to whitelist the whole QB64 folder instead of only qb64.exe.

Done that; didn't make any difference.  Gimme a day or so -- I can try on a 64-bit machine.

Malcolm