I have the old i386 ready. It's working on it.
I can also test it on raspberry by flashing a new 32bits OS on a card, but I'll do that after lunch, as I need to setup everything.
(And I'll test on the same rasp with the 64bits OS too)
Search found 623 matches
- Thu Apr 29, 2021 10:40 am
- Forum: Bug reports
- Topic: [FIXED] Retrieving something from an Array crash on Linux
- Replies: 18
- Views: 17032
- Thu Apr 29, 2021 9:09 am
- Forum: Bug reports
- Topic: [FIXED] Retrieving something from an Array crash on Linux
- Replies: 18
- Views: 17032
Re: Retrieving something from an Array crash on Linux
<?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2"> <OnLoaded> <ZExpression> <Expression> <![CDATA[// ArrayFloat[0]= 0.123; ArrayFloat[1]= 0.456; ArrayInt[0]= 0; ArrayInt[1]= 1; Ar...
- Wed Apr 28, 2021 8:22 pm
- Forum: Bug reports
- Topic: [FIXED] Retrieving something from an Array crash on Linux
- Replies: 18
- Views: 17032
Re: Retrieving something from an Array crash on Linux
Array of float, byte and vec works too.
But array of model crashes.
I didn't try xptr and mat4.
But array of model crashes.
I didn't try xptr and mat4.
- Wed Apr 28, 2021 1:46 pm
- Forum: Bug reports
- Topic: getSystemTime() gives different results on different devices
- Replies: 12
- Views: 13110
Re: getSystemTime() gives different results on different devices
I don't think there's something on SDL to retrieve a timestamp. The closest thing would be SDL_GetTicks , which isn't awesome compared to the uses of Unix timestamp (ex: a daily event...) Doesn't Pascal have everything needed to handle Timestamp? https://www.freepascal.org/docs-html/rtl/sysutils/dat...
- Wed Apr 28, 2021 11:00 am
- Forum: Bug reports
- Topic: [FIXED] Retrieving something from an Array crash on Linux
- Replies: 18
- Views: 17032
Re: Retrieving something from an Array crash on Linux
It works with array full of int, but not with arrays full of strings: <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2"> <OnLoaded> <ZExpression> <Expression> <![CDATA[// Numbers[0...
- Wed Apr 28, 2021 10:54 am
- Forum: Bug reports
- Topic: [FIXED] Retrieving something from an Array crash on Linux
- Replies: 18
- Views: 17032
[FIXED] Retrieving something from an Array crash on Linux
I made a very simple test. <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2"> <OnLoaded> <ZExpression> <Expression> <![CDATA[// Names[0]="MOON"; Names[1]="PLANET&quo...
- Wed Apr 28, 2021 9:23 am
- Forum: Bug reports
- Topic: getSystemTime() gives different results on different devices
- Replies: 12
- Views: 13110
getSystemTime() gives different results on different devices
It's roughly 11:20 in France. Here's what getSystemTime() returns on different systems:
Windows: 40809
It's the number of seconds since midnight.
Linux: 0
This one doesn't work at all...
Android: 1619601608
This one is an epoch timestamp, which is the best of the three.
Windows: 40809
It's the number of seconds since midnight.
Linux: 0
This one doesn't work at all...
Android: 1619601608
This one is an epoch timestamp, which is the best of the three.
- Tue Apr 27, 2021 6:09 pm
- Forum: Bug reports
- Topic: [FIXED] Mouse cursor isn't showing up on Linux
- Replies: 5
- Views: 8100
[FIXED] Mouse cursor isn't showing up on Linux
I hope this is the last remaining bug (or missing feature?) for a perfect Linux build of ZGE projects: the mouse cursor doesn't show up.
I already tried to play with option App.MouseVisible.
Maybe it is something related to SDL2? I'm going to dig that later.
I already tried to play with option App.MouseVisible.
Maybe it is something related to SDL2? I'm going to dig that later.
- Tue Apr 27, 2021 5:55 pm
- Forum: Off-topic
- Topic: Making a linux shared library for ZGE
- Replies: 6
- Views: 9231
Re: Making a linux shared library for ZGE
:twisted: :twisted: :twisted: :twisted: :twisted: The compiled lib was working all along... In fact my ZGE test got it's ZExternalLibrary / CallingConvention back to Cdecl at some point... What a waste of time :roll: I'm going to clean up everything and make a simple tutorial to complete Rado1 build...
- Tue Apr 27, 2021 5:03 pm
- Forum: Off-topic
- Topic: Making a linux shared library for ZGE
- Replies: 6
- Views: 9231
Re: Making a linux shared library for ZGE
I managed to find some good intel in the Android.mk file included in ZgeBullet project : https://github.com/Rado-1/ZgeBullet/blob/master/android/jni/Android.mk :arrow: bullet3 version used by ZgeBullet is number 2.85.1 Rado1 build instructions are outdated and compiling ZgeBullet with old bullet3-2....
- Tue Apr 27, 2021 11:49 am
- Forum: Off-topic
- Topic: Making a linux shared library for ZGE
- Replies: 6
- Views: 9231
Re: Making a linux shared library for ZGE
Back to ZgeBullet shared library. Now I know how to check what is linked in a shared library: readelf -s ZgeBullet.so | grep FILE So I tried adding every .o files from bullet3 plus ZgeBullet.o during the linking with: ALL_O_FILES=$(find ~/bullet3-3.09/build_cmake/src/ -type f -name "*.o") ...
- Tue Apr 27, 2021 10:33 am
- Forum: Off-topic
- Topic: Making a linux shared library for ZGE
- Replies: 6
- Views: 9231
Re: Making a linux shared library for ZGE
Ok, writing everything down made me realize what was the problem. I needed to compile the extlib with g++ (or c++), not gcc. g++ -Wall -fPIC -c libs/extlib.c -o libs/extlib.o gcc -Wall -fPIC -I ./libs -c mylib.cpp -o mylib.o gcc -shared -o mylib.so libs/extlib.o mylib.o (it's even working without th...
- Tue Apr 27, 2021 10:20 am
- Forum: Off-topic
- Topic: Making a linux shared library for ZGE
- Replies: 6
- Views: 9231
Making a linux shared library for ZGE
I split up from the original topic 3D Physics with ZgeBullet because it's another problem that prevents me to run ZgeBullet on linux and has nothing to do with it. In order to discover where the building/linking of ZgeBullet is having a problem, I started by creating a simple cpp shared library from...
- Mon Apr 26, 2021 1:12 pm
- Forum: Bug reports
- Topic: [FIXED] App.ScreenMode Use DesktopResolution only works on Windows
- Replies: 7
- Views: 9328
Re: App.ScreenMode Use DesktopResolution only works on Windows
You're right. Get Viewport size works on OnUpdate on Android :D I need that to resize the background correctly, to optimize the deletion of objects out of the camera and to place virtual gamepad correctly on the screen. I'll initialize the screen size on the OnStart of the first state loaded. So it'...
- Mon Apr 26, 2021 10:30 am
- Forum: Bug reports
- Topic: [FIXED] App.ScreenMode Use DesktopResolution only works on Windows
- Replies: 7
- Views: 9328
Re: App.ScreenMode Use DesktopResolution only works on Windows
Sorry, I had a remnant of test I added in ZApplication.pas yesterday. So now it's working perfectly on Linux, but not on Android. I already tried to remove that entire block from ZApplication.pas: {$ifndef android} if((CustomScreenWidth > 0) and (CustomScreenHeight > 0)) then begin ScreenWidth := Se...