Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Building with wxWidgets 2.9

<< < (2/10) > >>

Cryogen:

 Hi Guys,

Thanks for the assistance. Yes I read all of the threads. I was getting compiler errors, as I remember. Thanks for the patch. I'll probably have to wait for the weekend to try again but I will give it a go.

Cheers.

Cryogen:

 I finally got around to trying this. I can now build the latest wx 2.9.2 SVN but CB refuses to co-operate. I get errors relating to scintilla. I applied the patch to a fress project file, although i had dome much the same myself. No go.


--- Code: ---||=== Code::Blocks, sdk ===|
C:\Utilities\Programming\CBfor2.9\src\sdk\encodingdetector.cpp||In member function 'bool EncodingDetector::ConvertToWxStr(const wxByte*, size_t)':|
C:\Utilities\Programming\CBfor2.9\src\sdk\encodingdetector.cpp|138|warning: value computed is not used|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|811|undefined reference to `_imp___ZN11wxScintilla7SetZoomEi'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|816|undefined reference to `_imp___ZN11wxScintilla13SetMarginMaskEii'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|817|undefined reference to `_imp___ZN11wxScintilla13SetMarginMaskEii'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|818|undefined reference to `_imp___ZN11wxScintilla13SetMarginMaskEii'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|819|undefined reference to `_imp___ZN11wxScintilla13SetMarginMaskEii'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|879|undefined reference to `_imp___ZNK11wxScintilla9GetModifyEv'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|889|undefined reference to `_imp___ZN11wxScintilla12SetSavePointEv'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|895|undefined reference to `_imp___ZNK11wxScintilla11GetReadOnlyEv'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|926|undefined reference to `_imp___ZN11wxScintilla7GotoPosEi'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|927|undefined reference to `_imp___ZN11wxScintilla12ScrollToLineEi'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|928|undefined reference to `_imp___ZN11wxScintilla14ScrollToColumnEi'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|961|undefined reference to `_imp___ZNK11wxScintilla13GetCurrentPosEv'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|962|undefined reference to `_imp___ZNK11wxScintilla19GetFirstVisibleLineEv'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|969|undefined reference to `_imp___ZN11wxScintilla12MarkerDefineEiiRK8wxColourS2_'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|970|undefined reference to `_imp___ZN11wxScintilla19MarkerSetForegroundEiRK8wxColour'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|971|undefined reference to `_imp___ZN11wxScintilla19MarkerSetBackgroundEiRK8wxColour'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|975|undefined reference to `_imp___ZN11wxScintilla12MarkerDefineEiiRK8wxColourS2_'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|976|undefined reference to `_imp___ZN11wxScintilla19MarkerSetForegroundEiRK8wxColour'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|977|undefined reference to `_imp___ZN11wxScintilla19MarkerSetBackgroundEiRK8wxColour'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|983|undefined reference to `_imp___ZN11wxScintilla12SetFoldFlagsEi'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|985|undefined reference to `_imp___ZN11wxScintilla12SetFoldFlagsEi'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|998|undefined reference to `_imp___ZN11wxScintilla8UsePopUpEb'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1006|undefined reference to `_imp__wxEVT_SCI_MARGINCLICK'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1009|undefined reference to `_imp__wxEVT_SCI_UPDATEUI'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1012|undefined reference to `_imp__wxEVT_SCI_CHANGE'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1015|undefined reference to `_imp__wxEVT_SCI_CHARADDED'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1018|undefined reference to `_imp__wxEVT_SCI_DWELLSTART'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1021|undefined reference to `_imp__wxEVT_SCI_DWELLEND'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1024|undefined reference to `_imp__wxEVT_SCI_USERLISTSELECTION'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1027|undefined reference to `_imp__wxEVT_SCI_MODIFIED'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_STYLENEEDED'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_SAVEPOINTREACHED'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_SAVEPOINTLEFT'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_ROMODIFYATTEMPT'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_KEY'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_DOUBLECLICK'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_MACRORECORD'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_NEEDSHOWN'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_PAINTED'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_URIDROPPED'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_START_DRAG'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_DRAG_OVER'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_DO_DROP'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_ZOOM'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_HOTSPOT_CLICK'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_HOTSPOT_DCLICK'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_CALLTIP_CLICK'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1068|undefined reference to `_imp__wxEVT_SCI_AUTOCOMP_SELECTION'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1122|undefined reference to `_imp___ZN11wxScintilla13GetDocPointerEv'|
.objs\sdk\cbeditor.o:C:\Utilities\Programming\CBfor2.9\src\sdk\cbeditor.cpp|1122|undefined reference to `_imp___ZN11wxScintilla13SetDocPointerEPv'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 8 warnings (4 minutes, 12 seconds) ===|


--- End code ---

I tried adding it in several places. No change. It shouldn't be necessary to change that, anyway. I can't see why that would be any different.

Any ideas?

Loaden:
I think we need create a new project named "CodeBlocks-29.cbp".
Any comments?

Loaden:

--- Quote from: stahta01 on September 28, 2010, 03:54:14 pm ---In setup.h make sure "wxUSE_STC" is defined as "0". Note, use "USE_OPENGL=1" is not required.

--- Code: ---mingw32-make -f makefile.gcc USE_QA=1 USE_STC=0 USE_OPENGL=1 BUILD=release UNICODE=1 MONOLITHIC=1 SHARED=1

--- End code ---

--- End quote ---
When start build wxWidgets, you need change "include\wx\msw\setup0.h".

--- Code: ---// Use wxStyledTextCtrl, a wxWidgets implementation of Scintilla.
//
// Default is 1
//
// Recommended setting: 1
#define wxUSE_STC 1
--- End code ---

The default value is 1, so we need set the value to 0.

Loaden:
Works well for me. :lol:

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version