QB64-Phoenix-Edition / QB64pe

The QB64 Phoenix Edition Repository
https://qb64phoenix.com
Other
131 stars 26 forks source link

Problem building on Debian sid, arm64 #532

Open alexmyczko opened 2 months ago

alexmyczko commented 2 months ago

Describe the bug Error messages when building. I would really like to get this officially into Debian before end of this year, so it might be released with Debian 13. Ubuntu and other distributions would also profit from that. If it helps, I'm also on IRC.

To Reproduce Steps to reproduce the behavior: Try to build it on Debian sid.

Expected behavior It builds.

Screenshots n/a

Desktop (please complete the following information):

Additional context http://bananas.debian.net/debian/qb64pe/qb64pe_3.14.0%2bds-1_arm64.build

mkilgore commented 2 months ago

Hi @alexmyczko, if I'm reading it right you called make clean and make INSTALL=install. To build QB64-PE on Linux you have to call make OS=lnx clean and make OS=lnx BUILD_QB64=y (with the appropriate -jN to speed it up). The gist of why is that the same Makefile is used by QB64-PE to build the compiled QB64-PE programs, and it's a cross-platform Makefile, so when building QB64-PE itself you basically bootstrap it with those flags. Potentially we might change this in the future (so you can just do a typical make to build QB64-PE itself) but this is how it works now.

I would say separately that I don't know how you plan to package QB64-PE up but the required permissions may cause you a problem. QB64-PE requires permissions to the directories QB64-PE is installed into to function, otherwise you won't be able to compile programs. As such, the Makefile has no install target as we don't provide a way to install it system-wide. In theory you could just throw the whole thing in /opt/qb64pe and call it a day, but you'd have to make it world writable.

alexmyczko commented 2 months ago

@mkilgore thank you for the explanation, I guess this could work. For the other thing, it's probably playing/patching around the following:

https://github.com/QB64Team/qb64/issues/2#issuecomment-713758357

help would be very welcome. and this bug would get finally closed: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=899414

i mean would there be interest for building an install target, so linux users could profit from this? without running the software like a windows bundle .zip with unpacking and running it?