-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux binaries #3
Comments
From a programming perspective, there is no problem. It would be quite easy adding linux support to the source. However currently, I am not satisfied with the way it handles audio playback. I am gonna clean up that and then, I'll be including linux-x64 binaries under release, thanks for your opinion. |
Thanks! It would be quite cool to watch it in a no-gui session!
|
So just for fun I tried to run it via Wine, and it draws around 2 frames per second. you can literally watch it go line by line |
Hm yeah, I never tried that, just ran it under a windows VM and it worked pretty good, ik that doesn't have anything to do with wine. |
I'd love to help but C++ just isn't my kind of language. But still - Thank you for listening to me!Am 21.02.2024 um 10:50 schrieb Marian W. ***@***.***>:
Hm yeah, I never tried that, just ran it under a windows VM and it worked pretty good, ik that doesn't have anything to do with wine.
However, I recently had some time for this project, and I got so far rewriting the audio engine so that it would work under linux. I only gotta clean up some code and abstract away some os-related console functions, and then it's ready to go.
Grüße aus NRW :D
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Yeah sure, thank you too. You're already contributing by opening issues. |
I know, I'd just like to actually help resolve the issue instead of just complaining about it
|
Hello, I made some changes to the linprep branch for using this on linux. If you want to try it out, clone the code on that branch and either build with make --makefile linux.Makefile (see the makefile for packages you need to install) or (what I currently recommend because this branch is a hot mess, including it's code quality (had to change like everything ffmpeg related because they wanna change the whole API in every update)) just use the "cmdpla" binary file which is in the root directory, ik it's kinda sketchy (I hate putting binary files in my repositories) It's compiled for amd64 so it should run on every modern 64-Bit System which is not ARM. For me, everything is working except anything which has to do with colours (need to look into it but I guess the ncurses library seems to prevent ANSI colour escape codes) Anyway, there is lots of work to do including:
Maybe you'll find out something, but I mainly share this so uk I'm not lazy |
I'm trying to compile a working binary, but need to resolve some dependencies. Sorry for the late reply |
no worries, the only dependencies i think are needed are build-essentials, g++ and those listed in the linux makefile (in a comment at the top of the file) |
I have noticed a slight issue when compiling on a different linux-arm64 pc. Depending on your ffmpeg distribution, you might need to add "-l/usr/include/ffmpeg" to cflags in linux.Makefile |
I had some difficulties with the libraries. Running make --makefile linux.Makefile returns an error since it can't find any library. You are including the libraries, right? Do they have to be in specific folders or how do I make the libs visible for compilation? |
god, why didn't I see that, sorry about that. Depending on your distribution, you need to add "-l/usr/include/ffmpeg" to CFLAGS after "-Ilib/include/" |
So I was able to compile a binary, but noticed some issues: However, framerates are far better, and this is a massive improvement over trying to run the Windows version via Wine. |
Yeah there are some oddities. I am still yet to find the reason why the ANSI codes are not working, but that doesn't seem like a huge deal. The thing with the ffmpeg crash is probably also due to my crappy implementation of an asynchronous video decoder. Back when I initally wrote this, it was my first time using ffmpeg as a library, so I'll fix that aswell. Thanks for getting back to me and helping out this project! |
Haha yes, just for fun I made videos of the program playing the GTA 6 Trailer, once my compiled binary and once using Wine. If you want, you can check them out here: Native: https://youtu.be/DGAju2hNNJ8Wine: https://youtu.be/OPBWga3l5zM
|
holy shit. I expected wine to have at least like 5 fps but it seems like it doesn't even have 0.25 fps. that's actually hilarious. About earlier, you mentioned dithering would not work. Have you tried text dithering with key 'T'? Thanks for sharing the videos! |
Yeah, Wine is pathetic. Dithering did work when pressing T, but B (full pixel) also doesn't do anything
|
Would it be possible to provide binaries for Linux too? I know I could compile them myself, but I don't want to install a thousand tools and IDEs and dependencies. So can you please add a standard bin for Linux that can then be added to the apt / dnf / pacman repositories.
The text was updated successfully, but these errors were encountered: