Skip to content
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

compilation problem #2

Open
lulu1315 opened this issue Feb 28, 2019 · 3 comments
Open

compilation problem #2

lulu1315 opened this issue Feb 28, 2019 · 3 comments

Comments

@lulu1315
Copy link

hello
I'm trying to compile your project on Ubuntu 18.04 and I have this compilation error:

Scanning dependencies of target guided_filter_image
[ 93%] Building CXX object examples/CMakeFiles/guided_filter_image.dir/guidedFilter_image.cpp.o
/shared/foss-18/GuidedFilter/examples/guidedFilter_image.cpp: In function ‘int main(int, char**)’:
/shared/foss-18/GuidedFilter/examples/guidedFilter_image.cpp:114:70: error: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]
rgb.write (cl_algo::GF::SeparateRGB::Memory::D_IN, image.datastart);
~~~~~~^~~~~~~~~
In file included from /shared/foss-18/GuidedFilter/examples/guidedFilter_image.cpp:46:0:
/shared/foss-18/GuidedFilter/include/GuidedFilter/algorithms.hpp:227:14: note: initializing argument 2 of ‘void cl_algo::GF::SeparateRGB<(cl_algo::GF::SeparateRGBConfig)1>::write(cl_algo::GF::SeparateRGB<(cl_algo::GF::SeparateRGBConfig)1>::Memory, void*, bool, const std::vectorcl::Event, cl::Event)’
void write (SeparateRGB::Memory mem = SeparateRGB::Memory::D_IN, void *ptr = nullptr, bool block = CL_FALSE,
^~~~~

I'm using opencv 3.2
any hints welcomed
luc

@lulu1315
Copy link
Author

found it :
// Copy data to device
rgb.write (cl_algo::GF::SeparateRGB::Memory::D_IN, const_cast<uchar *>(image.datastart));
works
sorry for the noise

@antithing
Copy link

Hi @lulu1315 , did you manage to get this compiled and running?

I am getting the following error:

Error when accessing kernel file: ios_base::failbit set: iostream stream error (d:\testing\guidedfilter-master\external\clutils\clutils-master\src\clutils.cpp:224)

Did you have this problem?

Thanks!

@lulu1315
Copy link
Author

hello antithing
sorry i didn't have this problem.
as of guided filtering i'm using gmic (https://gmic.eu/) which has an implementation of it.
see this discussion https://discuss.pixls.us/t/guided-filter-in-gmic/11579

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants