Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors when install opengazer-0.1.2 on ubuntu 12.04 32bit #5

Open
qiumei1101381170 opened this issue Apr 28, 2016 · 1 comment
Open

Comments

@qiumei1101381170
Copy link

when i install opengazer-0.1.2 on ubuntu 12.04 32bit I met these errors like this,
root@candy-OptiPlex-380:/home/candy/opengazer-0.1.2# make

g++ -Wall -g -O3 -o opengazer pkg-config cairomm-1.0 opencv gtkmm-2.4 --libs -L/usr/local/include/vxl -L/usr/local/lib -lm -ldl -lvnl -lmvl -lvnl_algo -lvgl -lgthread-2.0 opengazer.o Calibrator.o GazeTrackerGtk.o HeadTracker.o LeastSquares.o EyeExtractor.o GazeTracker.o MainGazeTracker.o OutputMethods.o PointTracker.o FaceDetector.o GazeArea.o TrackingSystem.o GtkStore.o Containers.o GraphicalPointer.o Point.o utils.o BlinkDetector.o FeatureDetector.o Alert.o

g++ -o opengazer opengazer.o Calibrator.o GazeTrackerGtk.o HeadTracker.o LeastSquares.o EyeExtractor.o GazeTracker.o MainGazeTracker.o OutputMethods.o PointTracker.o FaceDetector.o GazeArea.o TrackingSystem.o GtkStore.o Containers.o GraphicalPointer.o Point.o utils.o BlinkDetector.o FeatureDetector.o Alert.o pkg-config cairomm-1.0 opencv gtkmm-2.4 --libs -L/usr/local/include/vxl -L/usr/local/lib -lm -ldl -lvnl -lmvl -lvnl_algo -lvgl -lgthread-2.0 -Wall -g -O3
/usr/local/lib/libvnl_algo.a(vnl_cholesky.o): In function vnl_cholesky::vnl_cholesky(vnl_matrix<double> const&, vnl_cholesky::Operation)': vnl_cholesky.cxx:(.text+0x132): undefined reference tov3p_netlib_dpofa_'
vnl_cholesky.cxx:(.text+0x1dd): undefined reference to v3p_netlib_dpoco_' /usr/local/lib/libvnl_algo.a(vnl_cholesky.o): In functionvnl_cholesky::solve(vnl_vector const&, vnl_vector) const':
vnl_cholesky.cxx:(.text+0x329): undefined reference to v3p_netlib_dposl_' /usr/local/lib/libvnl_algo.a(vnl_cholesky.o): In functionvnl_cholesky::solve(vnl_vector const&) const':
vnl_cholesky.cxx:(.text+0x3c9): undefined reference to v3p_netlib_dposl_' /usr/local/lib/libvnl_algo.a(vnl_cholesky.o): In functionvnl_cholesky::determinant() const':
vnl_cholesky.cxx:(.text+0x44b): undefined reference to v3p_netlib_dpodi_' /usr/local/lib/libvnl_algo.a(vnl_cholesky.o): In functionvnl_cholesky::inverse() const':
vnl_cholesky.cxx:(.text+0x526): undefined reference to v3p_netlib_dpodi_' /usr/local/lib/libvnl_algo.a(vnl_cholesky.o): In functionv3p_netlib_initializer::v3p_netlib_initializer()':
vnl_cholesky.cxx:(.text.ZN22v3p_netlib_initializerC2Ev[ZN22v3p_netlib_initializerC5Ev]+0x7): undefined reference to v3p_netlib_initialize' /usr/local/lib/libvnl_algo.a(vnl_svd+double-.o): In functionvnl_linpack_svdc(double, long const, long const
, long const_, double_, double_, double_, long const_, double_, long const_, double_, long const_, long_)':
vnl_svd+double-.cxx:(.text.Z16vnl_linpack_svdcPdPKlS1_S1_S_S_S_S1_S_S1_S_S1_Pl[vnl_linpack_svdc(double, long const_, long const_, long const_, double_, double_, double_, long const_, double_, long const_, double_, long const_, long*)]+0x61): undefined reference to v3p_netlib_dsvdc_' /usr/local/lib/libvnl_algo.a(vnl_svd+double-.o): In function vnl_svd::vnl_svd(vnl_matrix const&, double)':
vnl_svd+double-.cxx:(.text._ZN7vnl_svdIdEC2ERK10vnl_matrixIdEd[_ZN7vnl_svdIdEC5ERK10vnl_matrixIdEd]+0x15f): undefined reference tovnl_fortran_copy<double>::vnl_fortran_copy(vnl_matrix<double> const&)' vnl_svd+double-.cxx:(.text._ZN7vnl_svdIdEC2ERK10vnl_matrixIdEd[_ZN7vnl_svdIdEC5ERK10vnl_matrixIdEd]+0x3aa): undefined reference to std::basic_ostream<char, std::char_traits >& vnl_matlab_print(std::basic_ostream<char, std::char_traits >&, vnl_matrix const&, char const*, vnl_matlab_print_format)'
vnl_svd+double-.cxx:(.text._ZN7vnl_svdIdEC2ERK10vnl_matrixIdEd[_ZN7vnl_svdIdEC5ERK10vnl_matrixIdEd]+0x560): undefined reference tovnl_fortran_copy<double>::~vnl_fortran_copy()' vnl_svd+double-.cxx:(.text._ZN7vnl_svdIdEC2ERK10vnl_matrixIdEd[_ZN7vnl_svdIdEC5ERK10vnl_matrixIdEd]+0x7b4): undefined reference to vnl_fortran_copy::~vnl_fortran_copy()'
/usr/local/lib/libvnl_algo.a(vnl_svd+double-.o): In functionvnl_svd<double>::solve(vnl_vector<double> const&) const': vnl_svd+double-.cxx:(.text._ZNK7vnl_svdIdE5solveERK10vnl_vectorIdE[vnl_svd<double>::solve(vnl_vector<double> const&) const]+0x158): undefined reference to std::basic_ostream<char, std::char_traits >& operator<< (std::basic_ostream<char, std::char_traits >&, vnl_diag_matrix const&)'
/usr/local/lib/libvnl_algo.a(vnl_svd+double-.o): In functionstd::basic_ostream<char, std::char_traits<char> >& operator<< <double>(std::basic_ostream<char, std::char_traits<char> >&, vnl_svd<double> const&)': vnl_svd+double-.cxx:(.text._ZlsIdERSoS0_RK7vnl_svdIT_E[std::basic_ostream<char, std::char_traits<char> >& operator<< <double>(std::basic_ostream<char, std::char_traits<char> >&, vnl_svd<double> const&)]+0x98): undefined reference to std::basic_ostream<char, std::char_traits >& operator<< (std::basic_ostream<char, std::char_traits >&, vnl_diag_matrix const&)'
collect2: ld returned 1 exit status
make: *** [opengazer] Error 1

And my Makefile is:

required libraries: vxl, opencv, boost, gtkmm

VXLDIR = /home/candy/opengazer-0.1.2

VERSION = opengazer-0.1.2
CPPFLAGS = -Wall -g -O3
LINKER = -L/usr/local/include/vxl -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=-L/usr/local/include/vxl
INCLUDES=-L/usr/local/include/
INCLUDES = -I{/usr/local/include,/opt/local/include,/usr/local/include/vxl/core,/usr/local/include/vxl/vcl,/usr/local/include/vxl/contrib/oxl,/usr/local/include/vxl/rply,/usr/local/include/vxl/v3p}
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

sources = opengazer.cpp Calibrator.cpp GazeTrackerGtk.cpp HeadTracker.cpp LeastSquares.cpp EyeExtractor.cpp GazeTracker.cpp MainGazeTracker.cpp OutputMethods.cpp PointTracker.cpp FaceDetector.cpp GazeArea.cpp TrackingSystem.cpp GtkStore.cpp Containers.cpp GraphicalPointer.cpp Point.cpp utils.cpp BlinkDetector.cpp FeatureDetector.cpp Alert.cpp

objects = $(patsubst %.cpp,%.o,$(sources))

%.o.depends: %.cpp
g++ -MM $&lt; &gt; $@

%.o: %.cpp
#g++ -c $(CPPFLAGS) -o $@ pkg-config cairomm-1.0 opencv gtkmm-2.4 --cflags $(INCLUDES) $&lt;
g++ -c -o $@ $(INCLUDES) $< pkg-config cairomm-1.0 opencv gtkmm-2.4 --cflags $(CPPFLAGS)

opengazer: $(objects)
#g++ $(CPPFLAGS) -o $@ pkg-config cairomm-1.0 opencv gtkmm-2.4 --libs $(LINKER) $^
g++ -o $@ $^ pkg-config cairomm-1.0 opencv gtkmm-2.4 --libs $(LINKER) $(CPPFLAGS)

include $(patsubst %.cpp,%.o.depends,$(sources))

TAGS: always
etags *.cpp *.h

ship: always
mkdir $(VERSION) || rm -fr $(VERSION)/*
cp LICENSE README Makefile calpoints.txt haarcascade_frontalface_alt.xml $$(for file in $$(cat $(addsuffix .depends,$(objects))) ; do test -f $$file && echo $$file ; done | sort -u) $(VERSION)/
tar czf $(VERSION).tar.gz $(VERSION)
cp $(VERSION).tar.gz README /home/ftp/pub/www/opengazer/

.PHONY: always ship
~
~
~
~
"Makefile" 46 lines, 2065 characters
Is anyone can help me ? thanks.

@tiendan
Copy link

tiendan commented Jul 14, 2016

Hello!

I'm copying my reply to another issue with compilation problems:

"The original project is not active since 2009-10. If you want, you can check out my fork (https://github.com/tiendan/OpenGazer) which has several improvements (modular structure, Qt interface, etc.) and less requirements (removed VXL and some other dependencies)."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants