-
Notifications
You must be signed in to change notification settings - Fork 744
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
Possible to do a headless packaging of OpenCV and FFmpeg? #593
Comments
Sure, it's possible to do that. Modify the cppbuild.sh script and follow the build instructions: BTW, it won't actually try to display anything by default anyway. It just needs to link with GTK, so we can just install those libraries on the system and it will work just fine without display. |
The issue isn’t that I’m afraid it will display anything. My issue is I have no control over the target system so I can’t install them. |
Libraries can still be installed locally. Try to put some random |
For context, this is being deployed to AWS Lambda. The decision to use Lambda is out of my hands (and certainly isn't my choice for now) but it is increasingly common and likely to become increasingly problematic for people using the presets. I saw a previous issue that suggested publishing (to e.g. Maven) a pre-built headless version. Is that something that is still being considered? Alternatively, I also saw mention of bundling in libgtk and friends (as is done with libgomp) was also considered at one point. Is that something that is still being considered? As an aside, just dealing with libgtk isn't nearly enough:
|
Yeah, it looks like |
This helped, me, for those that come across my initial question with docker, you have to install one of these lib deps. I am figuring out the least required dep path for my personal use. But nice work guys. Thanks for the reference @saudet this solved my issue. |
@KennyBarraud You need to make sure the binaries for the native platforms are also bundled. |
Yeah ! That was my mistake. Sorry for the inconvenience :p |
I'm using Scala, I've trouble deploying javacv in a docker using sbt DockerPlugin , is there a way to get the headless build without manually building the javaccp. not sure why it gets the library from non existent folder "/home/{USER}/.javacpp/cache/" and using jniopencv_highgui , I believe is due to linking with all the other opencv libraries.
this is my sbt dependencies.
help will be very much appreciated! |
hi, what library dependencies did you install? can you tell me how you work around it? thanks in advance. i have no option to run apt-get install btw. |
have you solved this problem? @alawasoft |
Till the last week everything worked for me, but lately I have gotten the same problem when creating docker image. For me the solution was to install `FROM ubuntu:22.04 WORKDIR /app COPY ./src/main/resources/yolo3/ ./yolo3/ RUN apt update -y |
I'm running on a system with no GTK which is needed by highgui (and probably others). However, I have no need to run any GUI and getting GTK installed on the target system is at present, not possible.
When I remove all references to highgui from the generated jar, I predictably get a different error:
The text was updated successfully, but these errors were encountered: