Search found 428 matches

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: 3504

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: 384

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: 506

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: 876

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: 1513

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: 745

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: 666

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: 641

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: 1057

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: 1057

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: 614

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: 613

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: 557

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: 1227

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...
by xaviou
Thu May 12, 2016 5:51 am
Forum: Compiler / Linking / IDE Related
Topic: Linking errors in release build but not in debug
Replies: 5
Views: 1638

Re: Linking errors in release build but not in debug

Hi 6> Creating library C:\Users\<project-path>\Release\patcher.lib and object C:\Users\<project-path>\Release\patcher.exp 6>image.obj : error LNK2001: unresolved external symbol "void __cdecl wxOnAssert(char const *,int,char const *,char const *,char const *)" ([email protected]@[email protected]) 6>statusbar...