Image Waves: LUT
Re: Image Waves
just recreate 150 of them first
Re: Image Waves
Hi wilbert, Keya,
I tried taking a shortcut and downloading prebuilt OpenCV dynamic libraries for OSX...
If you have any incite or additional thoughts please share.
I tried taking a shortcut and downloading prebuilt OpenCV dynamic libraries for OSX...
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.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
If you have any incite or additional thoughts please share.
Re: Image Waves
it appears to be a symbolic link that you can patch from the commandline
http://forum.cocoacafe.fr/topic/9120-xc ... ers-dylib/
http://translate.google.com/translate?s ... edit-text=
http://forum.cocoacafe.fr/topic/9120-xc ... ers-dylib/
http://translate.google.com/translate?s ... edit-text=
Re: Image Waves
I tried to convert your demo project.JHPJHP wrote:If you have any incite or additional thoughts please share.
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.
Last edited by wilbert on Wed May 31, 2017 2:59 pm, edited 1 time in total.
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Image Waves
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.
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.
Figuring out the patch provided by Keya will take time, something I won't have until the weekend.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
Last edited by JHPJHP on Fri May 13, 2016 1:00 am, edited 2 times in total.
Re: Image Waves
@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.
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.
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Image Waves
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
Sorry Keya, I was thinking about the work you did on the libjpeg-turbo lib but forgot that was on the Windows versionKeya 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!
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.
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Image Waves
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.
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.
Last edited by JHPJHP on Fri May 13, 2016 12:59 am, edited 1 time in total.
Re: Image Waves
That's already great to hearJHPJHP wrote:I just did a quick and dirty build of the binaries, modified the example script, and it worked.
You can use otool to check those.JHPJHP wrote:Renaming the build folder confirmed that the libraries internal pointers are still an issue.
otool -L libopencv_core.2.4.12.dylib
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Image Waves
I updated the dylibs; used install_name_tool to change the references.
Last edited by wilbert on Wed May 31, 2017 2:59 pm, edited 1 time in total.
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Image Waves: LUT
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
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
Updated:
- improved support for images with transparency
- improved support for images with transparency