-
Notifications
You must be signed in to change notification settings - Fork 1
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
How to compile backend? #2
Comments
Hmm, do you have all of the libraries listed in the CMakeLists file installed? I've only built on Linux, so I'm not sure of the experience on other platforms, but it does need to be compiled for Linux, so compiling on the Steam Deck could be an easy way. |
You know what, I managed to get passed that issue - it looked like I was not properly linking to the right libraries but now I am having a new issue:
I am happy to try building from scratch in linux instead of trying to bash my head at this with my mac. Could you possibly let me know what distro you are using? I will create a VM and try working on this from scratch if I can't seem to get passed this GLEW_LIBRARY issue. |
Well, it needs to either be compiled on Linux or cross compiled on another platform for Linux, and I haven't tested doing so since I use Linux natively. Compiling in the Docker environment that Decky uses would work, but require some setup/Docker knowledge. I use Ubuntu, but any distro that has the development libraries in the package manager should work fine. |
If you can recommend me a docker container to pull in order to get started I could try using that. I can try in a native ubuntu environment I was just trying to see how far on my mbp I could get. Appreciate your quick responses, and the work you've put in so far, this looks like a neat extension |
https://github.com/SteamDeckHomebrew/holo-docker Should just work on Ubuntu, but the normal development tool packages for CMake and such are needed, as well as the dev versions of the used libraries. Keep in mind that the plugin hasn't been tested for a few months, so the frontend UI likely needs a few modifications to work on current Steam OS versions, but the commits to my other plugin Animation Changer should describe the fixes that were done, along with updating the Decky Frontend Library dependency which fixes most issues. |
hm thanks! I will check it out, I ended up looking at that Dockerfile from the backend directory. I had trouble just trying to get it to run though,
I will try running again from the ubuntu machine I got, but basically was successful getting the first step of just using the What exactly does one need to compile the back end in order to do? Is that necessary to deploy the whole plugin? first you would run the pnpm run build, and then after its necessary to compile the backend ? Does the dockerfile in backend/ need to be initialized before you can run build.sh? sorry for all the questions. I feel like im a step or two away from being successful |
It's been a while so I don't quite remember, but you probably need to mount certain directories into the container when building. Probably would have to look at the Decky workflow that builds the backends. When the plugin runs, it just needs to have the built executable in the right directory and it should work. When testing, I would build it and manually copy it over. The main thing is you probaby need to mount the correct build directory and such for it to build correctly and actually save the executable, but I don't quite remember the required arguments. |
The contents of the build script may also be useful to look at. |
I'm not sure if the VSCode is supposed to copy backend stuff or not, but probably just make the bin directory and paste the Overlaid binary file in it. There's definitely issues in the frontend source that may entirely prevent the UI from working, though, especially with dialogs and the quick access menu checks, plus the Decky frontend lib version needs updating. |
It doesn't hurt to paste the whole directory, but only a few of the files are actually needed, and VSCode should copy most of them. |
@futurepr0n Not sure if you figured it out in the end, but heres what you need in the directory after building. Then Zip it, and upload through Decky Loaders Developer section (on steam decks game mode). |
Hey! Thanks yeah I managed to get it to compile then I needed to update for some of the ui packages and then I was able to successfully get it running on the deck! Only it crashed the deck - I’m gonna revisit it but get more foundation on the react js first. Appreciate the reply .
I can post the updated code after work for it to be merged if you wanted - otherwise the error is attached from before. Then I managed to get it running and it crashes on trying to actually enable the overlay. So I need to get more familiar with what’s happening.
![IMG_0814](https://github.com/TheLogicMaster/OverLaid/assets/478986/36660993-0df5-4617-b391-23cfb09a83a1)
![IMG_0816](https://github.com/TheLogicMaster/OverLaid/assets/478986/0178361a-223f-4849-92ec-637abb02d4db)
|
I got a step further, no crashes. @futurepr0n Honestly we probably need @TheLogicMaster to jump in and release an update, |
@JesusLuvsYooh Any chance you could take a look at my update - https://github.com/futurepr0n/OverPLaid to merge your code and/or provide what you did in your updates? I am going to try and pursue this, Im not sure why my fork doesnt allow me to make issues but we can take that over there and close that - thanks for your help both of you. Thanks for the great start and your help TLM |
Just pushed a commit which updates the frontend lib, fixes quick access menu detection, and gets the image widget mostly working. I saw a few weird issues like the enable toggle not working (The toggle event wasn't even being called), but everything worked after moving between menus to refresh everything. |
Hi there! Trying to build off your work and test out the example you made. I am trying to build the backend but having some trouble. Can you tell me, did you ever have this error and manage to get past it?
The text was updated successfully, but these errors were encountered: