Hi Matt!

Thankx for your reply!

I have tried the way you pointed me, but I still get an error at build time: "fatal error: imesh/imesh_mesh.h: File o directory does not exists"  (or something similar, I'm translating from italian and don't know the exact english message wording)

So, it seems that the compiler can't find the imesh_imesh.h file that I include in my project.

I have checked ${VXL_BRL_INCLUDE_DIR} value from my cmakelist.txt code and its value is: 
"/usr/local/include/vxl/contrib/brl;/usr/local/include/vxl/contrib/brl/bbas;/usr/local/include/vxl/contrib/brl/bseg;/usr/local/include/vxl/contrib/brl/bvml"

in my file system imesh_imesh.h exists at this position: /usr/include/vxl/contrib/brl/bbas/imesh/imesh_imesh.h

so I made a soft-link from /usr/include/vxl/ to /usr/local/include/vxl/ in order to have my compiler to access the correct files


Now, when I compile, there's no more this error: "fatal error: imesh/imesh_mesh.h: File o directory does not exists" 

but I have this one: "/usr/local/include/vxl/contrib/brl/bbas/imesh/imesh_mesh.h:10  fatal error: vcl_vector.h: File o directory does not exists"

vcl_vector.h is in this directory: /usr/include/vxl/vcl/ (and, by the link I created, can be accessed also with /usr/local/include/vxl/


 ${VXL_BRL_INCLUDE_DIR} does not contain /usr/local/include/vxl/vcl nor /usr/include/vxl/vcl

how can I solve this?


thanks!


2013/3/8 Matthew Leotta <matt.leotta@kitware.com>
Fabio,

To use VXL in your own project you will need a line like this in your projects CMakeLists.txt


find_package(VXL REQUIRED)

The imesh library is in the Brown University contrib section of VXL, so you will need to make sure you've built VXL with "BUILD_BRL" set to "ON".  To use imesh in your project you will need to tell CMake where to find the headers in your CMakeLists.txt like this

include_directories( ${VXL_BRL_INCLUDE_DIR}/bbas )

Then you can include the headers in your source code like this


#include <imesh/imesh_mesh.h>

An example of a project that depends on VXL and uses imesh is my PhD thesis code which you can find here: 


I wrote imesh as a grad student for this and other project.  imesh is one of the few libraries in contrib/brl that I still use regularly.  It might be worth promoting this to VXL core in future releases if there are others using it besides me.

Good Luck,
Matt


On Mar 8, 2013, at 11:47 AM, Fabio Ivona <ziobafio@gmail.com> wrote:

Hi everyone!

I wish to use vxl in my project, using this classes:

contrib/brl/bbas/imesh/imesh_mesh
contrib/brl/bbas/imesh/imesh_vertex
contrib/brl/bbas/imesh/imesh_face


My project has a CMakeList.txt file in which I include also PCL libraries, here is the file's content

--------------------------------------------------------------------------------------------------------------------
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

project(MyProject)

find_package(PCL 1.2 REQUIRED)

include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

add_executable (MyProject MainClass.cpp)

target_link_libraries (MyProject ${PCL_LIBRARIES})
--------------------------------------------------------------------------------------------------------------------


I'm not so good with cmake, so my question is: 

How should I modify my CMakeList.txt file in order to include imesh_mesh, imesh_vertex, imesh_face in my project?

I have tried following vxl documentation, but I couldn't manage to have my project work properly.


Thanks for your help!


Fabio
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev_______________________________________________
Vxl-users mailing list
Vxl-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vxl-users