Page 2 of 2
Re: Image Waves
Posted: Wed May 11, 2016 5:27 pm
by Keya
just recreate 150 of them first
Re: Image Waves
Posted: Thu May 12, 2016 2:05 am
by JHPJHP
Hi wilbert, Keya,
I tried taking a shortcut and downloading prebuilt OpenCV dynamic libraries for OSX...
Application Specific Information:
dyld: launch, loading dependent libraries
DYLD_LIBRARY_PATH=/Users/JHPJHP/Desktop/PureBasic/compilers/:
Dyld Error Message:
Library not loaded: @loader_path/libopencv_imgproc.2.4.dylib
Referenced from: /Users/USER/Desktop/*/libopencv_highgui.2.4.dylib
Reason: image not found
I placed them in the compilers folder (
DYLD_LIBRARY_PATH), but the above error was the result. My guess is that internally they were created pointing to a default folder (
/Users/USER/Desktop/*/), but I'm not sure. I probably end up building my own libraries, but it won't be for awhile.
If you have any incite or additional thoughts please share.
Re: Image Waves
Posted: Thu May 12, 2016 2:16 am
by Keya
Re: Image Waves
Posted: Thu May 12, 2016 7:15 am
by wilbert
JHPJHP wrote:If you have any incite or additional thoughts please share.
I tried to convert your demo project.
The dylibs do load but the two examples don't work
sepia doesn't show any image (problem seems to be cvSet2D) and webcam doesn't respond to the window close button.
Re: Image Waves
Posted: Thu May 12, 2016 11:28 am
by JHPJHP
Hi wilbert,
I should be able to fix the issues you reported, but I'm having the same problem with the binaries you provided as I did previously.
Application Specific Information:
dyld: launch, loading dependent libraries
DYLD_LIBRARY_PATH=/Users/JHPJHP/Desktop/PureBasic/compilers/:
Dyld Error Message:
Library not loaded: /Volumes/Data/Users/wilbertbrants/Downloads/OpenCV/lib/libopencv_core.2.4.dylib
Referenced from: /tmp/PureBasic.0.app/Contents/MacOS/PureBasic.0
Reason: image not found
Figuring out the patch provided by Keya will take time, something I won't have until the weekend.
Re: Image Waves
Posted: Thu May 12, 2016 11:37 am
by wilbert
@JHPJHP,
Did you run it from the unzipped folder without moving the dylibs ?
You should be able to do it like that.
It might be the original path location is hardcoded in the dylib. I'll see if I can find anything in the build settings to turn that off. Maybe Keya knows. Keya is better at building libs from source code as I am.
Re: Image Waves
Posted: Thu May 12, 2016 11:38 am
by Keya
same here it's all new to me (wilbert ive never built a lib on Linux or OSX yet! and only just recently figured out HelloWorld.lib in Windows lol), but i'm sure we'll be able to figure it out with a bit of trial and error and error and error

and weekend is nearly here!
Re: Image Waves
Posted: Thu May 12, 2016 1:25 pm
by wilbert
Keya wrote:same here it's all new to me (wilbert ive never built a lib on Linux or OSX yet! and only just recently figured out HelloWorld.lib in Windows lol), but i'm sure we'll be able to figure it out with a bit of trial and error and error and error

and weekend is nearly here!
Sorry Keya, I was thinking about the work you did on the libjpeg-turbo lib but forgot that was on the Windows version
otool and
install_name_tool seem to be the tools which can help out.
I came also across an option for cmake named CMAKE_SKIP_RPATH but I'm not sure if that can help.
It looks like there's also a dependancy from libopencv_highgui to libopencv_imgproc so it might be required to include that dylib also.
Re: Image Waves
Posted: Thu May 12, 2016 7:16 pm
by JHPJHP
Hi wilbert, Keya,
I just did a quick and dirty build of the binaries, modified the example script, and it worked.
- installed XCode and CMake
- created shared and dynamic libraries
Renaming the build folder confirmed that the libraries internal pointers are still an issue.
Re: Image Waves
Posted: Thu May 12, 2016 7:39 pm
by wilbert
JHPJHP wrote:I just did a quick and dirty build of the binaries, modified the example script, and it worked.
That's already great to hear
JHPJHP wrote:Renaming the build folder confirmed that the libraries internal pointers are still an issue.
You can use otool to check those.
otool -L libopencv_core.2.4.12.dylib
Re: Image Waves
Posted: Thu May 12, 2016 7:53 pm
by wilbert
I updated the dylibs; used install_name_tool to change the references.
Re: Image Waves: LUT
Posted: Sun May 26, 2019 3:26 am
by JHPJHP
Hi wilbert,
Thank you as always for the information and support.
---------------------------------------------------
Updated:
-
added DPI awareness:
SetProcessDpiAwarenessContext
---------------------------------------------------
Updated (Windows):
- image sizes configured to use the built-in PureBasic DPI compiler option
Re: Image Waves: LUT
Posted: Wed Oct 20, 2021 8:25 pm
by JHPJHP
Updated:
- improved support for images with transparency