nci / drishti

Drishti
MIT License
173 stars 39 forks source link

Cannot build drishti-2.3.2.linux on Ubuntu 12.04 #1

Open habi opened 9 years ago

habi commented 9 years ago

boundingbox.cpp: In member function ‘void BoundingBox::draw()’: boundingbox.cpp:293:23: error: ‘class MyManipulatedFrame’ has no member named ‘grabsMouse’ make: *\ [boundingbox.o] Error 1

AjayLimaye commented 9 years ago

Please use libQGLViewer-2.5.1 library.

habi commented 9 years ago
tar -xvf libQGLViewer-2.5.1.tar.gz
cd libQGLViewer-2.5.1
qmake && make && make install

Works fine.

cd drishti-2.3.2.linux/drishti/
qmake && make clean &&  make

Gives then still gives me an error, which is copied below

boundingbox.cpp:260:15: error: ‘class MyManipulatedFrame’ has no member named ‘setPosition’ boundingbox.cpp: In member function ‘void BoundingBox::draw()’: boundingbox.cpp:293:23: error: ‘class MyManipulatedFrame’ has no member named ‘grabsMouse’ make: *\ [boundingbox.o] Error 1

AjayLimaye commented 9 years ago

Please use drishti-2.5 along with Qt-5.2 and libQGLViewer-2.5.

Drishti-2.3.2 used Qt-4.8 and libQGLViewer-2.3.

There is a big change in Qt library from version 4 to 5.

On Monday, August 25, 2014, David Haberthür notifications@github.com wrote:

tar -xvf libQGLViewer-2.5.1.tar.gz cd libQGLViewer-2.5.1 qmake && make && make install

Works fine.

cd drishti-2.3.2.linux/drishti/ qmake && make clean && make

Gives then still gives me an error, which is copied below boundingbox.cpp:260:15: error: ‘class MyManipulatedFrame’ has no member named ‘setPosition’ boundingbox.cpp: In member function ‘void BoundingBox::draw()’: boundingbox.cpp:293:23: error: ‘class MyManipulatedFrame’ has no member named ‘grabsMouse’ make: *\ [boundingbox.o] Error 1

— Reply to this email directly or view it on GitHub https://github.com/AjayLimaye/drishti/issues/1#issuecomment-53240951.

habi commented 9 years ago

I updated to QT5 according to this thread.

qmake --version

reports

Using Qt version 5.0.2 in /usr/lib/i386-linux-gnu

I cloned the original repository (at ed2fda2), since I could not find a release for dristhti-2.5 for Linux on the release page. When I qmake && make clean && make in the dristhti/dristhi-folder I now get this error

In file included from global.h:9:0, from boundingbox.cpp:4: commonqtclasses.h:3:30: fatal error: QtGui/QtGuiDepends: No such file or directory compilation terminated. make[1]: * [boundingbox.o] Error 1 make[1]: Leaving directory `/home/Downloads/drishti/drishti' make: * [sub-drishti-make_first] Error 2

AjayLimaye commented 9 years ago

Hi David, Looks like some one else also encountered similar problem (not with Drishti though). http://stackoverflow.com/questions/19147177/g-doesnt-find-file-despite-correct-path

Hope this helps. I am yet to compile drishti-2.5 using Qt 5.2 on linux. Linux "generic executable" for drishti-2.4 is available from code.google.com/p/drishti-2 site -

https://code.google.com/p/drishti-2/downloads/detail?name=drishti-2.4.tar.gz&can=4&q=

Cheers, Ajay

On Mon, Aug 25, 2014 at 9:12 PM, David Haberthür notifications@github.com wrote:

I updated to QT5 according to this thread http://askubuntu.com/a/279422.

qmake --version

reports

Using Qt version 5.0.2 in /usr/lib/i386-linux-gnu

I cloned the original repository (at ed2fda2 https://github.com/AjayLimaye/drishti/commit/ed2fda2c7e629d5f8f1567aae79137f5b83bd32e), since I could not find a release for dristhti-2.5 for Linux on the release page. When I qmake && make clean && make in the dristhti/dristhi-folder I now get this error

In file included from global.h:9:0, from boundingbox.cpp:4: commonqtclasses.h:3:30: fatal error: QtGui/QtGuiDepends: No such file or directory compilation terminated. make[1]: * [boundingbox.o] Error 1 make[1]: Leaving directory `/home/Downloads/drishti/drishti' make: * [sub-drishti-make_first] Error 2

— Reply to this email directly or view it on GitHub https://github.com/AjayLimaye/drishti/issues/1#issuecomment-53251889.