Author Topic: Making a 64bit compiling platform  (Read 274 times)

Offline r0ber7

  • Prof. Inline
  • *****
  • Posts: 540
    • View Profile
Making a 64bit compiling platform
« on: 2019-Nov-03 »
So I've decided to try and make my own folder for the Compilers/platform folder, so I can compile 64bit programs.
Right now I've only copied over the 32bit folder, changed its name, and added the -m64 flag to the g++ compiling options. Of course it throws an error, this one:

Code: GLBasic [Select]
gpc_temp46.cpp:1: sorry, unimplemented: 64-bit mode not compiled in
 

So now I have to look for a Windows g++ compiler with 64bit mode compiled in, which will work with the rest as well. Any tips?  ;)

Offline r0ber7

  • Prof. Inline
  • *****
  • Posts: 540
    • View Profile
Re: Making a 64bit compiling platform
« Reply #1 on: 2019-Nov-03 »
I have found mingw-64, a 64bit development environment. Let's try shoving their compiler into GLBasic.  :D

Offline r0ber7

  • Prof. Inline
  • *****
  • Posts: 540
    • View Profile
Re: Making a 64bit compiling platform
« Reply #2 on: 2019-Nov-03 »
Ok, so I'm messing around with this. One problem I have is that I do not get any error messages. I just get this:

Code: GLBasic [Select]
compiling:
*** FATAL ERROR - Please post this output in the forum
 

How would I get more error messages? If I do not know what the problem is, I cannot fix it...

Offline r0ber7

  • Prof. Inline
  • *****
  • Posts: 540
    • View Profile
Re: Making a 64bit compiling platform
« Reply #3 on: 2019-Nov-03 »
Ok, compiling is now working. Now I get this:

Code: GLBasic [Select]

linking:
C:/GLBasic_v15/Compiler/platform/Win64/Bin/ld.exe: cannot find -lGLBasicWin32
C:/GLBasic_v15/Compiler/platform/Win64/Bin/ld.exe: cannot find -lCxImageWin32
*** FATAL ERROR - Please post this output in the forum
 

It turns out these libraries exist in the Win32 version, but they are 32bit libraries of course. How can I get a 64bit version of these libraries?  :|

I guess I could compile or find a 64 bit version of CxImage library, but what about "GLBasicWin32"? I hope this is still possible.
« Last Edit: 2019-Nov-03 by r0ber7 »

Offline r0ber7

  • Prof. Inline
  • *****
  • Posts: 540
    • View Profile
Re: Making a 64bit compiling platform
« Reply #4 on: 2019-Nov-03 »
Hang on! Did I just realize that the Steam version has 64bit support?  :blink:  :giveup:

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4239
    • View Profile
    • Portfolio
Re: Making a 64bit compiling platform
« Reply #5 on: 2019-Nov-05 »
Now that you said I went to check, and there is an icon as win 64 on the multi platform compile.
Since I installed and went about using it, I was hitting F5 as usual and the compile window states win32, so I guess that is the standard.

Haven´t tried the 64 version yet.

Offline r0ber7

  • Prof. Inline
  • *****
  • Posts: 540
    • View Profile
Re: Making a 64bit compiling platform
« Reply #6 on: 2019-Nov-07 »
Now that you said I went to check, and there is an icon as win 64 on the multi platform compile.
Since I installed and went about using it, I was hitting F5 as usual and the compile window states win32, so I guess that is the standard.

Haven´t tried the 64 version yet.

For the Steam version I probably have to buy again?

Online spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3690
    • View Profile
    • Space Fractal
Re: Making a 64bit compiling platform
« Reply #7 on: 2019-Nov-11 »
im cant give steam away. The steam version have 32/64 bit Windows. But we dont really need the 64bit on Windows yet or forced right now (This is on the Mac and iOS), but nice to have for sure for the future! Also you also get Android Studio version of Android platform.

You can ask Gernot, but glbasic on steam is cheaper.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.