WxWidgets is a cross-platform toolkit that helps developers create programs with native GUI controls.
My specifications are up to date (OS X El Capitan, 10.11). Here are details on what I've tried so far. I've followed the (Terminal) installation steps included in the wxWidgets download: mkdir build-cocoa-debug cd build-cocoa-debug./configure -enable-debug make cd samples; make;cd. Cd demos; make;cd. Then, I followed the for creating Xcode projects. Of course, there were plenty of compilation errors.
After taking care of an incorrectly typed include, there were still issues. For the most part, they were undeclared identifiers and incomplete types, but my attention went to one in particular: 'No Target! You should use wx-config program for compilation flags!' After researching, I believe I need to use wx-config to find what flags to input into the 'Other Linker Flags' option in Xcode. However, I can't seem to utilize wx-config in Terminal. I'm not sure if I'm dealing with the core issue. If I am, how do I use wx-config?
And if I'm not, please steer me in the right direction. EDIT:. I've used wx-config to find which flags I needed to input into 'Other Linker Flags' and 'Preprocessor Macros' in Xcode.
This significantly reduced the amount of errors and warnings that I was facing. Unfortunately, these new errors are esoteric to me: How do I remove these errors so I can run this project? I'm finally able to compile and run wxWidgets programs using Xcode 7. I've found and followed (of which step 3 seems to now be irrelevant). In case the link breaks, here is a summary of the steps that helped me:. Open Terminal and install Homebrew by inputting: ruby -e '$(curl -fsSkL raw.github.com/mxcl/homebrew/go)' Then, input: brew install wxmac Open Xcode and create a Command Line Tool C project. Back in Terminal, input: wx-config -libs Once inputted, copy everything outputted by the Terminal and place it into Other Linker Flags (found in Build Settings of your Xcode project).
At Terminal, input: wx-config –cxxflags Again, copy everything outputted except this time place it into Other C Flags (do not erase what is currently in that section). Then, of course don't forget to include wx/wx.h and don't forget to have at least an empty main function if you want it to run. I'm not at a place where I can create Cocoa projects/products, but that's totally fine. I simply wanted a canvas to familiarize myself with the wxWidgets library.
I hope this post will be helpful to others. Arman, First couple of questions:. What OS are you trying to compile?. What is your requirements for the minimal OSX version?. I presume you are trying to compile the latest Git HEAD. Please correct me if its not the case.
Now, couple of recommendations:. Try to run './configure -help' and see at all the different options you can set. Try to run './configure -enable-debug -with-mac-osx-version-min=10.x -with-cocoa'. This command has to be run after removing the build directory completely and pretending you are starting over.
Try to open the 'minimal.xcode' project in the samples/minimnal directory, add the minimal.cpp file to it and compile. If it compiles and runs fine, then you made a mistake setting up the project of your own. Let us know how it goes.
Hi, I'd like to program something in C using wxwidgets. After installing wxwidgets with pacman (it was installed from extra), and using #include, it couldn't find it. That is because this header is in /usr/include/wx-2.8/wx. So I created a symlink to /usr/include/wx-2.8/wx in /usr/include/wx. But it still doesn't work, it doesn't find 'wx/setup.h'. This file appears to be in /usr/lib/wx/include/gtk2-unicode-release-2.8/wx.
So it's clear that wxwidgets isn't properly installed by pacman on my system, or that I need to do something more that I don't know. Normally, using '#include ' should give no errors in g.
This also works with including and I never had to do something special for SDL. I have no idea what one should do manually to make a library like this work, not even where to get started! I also have no idea if I actually have to manually do something to make it work! How can I use wxwidgets in Archlinux? Last edited by aardwolf (2008-02-02 15:02:35).