GithubHelp home page GithubHelp logo

Comments (10)

yarolig avatar yarolig commented on September 7, 2024 1

I compiled it on Ubuntu 16.04 following way.

I downloaded sba-1.6 from http://users.ics.forth.gr/~lourakis/sba/ , unpacked to insight3d/insight3d/sba-1.6 and make it
Then downloaded tarball from https://robwhess.github.io/opensift/ , unpacked it to insight3d/insight3d/sift.
Renamed function basename to _basename in sift/include/utils.h
And make sift too.

Made these dirty changes to insight3d:

diff --git a/insight3d/Makefile b/insight3d/Makefile
index dc00e20..fb5bb66 100644
--- a/insight3d/Makefile
+++ b/insight3d/Makefile
@@ -2,17 +2,18 @@ SOURCES=$(wildcard *.cpp)
 OBJECTS=$(patsubst %.cpp,%.o,$(SOURCES))
 DEBUG= -O3
 ANN_INCLUDE= -I./ann_1.1.1/include/
+SBA_INCLUDE= -I./sba-1.6

 all: insight

 insight: $(OBJECTS) sift_detector
-       g++ $(DEBUG) -o insight *.o `pkg-config --libs opencv libxml-2.0 sdl gtk+-2.0` ./sift/lib/libfeat.a $(AGARLIB) -llapack -lblas -lGL -lGLU ./sba/libsba.a ./ann_1.1.1/lib/libANN.a
+       g++ $(DEBUG) -o insight *.o ./sba-1.6/libsba.a `pkg-config --libs opencv libxml-2.0 sdl gtk+-2.0` ./robwhess-opensift-195d764/lib/libopensift.a $(AGARLIB) -llapack -lblas -lGL -lGLU -lpthread -lgdk-x11-2.0

 sift_detector:
        make -C ./sift

 %.o: %.cpp
-       g++ $(DEBUG) -c `pkg-config --cflags opencv libxml-2.0 sdl gtk+-2.0` $(ANN_INCLUDE) $<
+       g++ $(DEBUG) -c `pkg-config --cflags opencv libxml-2.0 sdl gtk+-2.0` $(ANN_INCLUDE) $(SBA_INCLUDE) $<

 clean:
        rm *.o
diff --git a/insight3d/main.cpp b/insight3d/main.cpp
index e72c346..9cc2dfb 100644
--- a/insight3d/main.cpp
+++ b/insight3d/main.cpp
@@ -23,6 +23,7 @@
 */

 #include "application.h"
+#define __cdecl

 FILE _iob[] = { *stdin, *stdout, *stderr };
 extern "C" FILE * __cdecl __iob_func(void) { return _iob; }

from insight3d.

henryleinhos avatar henryleinhos commented on September 7, 2024

Seems like the Makefile is also looking for the local directory ./ann_1.1.1:

ANN_INCLUDE= -I./ann_1.1.1/include/

are these included as git submodules?

from insight3d.

der-manu avatar der-manu commented on September 7, 2024

Hey there. I have this issue also. I am stuck on:
In file included from geometry_textures.h:30:0,
from geometry_textures.cpp:25:
geometry_structures.h:35:33: fatal error: ./sift/include/sift.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
I really would like to use the software, just sounds awsome to me:)
Thanks, Manuel

from insight3d.

der-manu avatar der-manu commented on September 7, 2024

i just added https://www.cs.umd.edu/~mount/ANN/ in version 1.1.1 to my local build directory and trying to figure out how https://github.com/robwhess/opensift fits into the puzzle.
i am now stuck at a different point.
manu@newCore:~/NAS/GIT/insight3d/insight3d$ make
g++ -O3 -c pkg-config --cflags opencv libxml-2.0 sdl gtk+-2.0 -I./ann_1.1.1/include/ geometry_textures.cpp
In file included from geometry_structures.h:38:0,
from geometry_textures.h:30,
from geometry_textures.cpp:25:
./sift/include/utils.h:159:45: error: ambiguating new declaration of ‘char* basename(const char*)’
extern char* basename( const char* pathname );
^
In file included from /usr/include/c++/5/cstring:42:0,
from core_debug.h:30,
from core_structures.h:30,
from geometry_textures.h:28,
from geometry_textures.cpp:25:
/usr/include/string.h:596:26: note: old declaration ‘const char* basename(const char*)’
extern "C++" const char *basename (const char *__filename)
^
Makefile:15: die Regel für Ziel „geometry_textures.o“ scheiterte
make: *** [geometry_textures.o] Fehler 1

from insight3d.

jaspermine avatar jaspermine commented on September 7, 2024

Error during compile:

g++ -O3 -c pkg-config --cflags opencv libxml-2.0 sdl gtk+-2.0 -I./ann_1.1.1/include/ geometry_textures.cpp
In file included from geometry_textures.h:30:0,
from geometry_textures.cpp:25:
geometry_structures.h:35:33: fatal error: ./sift/include/sift.h: No such file or directory
#include "./sift/include/sift.h"
^
compilation terminated.
Makefile:15: recipe for target 'geometry_textures.o' failed
make: *** [geometry_textures.o] Error 1

Ubuntu 16.10

from insight3d.

drakerehfeld avatar drakerehfeld commented on September 7, 2024

still an error for me :)

from insight3d.

thijz avatar thijz commented on September 7, 2024

Same issue here (see below)
running ubuntu 16.04
any ideas ?

$ make
g++ -O3 -c `pkg-config --cflags opencv libxml-2.0 sdl gtk+-2.0` -I./ann_1.1.1/include/ geometry_textures.cpp
In file included from geometry_textures.h:30:0,
                 from geometry_textures.cpp:25:
geometry_structures.h:35:33: fatal error: ./sift/include/sift.h: No such file or directory
compilation terminated.
Makefile:15: recipe for target 'geometry_textures.o' failed
make: *** [geometry_textures.o] Error 1

from insight3d.

yarolig avatar yarolig commented on September 7, 2024

thijz, there is no file sift/include/sift.h obviously
Try to get it from https://robwhess.github.io/opensift/

from insight3d.

massad18 avatar massad18 commented on September 7, 2024

@yarolig
Ive been working with your changes and just cant seem to get it to work syntactically. I am getting silly errors like Makefile:24: *** missing separator. Stop.

I was just wondering if you could post your current Makefile so that I can possibly copy/hand type it myself into my Makefile.

Thank you very much for trying to help all of us out!

SIDENOTE:
Given that we changed the downloaded directory from robwhess [robwhess-opensift-195d764] to sift, should
g++ $(DEBUG) -o insight *.o ./sba-1.6/libsba.a `pkg-config --libs opencv libxml-2.0 sdl gtk+-2.0` ./robwhess-opensift-195d764/lib/libopensift.a $(AGARLIB) -llapack -lblas -lGL -lGLU -lpthread -lgdk-x11-2.0
look more like
g++ $(DEBUG) -o insight *.o ./sba-1.6/libsba.a `pkg-config --libs opencv libxml-2.0 sdl gtk+-2.0` ./sift/lib/libopensift.a $(AGARLIB) -llapack -lblas -lGL -lGLU -lpthread -lgdk-x11-2.0

UPDATE:
-Nov 7, 2017
I figured out my problem. I did not notice that the second diff --git was to the main.cpp file.

I also noticed that you need to add #define __iob_func to the main.cpp with the other change that is listed in your comment.

Finally, I did need to change the directory from [robwhess-opensift-195d764] to [sift].

Thank you very much again!

from insight3d.

Harvie avatar Harvie commented on September 7, 2024

I have the same problem.

g++ -O3 -c `pkg-config --cflags opencv libxml-2.0 sdl gtk+-2.0` -I./ann_1.1.1/include/ geometry_textures.cpp
In file included from geometry_textures.h:30:0,
                 from geometry_textures.cpp:25:
geometry_structures.h:35:10: fatal error: ./sift/include/sift.h: No such file or directory
 #include "./sift/include/sift.h"
          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:15: geometry_textures.o] Error 1

Fixed by

git clone https://github.com/robwhess/opensift.git sift
git clone https://github.com/balintfodor/sba

but saga continues...

from insight3d.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.