User forums > Help
Need help installing opengl and wxwidgets
NoSoulX:
I've gone through the forum for once, but haven't found any step-by-step guide on how to install opengl and wxwidgets for the latest release 3rd January.
When using Mingw32 how do I install these two?
Where do I get the needed files and what settings are needed for compiler, linker, etc...
And can I use these on empty project?
Please, step-by-step guide. : :D
shaggy:
I don't know about OpenGL, but here is how I install wxWidgets in Windows...
Get wxMSW.zip from http://biolpc22.york.ac.uk/pub/Daily_HEAD/
Unzip in the CodeBlocks root directory (C:\Codeblocks)
Change the name of the wxWidgets dir to wxWidgets
Add the following to a batch file in the Codeblocks root dir. You might have to edit the first line to point to the dir mingw32-make.exe is in.
-------------
set p=C:\CodeBlocks\bin;%path%
cd wxwidathgets\build\msw
mingw32-make -f makefile.gcc clean
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=debug
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release
-------------
Run the batch file and wait.
Create new wxWidget project in CodeBlocks
Select:
Use wxWidgets DLL
wxWidgets built as monolithic library and
Enable Unicode
shaggy:
hmmm, something didn't get pasted.
set p=... should be set path=...
stahta01:
Replace %WXWIN% with your path to wxWidgets source.
The below should build wxWidgets with support for OpenGL, I have no idea what you need to change in your C++ code to use wxWidgets with OpenGL. I suggest looking at samples/opengl folder.
Tim S
--- Code: ---set PATH=C:\MinGW\bin;%PATH%
cd %WXWIN%\build\msw
mingw32-make -f makefile.gcc clean
mingw32-make -f makefile.gcc USE_XRC=1 MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=debug USE_OPENGL=1
mingw32-make -f makefile.gcc USE_XRC=1 MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release USE_OPENGL=1
--- End code ---
NoSoulX:
:( Why is it that you have to define linker to use libraries and headers?
When using standard c++ headers it doesn't complain, but when you try opengl, it goes haywire? Starts complaining "undefined reference to"... Surely the files that are required are to be found more easily than adding extra codes to linker.
Anyone giving help with installing OpenGl?
Navigation
[0] Message Index
[#] Next page
Go to full version