smiley22 / XPPlugins

A collection of various small plugins for X-Plane 11 that mostly improve usability
MIT License
33 stars 10 forks source link

Added linux support for BetterMouseYoke #1

Open todirbg opened 4 years ago

todirbg commented 4 years ago

Hi I've added support for linux trough xlib. To compile it needs linking -lX11 and compiler option -fPIC to add libutil library. I compiled it with gcc via CodeBlocks and I don't have makefile for it. It has been tested only on my Mint 19.3. It changes cursors with theme ones instead of the provided pngs.

mwrf commented 4 years ago

I've just moved my installation from Windows to Linux. I would love for this to be merged.

@todirbg Have you a build I can test?

todirbg commented 4 years ago

Yes, check my fork releases.

iblue commented 3 years ago

For those who try to compile it themselves:

In the Util/Makefile set CC=gcc and replace -DAPL by -DLIN. In BetterMouseYoke/Makefile, set CC=gcc, replace -DAPL by -DLIN and set the LDFLAGS to ../XP/Libs/XPLM_64.so ../Util/util.a -fvisibility=hidden -shared -rdynamic -nodefaultlibs -undefined_warning -lX11 -fPIC and NAME=lin.xpl.

Also copy the Resources/plugins/XPLM_64.so from your X-Plane folder to XP/Libs/.

Then install the required headers (on Debian this is sudo apt get install libx11-dev libxi-dev libxcursor-dev).

In the Util directory, run make, then in the BetterMouseYoke also run make.

I will figure out what to do with the resulting file tomorrow.

ghost commented 3 years ago

How do i use this? I followed iblue's guide to compiling it and I assume I'm supposed to put it in the Resources/plugins/BetterMouseYoke_1.5 folder, but it didn't work.

I'm a Linux noob, so I'm sorry if I'm missing something obvious.

iblue commented 3 years ago

If I remember correctly, it goes to Resources/plugins/BetterMouseYoke/64/lin.xpl. Does this work for you?

ghost commented 3 years ago

I renamed the folder from BetterMouseYoke_1.5 to BetterMouseYoke and added a folder named "64" and put lin.xpl inside it, but no, it didn't work...

todirbg commented 3 years ago

@kikiokol attach your xplane log.txt if able or look into it for clues.

ghost commented 3 years ago

Ok so i switched to Manjaro and now it works, i don't know what i did wrong last time but now it works. Thanks