BetterPushbackC icon indicating copy to clipboard operation
BetterPushbackC copied to clipboard

Use github action to build bin for win&lin

Open CHH2000day opened this issue 1 year ago • 9 comments

Use github action to build debug & release binary for linux and windows. I don't have any macos device so there's no build job for macos at this moment

CHH2000day avatar Oct 22 '23 05:10 CHH2000day

Thanks for the pointer. Building still fails because it's looking for acfutils and can't find it even though the directory exists.

Plaease move back to your own issue for further discussion. The raseon,to be short,you need to recursively clone this project and its submodules

CHH2000day avatar Oct 25 '23 09:10 CHH2000day

Sorry. Posted back in my own issue. Also, in your readme, you should remove the qmake reference since it's not in the project.

KSI65 avatar Oct 25 '23 09:10 KSI65

Hi, I tried to load your binary into X-Plane 12. But it didn't load. The error message in log.txt dlerror:/media/xp12/X-Plane 12/Resources/plugins/BetterPushback/lin_x64/BetterPushback.xpl: undefined symbol: lacf_glew_per_thread_ctx

KSI65 avatar Oct 26 '23 19:10 KSI65

It might be a problem with libacfutils. I may not be able help you further since I only have headless linux devices and I am not a c/cpp developer.

CHH2000day avatar Oct 27 '23 16:10 CHH2000day

No problem. I just thought you would want to know. I'm not sure that headless linux devices are a problem because in the end, the only way to test the build is by loading it in X-Plane 12. I spent many days trying to get the code to build on linux. But I couldn't. I gave up because there's so much change between what is working perfectly in XP11 and XP12. And the instructions for building are not clear & libacfutils is a big issue.

KSI65 avatar Oct 27 '23 18:10 KSI65

@CHH2000day thank you for your work on that! That would help more people to be able to build and thus work on it.

I tested your Github actions build on Linux/Manjaro and have the same error unfortunately:

dlerror:/home/xxxx/Storage/X-Plane 12/Resources/plugins/BetterPushback/lin_x64/BetterPushback.xpl: undefined symbol: lacf_glew_per_thread_ctx

I have glew:2.2.0 on my system but libacfutils uses glew:1.13. 1.3 gets built and is used to build libacfutils but somehow the static build is not included in lin_x64/BetterPushback.xpl. I already tried to fix that locally but did not succeed. I hope somebody else knows how to adapt the build.

jonaseberle avatar Oct 30 '23 06:10 jonaseberle

@KSI65 @jonaseberle It seems the libacfutils build for linux failed due to a missing dependency.Please try this new build

CHH2000day avatar Oct 30 '23 08:10 CHH2000day

Thank you @CHH2000day! That was it! I can confirm the build works on Linux/Manjaro.

jonaseberle avatar Oct 30 '23 09:10 jonaseberle

It also works on Linux Mint. Thanks @CHH2000day.

KSI65 avatar Oct 30 '23 13:10 KSI65