When I want to compile the cube example of wxWindows and OpenGL I've this error :
[Linker error] undefined reference to `wxGLCanvas::sm_eventTable'
[Linker error] undefined reference to `wxGLCanvas::wxGLCanvas(wxWindow*, wxGLCanvas const*, int, wxPoint const&, wxSize const&, long, wxString const&, int*, wxPalette const&)'
etc...
I've configure Dev-C++ 4.9.9.0 to use wxWindows but when I use wxGLCanvas I've this error all the time.
-> I've see a post about this problem at http://forums.wxwidgets.org/viewtopic.php?t=31
but I can't know how to do to rebuild jpg, png, zlib, etc...
with Dev-C++
Help me please.
Problem using wxGLcanvas with Dev-C++
-
- Super wx Problem Solver
- Posts: 466
- Joined: Sat Sep 18, 2004 2:49 am
- Location: California, USA
How does one rebuild the wx libs in DevC++. I used the devpack so i never had to compile.
I downloaded the source now and tried to make a DevC++ project from the wxWindows.dsw, but i have no luck compiling it. It runs into compiler errors immediately. I also i dont know how to make DevC++ compile wxWindows as a series of libs as opposed to a whole exe...
Any help? Even better, does anyone have precompiled libs with glCanvas enabled? I have to say this is most annoying...
I downloaded the source now and tried to make a DevC++ project from the wxWindows.dsw, but i have no luck compiling it. It runs into compiler errors immediately. I also i dont know how to make DevC++ compile wxWindows as a series of libs as opposed to a whole exe...
Any help? Even better, does anyone have precompiled libs with glCanvas enabled? I have to say this is most annoying...
You will need those files:
rm.com
cp.com
mv.com
Add them to the "bin" directory of Dev-C++.
In the file commctrl.h you might need to set this #if to 1;
#if 1
#define _WIN32_IE 0x0300
#endif
Set GL_CANVAS to true in this file:
include\wx\msw\setup.h
Paste this into a *.bat file in the base-directory of wx;
Run the *.bat file. Wait for 20 min.
rm.com
cp.com
mv.com
Add them to the "bin" directory of Dev-C++.
In the file commctrl.h you might need to set this #if to 1;
#if 1
#define _WIN32_IE 0x0300
#endif
Set GL_CANVAS to true in this file:
include\wx\msw\setup.h
Paste this into a *.bat file in the base-directory of wx;
Code: Select all
SET MINGWDIR=c:\dev-cpp
PATH=%MINGWDIR%\bin;%PATH%
set BISON_SIMPLE=%MINGWDIR%\share\bison.simple
set BISON_HAIRY=%MINGWDIR%\share\bison.hairy
cd build\msw
make -f makefile.gcc BUILD=clean USE_OPENGL=1 DEBUG_FLAG=0 DEBUG_INFO=0
Run the *.bat file. Wait for 20 min.
I found this link:
ftp://biolpc22.york.ac.uk/pub/ports/mingw32/extra.zip
(but it didn't seem to work.)
ftp://biolpc22.york.ac.uk/pub/ports/mingw32/extra.zip
(but it didn't seem to work.)