Giter Site home page Giter Site logo

Make errors about siftgpu HOT 5 OPEN

pitzer avatar pitzer commented on August 22, 2024
Make errors

from siftgpu.

Comments (5)

jsalva avatar jsalva commented on August 22, 2024

I'm having the same issue

from siftgpu.

jsalva avatar jsalva commented on August 22, 2024

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.

jsalva avatar jsalva commented on August 22, 2024

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.

rasmi avatar rasmi commented on August 22, 2024

@jsalva, you're awesome. Thanks!

from siftgpu.

jsalva avatar jsalva commented on August 22, 2024

np ;)

from siftgpu.

Related Issues (16)

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.