Hi,
What are you trying to do?
When you install wxWidgets from standard Ubuntu repository it will not install samples. You need to install them explicitly.
Also - when you install wxWidgets in Linux - wx-config script is installed automatically. You don't have to do anything else.
It calls "wx-config", not "wx-config.exe" - you are working with *nix, therefore no extension.
You also don't need MinGW compiler on *nix - gcc will suffice. Even for cross-compilation. Thats why its called MinGW (Min-imalistic Gcc for Windows).
In order to compile your program on Linux all you need:
1. gcc
2. libtool
3. GTK with all dependencies.
4. wxGTK
When you install wxGTK "wx-config" script will be installed (again not "wx-config.exe").
So all you need to do is:
Code: Select all
1. cd </your/program/source/code/directory>
2. g++ -o <your_program_name> `wx-config --cxxflags --libs`
*nix is completely different OS from Windows and you need to understand that there is no extension there.
When you are on Windows - things might get more complicated, depending whether you will use MSYS{2} or not.
When you are on Windows:
1. Download and install MinGW from you preferred source.
2. Download and unpack wxWidgets-3.1.4.
3. Do the following:
cd c:\wxWidgets-3.1.4\build\msw
mingw-32.exe -f makefile.gcc BUILD=debug
cd </your/program/source/code/directory>
mingw32.exe BUILD=debug -o <your_program_name> *.cpp
You are done.
If you want to - you can look at the c:\wxWidgets-3.1.4\samples\minimal\makefile.gcc and create something like this to compile your software.
That is if you want to be stuck with MinGW.
But you don't have to.
You can install free version of MSVC and just compile your software using provided MSVC solution. Much easier and less hassle.
So to summarize:
1. Windows and Linux are 2 very different OS.
2. You can install wxWidgets on Linux and it will pull all needed dependencies. Nothing else is needed.
3. Compile your software using g++ and installed/provided wx-config script.
4. On Windows either install free version of MSVC or MinGW
5. Compile wxWidgets, then compile you software using EXACLY THE SAME set of options!! (Can't stress that enough - YOU HAVE TO COMPILE BOTH WITH THE SAME SET OF OPTIONS).
6. Enjoy.
7. OSX is more like *nix.
8. On OSX - download Xcode appropriate for your OSX version.
9. Download command line tools and install it (if its not being installed with the Xcode)
10. Download and unpack wxWidgets-3.1.4
11 Do following:
cd ~/wxWidgets-3.1.4
mkdir buildOSX
cd buildOSX
../configure --enable-debug && make
12 Follow the wxWidgets WiKi to create Xcode project for yuor software. Or use provided wxWidgets-3.1.4\samples\minimal\mininmal.xcode.
13. Add the source files, build and run.
Thank you.