Author Topic: Need help installing opengl and wxwidgets  (Read 4623 times)

Offline NoSoulX

  • Single posting newcomer
  • *
  • Posts: 4
Need help installing opengl and wxwidgets
« on: January 08, 2008, 09:50:45 pm »
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

  • Guest
Re: Need help installing opengl and wxwidgets
« Reply #1 on: January 09, 2008, 08:38:49 pm »
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

  • Guest
Re: Need help installing opengl and wxwidgets
« Reply #2 on: January 09, 2008, 08:39:57 pm »
hmmm, something didn't get pasted.

set p=...   should be set path=...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Need help installing opengl and wxwidgets
« Reply #3 on: January 09, 2008, 10:40:49 pm »

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

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline NoSoulX

  • Single posting newcomer
  • *
  • Posts: 4
Re: Need help installing opengl and wxwidgets
« Reply #4 on: January 10, 2008, 10:39:34 pm »
 :( 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?

Offline C98

  • Single posting newcomer
  • *
  • Posts: 4
Re: Need help installing opengl and wxwidgets
« Reply #5 on: January 11, 2008, 10:09:25 am »
are you trying to instal opengl to linux or windows.
if you are trying to instal opengl you hawe to install vga drivers before libraries.
is your vga driver installed on linux or windows [whichever you are using ]