It is currently Sat Jul 20, 2019 1:19 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Image Waves
PostPosted: Wed May 11, 2016 5:27 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 04, 2015 7:10 am
Posts: 1673
just recreate 150 of them first

_________________
Thankyou to all the coders who generously helped & encouraged me in the nearly 2yrs when i was welcome here,
it was a tremendous privilege. I learned a lot. I wish you and your families all the best and success for the future.


Top
 Profile  
Reply with quote  
 Post subject: Re: Image Waves
PostPosted: Thu May 12, 2016 2:05 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi wilbert, Keya,

I tried taking a shortcut and downloading prebuilt OpenCV dynamic libraries for OSX...
Quote:
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.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Image Waves
PostPosted: Thu May 12, 2016 2:16 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 04, 2015 7:10 am
Posts: 1673
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=

_________________
Thankyou to all the coders who generously helped & encouraged me in the nearly 2yrs when i was welcome here,
it was a tremendous privilege. I learned a lot. I wish you and your families all the best and success for the future.


Top
 Profile  
Reply with quote  
 Post subject: Re: Image Waves
PostPosted: Thu May 12, 2016 7:15 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3351
Location: Netherlands
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.

_________________
macOS 10.14 Mojave, PB 5.62 x64


Last edited by wilbert on Wed May 31, 2017 2:59 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Image Waves
PostPosted: Thu May 12, 2016 11:28 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
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.
Quote:
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.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Fri May 13, 2016 1:00 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Image Waves
PostPosted: Thu May 12, 2016 11:37 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3351
Location: Netherlands
@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.

_________________
macOS 10.14 Mojave, PB 5.62 x64


Top
 Profile  
Reply with quote  
 Post subject: Re: Image Waves
PostPosted: Thu May 12, 2016 11:38 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 04, 2015 7:10 am
Posts: 1673
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!

_________________
Thankyou to all the coders who generously helped & encouraged me in the nearly 2yrs when i was welcome here,
it was a tremendous privilege. I learned a lot. I wish you and your families all the best and success for the future.


Top
 Profile  
Reply with quote  
 Post subject: Re: Image Waves
PostPosted: Thu May 12, 2016 1:25 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3351
Location: Netherlands
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 :oops:

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.

_________________
macOS 10.14 Mojave, PB 5.62 x64


Top
 Profile  
Reply with quote  
 Post subject: Re: Image Waves
PostPosted: Thu May 12, 2016 7:16 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
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 will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Fri May 13, 2016 12:59 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Image Waves
PostPosted: Thu May 12, 2016 7:39 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3351
Location: Netherlands
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.
Quote:
otool -L libopencv_core.2.4.12.dylib

_________________
macOS 10.14 Mojave, PB 5.62 x64


Top
 Profile  
Reply with quote  
 Post subject: Re: Image Waves
PostPosted: Thu May 12, 2016 7:53 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3351
Location: Netherlands
I updated the dylibs; used install_name_tool to change the references.

_________________
macOS 10.14 Mojave, PB 5.62 x64


Last edited by wilbert on Wed May 31, 2017 2:59 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Image Waves: LUT
PostPosted: Sun May 26, 2019 3:26 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
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

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: djes and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye