Linux compiler question

15 views
Skip to first unread message

rob...@hotmail.com

unread,
Dec 28, 2021, 1:15:16 PM12/28/21
to jallib
Hello all,

For creating the Linux (and MacOS) compiler I am using Virtual Box on my Windows machine. Some time ago a did an upgrade of Virtual Box and that gave issues. For example I can no longer use the MacOS since it does not work anymore. Since the number of MacOS users is limited, and setting up this environment for the MacOS took a lot of time, I will not make a new MacOS versions of the but will keep the makefile for the MacOS so that others can create it.

But the question is about something else. For the Linux compiler I am switching to Ubuntu running on my Windows PC using WSL2. This integrates better with Windows. The problem is, however, that when I create the Linux compiler now, it does not run under Linux Mint since it cannot find a library that is dynamically loaded and that version of that library is not on my Linux Mint installation.

So I have 2 questions:
1) Did you experience any issues with the Linux compiler, that is, did you had to upgrade or install any library to get it running on your machine?
2) I can solve the issue by linking all libraries with the application (option -static). This works but this doubles the size of the compiler to about 1.3 Mbyte (it is normally around 550 kbytes). I do not think it will slow things down but it will prevent any problems mentioned in 1)

BTW. I am not a Linux guru so maybe some of you have other suggestions.

Please share your thoughts. Thanks.

Kind regards,

Rob

Oliver Seitz

unread,
Dec 29, 2021, 7:47:46 AM12/29/21
to jal...@googlegroups.com
Hi Rob,

I'm a linux user, no guru either... I wouldn't mind static linking. You can't do it for big graphical applications like GIMP, VLC or LibreOffice, the executables would blow up to gigabytes. But for a compiler, it costs a few bytes and saves a lot of trouble.

The alternative would be to distribute package manager files (like .deb or .rpm), which include information on dependencies. But that's the hard way to make a user happy. 

Statically linked executables are quick and convenient for everyone :-)

Greets,
Kiste

Am Dienstag, 28. Dezember 2021, 19:21:11 MEZ hat rob...@hotmail.com <rob...@hotmail.com> Folgendes geschrieben:


--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/36f87e76-1fd5-46c3-b584-814efcf90906n%40googlegroups.com.

Rob CJ

unread,
Dec 29, 2021, 8:46:48 AM12/29/21
to jal...@googlegroups.com
Hi Kiste,

Thanks for the response. I think I will indeed go for linking the libraries to prevent any issues with older library versions which I am now experiencing.

The rpm solution is for guru's I think and as mentioned, that is not me 🙂.

For later ... Happy New Year (and next year a new Jallib release)!

Kind regards,

Rob




Van: 'Oliver Seitz' via jallib <jal...@googlegroups.com>
Verzonden: woensdag 29 december 2021 13:46
Aan: jal...@googlegroups.com <jal...@googlegroups.com>
Onderwerp: Re: [jallib] Linux compiler question
 
Reply all
Reply to author
Forward
0 new messages