64 Bit Support Required Feb 2015..

Previous topic - Next topic

MrTAToad

Its quite right that it should be treating it as an error, rather than a warning :)

spacefractal

#46
in SpotRace im actuelly got a 32/64bit library compiled correctly AND even got that lib to launch (but of course in the 32bit mode, but the library does include 64bit code).

So using two xcode projects can nicely work in "tandam" when most dirty work have been done (which im do in a blitzmax app, which im still like doing tools like that). Im will release a xcode project with that code tomorrow or sunday, so Gernot have something to work with.

All he really is needed is "gcc" compile libGLBasiciPhone-egl.a and libpng-gf.a in xCode with a combined 32/64bit code (hopefully sdl still works in that mode) in xCode and fix eventuelly issues (like in SORTARRAY as im found). So we should not fear a closedown of the iOS support using this way and im even tried to do a nicely readme.txt file how to do those steps.

When Mac and PC is in network, then its also pretty easy those new steps (im have done most of the dirty work).

So im do thinks we dont need to remove iOS support at all, but as im previous just more manually work for the RELEASE build.

PS. This method is also a really nice way to find eventuelly bugs, that might not got catch by glbasic precompiler. For Spot Race there was one red warning, that diddent got catch by glbasic precompiler, but its was a line safely to been removed and here, nothing Gernot can do.

Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

erico


bigsofty

Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

spacefractal

Here is a possible sovle for 64bit (which is of course untested until the new a files is released, but the combined 32/64bit did work with 32bit runtime):
https://www.dropbox.com/s/frlld7juqnvjnf2/iOS8forGlbasicBeta.zip?dl=0

This is so you can see the idea behind how to uses xcode as compiler instead of Windows compiler (which should still been used, since 32bit apps is nice under testing, so we dont need to require the new steps every time. Most steps is one time setup.

now im wating for the new a files, so im can finish of this one.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

#50
its seen its more in ADRESSOF() there is a bug. Im create a thread in the bug section about this one (no reason debate about the bug here really):
http://www.glbasic.com/forum/index.php?topic=10103.msg88677#msg88677


Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

Karma Miwa launch very fast after using xCode GCC, so there is speed gain here by using newer compilers, even in 32bit mode.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

bigsofty

That's good news, I hope Gernot picks up on this as its a nice solution to a potentially very bad problem.

I can't test as I don't have an Apple account presently. :(
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

spacefractal

the only downside is the lib size is about 3-4 times bigger, but here nothing to do. Im havent tested about 64bit yet. There can been some issues if 32bit pointeres have been used. They needs to been updated to uses 64bit. normal variables and all can still been uses 32bit.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

mrplant

Hmm I really really hope these technical issues can be solved. It seems there are some very smart people here with possible workarounds...

I am an optimist..

If it means switching to a subscription or paid mode for glbasic updates to cover any costs in development then I am all for it so long as iOS support can be ongoing..

Ian Price

I think with the right support, workarounds won't be required. Work is underway on maintaining GLB and improving it in a way that perhaps wasn't possible before. It's not going to happen quickly, but hopefully it will be good for the longer term.

=D  :booze:

I came. I saw. I played.

Kitty Hello

The iOS port does neither use SDL nor SDL_Mixer.

Gesendet von meinem GT-N7100 mit Tapatalk


spacefractal

#57
ahh, ok. Im have removed sdl for this project so. The only issue left which wont compile is in glb_pc.cpp

etc its have red errors on SFXSound and property all other sound functions.

Im thinks im still missing add a file to xCode Project, but here im not sure which one missing (or missing a define or a FrameWork)?

Also there is some deprecations, some allready from iOS2.0 (StringWidthCString). Some also deprected from iOS 5.0. But since im only want to support from 5.1 and up anyway, those can been fixed throught. Im do not have plans to make sure its works from iOS 4.x at all (since xCode 6 seens not support that).

Im also added a lots of (int) as well in various files (except sortarray, which needs convert to (long).

PS. Im did succesfull compile libpng-gf.a and working in 32bit mode. When anything is done, im will post in the new Source Code forum (as well posting a files only here).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

im got today glbasic compiling with the source code and got Karma Miwa running in 32bit mode, but there is still linker errors when trying to run in 64bit mode (property a double issue). but im is closer.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

bigsofty

Sounds like your progressing!  :)
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)