Comments (16)
(eg on hosts where we can't have valid X server connection )
I believe in that case you wouldn't need dcv:plot module at all, right? If that is so, you could just link against dcv:core and dcv:io. Would that do?
from dcv.
sorry, that's just not a good solution, suppose you have some complex code that is intended to work both with and without plotting depending on platform / architecture support. Inserting static if(has_gl)
or version(with_gl)
everywhere is too much trouble for client code.
Instead, we should allow runtime loading on demand via dlopen+friends of C shared libraries as done in other projects. I can provide references if needed.
Side question: is there a simple way to get libgl
on ubuntu?
from dcv.
I'm sorry, I'm not sure I understand the situation completely. But if you've encountered this in a production-like environment, than it is clear this should be done. So, how do we do this? What do we do with the rest of the dcv.plot
code in runtime if glfwInit
fails?
from dcv.
What do we do with the rest of the dcv.plot code in runtime if glfwInit fails?
(thinking out loud here) We could throw an exception at any call that depends on glfwInit?
from dcv.
Exactly. Currently, it wont even allow code imports plotting but doesnt call plotting functions. With this, it will allow importing such code and all is fine so long plotting isnt used.
from dcv.
Awesome. @9il I believe we're OK with throwing Exceptions in the dcv.plot module. This is definitely a higher-level module with no (or very little) performant-critical code inside. Do you agree with this solution, or do you have some other proposition to solve it?
from dcv.
Side question: is there a simple way to get libgl on ubuntu?
Sorry for ignoring this, didn't catch it before. Do you mean glfw? If so sudo apt-get install glfw3
will do, I think.
from dcv.
No, libgl. Theres a recursive dub dependency on libgl (maybe after brew install ffmpeg, i forgot where it arose from)
from dcv.
Isn't libGL.so present by default? I believe even unity depends on it :). Anyhow, if you're failing to link against it, maybe it's not named the way dcv's dub.json expects it. Sorry, I'm not much of a help here, since I don't have ubuntu machine. Hope you'll manage.
from dcv.
That's another point: linker is case sensitive and libGL may be present but dub.json specifies libgl
from dcv.
Supporting Ubuntu would be great, given its popularity... parallels or virtualbox are pretty easy to setup :)
from dcv.
Awesome. @9il I believe we're OK with throwing Exceptions in the dcv.plot module. This is definitely a higher-level module with no (or very little) performant-critical code inside. Do you agree with this solution, or do you have some other proposition to solve it?
Agreed
from dcv.
from dcv.
Agreed
Awesome! @timotheecour I'll try fix this by the end of the day.
from dcv.
That's another point: linker is case sensitive and libGL may be present but dub.json specifies libgl
What's really interesting is that I've developed much of dcv on ubuntu. And that gl
linking that was put there in dub.json seemed to be working. :) Anyhow, hope your linking is fine after Ilya's fix. And thanks for pointing this out!
from dcv.
tracked in #113 so closing this
from dcv.
Related Issues (20)
- betterC mir-cv HOT 6
- use documentation unittests to guarantee docs stays in sync with code and compiles (http://dcv.dlang.io/) HOT 3
- cannot use dcv dependency in a dub.json, http://code.dlang.org/packages/dcv.json broken
- undefined error when calling dcv.imgproc.convolution.conv HOT 7
- wrappers for opencv HOT 16
- git history not very linear; why not use `git pull --rebase`instead of `git pull`? HOT 1
- Create CONTRIBUTING file
- plotting without X-server HOT 1
- simplify API's with isSlice HOT 6
- (most) bool return functions should instead throw on error
- Video IO Example HOT 12
- Error: function ffmpeg.libavformat.avformat.AVIndexEntry.flags(int v) cannot be overloaded with another extern(C) HOT 2
- Error: recursive alias declaration (using dmd git master) HOT 3
- core/utils.d(72,23): Error: cannot implicitly convert expression iota([shape[0]]) HOT 2
- update to mir-algorithm v0.9.1 HOT 1
- dcv/source/dcv/io/video/input.d(149,38): Deprecation: function `ffmpeg.libavcodec.avcodec.avpicture_get_size` is deprecated
- Broken example on the homepage? HOT 4
- is this library dead? HOT 7
- ImageFormat dependency has issues with some jpg?? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dcv.