linux 64bit binnary?

All topics about ZGameEditor goes here.

Moderator: Moderators

Handoko
Posts: 3
Joined: Mon Mar 10, 2014 12:10 pm

Post by Handoko » Mon Mar 10, 2014 11:46 pm

Any luck of generating Linux Player?

I tried to compile it myself using Free Pascal 2.6.2, but failed with libc library. I'm a Ubuntu 64-bit user, it would be great if I can create native Linux games. I've tried Ats ZzDC but it doesn't run well on 3.1b.

User avatar
Ats
Posts: 255
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Post by Ats » Tue Mar 11, 2014 12:58 am

Here's the compiled 3.1b player for linux (32bits), sent from my dropbox/phone. I'm not on my computer for a week so I can't help you much. Tell me if it works.

Edit: All right... I can't upload files to the forum from my phone. So here's the dropbox link: [sorry, wrong link... See my next post]
Last edited by Ats on Tue Mar 11, 2014 9:00 am, edited 1 time in total.

Handoko
Posts: 3
Joined: Mon Mar 10, 2014 12:10 pm

Post by Handoko » Tue Mar 11, 2014 3:43 am

Tested, unfortunately not working.

I renamed the downloaded file to "Player_linux.bin", started ZGameEditor 3.1b using WINE and opened a test project. Clicked "Android: build zzdc.dat file" and "Build Linux x86 binary". I set the result file as "Allow execute file as program", but an error message show up if I try to open it: "The file is of unkown type".

I found something strange:
- The file download from Dropbox is zzdc.pac
- The file size is only 41 KB, while the previous ZzDC is 217 KB

Note:
Sometimes the old ZzDC 3.0.0 can work when using ZGameEditor 3.1b. But in many cases, it just shows up a message asking user to choose screen resolution and it quit immediately if we choose any of the option.

User avatar
Ats
Posts: 255
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Post by Ats » Tue Mar 11, 2014 8:58 am

Oops sorry, I didn't pay attention. I hate touchscreens...
So here's the link to the good file: https://www.dropbox.com/s/3b086kgyolncp ... _linux.bin

Handoko
Posts: 3
Joined: Mon Mar 10, 2014 12:10 pm

Post by Handoko » Tue Mar 11, 2014 10:00 am

Awesome, it works. Now the fun begins.

Thank you Ats and the creator of this software.

Imerion
Posts: 197
Joined: Sun Feb 09, 2014 4:42 pm

Post by Imerion » Tue Mar 11, 2014 10:29 am

Nice! Great to see an updated Linux binary! Will be using this for sure, thanks for your work!

Dragon
Posts: 8
Joined: Mon May 27, 2013 8:30 pm
Location: Germany

Post by Dragon » Tue Mar 11, 2014 5:13 pm

Ok I've finished the instllation from sdl1.2 now the precompiled version from Ats a few posts ago works by me. But the compiler fails with the same mistake as before.

And thanks Ats for an actually compiled version.

Imerion
Posts: 197
Joined: Sun Feb 09, 2014 4:42 pm

Post by Imerion » Wed Apr 23, 2014 9:58 am

I finally came long enough to try running my game in Linux using this binary.
All I get is this message though : "OpenGL could not be loaded".
How come? OpenGL works fine in all other programs, including a bunch of modern games. I run Xubuntu 14.04 and have an Intel HD4400 graphics card with the latest drivers and mesa 10.1.

User avatar
VilleK
Site Admin
Posts: 2020
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK » Wed Apr 23, 2014 12:33 pm

It might be a 32/64-bit problem. The ZGE Linux runtime currently only supports 32-bit.

Make sure you have a 32-bit OpenGL driver named libGL.so on your system.

Imerion
Posts: 197
Joined: Sun Feb 09, 2014 4:42 pm

Post by Imerion » Wed Apr 23, 2014 8:42 pm

Ah, that's right. For some reason I thought this was a 64-bit binary. But if it isn't, then that is the problem. I use a 64 bit system. I'll try it on my other computer instead. Thanks!

Imerion
Posts: 197
Joined: Sun Feb 09, 2014 4:42 pm

Re: linux 64bit binnary?

Post by Imerion » Wed Sep 23, 2015 9:28 pm

Anyone who has the ability to compile a new Linux binary for the latest beta?

Games exported with the Linux binary found here doesn't seem to work. :(

User avatar
Ats
Posts: 255
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: linux 64bit binnary?

Post by Ats » Sun Aug 04, 2019 5:10 pm

I'm still stuck with Android 64, so I decided to install linux x86 on an old computer in order to produce a new bin for Linux with the latest ZGE sources.
Here's my updated script with some side notes:
  • libsdl2-dev does not work so you need to install the old one
  • ppc386 doesn't seem to search for the libs inside the folders, I had to add them manually with several -Fu
  • Same as folders, you got to create them manually. Don't know why...

Code: Select all

sudo apt-get update
sudo apt-get install fp-compiler subversion libsdl1.2-dev
svn checkout http://svn.freepascal.org/svn/fpc/trunk fpc
cd fpc
sudo make all
sudo make install
cd ..
svn checkout https://github.com/VilleKrumlinde/zgameeditor.git zge-src
cd zge-src/trunk
mkdir Build Build/obj
/usr/local/lib/fpc/3.3.1/ppc386 -al -XXis -O2 -dZZDC_SDL SDL -dMINIMAL -FU./Build/obj/ -Fu/usr/local/lib/fpc/3.3.1/units/i386-linux/pthreads/ -Fu/usr/local/lib/fpc/3.3.1/units/i386-linux/fcl-base/ -Fu/usr/
local/lib/fpc/3.3.1/units/i386-linux/libc/ -Fu/usr/local/lib/fpc/3.3.1/units/i386-linux/paszlib/ -Fu/usr/local/lib/fpc/3.3.1/units/i386-linux/hash/ -Fu/usr/local/lib/fpc/3.3.1/units/i386-linux/rtl-objpas/ -B -Mdelphi -FE./Build/ ZzDC.dpr
cd Build
mv ZzDC Player_linux.bin
Attached is the new Player_linux.bin :D

But I'm still struggling to launch the produced ZGE file. Here's the problems:

Permission denied
chmod 755 your_file_name

error while loading shared libraries: libSDL-1.2.so.0: cannot open shared object file
sudo apt-get install libsdl-image1.2:i386

OpenGL could not be loaded
I tried several things listed here and elsewhere but can't get past that. I'm on a linux 64 computer right now, I'll test on the x86 one when I'll get back home.

EDIT: Ok, it's working perfectly on linux x86
Attachments
Player_linux.bin.zip
Player_linux.bin
(214.57 KiB) Downloaded 8 times

Post Reply