mcef icon indicating copy to clipboard operation
mcef copied to clipboard

Expression of Interest (Linux)

Open spannerman79 opened this issue 9 years ago • 76 comments

I would like to voice my expression of interest of a linux version so i can use your mod WebDisplays natively on linux.

I am willing to test builds for you if/when you want/need it.

My system setup; Ubuntu 15.04, x64, 16GB ram, i7 Java JDK 8u51

Update: Since creating this issue my system is now the following; Arch, x64, 64GB RAM, AMD Ryzen 3900X AdoptJDK8(LTS)

spannerman79 avatar Aug 13 '15 12:08 spannerman79

Okay, I'll do it as soon as I'll be back home (in about 3 days). If I forget about it, please comment this post again ^^ thanks.

montoyo avatar Aug 13 '15 15:08 montoyo

Hi, just a friendly "bump" to remind you @montoyo :smile:

spannerman79 avatar Aug 17 '15 06:08 spannerman79

Just commenting to show you that there are at least two people desperately waiting for a linux build. I already tried to do it myself but I failed to figure out what version of jcef I need to get the latest MC 1.7.10 version of mcef running.

ajacobsen avatar Aug 17 '15 07:08 ajacobsen

Alright guys. I'm finishing up something and I'll try to do it today. If I don't post any news tomorrow at 5am (France's time) then kill me ;)

montoyo avatar Aug 18 '15 10:08 montoyo

Nah no one will kill you lol

Its more to show that at least one (now two) people would be interested in linux capability for your mods thats all mate.

Usually when someone quotes a time its best if they state the time zone (UTC) they are in.

For example when you made your comment that was (approx) 8.55pm (UTC+10). If anyone else is watching this issue what @montoyo meant was 5am (UTC+2)

spannerman79 avatar Aug 18 '15 12:08 spannerman79

Okay :D I successfully compiled JCEF for linux64 today. Let me run some tests to make sure that everything is compatible with MCEF, and then compile it for linux32 too. If everything goes fine, I'll release it tomorrow!

montoyo avatar Aug 19 '15 02:08 montoyo

Just a gentle "bump" to see how your getting on

spannerman79 avatar Aug 24 '15 00:08 spannerman79

Is there something that I can do to help @montoyo ?

Not trying to be pushy but the last comment was 10 days ago with your success with JCEF for linux x64

spannerman79 avatar Aug 29 '15 00:08 spannerman79

Hello Hello... :) Sorry if I didn't answer, studies resumed and I have been busy moving stuff to "my new home"... So uhm, as I said, compiling was the easy part. But there's a few problems with the linux port right now, that I need to fix:

  • You have to copy icutdl.dat in your java/bin folder, which requires admin rights (not my bug: see https://bitbucket.org/chromiumembedded/java-cef/issues/109)
  • Whenever a "web view" is destroyed, Minecraft crashes without any stacktrace or something that might help me... (I still don't know if it's my bug or JCEF's one)

Anyway, here's a little screenshot: http://montoyo.net/ShareX/MCEF%20Linux.png

montoyo avatar Sep 08 '15 16:09 montoyo

You have to copy icutdl.dat in your java/bin folder, which requires admin rights

This is a little bit of a worry (only for security reasons). Couldn't minecraft (java) be executed with a "security" type flag? For example -Djava.security.policy=some.file and some.file has the required commands to allow loading of icutdl.dat from its default location?

Sorry if I didn't answer, studies resumed and I have been busy moving stuff to "my new home"...

I know exactly whats that like so I hear you

spannerman79 avatar Sep 09 '15 01:09 spannerman79

Just a gentle bump as it's been a month since any sort of update

spannerman79 avatar Oct 30 '15 23:10 spannerman79

Hello, I would like know when you will publish a version stable of JCEF. (Excuse me for spelling and grammar ,I do not speak really good English).

Bricklou avatar Dec 09 '15 17:12 Bricklou

Any news on this @montoyo ? Been a while.

LokeYourC3PH avatar Mar 15 '16 17:03 LokeYourC3PH

Hello, we're two years later, everything is fine :) I'm working on porting everything to 1.12.2, and re-writing WebDisplays. I didn't forget about the Linux port and will try to do it after I updated WebDisplays.

Thanks for your very very very good patience. P.S.: Didn't mean to close the issue, that's why I re-opened it. Sorry :/

montoyo avatar Jan 26 '18 16:01 montoyo

Well I am very keen on seeing about getting this working on Linux if at all possible @montoyo

If i don't have to use my Win7 VM for gaming I won't. (bit off topic but if your curious as to how google for "arch pci passthrough" and you'll see it is possible)

spannerman79 avatar Feb 17 '18 02:02 spannerman79

I have gotten a 1.12.2 version to build for linux64 but I was curious if there was a way to get 1.7.10?

ghost avatar May 10 '18 04:05 ghost

He doesn't plan to support 1.7.10 since backporting from 1.12.2 to 1.7.10 would require a complete rewrite. You should make a pull request since this mod could definitely use linux support. I'm curious to know how you got it working.

Tank-Missile avatar Jun 07 '18 22:06 Tank-Missile

I'd also like to see Linux support.

ghost avatar Jan 06 '19 15:01 ghost

@montoyo Can you say my when you release mcef for Linux? Thank you, webdisplayfan

FunProgramer avatar Feb 08 '19 13:02 FunProgramer

Dont worry about it then Ill fine some OTHER MOD F U!!!

FrankiMC avatar May 19 '19 02:05 FrankiMC

Dont worry about it then Ill fine some OTHER MOD F U!!!

Seriously @FrankiMC ? You resort to abuse to someone that is doing this out of their own free will for others enjoyment?!

You are an immature ungrateful brat.

spannerman79 avatar May 19 '19 05:05 spannerman79

FrankiMC, why did not you insult people on your Askubuntu's 1139927 post as well since you have not had an answer either ? I have reported you. Minecraft community do not want such behavior. montoyo did an incredible job, point.

Finelarme9 avatar May 19 '19 09:05 Finelarme9

Since I'm noticing more activity on here, and the fact that @binary1230's pull request was finally closed, is it safe to assume that linux is now supported, or is close to being supported? If not, what can I do to help diagnose any remaining issues?

Tank-Missile avatar Jul 27 '19 18:07 Tank-Missile

Got MCEF working on linux 64 bits. However, there's a caveat: the user HAS to modify LD_LIBRARY_PATH on his own...

montoyo avatar Oct 18 '19 07:10 montoyo

Thats quite simple to do with MultiMC - see https://github.com/MultiMC/MultiMC5/wiki/Java-settings#custom-commands

spannerman79 avatar Oct 18 '19 08:10 spannerman79

@montoyo What exactly does LD_LIBRARY_PATH need to be set to? How should it be set? Why does it need to be manually set?

Tank-Missile avatar Oct 18 '19 09:10 Tank-Missile

@spannerman79 That sounds good @Tank-Missile You need to append the Minecraft folder to LD_LIBRARY_PATH. It has to be manually set because changing it at runtime has no effect (as far as I know, but I'll try to do it, just in case...), so you need to set it before you start Minecraft. This would look like this:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.minecraft
java -jar ./minecraft.jar #Or whatever the command is to start Minecraft on your linux...

But please note that this won't work yet since I haven't uploaded the linux-compiled binaries. First I need to make sure everything is working properly (including keyboard input; which apparently doesn't work well even on Windows)

montoyo avatar Oct 18 '19 10:10 montoyo

Reference: From the MultiMC discord; https://discordapp.com/channels/132965178051526656/134843027553255425/471558931660144640

wrapper script with the following possible env vars;

# Set up env - filter out input LD_ variables but pass them in under different names
export GAME_LIBRARY_PATH=${GAME_LIBRARY_PATH-${LD_LIBRARY_PATH}}
export GAME_PRELOAD=${GAME_PRELOAD-${LD_PRELOAD}}
export LD_LIBRARY_PATH="${MMC_DIR}/bin":$MMC_LIBRARY_PATH
export LD_PRELOAD=$MMC_PRELOAD

spannerman79 avatar Oct 18 '19 10:10 spannerman79

This is quite exciting to hear! I eagerly await the binaries.

Tank-Missile avatar Oct 18 '19 11:10 Tank-Missile

I am really happy to hear that ! Thank you

FunProgramer avatar Oct 19 '19 07:10 FunProgramer