compilation projet opengl
Bonjour,
J'ai récupérer un projet opengl qui tourne sous linux, j'éxécute le makefile sous eclipse C et sous vista mais j'ai des erreurs :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
**** Build of configuration Debug for project Infographie ****
**** Internal Builder is used for build ****
g++ -O0 -g3 -Wall -c -fmessage-length=0 -oframebuffer.o ..\framebuffer.cc
In file included from ..\framebuffer.cc:13:
..\framebuffer.h:16:19: FL/gl.h: No such file or directory
..\framebuffer.h:17:19: FL/Fl.H: No such file or directory
..\framebuffer.h:18:29: FL/Fl_Gl_Window.H: No such file or directory
In file included from ..\framebuffer.cc:13:
..\framebuffer.h:33: error: ISO C++ forbids declaration of `GLubyte' with no type
..\framebuffer.h:33: error: expected `;' before '*' token
..\framebuffer.h:34: error: expected `;' before "size_t"
..\framebuffer.h:28: warning: `class framebuffer_t' has virtual functions but non-virtual destructor
..\framebuffer.h:54: error: expected class-name before '{' token
..\framebuffer.h:70: error: `GLdouble' does not name a type
..\framebuffer.h:71: error: `GLdouble' does not name a type
..\framebuffer.h:72: error: `GLint' does not name a type
..\framebuffer.cc: In constructor `MyGlWindow::MyGlWindow(int, int, int, int, framebuffer_t*)':
..\framebuffer.cc:40: error: class `MyGlWindow' does not have any field named `Fl_Gl_Window'
..\framebuffer.cc: In member function `void MyGlWindow::draw_pixmap()':
..\framebuffer.cc:58: error: `w' was not declared in this scope
..\framebuffer.cc:58: error: `h' was not declared in this scope
..\framebuffer.cc:64: error: 'class framebuffer_t' has no member named 'getbuffer'
..\framebuffer.cc:58: warning: unused variable 'w'
..\framebuffer.cc:58: warning: unused variable 'h'
..\framebuffer.cc: In member function `void MyGlWindow::print_info()':
..\framebuffer.cc:78: error: `ModelViewMatrix' was not declared in this scope
..\framebuffer.cc:78: warning: unused variable 'ModelViewMatrix'
..\framebuffer.cc:85: error: `ProjectionMatrix' was not declared in this scope
..\framebuffer.cc:85: warning: unused variable 'ProjectionMatrix'
..\framebuffer.cc:90: error: `Viewport' was not declared in this scope
..\framebuffer.cc:90: warning: unused variable 'Viewport'
..\framebuffer.cc: In member function `void MyGlWindow::get_coords(int, int, ray&)':
..\framebuffer.cc:100: error: `ModelViewMatrix' was not declared in this scope
..\framebuffer.cc:100: error: `ProjectionMatrix' was not declared in this scope
..\framebuffer.cc:100: error: `Viewport' was not declared in this scope
..\framebuffer.cc: In member function `void MyGlWindow::get_matrices()':
..\framebuffer.cc:108: error: `ModelViewMatrix' was not declared in this scope
..\framebuffer.cc:109: error: `ProjectionMatrix' was not declared in this scope
..\framebuffer.cc:110: error: `Viewport' was not declared in this scope
..\framebuffer.cc:108: warning: unused variable 'ModelViewMatrix'
..\framebuffer.cc:109: warning: unused variable 'ProjectionMatrix'
..\framebuffer.cc:110: warning: unused variable 'Viewport'
..\framebuffer.cc: In member function `void MyGlWindow::set_view()':
..\framebuffer.cc:115: error: `w' was not declared in this scope
..\framebuffer.cc:115: error: `h' was not declared in this scope
..\framebuffer.cc: In member function `void MyGlWindow::draw()':
..\framebuffer.cc:135: error: `valid' was not declared in this scope
..\framebuffer.cc: In member function `void MyGlWindow::resize(int, int, int, int)':
..\framebuffer.cc:150: error: `Fl_Gl_Window' has not been declared
..\framebuffer.cc:151: error: `w' was not declared in this scope
..\framebuffer.cc:151: error: `h' was not declared in this scope
..\framebuffer.cc:151: warning: unused variable 'w'
..\framebuffer.cc:151: warning: unused variable 'h'
..\framebuffer.cc: In member function `int MyGlWindow::handle(int)':
..\framebuffer.cc:158: error: `FL_PUSH' was not declared in this scope
..\framebuffer.cc:162: error: `w' was not declared in this scope
..\framebuffer.cc:162: error: `h' was not declared in this scope
..\framebuffer.cc:164: error: `redraw' was not declared in this scope
..\framebuffer.cc:162: warning: unused variable 'w'
..\framebuffer.cc:162: warning: unused variable 'h'
..\framebuffer.cc:164: warning: unused variable 'redraw'
..\framebuffer.cc:167: error: `FL_DRAG' was not declared in this scope
..\framebuffer.cc:170: error: `FL_RELEASE' was not declared in this scope
..\framebuffer.cc:174: error: `Fl' has not been declared
..\framebuffer.cc:174: error: `event_x' was not declared in this scope
..\framebuffer.cc:174: error: `Fl' has not been declared
..\framebuffer.cc:174: error: `event_y' was not declared in this scope
..\framebuffer.cc:175: error: `Fl' has not been declared
..\framebuffer.cc:175: error: `h' was not declared in this scope
..\framebuffer.cc:175: error: `Fl' has not been declared
..\framebuffer.cc:175: warning: unused variable 'h'
..\framebuffer.cc:180: error: `FL_FOCUS' was not declared in this scope
..\framebuffer.cc:181: error: `FL_UNFOCUS' was not declared in this scope
..\framebuffer.cc:184: error: `FL_KEYBOARD' was not declared in this scope
..\framebuffer.cc:189: error: `FL_SHORTCUT' was not declared in this scope
..\framebuffer.cc:195: error: `Fl_Gl_Window' has not been declared
..\framebuffer.cc:158: warning: unused variable 'FL_PUSH'
..\framebuffer.cc:167: warning: unused variable 'FL_DRAG'
..\framebuffer.cc:170: warning: unused variable 'FL_RELEASE'
..\framebuffer.cc:180: warning: unused variable 'FL_FOCUS'
..\framebuffer.cc:181: warning: unused variable 'FL_UNFOCUS'
..\framebuffer.cc:184: warning: unused variable 'FL_KEYBOARD'
..\framebuffer.cc:189: warning: unused variable 'FL_SHORTCUT'
Build error occurred, build is stopped
Time consumed: 1041 ms. |
Voici le makefile que j'exécute :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
# Configuration section -------------------------------------------------------
# Filename to give to final executable
OUTPUT := gray
# File extension of source files
EXT := .cc
# List flags to pass to C/C++ preprocessor
CPPFLAGS +=
# List flags to pass to C++ compiler
CXXFLAGS += -Wall -O2
# List flags to pass to linker
LDFLAGS +=
# List additional system libraries to link with
LDLIBS += -lfltk_gl -lglut
default : incremental
# Generate intermediates variables and files ----------------------------------
# update the makefiles on every compilation
CXXFLAGS += -MMD
# Create a lists of object and .d files to create - one for each source file in the directory
DOTD := ${patsubst %${strip ${EXT}},%.d,${wildcard *${EXT}}}
DOTO = ${DOTD:.d=.o}
# make any non-existant make files (using the g++ preprocessor)
${DOTD} : %.d : %${EXT}
${CXX} ${CPPFLAGS} -MM $< > $@
ifneq (${MAKECMDGOALS},clean)
-include ${DOTD} # include the generated make files, which make the object files
endif
# Final targets ---------------------------------------------------------------
.PHONY : clean incremental full
full : clean incremental
incremental : ${OUTPUT}
clean :
rm -f *.o *~ *.d $(OUTPUT)
${OUTPUT} : ${DOTO}
mingw32-g++ -o $@ $^ ${LDFLAGS} ${LDLIBS} |
Quelqu'un saurait-il m'aider comment le rendre compatible sous vista? Faut-il modifier le makefile ou c'est eclipse qui pose problème?
MERCI d'avance