Search found 150 matches

by chris
Mon Jun 26, 2006 8:15 am
Forum: Compiler / Linking / IDE Related
Topic: Build results in unusual behaviour
Replies: 2
Views: 911

Hi,

There are certain resource files and a special application package structure necessary on Mac OS. A default Linux makefile won't work. This post contains a makefile template for compiling apps on Mac OS.

HTH, Chris
by chris
Fri Jun 09, 2006 10:18 am
Forum: Compiler / Linking / IDE Related
Topic: Building a linux wx app that runs on other PC's but mine
Replies: 8
Views: 1785

wxWidgets needs some work on that area. It is frustrated when wxGTK is already installed for 2.6.1 that there is no way to specify an alternative wxGTK. I do not know how the versions are resolved in Linux for seperate libraries, but it's worth looking at. Hi Jorgen, I'm far from being a Linux guru...
by chris
Wed May 24, 2006 1:48 pm
Forum: Compiler / Linking / IDE Related
Topic: gdb problem
Replies: 3
Views: 719

Sounds like simply a bug in gdb. You could try to install a newer version of gdb. There's a snapshot version (6.3.1) available at MinGW's download page:
http://prdownloads.sf.net/mingw/gdb-6.3-1.exe?download.

Chris
by chris
Wed May 24, 2006 1:38 pm
Forum: C++ Development
Topic: Cross-compile a MacOS application under Linux?
Replies: 5
Views: 1015

You can't, just like you can't compile Mac binaries on Linux.
The only cross compiling that works and I know of is compiling for Windows on Linux.

Chris
by chris
Wed May 24, 2006 10:26 am
Forum: C++ Development
Topic: AddPendingEvent to a child window hangs wxGTK hard
Replies: 6
Views: 1188

Can't you suspend the process in gdb when it hangs?
I know your desktop is blocked, but couldn't you run the app in a ssh session w/ X11 forward? That way you should still be able to ctrl-z the session in gdb.
by chris
Tue May 23, 2006 10:35 am
Forum: Platform Related Issues
Topic: Problem executing wxWidgets application
Replies: 4
Views: 1192

This seems to be a problem with executing, not compiling, if I read correctly. It looks like /usr/local/lib - where the wx libraries are installed to - isn't in the library search path of fc5. Try adding the line "/usr/local/lib" (without quotes) to /etc/ld.so.conf (that file is a list of all the ad...
by chris
Tue May 23, 2006 10:15 am
Forum: C++ Development
Topic: Cross-compile a MacOS application under Linux?
Replies: 5
Views: 1015

I think SuperPat meant compiling executables for Mac on Linux -- that's what cross compiling is all about. wx' whole purpose is to be source compatible on different platforms, that's the easy part. Back to the question: I don't know of a way to do this. It would be great if it was possible, but I do...
by chris
Tue May 23, 2006 10:05 am
Forum: C++ Development
Topic: AddPendingEvent to a child window hangs wxGTK hard
Replies: 6
Views: 1188

Hi,

I recommend running the app in gdb and posting a backtrace showing where exactly the hanging occurs.

Chris
by chris
Fri Apr 28, 2006 7:43 am
Forum: C++ Development
Topic: why the Chinese characters show as clobbers using xml
Replies: 12
Views: 1535

If it works with Visual C++ in Unicode mode, then it's indeed an Unicode issue. Installing a Unicode devpack for wxDevCpp should make it work there, too. I honestly don't know why you are getting this error message, so I propose you ask for help in the wxDevCpp subforum on this board.

Good luck!
by chris
Thu Apr 27, 2006 7:50 am
Forum: C++ Development
Topic: why the Chinese characters show as clobbers using xml
Replies: 12
Views: 1535

If you are using a vanilla wxDevcpp install then you are using an ANSI build. Download and install the Unicode release devpak from this thread and then try again.
by chris
Wed Apr 26, 2006 3:00 pm
Forum: C++ Development
Topic: why the Chinese characters show as clobbers using xml
Replies: 12
Views: 1535

Is wxWidgets compiled in Unicode mode?
How did you build it or which package do you use?
by chris
Fri Apr 14, 2006 2:52 pm
Forum: C++ Development
Topic: wxDateTime::Now() off by 10 hours
Replies: 13
Views: 2304

Hi Jamie,

Yes, this is fixed for me in HEAD by your changes in datetime.cpp.

Many thanks for your time!

Chris
by chris
Thu Apr 13, 2006 9:32 pm
Forum: C++ Development
Topic: wxDateTime::Now() off by 10 hours
Replies: 13
Views: 2304

Hi eco, I've been thinking of a copy ctor issue, too, but wxDateTime *now=&wxDateTime::Now(); textctrl->AppendText(now->Format(_T("%x %X: ")+somestring); works as intended without calling a copy ctor, so it can't be related to that. And thanks for looking into this and posting to wx-dev. I really wa...
by chris
Thu Apr 13, 2006 10:12 am
Forum: C++ Development
Topic: wxDateTime::Now() off by 10 hours
Replies: 13
Views: 2304

Whoa...you are right. I don't understand this at all. What's the big difference between wxDateTime now = wxDateTime::Now(); textctrl->AppendText(now.Format(_T("%x %X: ")+somestring); and textctrl->AppendText(wxDateTime::Now().Format(_T("%x %X: ")+somestring); except that one uses an anonymus variabl...
by chris
Thu Apr 13, 2006 9:10 am
Forum: C++ Development
Topic: wxDateTime::Now() off by 10 hours
Replies: 13
Views: 2304

Hi Phoenix_pl,

It's good to know I'm not the only one having this problem. Are you using wxMSW, too?
I guess it's time to post a bug to the tracker...

Chris

edit: I'm sorry, but I fail to see why that should lead to a different behaviour. It's sematically identical to the call in my first post.