> -----Original Message-----
> From: Tom [mailto:zerg_wann...@hotmail.com]
> Sent: Tuesday, April 26, 2011 4:42 AM
> To: playerstage-gazebo@lists.sourceforge.net
> Subject: Re: [PlayerStage-Gazebo] problem when compiling gazebo
> 
> >
> Hi,
> 
> I'm still getting this same error zhangqun reported. I'm
> using revision 9042. I've installed freeimage with macports,
> which puts includes and libraries in /opt/local/, but i've
> edited FindFreeimage.cmake to change the following lines:
> 
> SET (freeimage_include_dir "/opt/local/include/" CACHE STRING \
> "FreeImage include paths")
> SET (freeimage_library_dir "/opt/local/lib" CACHE STRING \
>  "FreeImage library paths")
> 
> I've also put /opt/local/include and lib/ in my CMAKE_PREFIX_PATH
> variable.
> 
> /Users/Shared/tTestrepo/bioAI/project/gazebo
> $ svn up
> At revision 9042.
> /Users/Shared/tTestrepo/bioAI/project/gazebo
> $ cd build
> /Users/Shared/tTestrepo/bioAI/project/gazebo/build
> $ cmake ..
> -- Gazebo version 0.10.0
> --
> 
> ====== Finding 3rd Party Packages ======
> -- Operating system is Apple MacOS X
> -- checking for module 'freeimage>=3.9.0'
> --   package 'freeimage>=3.9.0' not found
> --   freeimage.pc not found, trying freeimage_include_dir and
> freeimage_library_dir flags.
> CMake Error at cmake/FindFreeimage.cmake:30 (MESSAGE):
>     Invalid FreeImage Version. Requires 3.9.0
> Call Stack (most recent call first):
>   cmake/SearchForStuff.cmake:31 (include)
>   CMakeLists.txt:84 (INCLUDE)
> 
> 
> -- Configuring incomplete, errors occurred!
> 
> /Users/Shared/tTestrepo/bioAI/project/gazebo/build
> $ port installed freeimage
> The following ports are currently installed:
>   freeimage @3.14.1_0 (active)
> 
> 
> Can anyone advise?
> 
> Tom
> 
> PS I would include the original messages, but
> post.gmane.org won't let me...
> 
> Nate Koenig <natekoenig@...> writes:
> 
> >
> > Hello,
> >
> > The latest SVN version of gazebo has this fixed. Thanks for the
> message.
> >
> > -nate
> >

It looks like gazebo is using pkg-config to resolve the freeimage
dependency.  Do you have freeimage.pc installed somewhere?  My guess is it'd
be in /opt/local/lib/pkgconfig or /opt/local/share/pkgconfig based on the
paths you've used above.  Assuming this is the case, you will have to append
the path where freeimage.pc lives to the PKG_CONFIG_PATH environment
variable before running CMake.

Rich
 


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Playerstage-gazebo mailing list
Playerstage-gazebo@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to