Task #1374

Packaging request: Help compile glew for 32bit

Added by Eonfge 3 months ago. Updated 3 months ago.

Status:New% Done:

0%

Priority:Normal
Assignee:-
Category:Libs
Target version:-
OS:Linux Arch:32-bit

Description

Hey everybody,

In an attempt to package ET:Legacy for Flathub, I’ve run into an issue. To provide the best experience for players, ET:Legacy is best run as a 32bit application, so users can use existing mods. One library required for this is glew, but I have been unable to compile it myself for 32bit.

Thus, i want to ask if somebody here can provide me with more info concerning cross-compiling glew to 32bit.

Current Work In Progress packaging manuscript:
https://github.com/Eonfge/flathub/tree/com.etlegacy.ETL

Current Work In Progress submission thread:
https://github.com/flathub/flathub/pull/1182

Most other libraries already compile to 32bit (Minizip, glu, jansson) so with some assistance compiling glew to 32bit, it would be possible to publish an easy one click installer for Linux.

History

#1 Updated by ryven 3 months ago

Hello, it is obvious to me it doesn’t build 32 bit arch library, your main problem is that the glew pack it downloads comes only with Makefile in root, and i assume flatpack only uses that, completely ignoring CMakeList.txt build file. This means the cmake flags your are passing through config-opts (which specify binary arch) are completely ignored.
Moreover, the glew we supply in etlegacy-libs contains custom CMakeLists.txt file, as at the time of adding the library, there was no vendor provided CMake support.
To solve the issue, you probably have to pass CFLAGS=-m32 through make-args or something like that, i have no clue how the whole thing is working on your end.

Also available in: Atom PDF