-
Notifications
You must be signed in to change notification settings - Fork 307
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
Building Static/Portable #84
Comments
It's not fully static, but it still will hopefully be helpful/useful.
(and then Misc notes:
|
Looks like a minor fix (pinning cmake) might be necessary for the script to work as described above: #85 I'll merge that into master momentarily. (edit: done) |
Ok, I think I got it to compile with opencv 4.9.0 and non-ancient glibc(?). I'm still in the livecd, so I'll just test it by rebooting.
So that seems to be better (more static linking)? |
It works, and builds statically (so if you want, 4.9.0 opencv will work, but the rest of the script might need some tweaking to run without docker, which is what I want). If you want, I should be able to get the script to work outside of docker. Update: So, Update 2: I have built glfw from source, and installed the static lib. I also built it all wrong, so now I'm restarting it (hey, at least there's progress). Update 3: It's building, but keeps linking the shared library. I'm going to take a break for a bit. Update 4: I've decided to edit the code, so hopefully that will work. |
Great! I'm interested to know how it turns out. I don't have a problem modifying that script a bit, though the docker build will probably remain the priority (so I'd want to limit complexity). Similarly for the static build -- the priority for libcimbar as a whole is basically (1) local testing, (2) android buld, (3) wasm build, in some order. Statically linking would be a further down the list, but I also don't see a reason to not support it. 🙂 GLFW itself should be workable to static link, but IIRC there are other problems (which you may be in the middle of ...) around libGL when static linking that scared me away. (edit: but I think I was also approaching it from a musl-c perspective, and it was a few years ago... so how much do I remember correctly? 🤔 ) Looks like this is the branch from back when I was messing with it: |
If I run
sudo ./package-portable-linux.sh
, it gives me this error:Expand Block [Click]
Is it not meant to make a static/portable executable?
Please tell me if there's a way, because I've been needing to rely on a livecd for a while and installing the dependencies repeatedly is getting very annoying.
The text was updated successfully, but these errors were encountered: