Getting started with PCL on osx

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting started with PCL on osx

George Profenza
Hello,

C++ n00b, just getting started with PCL, so please have a bit of patience :)

I've managed to install the dependencies and PCL, 
but running into an issue when I try to compile the 

I've created a new Qt Console Application and pasted the sample code,
but I encounter a problem when adding libpcl_io (/usr/local/lib/libpcl_io.dylib):

dyld: Library not loaded: libvtkWidgets.5.6.dylib
  Referenced from: /usr/local/lib/libpcl_io.1.5.dylib
  Reason: image not found

I have installed VTK prior to PCL, but it's vtk-5.10, not 5.6,
which I presume is where the problem lies. What can I do in this situation ?
is there a way to tell libpcl_io.1.5.dylib to load libvtkWidgets.5.10.dylib instead,
or should find/build/install vtk 5.6 ?

Thank you for your time,
George

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Getting started with PCL on osx

Radu B Rusu
Administrator
George,

There is a problem with our VTK dmg. We'll try to generate a new one as soon as possible.

Cheers,
Radu

On May 4, 2012, at 3:57, George Profenza <[hidden email]> wrote:

Hello,

C++ n00b, just getting started with PCL, so please have a bit of patience :)

I've managed to install the dependencies and PCL, 
but running into an issue when I try to compile the 

I've created a new Qt Console Application and pasted the sample code,
but I encounter a problem when adding libpcl_io (/usr/local/lib/libpcl_io.dylib):

dyld: Library not loaded: libvtkWidgets.5.6.dylib
  Referenced from: /usr/local/lib/libpcl_io.1.5.dylib
  Reason: image not found

I have installed VTK prior to PCL, but it's vtk-5.10, not 5.6,
which I presume is where the problem lies. What can I do in this situation ?
is there a way to tell libpcl_io.1.5.dylib to load libvtkWidgets.5.10.dylib instead,
or should find/build/install vtk 5.6 ?

Thank you for your time,
George

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Getting started with PCL on osx

George Profenza
Multumesc Radu :)

I've eventually downloaded and managed compile VTK 5.6 as well.
Then I ran into more problems because the make && make install placed
the VTK library /usr/local/lib/vtk-5.6 , but libpcl_io.dylib was trying to load the vtk
library files from the same location it lives (library /usr/local/lib/) so for now 
I copied all the .dylib files from library /usr/local/lib/vtk-5.6 into library /usr/local/lib/
and the project sucessfully compiled. 

I don't know if this is the best/cleanest way to handle this though.
In the .pro file in my Qt project I've adding paths to the vtk dylibs like so:
LIBS += /usr/local/lib/vtk-5.6/libvtkCommon.5.6.dylib

above 
LIBS += /usr/local/lib/libpcl_io.dylib
but with no luck. Am I doing it wrong ?

Thanks,
George

On Fri, May 4, 2012 at 4:33 PM, Radu B. Rusu <[hidden email]> wrote:
George,

There is a problem with our VTK dmg. We'll try to generate a new one as soon as possible.

Cheers,
Radu

On May 4, 2012, at 3:57, George Profenza <[hidden email]> wrote:

Hello,

C++ n00b, just getting started with PCL, so please have a bit of patience :)

I've managed to install the dependencies and PCL, 
but running into an issue when I try to compile the 

I've created a new Qt Console Application and pasted the sample code,
but I encounter a problem when adding libpcl_io (/usr/local/lib/libpcl_io.dylib):

dyld: Library not loaded: libvtkWidgets.5.6.dylib
  Referenced from: /usr/local/lib/libpcl_io.1.5.dylib
  Reason: image not found

I have installed VTK prior to PCL, but it's vtk-5.10, not 5.6,
which I presume is where the problem lies. What can I do in this situation ?
is there a way to tell libpcl_io.1.5.dylib to load libvtkWidgets.5.10.dylib instead,
or should find/build/install vtk 5.6 ?

Thank you for your time,
George

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users



_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Getting started with PCL on osx

maxhawkins
This post has NOT been accepted by the mailing list yet.
In reply to this post by Radu B Rusu
Has the VTK dmg been fixed? I'm still having trouble with VTK shared libraries.

Thanks,
Max
Reply | Threaded
Open this post in threaded view
|

Re: Getting started with PCL on osx

mlewis
I just followed OSX binary install instructions and am seeing:

dyld: Library not loaded: libvtkWidgets.5.6.dylib
  Referenced from: /usr/local/bin/pcd_viewer
  Reason: image not found
Trace/BPT trap

Is this the same vtk binary problem mentioned a while ago?
What would be the recommended way to solve this?
thanks...
Reply | Threaded
Open this post in threaded view
|

Re: Getting started with PCL on osx

Radu B Rusu
Administrator
It seems that the VTK DMG on our servers is broken, so you need to compile yours from source, or use Bill's SuperBuild
(http://www.pcl-developers.org/A-SuperBuild-for-PCL-td5706899.html).

However, stay tuned: we're about to launch a brand new code sprint that tackles Mac compatibility ! (see
http://www.pcl-users.org/Mac-OS-X-code-sprint-goals-td4019412.html) More details will be announced soon.

Cheers,
Radu.

On 06/15/2012 01:33 PM, mlewis wrote:

> I just followed OSX binary install instructions and am seeing:
>
> dyld: Library not loaded: libvtkWidgets.5.6.dylib
>    Referenced from: /usr/local/bin/pcd_viewer
>    Reason: image not found
> Trace/BPT trap
>
> Is this the same vtk binary problem mentioned a while ago?
> What would be the recommended way to solve this?
> thanks...
>
> --
> View this message in context: http://www.pcl-users.org/Getting-started-with-PCL-on-osx-tp3961889p4019369.html
> Sent from the Point Cloud Library (PCL) Users mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Getting started with PCL on osx

clockwise9
mlewis,

Did you ever get this working?  I was getting similar errors.

dyld: Library not loaded: libvtkCommon.5.10.dylib
  Referenced from: /Users/justin/Documents/workspace/pcl_trunk/build/./bin/pcl_outofcore_viewer
  Reason: image not found
Trace/BPT trap

On my system it looks like it is looking for vtk in the wrong place.  I built and installed vtk via Bills SuperBuild (I ran make install myself) and it installed into /usr/local/lib/vtk-5.10

sudo dtruss ./bin/pcl_outofcore_viewer -h
...
stat64("libvtkCommon.5.10.dylib\0", 0x7FFF5FBFC640, 0x7FFF5FBFCC80) = -1 Err#2
stat64("/Users/justin/lib/libvtkCommon.5.10.dylib\0", 0x7FFF5FBFCA20, 0x7FFF5FBFCC80) = -1 Err#2
stat64("/usr/local/lib/libvtkCommon.5.10.dylib\0", 0x7FFF5FBFCA20, 0x7FFF5FBFCC80) = -1 Err#2
stat64("/usr/lib/libvtkCommon.5.10.dylib\0", 0x7FFF5FBFCA20, 0x7FFF5FBFCC80) = -1 Err#2
write_nocancel(0x2, "dyld: Library not loaded: libvtk\0", 0x20) = 32 0
write_nocancel(0x2, "Common.5.10.dylib\n  Referenced f\0", 0x20) = 32 0
write_nocancel(0x2, "rom: /Users/justin/Documents/wor\0", 0x20) = 32 0
write_nocancel(0x2, "kspace/pcl_trunk/build/./bin/pcl\0", 0x20) = 32 0
write_nocancel(0x2, "_outofcore_viewer\n  Reason: imag\0", 0x20) = 32 0
write_nocancel(0x2, "e not found\n\0", 0xC) = 12 0

Setting my DYLD_LIBRARY_PATH fixed this issue (Thanks Marcus).  But, we still need to resolve where/how vtk is looked for as my VTK_DIR was set correctly.

export DYLD_LIBRARY_PATH=/usr/local/lib/vtk-5.10:$DYLD_LIBRARY_PATH

Hope this helps




On Tue, Jun 19, 2012 at 5:38 PM, Radu B. Rusu <[hidden email]> wrote:
It seems that the VTK DMG on our servers is broken, so you need to compile yours from source, or use Bill's SuperBuild (http://www.pcl-developers.org/A-SuperBuild-for-PCL-td5706899.html).

However, stay tuned: we're about to launch a brand new code sprint that tackles Mac compatibility ! (see http://www.pcl-users.org/Mac-OS-X-code-sprint-goals-td4019412.html) More details will be announced soon.

Cheers,
Radu.


On 06/15/2012 01:33 PM, mlewis wrote:
I just followed OSX binary install instructions and am seeing:

dyld: Library not loaded: libvtkWidgets.5.6.dylib
   Referenced from: /usr/local/bin/pcd_viewer
   Reason: image not found
Trace/BPT trap

Is this the same vtk binary problem mentioned a while ago?
What would be the recommended way to solve this?
thanks...

--
View this message in context: http://www.pcl-users.org/Getting-started-with-PCL-on-osx-tp3961889p4019369.html
Sent from the Point Cloud Library (PCL) Users mailing list archive at Nabble.com.
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Getting started with PCL on osx

mlewis
Hi - I didn't pursue it further as I wasn't in a hurry and figured I should wait for the results of the OSX code sprint before attempting further.  Thanks though!  -m