Comments (5)
I'm having the same issue
from siftgpu.
mkdir -p build
mkdir -p bin
sed -i -e 's////g' demos/_.bat
ar rcs bin/libsiftgpu.a build/FrameBufferObject.o build/GlobalUtil.o build/GLTexImage.o build/ProgramGLSL.o build/ProgramGPU.o build/ShaderMan.o build/SiftGPU.o build/SiftPyramid.o build/PyramidGL.o build/SiftMatch.o
/opt/local/bin/ranlib: file: bin/libsiftgpu.a(ProgramGPU.o) has no symbols
g++ -o bin/libsiftgpu.so build/FrameBufferObject.o build/GlobalUtil.o build/GLTexImage.o build/ProgramGLSL.o build/ProgramGPU.o build/ShaderMan.o build/SiftGPU.o build/SiftPyramid.o build/PyramidGL.o build/SiftMatch.o -lGLEW -framework GLUT -framework OpenGL -lIL -Iinclude -fPIC -L/usr/lib -L./bin -L./lib -Wall -Wno-deprecated -pthread -march=core2 -mfpmath=sse -DWINDOW_PREFER_GLUT -L/opt/local/lib -shared -fPIC
clang: warning: argument unused during compilation: '-pthread'
ld: warning: directory not found for option '-L./lib'
g++ -o bin/TestWinGlut src/TestWin/TestWinGlut.cpp src/TestWin/BasicTestWin.cpp bin/libsiftgpu.a -lGLEW -framework GLUT -framework OpenGL -lIL -Iinclude -fPIC -L/usr/lib -L./bin -L./lib -Wall -Wno-deprecated -pthread -march=core2 -mfpmath=sse -DWINDOW_PREFER_GLUT -L/opt/local/lib
In file included from src/TestWin/BasicTestWin.cpp:43:
In file included from src/TestWin/BasicTestWin.h:34:
src/TestWin/GLTransform.h:105:3: error: use of undeclared identifier 'glTranslated'; did you mean 'translate'?
glTranslated(cx_es, cy*es, 0.0);
^~~~~~~~~~~~
translate
src/TestWin/GLTransform.h:89:8: note: 'translate' declared here
void translate(int dx, int dy, int dz =0)
^
src/TestWin/GLTransform.h:106:3: error: use of undeclared identifier 'glTranslated'; did you mean 'translate'?
glTranslated(t[0] ,t[1] ,t[2]);
^~~~~~~~~~~~
translate
src/TestWin/GLTransform.h:89:8: note: 'translate' declared here
void translate(int dx, int dy, int dz =0)
^
src/TestWin/GLTransform.h:107:3: error: use of undeclared identifier 'glScaled'
glScaled(s,s,s);
^
src/TestWin/GLTransform.h:108:3: error: use of undeclared identifier 'glTranslated'; did you mean 'translate'?
glTranslated(-cx, - cy, 0);
^~~~~~~~~~~~
translate
src/TestWin/GLTransform.h:89:8: note: 'translate' declared here
void translate(int dx, int dy, int dz =0)
^
src/TestWin/BasicTestWin.cpp:75:15: error: use of undeclared identifier 'GL_MODELVIEW'
glMatrixMode(GL_MODELVIEW);
^
src/TestWin/BasicTestWin.cpp:76:2: error: use of undeclared identifier 'glLoadIdentity'
glLoadIdentity();
^
src/TestWin/BasicTestWin.cpp:77:10: error: use of undeclared identifier 'GL_COLOR_BUFFER_BIT'
glClear(GL_COLOR_BUFFER_BIT);
^
src/TestWin/BasicTestWin.cpp:80:2: error: use of undeclared identifier 'glFlush'
glFlush();
^
src/TestWin/BasicTestWin.cpp:81:2: error: use of undeclared identifier 'glFinish'
glFinish();
^
src/TestWin/BasicTestWin.cpp:189:2: error: use of undeclared identifier 'glViewport'
glViewport(0, 0, w, h);
^
src/TestWin/BasicTestWin.cpp:190:18: error: use of undeclared identifier 'GL_PROJECTION'
glMatrixMode(GL_PROJECTION);
^
src/TestWin/BasicTestWin.cpp:191:5: error: use of undeclared identifier 'glLoadIdentity'
glLoadIdentity();
^
src/TestWin/BasicTestWin.cpp:192:2: error: use of undeclared identifier 'glOrtho'
glOrtho(0, w, h, 0,0,1);
^
src/TestWin/BasicTestWin.cpp:193:18: error: use of undeclared identifier 'GL_MODELVIEW'
glMatrixMode(GL_MODELVIEW);
^
src/TestWin/BasicTestWin.cpp:194:5: error: use of undeclared identifier 'glLoadIdentity'
glLoadIdentity();
^
15 errors generated.
from siftgpu.
ok i got it to work:
change src/TestWin/BasicTestWin.cpp:
#ifdef __APPLE__
# include "OpenGL/OpenGL.h"
#else
# include "GL/gl.h"
#endif
to
#include "GL/gl.h"
Then, I ran into a problem in my (symlinked) src/TestWin/GL/gl.h (grabbed from macports):
In file included from src/TestWin/BasicTestWin.cpp:41:
src/TestWin/GL/gl.h:2085:10: fatal error: 'GL/glext.h' file not found
#include <GL/glext.h>
so i saw that it glext.h was a sibling and changed it to
include "glext.h"
and then, another issue:
In file included from src/TestWin/BasicTestWin.cpp:41:
In file included from src/TestWin/GL/gl.h:2085:
src/TestWin/GL/glext.h:5340:22: error: typedef redefinition with different types ('unsigned int' vs 'void *')
typedef unsigned int GLhandleARB;
^
/System/Library/Frameworks/OpenGL.framework/Headers/gltypes.h:65:15: note: previous definition is here
typedef void *GLhandleARB;
so in src/TestWin/GL/gl.h, line 5340 I declare a void *
typedef void *GLhandleARB;
It compiled! (with some warnings about string literal to char * conversions)
src/TestWin/MultiThreadSIFT.cpp:145:26: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
but not a single fuq was given. Hope that helps
John
from siftgpu.
@jsalva, you're awesome. Thanks!
from siftgpu.
np ;)
from siftgpu.
Related Issues (16)
- Feature descriptor values are greater than 255?
- How to display the keypoints and matches ?
- SIFTGPU is very slow when the dll is finally released, it is very FreeLibrary
- detected keypoints are less than the keypoints detected by the VLFeat
- How to get more keypoints for some image that are less texture HOT 1
- Can you explain the format of the SIFT file?
- how to calculate features' response value like SIFT in OpenCV?
- Remove unnecessary null pointer checks
- Improve exception safety with smart pointers
- GLEW
- Performance of CPU thread downgraded
- fatal error: IL/il.h: No such file or directory HOT 1
- Unable to start "...\..\bin\siftGPU.dll", is not a valid win32 application HOT 1
- Get the biggest features of images
- ANYONE BUILD SUCESSED ON WINDOWS USING CUDA? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from siftgpu.