trrohit26 / ehci

Automatically exported from code.google.com/p/ehci
0 stars 0 forks source link

Cannot compile code from trunk #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. svn checkout http://ehci.googlecode.com/svn/trunk/ ehci-read-only
2.
3.

What is the expected output? What do you see instead?
The downloaded code does not include configure and friends.

What version of the product are you using? On what operating system?
svn trunk on Fedora 12 x86_64

Please provide any additional information below.
I have compiled 0.6 successfully, and wanted to look at the latest version.

Original issue reported on code.google.com by b1r...@gmail.com on 20 Feb 2010 at 9:05

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. svn checkout http://ehci.googlecode.com/svn/trunk/ ehci-read-only
2. autoreconf --install
3. make

What is the expected output? What do you see instead?
EHCI fails to build from SVN on Fedora 12. Have experienced same problem with 
0.6
release:

make[3]: Entering directory `/usr/src/ehci-trunk/trunk/samples'
g++ -DHAVE_CONFIG_H -I. -I..  -I../lib/ -I/usr/include/opencv   -pthread     -g 
-O2
-MT 6dofhand.o -MD -MP -MF .deps/6dofhand.Tpo -c -o 6dofhand.o 6dofhand.cpp
mv -f .deps/6dofhand.Tpo .deps/6dofhand.Po
/bin/sh ../libtool --tag=CXX   --mode=link g++  -g -O2 -lGL  -lm  -lcxcore -lcv
-lhighgui -lcvaux -lml   -lglut  -o 6dofhand 6dofhand.o ../lib/libehci.la 
libtool: link: g++ -g -O2 -o .libs/6dofhand 6dofhand.o  -lGL -lm -lcxcore -lcv
-lhighgui -lcvaux -lml -lglut ../lib/.libs/libehci.so -Wl,-rpath 
-Wl,/usr/local/lib
6dofhand.o: In function `InitGL(int, int)':
/usr/src/ehci-trunk/trunk/samples/6dofhand.cpp:578: undefined reference to
`gluPerspective'
6dofhand.o: In function `ReSizeGLScene(int, int)':
/usr/src/ehci-trunk/trunk/samples/6dofhand.cpp:482: undefined reference to
`gluPerspective'
6dofhand.o: In function `DrawGLScene()':
/usr/src/ehci-trunk/trunk/samples/6dofhand.cpp:436: undefined reference to 
`gluLookAt'
collect2: ld returned 1 exit status
make[3]: *** [6dofhand] Error 1

What version of the product are you using? On what operating system?
svn trunk on Fedora 12 i686

python-2.6.2-4.fc12.i686
opencv-1.1.0-0.9.pre1.fc12.i686
opencv-python-1.1.0-0.9.pre1.fc12.i686
freeglut-2.6.0-1.fc12.i686

Please provide any additional information below.
This is on an Intel based system, so there are no "strange" OpenGL libraries
introduced (such as by the NVIDIA binary driver package)

Original comment by scast...@gmail.com on 19 Apr 2010 at 8:12

GoogleCodeExporter commented 8 years ago
From Comment #0:

> What is the expected output? What do you see instead?
> The downloaded code does not include configure and friends.

If you read the "INSTALL" file included in the package and SVN, you'll see:

Instructions for building EHCI from SVN
---------------------------------------

Just type:

  %  autoreconf --install 

in the root of the trunk subfolder. It will generate the configure file.

Original comment by scast...@gmail.com on 19 Apr 2010 at 8:57

GoogleCodeExporter commented 8 years ago

From Comment #1:

/bin/sh ../libtool --tag=CXX   --mode=link g++  -g -O2 -lGL  -lm  -lcxcore -lcv
-lhighgui -lcvaux -lml   -lglut  -o 6dofhand 6dofhand.o ../lib/libehci.la 
libtool: link: g++ -g -O2 -o .libs/6dofhand 6dofhand.o  -lGL -lm -lcxcore -lcv
-lhighgui -lcvaux -lml -lglut ../lib/.libs/libehci.so -Wl,-rpath 
-Wl,/usr/local/lib
6dofhand.o: In function `InitGL(int, int)':
/usr/src/ehci-trunk/trunk/samples/6dofhand.cpp:578: undefined reference to
`gluPerspective'

I noticed that the link to the GLU library ("-lGLU") was missing from the g++ 
compile
line, even though the necessary libraries are found on the system.

I made this quick patch to the Makefile.in file in the samples directory and 
this
produced a clean compile under both the 0.6 release and current SVN:

--- samples/Makefile.in 2009-03-01 03:04:55.000000000 +1300
+++ samples/Makefile.in.fc12    2010-04-19 20:59:24.425575217 +1200
@@ -173,7 +173,7 @@
 GLU_CFLAGS = @GLU_CFLAGS@
 GLU_LIBS = @GLU_LIBS@
 GL_CFLAGS = @GL_CFLAGS@
-GL_LIBS = @GL_LIBS@
+GL_LIBS = @GLU_LIBS@
 GREP = @GREP@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@

...note this is a "dirty hack" and the real problem is the configure process 
isn't
finding the library in the correct location.

Original comment by scast...@gmail.com on 19 Apr 2010 at 9:06

GoogleCodeExporter commented 8 years ago
You are right. It IS mentioned in the INSTALL file. After not only the 
installation
instructions but also the instructions on how to run the samples. Not very
intutitive, as I didn't read the install instructions past the "Running samples"
section when I couldn't make it build at all.

Since this is the first thing that should be done when fetching from svn, it 
should
be at the top of the file.

Original comment by b1r...@gmail.com on 19 Apr 2010 at 9:56

GoogleCodeExporter commented 8 years ago
Hi guys,
thanks for the patch and for the comments.
I plan moving the build system to CMake or SCons, but I agree that autoreconf 
should
be in the INSTALL's top. So, I've just put it there.
Kind regards,
Daniel

Original comment by danielba...@gmail.com on 20 Apr 2010 at 2:14

GoogleCodeExporter commented 8 years ago
I'll mark it as solved. Please check 
http://code.google.com/p/ehci/wiki/CompilingOnWindows?ts=1287104419&updated=Comp
ilingOnWindows for newer versions of ehci.

Original comment by danielba...@gmail.com on 15 Oct 2010 at 1:00

GoogleCodeExporter commented 8 years ago
as I was saying, mark as cloed

Original comment by danielba...@gmail.com on 15 Oct 2010 at 1:01