|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 - 3 | Next > |
|
|
Re: open gazer problemsHi all,
A few days ago i found this program. It is really very impressive. I made all the instructions but i have the same error like Chris had. Here is the error: marios@marios-desktop:~/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/include/core -I/usr/include/vcl -I/usr/include/contrib/oxl -I/home/marios/opengazer-0.1.2/include/core -I/home/marios/opengazer-0.1.2/include/vcl -I/home/marios/opengazer-0.1.2/include/contrib/oxl -I/home/marios/opengazer-0.1.2/include/vxl/core -I/home/marios/opengazer-0.1.2/include/vxl/vcl -I/home/marios/opengazer-0.1.2/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 In file included from MainGazeTracker.h:2, from GazeArea.h:3, from GazeTrackerGtk.h:6, from opengazer.cpp:3: utils.h:25: error: expected initializer before ‘<’ token utils.h:26: error: expected initializer before ‘<’ token 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:9: error: expected initializer before ‘<’ token PointTracker.h:11: error: reference to ‘exception’ is ambiguous /usr/include/boost/exception/exception.hpp:177: error: candidates are: class boost::exception /usr/include/c++/4.4/exception:60: error: class std::exception PointTracker.h:11: error: reference to ‘exception’ is ambiguous /usr/include/boost/exception/exception.hpp:177: error: candidates are: class boost::exception /usr/include/c++/4.4/exception:60: error: class std::exception 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 In file included from TrackingSystem.h:4, from MainGazeTracker.h:3, from GazeArea.h:3, from GazeTrackerGtk.h:6, from opengazer.cpp:3: 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 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: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’ 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: 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<_Tp, 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<_Tp, 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 If someone knows how to solve this problem, please answer me. Thank you, Marios. |
|
|
Re: open gazer problemsThis problem is because the vxl headers have not been installed. After building vxl with the 'make' command type
sudo make install this should be done from the $VXLBIN directory That is how it's supposed to work however I find that the install process fails part way through with this error ------------------------------------------------------------------------------------------ CMake Error at core/testlib/cmake_install.cmake:53 (FILE): file INSTALL cannot find file "/home/markt/Track-I/Open-Gazer/bin/lib/libtestlib.so" to install. Call Stack (most recent call first): core/cmake_install.cmake:49 (INCLUDE) cmake_install.cmake:40 (INCLUDE) ------------------------------------------------------------------------------------------ I haven't found a fix for this yet but here's a work around. All the header files are present in the vxl source tree so you can hack your opengazer Makefile to search here for include file. In your opengazer directory gedit Makefile here's what I did... ------------------------------------------------------------------------------------------ # required libraries: vxl, opencv, boost, gtkmm VXLDIR = /home/markt/Track-I/Open-Gazer/bin VXL2DIR= /home/markt/Track-I/Open-Gazer/vxl-1.14.0 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) $(VXL2DIR), \ $(foreach suffix,/core /vcl /contrib/oxl,-I$(prefix)$(suffix))) ------------------------------------------------------------------------------------------ That will fix the missing include files error. The next error you will come across is this ------------------------------------------------------------------------------------------ PointTracker.h:11: error: reference to ‘exception’ is ambiguous /usr/include/boost/exception/exception.hpp:177: error: candidates are: class boost::exception /usr/include/c++/4.4/exception:60: error: class std::exception ------------------------------------------------------------------------------------------ To fix this check this page http://d.hatena.ne.jp/kazekyo/20100505/1273062727 It's mostly in chinese but the command lines are in english so you kind of get the gist. I found that following this I could get opengazer to build. Now I'm going to buy a web cam! Good luck everyone!
|
| < Prev | 1 - 2 - 3 | Next > |
| Free embeddable forum powered by Nabble | Forum Help |