Code::Blocks Forums

User forums => Help => Topic started by: julesd on October 05, 2010, 07:20:13 am

Title: wxsmith opengl canvas
Post by: julesd on October 05, 2010, 07:20:13 am
How do I get this to work.
When I add the opengl canvas I get compile error.
Title: Re: wxsmith opengl canvas
Post by: ollydbg on October 05, 2010, 07:40:18 am
When I add the opengl canvas I get compile error.
No idea about your problem unless more information supplied.
Title: Re: wxsmith opengl canvas
Post by: Jenna on October 05, 2010, 07:40:46 am
Do you think we have the second sight ?

Your post gives nearly no information needed to be able to help you.

Which OS, which version of wxwidgets, exact error-message ...
Title: Re: wxsmith opengl canvas
Post by: julesd on October 05, 2010, 08:42:21 am
Windows 7 64 bit
code block 10.05 svn 6634
MinGW 4.5
wxwidgets 2.8.11.02

When I create forms with wxsmith and compile everything works fine.
But when I add a opengl canvas I get


||warning: auto-importing has been activated without --enable-auto-import specified on the command line.|
obj\Debug\ytryetMain.o||In function `ytryetFrame':|
D:\Users\Admin\Documents\CodeBlocks\ytryet\ytryetMain.cpp|75|undefined reference to `_imp___ZN10wxGLCanvasC1EP8wxWindowiRK7wxPointRK6wxSizelRK8wxStringPiRK9wxPalette'|
||Info: resolving vtable for __cxxabiv1::__si_class_type_info by linking to __imp___ZTVN10__cxxabiv120__si_class_type_infoE |
||Info: resolving vtable for __cxxabiv1::__class_type_info by linking to __imp___ZTVN10__cxxabiv117__class_type_infoE |
||=== Build finished: 1 errors, 1 warnings (0 minutes, 1 seconds) ===|
Title: Re: wxsmith opengl canvas
Post by: oBFusCATed on October 05, 2010, 09:44:39 am
Read here: http://wiki.wxwidgets.org/WxGLCanvas
Title: Re: wxsmith opengl canvas
Post by: julesd on October 05, 2010, 06:53:53 pm
When I use the project wizard select wxwidgets project, then use wxsmith with frame base.
I add a panel, then go to advance and select wxgl canvas and add that, but when I run it I get that error.

Every other object seems to work fine, it's just when I add the wlcanvas.
Title: Re: wxsmith opengl canvas
Post by: gd_on on October 05, 2010, 08:08:07 pm
As you don't give details, it's not obvious to help you. May be you should generate wxwidgets with the option USE_OPENGL=1 because by default, it's not generated with this support.

gd_on
Title: Re: wxsmith opengl canvas
Post by: stahta01 on October 05, 2010, 08:41:26 pm
Direction to Build wxWidgets with openGL option
http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.8.9_Monolithic_Build_with_openGL_for_Windows

Tim S.