Search found 429 matches

by xaviou
Thu Apr 20, 2017 3:44 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling code using Mingw and wxWidgets on command line Windows 10
Replies: 13
Views: 3968

Re: Compiling code using Mingw and wxWidgets on command line Windows 10

Manolo wrote:Compiling your own code on Windows is just a little more tricky than on Linux because of lacking wx-config.
I've build a version of wx-config for Windows (started from CodeLite's sources) :
http://x.psoud.free.fr/?/soft/wxconfig.html

Regards
Xav'
by xaviou
Thu Apr 20, 2017 5:57 am
Forum: Compiler / Linking / IDE Related
Topic: Compiling code using Mingw and wxWidgets on command line Windows 10
Replies: 13
Views: 3968

Re: Compiling code using Mingw and wxWidgets on command line Windows 10

Hi.

The better way to get these flags/parameters is to compile the "minimal" sample that comes with the sources.

If you use the same command line to build the sample than the one used to build the libs, you'll obtain the correct command line to compile and link the sources.

Regards
Xav'
by xaviou
Wed Apr 12, 2017 8:58 am
Forum: C++ Development
Topic: wxLoadFileSelector is not returning selected file path in Linux.
Replies: 2
Views: 419

Re: wxLoadFileSelector is not returning selected file path in Linux.

Hi.

I've just tested on a Linux Mint "Debian Edition" (LMDE) with wxWidgets 3.1.1, and it works correctly.

Witch version of wxWidgets are you using ?
And where does it come from (official repos, own build, ...) ?

Regards
Xav'
by xaviou
Tue Feb 28, 2017 7:43 am
Forum: C++ Development
Topic: windows: ugly grey background/border in some widgets
Replies: 2
Views: 551

Re: windows: ugly grey background/border in some widgets

Hi That "ugly grey border/background" is the colour of the wxFrame, which I'm sure does not appear randomly, but consistently. Doesn't it? Just to add that it is the default background color of a window under Windows (this is not a wxWidgets related thing). If you don't want that, add a wxPanel as t...
by xaviou
Wed Feb 08, 2017 2:24 pm
Forum: Compiler / Linking / IDE Related
Topic: wx/wx.h: No such file or directory
Replies: 1
Views: 1307

Re: wx/wx.h: No such file or directory

Hi.

As you added `wx-config --libs` as a linker rule, you should add `wx-config --cxxflags` to the compiler rules.

Also, check that these 2 commands give you the corrects parameters (try to enter them in a terminal window).

Regards
Xav'
by xaviou
Wed Jan 18, 2017 7:34 am
Forum: wxCode
Topic: Executables with wxFreeChart running in 64 bits mode
Replies: 3
Views: 1659

Re: Executables with wxFreeChart running in 64 bits mode

Hi. It seems the gcc makefile has an error (well, perhaps more than one, but one can be corrected to allow your build). It seems that the build process is trying to link with the opengl wxwidgets lib instead of the aui one. You can correct this : line 342 of the makefile (and only there) replace $(_...
by xaviou
Sun Jan 15, 2017 5:58 pm
Forum: C++ Development
Topic: Suppressing debug alerts
Replies: 5
Views: 820

Re: Suppressing debug alerts

Hi.

You can rebuild your release libs with the "DEBUG_FLAG=0" command line options : all debug asserts will be removes (but you'll also have to add this to the command line for building your app.
You can also add "wxDEBUG_LEVEL=0" while building your app in your IDE's compiler options.

Regards
Xav'
by xaviou
Mon Dec 26, 2016 12:43 pm
Forum: Platform Related Issues
Topic: Mac makefile made from scratch
Replies: 3
Views: 725

Re: Mac makefile made from scratch

Hi. As doublemax said, you need to creare an application bundle. But if you want to make some tests without creating a bundle, you just need to make a call to "SetFile" : SetFile -t APPL YourExecutableFile Note that you will also have to make this call if you create a bundle. Regards Xav' Edit: this...
by xaviou
Mon Dec 12, 2016 7:24 am
Forum: Compiler / Linking / IDE Related
Topic: Building 32bit wxWidgets libraries with tdm64
Replies: 2
Views: 806

Re: Building 32bit wxWidgets libraries with tdm64

Hi TL/DNR version : I think it would be possible to build 32 bit libraries with tdm64 if you could pass extra flags to windres. Is there any way to do that with mingw32-make? Yes, it is Here his the full command line I use for this : mingw32-make.exe -f makefile.gcc BUILD=release CPP="gcc -E -D_M_IX...
by xaviou
Sat Nov 19, 2016 4:11 pm
Forum: C++ Development
Topic: wxT Macro fails
Replies: 7
Views: 1163

Re: wxT Macro fails

goeba wrote:So I still think that it´s a bug in wxWidgets - or perhaps in dialog blocks.
I don't think so...

If you use unicode strings, you should use unicode encoded sources files.
Try to convert the source file : it should compile.

Regards
Xav'
by xaviou
Sat Nov 19, 2016 12:35 pm
Forum: C++ Development
Topic: wxT Macro fails
Replies: 7
Views: 1163

Re: wxT Macro fails

Hi.

One thing to check : as you are using Unicode, is your source file correctly encoded ?

Error like this generally append when using unicode strings in an ascii source file.

Regards
Xav'
by xaviou
Tue Oct 18, 2016 11:40 am
Forum: General Development
Topic: size of a dynamic list in python
Replies: 2
Views: 666

Re: size of a dynamic list in python

Hi

Are you just searching something like "len(list1)" ?

Regards
Xav'
by xaviou
Tue Sep 13, 2016 3:17 pm
Forum: C++ Development
Topic: wxSizer not working with image panel
Replies: 2
Views: 662

Re: wxSizer not working with image panel

Hi.
mybofy wrote:What'is my errors ?
You never tell to the sizers system what is the needed size of your panel.
So it surely have a 0px x 0px size.

You can make a call to SetMinSize on your ImagePanel to avoid this.

Regards

XAv'
by xaviou
Mon Jul 25, 2016 7:53 am
Forum: Compiler / Linking / IDE Related
Topic: How to Build wxWidgets debug library?
Replies: 1
Views: 588

Re: How to Build wxWidgets debug library?

Hi

A debug wxWidgets configuration won't help you building the "Release" target or your project.

From the build result you've posted, you are just missing an include directory witch should be something like "C:\wxWidgets-3.1.0\lib\gcc_lib\mswu".

Regards
Xav'
by xaviou
Wed Jun 01, 2016 7:44 am
Forum: C++ Development
Topic: Why are my panel controls all on top of one another?
Replies: 11
Views: 1314

Re: Why are my panel controls all on top of one another?

Hi If you're just starting out, coding the UI elements by hand can be tricky. But I think this is the best way to understand the sizers concept. This is also the best way to have optimized code. But this is of course my own opinion. To avoid errors, I generally write my code as a tree (using indenta...