Quantcast

Issue compiling on Mac OSX

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Issue compiling on Mac OSX

Matt M
Hi,

I've been attempting to install PCL for a while, and I'm now running in to the below error when trying to make the standard test tutorial:

make[2]: *** No rule to make target `/opt/local/lib/libXt.dylib', needed by `pcd_write_test'.  Stop.
make[1]: *** [CMakeFiles/pcd_write_test.dir/all] Error 2

Looks like an X11 dependency? I have all the necessary binaries installed + VTK manually from source with X11.

Thanks,

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

Re: Issue compiling on Mac OSX

Lavar
what version of PCL are you using 1.4 or 1.5.  I had issues on my Mac with 1.4, but the have been resolved and the PCLVisualizer tutorial compiles and runs just fine.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue compiling on Mac OSX

Matt M
This post was updated on .
I'm using PCL 1.4, attempted installation through the binaries and then building VTK myself.

Any help would be appreciated - did you use homebrew or macports?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue compiling on Mac OSX

Lavar
MacPorts for as much as I could.  I also avoided using the prebuilt binaries.  I got PCL 1.4 from the trunk and built it myself.

I followed the Mac install tutorial to get all of the dependencies, used xcode 4.2.1 to compile and run the pclvisualizer tutorial.  I had to do a couple of extra steps after this, but once you've gotten through the Mac install tutorial then post back here and we'll go from there.

Also I'm running mac os x Lion.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue compiling on Mac OSX

Matt M
Ah I've managed to get it working with cmake (using PCL 1.3 and the homebrew formulae).

To compile using Xcode is a fun task however.. did you need to create any alias links? Can't just copy the dynamic libraries in as their header files report missing links (e.g. pcl/io/file_io.h not found).
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue compiling on Mac OSX

Lavar
Nah, just in the build settings I added the following directories to the headers:

/opt/local/include/vtk-5.6
/opt/local/include
/usr/local/include/pcl-1.4
/opt/local/include/eigen3

Then I added the dynamic libs for VTK, Boost and PointCloud.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue compiling on Mac OSX

Matt M
Ah excellent, got it all setup correctly. Decided to build myself (opted for PCL 1.5) and that seemed to do the trick. Took a while to build though!


Loading...