Compiling Samples on a Mac Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
wilx
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Aug 16, 2005 4:10 pm
Location: Northern Utah, USA
Contact:

Compiling Samples on a Mac

Post by wilx »

Greetings:

I'm completely new to wxWidgets but have programmed in Motif for years, so I'm not completely ignorant.

Computer: PowerBook G4, 1.5GHz, 512 MB
OpSys: Mac OS X, Version 10.4.2
wxWidgets: Version 2.6.1

I had no problems compiling and installing wxWidgets. To get programs to compile, I've found that I need to include the compiler directive:
-I/usr/local/lib/wx/include/mac-ansi-release-2.6
to get wx/setup.h

I've compiled and run the samples 'minimal' and 'controls' as recommended. When I run either of of these applications, they are only semi-functional. I can click on the window control buttons (close, minimize, and resize), but I cannot click on and drag the window. Also, the window remains behind the terminal window and cannot be selected. None of the controls in 'controls' can be used, but text can be selected.

Does anyone know what is going on?

Thanks,
Mark
KevinHock
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 236
Joined: Sat Sep 04, 2004 1:49 pm
Location: Ohio, USA
Contact:

Post by KevinHock »

To run the application, you need to do one of the following:

- Double-click on it from the Finder

- Use the command open foo.app where foo is the name of the program. So if you compiled a sample called "text" you would use text.app.

HTH
wilx
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Aug 16, 2005 4:10 pm
Location: Northern Utah, USA
Contact:

Post by wilx »

KevinHock wrote:To run the application, you need to do one of the following:

- Double-click on it from the Finder
Double clicking in Finder opened the application in Terminal, just as I had done before, but it did not solve the problem. I looked at the 'Open With' options, and saw that I could open it in X11. That didn't work either.
KevinHock wrote:- Use the command open foo.app where foo is the name of the program. So if you compiled a sample called "text" you would use text.app.

HTH
Ah, I think I understand where we have a disconnect. I'm using gcc, ln, and make. I'm not using Xcode, so I don't have a .app file. Do I have to use wxWidgets in the Xcode environment? I so much prefer vi and gcc.

Mark
wilx
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Aug 16, 2005 4:10 pm
Location: Northern Utah, USA
Contact:

Post by wilx »

Well, I got it figured out finally. Essentially, I was using the
wrong makefile. Thanks to all those that took the time to
look at the problem and consider it.

Mark
KevinHock
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 236
Joined: Sat Sep 04, 2004 1:49 pm
Location: Ohio, USA
Contact:

Post by KevinHock »

Indeed, if you didn't have a .app file, you were doing something very wrong. :D
Post Reply