User forums > General (but related to Code::Blocks)

Compiling wxWidgets 2.8.12 with MinGW-Builds 5.2.0 for use in CodeBlocks Windows

<< < (2/3) > >>

oBFusCATed:
What do you mean by 'does not behave properly'?
If there is bug in these kind of builds, we need to fix them. So please report!

headkase:
What happens on my system, I can compile wxWidgets 3.0.2 64 bit with no errors.  Then I can build codeblocks wx 30 64 also with no errors.  Run it, it loads fine.  However, open a text window the cursor caret does not behave properly.  If you go up or down a line it may leave an old cursor bar graphic there, or up or down, left or right, all the arrow keys: it either leaves a artifact or does not update.  Either graphical garbage or an invisible caret.  No errors are thrown at all that I am aware of.  It just doesn't work like it's supposed to.

I am not a technical expert so I do not know where to begin troubleshooting that.  If you provide a concrete list of steps to try and report the results of then I would gladly do them.

oBFusCATed:
Can you build the stc sample in the <wxroot>/samples/stc and try if it behaves the same?

headkase:
Found the root cause and some issues in the latest SVN.

First of all, SVN 10625 errors when compiling with wx 3.0.2:

http://i.imgur.com/yexc1qM.jpg

Going back to SVN 10623 compiling with wx 3.0.2 succeeds.

Now, I found the fix for the issue.  wxWidgets 3.0.2 has to be build with the CFG=64 option:


--- Code: ---mingw32-make -f makefile.gcc CFG=64 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1
--- End code ---

Also, in config.gcc I did no keep inline and -std=gnu++11

And then the codeblocks wx 3.0.x 64 bit project -> build options -> custom variables, WX_CFG has to be given to value "64"

Then the project will compile fine and most importantly, the cursor caret in the editor window now works correctly.

headkase:
Arg, no dammit, still issues.  Now the cursor works fine until you scroll within source code.  I don't have enough time to build the sample to test that out before I head off to work.  Tomorrow after work I'll have time to try that then.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version