becta logo
[oats-sig] open gazer problems

Steve Lee steve at fullmeasure.co.uk
Mon Nov 5 19:39:42 GMT 2007

Article: [oats-sig] open gazer problems

I'm flying blind, but perhaps vnl should be installed so its includes
are in /usr/local/include
Is there something in /home/chris/Desktop/software/vxl-1.9.0/core/vnl/
that might do the trick?

You could try to alter the INCLUDES lines to be
INCLUDES = $(foreach prefix,/usr/local/include $(VXLDIR)/include
$(VXLDIR)/include/vxl, \
       $(foreach suffix,/core /vcl /contrib/oxl,-I$(prefix)$(suffix))) \
  -I/home/chris/Desktop/software/vxl-1.9.0/core/vnl/algo/

that tells the compiler to look there as well

How are the files included in the source?
#include "vnl_svd.h"
or is there a path before the filename - if so the parent needs to be
in INCLUDES

Steve


On 05/11/2007, Chris Feser <chrimp at gmx.de> wrote:
>
> thx Steve,
>
> I tried several thnigs, but I couldn't get it to work.
> Always the same error.
>
> A "sudo find / |grep vnl_svd.h"
> Answers with:
> /home/chris/Desktop/software/vxl-1.9.0/core/vnl/algo/vnl_svd.h
>
> but my compiled vxl is there:
>  /home/chris/Desktop/software/bin
> but there is no vnl_svd.h in it
>
> When I run the ctest in the bin directory, every test passes except this
> one:
> 531 - vpgl_algo_test_camera_compute (SEGFAULT)
>
> But this couldn't be the problem, could it?
>
> My Makefile looks like this:
> # required libraries: vxl, opencv, boost, gtkmm
>
> VXLDIR = /home/chris/Desktop/software/bin
> VERSION = opengazer-0.1.2
> CPPFLAGS = -Wall -g -O3
> LINKER = -L$(VXLDIR)/lib -L/usr/local/lib -lm -ldl -lvnl -lmvl -lvnl_algo
> -lvgl -lgthread-2.0
>
> # change the following line if your vxl library is installed elsewhere
> INCLUDES = $(foreach prefix,/usr/local/include $(VXLDIR)/include
> $(VXLDIR)/include/vxl, \
>         $(foreach suffix,/core /vcl /contrib/oxl,-I$(prefix)$(suffix)))
>
> # -I/usr/include/ffmpeg
> # -lcv0.9.7 -lhighgui0.9.7
> # -lvgui
> ....
>
> I tried
> VXLDIR = /home/chris/Desktop/software/vxl-1.9.0
> because there are the header files, but it didn't work neither.
>
> What do I do wrong?
> Thx for any idea...
>
> Cheers
> Chris
>
>
> Steve Lee-3 wrote:
> >
> > Hi Chris, I have no experience of the packages in question but Stephen
> > recently posted some notes that may help.
> >
> > In general a problem like this can be resolved by the following
> >
> > 1) ensure the files are installed correcty - use 'find' to see if they
> > exist. Did you install the required dev packages?
> > 2) check the build configuration is correct so the compiler finds them
> > (often through an environment variable called INCLUDE). did you need
> > to fun ./configure or equiv before making?
> >
> > STeve
> >
> > On 31/10/2007, Chris Feser <chrimp at gmx.de> wrote:
> >>
> >> Hi all,
> >>
> >> I don't know it it would be better to open a new thread or to post it
> >> here... :)
> >>
> >> I tried to get opengazer work, but I get one error when I triy to make
> >> it:
> >>
> >> chris at lapuntu:~/Desktop/software/opengazer-0.1.2$ make
> >> g++ -c -Wall -g -O3 -o opengazer.o `pkg-config cairomm-1.0 opencv
> >> gtkmm-2.4
> >> --cflags`  -I/usr/local/include/core -I/usr/local/include/vcl
> >> -I/usr/local/include/contrib/oxl
> >> -I/home/chris/Desktop/software/bin//core
> >> -I/home/chris/Desktop/software/bin//vcl
> >> -I/home/chris/Desktop/software/bin//contrib/oxl  -I/include/core
> >> -I/include/vcl -I/include/contrib/oxl
> >> -I/home/chris/Desktop/software/bin//core
> >> -I/home/chris/Desktop/software/bin//vcl
> >> -I/home/chris/Desktop/software/bin//contrib/oxl  -I/include/vxl/core
> >> -I/include/vxl/vcl -I/include/vxl/contrib/oxl opengazer.cpp
> >> In file included from MainGazeTracker.h:2,
> >>                  from GazeArea.h:3,
> >>                  from GazeTrackerGtk.h:6,
> >>                  from opengazer.cpp:3:
> >> utils.h:7:30: error: vnl/algo/vnl_svd.h: No such file or directory
> >> In file included from TrackingSystem.h:3,
> >>                  from MainGazeTracker.h:3,
> >>                  from GazeArea.h:3,
> >>                  from GazeTrackerGtk.h:6,
> >>                  from opengazer.cpp:3:
> >> PointTracker.h:5:35: error: vgl/vgl_homg_point_2d.h: No such file or
> >> directory
> >> In file included from HeadCompensation.cpp:1,
> >>                  from TrackingSystem.h:5,
> >>                  from MainGazeTracker.h:3,
> >>                  from GazeArea.h:3,
> >>                  from GazeTrackerGtk.h:6,
> >>                  from opengazer.cpp:3:
> >> LeastSquares.h:2:28: error: vnl/vnl_vector.h: No such file or directory
> >> LeastSquares.h:3:28: error: vnl/vnl_matrix.h: No such file or directory
> >> In file included from GazeTracker.h:3,
> >>                  from OutputMethods.h:3,
> >>                  from TrackingSystem.h:7,
> >>                  from MainGazeTracker.h:3,
> >>                  from GazeArea.h:3,
> >>                  from GazeTrackerGtk.h:6,
> >>                  from opengazer.cpp:3:
> >> GaussianProcess.cpp:1:35: error: vnl/algo/vnl_cholesky.h: No such file or
> >> directory
> >> utils.h:25: error: expected initializer before '<' token
> >> utils.h:26: error: expected initializer before '<' token
> >> PointTracker.h:9: error: expected initializer before '<' token
> >> PointTracker.h:42: error: 'HomPoint' was not declared in this scope
> >> PointTracker.h:42: error: template argument 1 is invalid
> >> PointTracker.h:42: error: template argument 2 is invalid
> >> HeadTracker.h:12: error: 'HomPoint' was not declared in this scope
> >> HeadTracker.h:12: error: template argument 1 is invalid
> >> HeadTracker.h:12: error: template argument 2 is invalid
> >> HeadTracker.h:13: error: 'HomPoint' was not declared in this scope
> >> HeadTracker.h:13: error: template argument 1 is invalid
> >> HeadTracker.h:13: error: template argument 2 is invalid
> >> LeastSquares.h:5: error: expected initializer before '<' token
> >> LeastSquares.h:6: error: expected initializer before '<' token
> >> LeastSquares.h:9: error: 'Matrix' does not name a type
> >> LeastSquares.h:10: error: 'Vector' does not name a type
> >> LeastSquares.h:20: error: 'Vector' does not name a type
> >> LeastSquares.h: In constructor 'LeastSquares::LeastSquares(int)':
> >> LeastSquares.h:14: error: class 'LeastSquares' does not have any field
> >> named
> >> 'X'
> >> LeastSquares.h:14: error: class 'LeastSquares' does not have any field
> >> named
> >> 'Y'
> >> GaussianProcess.cpp: At global scope:
> >> GaussianProcess.cpp:5: error: 'Vector' does not name a type
> >> GaussianProcess.cpp:6: error: 'Matrix' does not name a type
> >> GaussianProcess.cpp:8: error: expected `)' before 'const'
> >> GaussianProcess.cpp:20: error: 'Matrix' does not name a type
> >> GaussianProcess.cpp:21: error: 'Vector' does not name a type
> >> GaussianProcess.cpp:23: error: 'Matrix' does not name a type
> >> GaussianProcess.cpp:37: error: 'Vector' has not been declared
> >> GaussianProcess.cpp:51: error: 'Vector' does not name a type
> >> GaussianProcess.cpp: In constructor
> >> 'GaussianProcess<T>::GaussianProcess(const std::vector<T,
> >> std::allocator<_CharT> >&, const int&, double (*)(const T&, const T&),
> >> double)':
> >> GaussianProcess.cpp:42: error: 'Matrix' was not declared in this scope
> >> GaussianProcess.cpp:42: error: expected `;' before 'K'
> >> GaussianProcess.cpp:44: error: 'K' was not declared in this scope
> >> GaussianProcess.cpp:46: error: 'vnl_cholesky' was not declared in this
> >> scope
> >> GaussianProcess.cpp:46: error: expected `;' before 'chol'
> >> GaussianProcess.cpp:47: error: 'L' was not declared in this scope
> >> GaussianProcess.cpp:47: error: 'chol' was not declared in this scope
> >> GaussianProcess.cpp:48: error: 'alpha' was not declared in this scope
> >> GaussianProcess.cpp: At global scope:
> >> GaussianProcess.cpp:68: error: 'Vector' has not been declared
> >> GaussianProcess.cpp: In constructor
> >> 'MeanAdjustedGaussianProcess<T>::MeanAdjustedGaussianProcess(const
> >> std::vector<T, std::allocator<_CharT> >&, const int&, typename
> >> GaussianProcess<T>::CovarianceFunction, double)':
> >> GaussianProcess.cpp:72: error: request for member 'mean' in 'targets',
> >> which
> >> is of non-class type 'const int'
> >> make: *** [opengazer.o] Error 1
> >> ---------------------------------------------
> >>
> >> Where should the missing files be?
> >> Or to which package are they belonging?
> >>
> >> thank you very much for any answer!
> >>
> >> Cheers Chris
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Re%3A-open-gazer-tf4558293.html#a13510551
> >> Sent from the OATS Project Interest Group mailing list archive at
> >> Nabble.com.
> >>
> >>
> >>
> >
> >
> > --
> > Steve Lee
> > --
> > Jambu - Alternative Access to Computers
> > www.fullmeasure.co.uk
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Re%3A-open-gazer-tf4558293.html#a13591100
> Sent from the OATS Project Interest Group mailing list archive at Nabble.com.
>
>
>


-- 
Steve Lee
--
Jambu - Alternative Access to Computers
www.fullmeasure.co.uk


  Main Becta Site  | Return to top