URL: https://linuxfr.org/forums/programmation-c/posts/winemaker-et-wgl Title: winemaker et wgl Authors: vincent LECOQ Date: 2007年03月23日T09:15:52+01:00 Tags: Score: 0 Bonjour cher forum Voila, j'essaie de porter une appli windows vers un manchot en l'attirant avec du bon vin. J'ai déjà pas mal retouché le code sur des picot détails, jusque la pas trop de soucis, arrive le moment de la liaison. Petites retouches du Makefile pour opengl, tout ça ... Or la il me fait des misères :
wineg++ -mwindows -mno-cygwin -o compet.exe.so core/instruction.o core/op.o core/process.o core/vm.o corwnd.o dialog.o gl/glow.o gl/light.o gl/mesh.o gl/pbuffer.o gl/pointsprite.o gl/quad.o gl/skybox.o gl/vect2.o gl/vect3.o main.o timer/timer.o ui/writer.o win32/debug.o win32/errorbox.o win32/window.o resource.res -lGL -lglut -lGLU -L/usr/X11/lib -lX11 -lglut -lm -lGL -lGLU -lXext -lodbc32 -lole32 -loleaut32 -lwinspool -lopengl32 -lglu32 -lactiveds -ld3d8 -ld3d9 -ld3dim -ld3drm -ld3dx8 -ld3dxof -lddraw -ldinput8 -ldinput -lgdi32 -lglu32 -luuid corwnd.o: In function `glutInit_ATEXIT_HACK': corwnd.cpp:(.text+0x8ec): undefined reference to `__glutInitWithExit' gl/pbuffer.o: In function `PBuffer::Unbind()': pbuffer.cpp:(.text+0x14): undefined reference to `wglReleaseTexImageARB' gl/pbuffer.o: In function `PBuffer::Bind()': pbuffer.cpp:(.text+0x95): undefined reference to `wglBindTexImageARB' gl/pbuffer.o: In function `PBuffer::Create(int, int)': pbuffer.cpp:(.text+0xee): undefined reference to `wglChoosePixelFormatARB' pbuffer.cpp:(.text+0x160): undefined reference to `wglCreatePbufferARB' pbuffer.cpp:(.text+0x1ad): undefined reference to `wglGetPbufferDCARB' pbuffer.cpp:(.text+0x20e): undefined reference to `wglQueryPbufferARB' pbuffer.cpp:(.text+0x233): undefined reference to `wglQueryPbufferARB' gl/pbuffer.o: In function `PBuffer::Destroy()': pbuffer.cpp:(.text+0x38a): undefined reference to `wglReleasePbufferDCARB' pbuffer.cpp:(.text+0x3ca): undefined reference to `wglDestroyPbufferARB' gl/pbuffer.o: In function `PBuffer::Init(HDC__*)': pbuffer.cpp:(.text+0x40c): undefined reference to `SetUpWGL_ARB_extensions_string()' pbuffer.cpp:(.text+0x419): undefined reference to `wglGetExtensionsStringARB' pbuffer.cpp:(.text+0x434): undefined reference to `SetUpWGL_ARB_pbuffer(char const*)' pbuffer.cpp:(.text+0x446): undefined reference to `SetUpWGL_ARB_pixel_format(char const*)' pbuffer.cpp:(.text+0x458): undefined reference to `SetUpWGL_ARB_render_texture(char const*)' ui/writer.o: In function `Writer::Create(Window*, char*, int)': writer.cpp:(.text+0x3f8): undefined reference to `wglUseFontBitmaps' collect2: ld returned 1 exit status winegcc: g++ failed. make: *** [compet.exe.so] Erreur 2
Normalement, wine gère wgl (le binaire windows arrive a tourner), mais la je ne trouve pas la bonne lib pour la liaison ... Si une bonne âme passant par la pouvait me rendre ce service :) Merci !

AltStyle によって変換されたページ (->オリジナル) /