Using wxWidget on macOS 10.14.4 with VScode
this is my first topic on this forum and it is an absolute beginner question:
One week ago I started rewriting an old python project to c++. I wanted to get to know c++ a little bit better. Until then I just used it for Microcontrollers like Arduino.
I started rewriting the code in c++, which went surprisingly well. As a very simple GUI I used wxPython, so I decided to go with wxWidgets for the c++ version. I used
to build wxWidgets and the examples. It took around 15 minutes. I decided to skip advanced installing the library because "rarely desirable to install non-Apple software into system directories". "The examples are working very well, so I decided to try to compile a working example. I choose minimal from the examples I opened it up in Visual Studio Code and changed the path from wx/wx.h to an absolute path, as told in wiki. He found the files, but he had problems with dependencies from wx.h e.g. wx/defs.h. I changed the path, from one dependency by removing wx/, it worked. But then the same problem occurred again and again. I could not think that this is a mistake because it worked while building it. So I started to research and read the wiki article again. I was wondering about "use the full path to wx-config under the build directory when building an application using the library". The same instructions can be found in the docs OS X folder. I thought I had done it right by changing the path but then I looked up the wx-config file. And got confused. Now, I do not what to do. I built it once again, the same error.
These are more wx related questions:
Do I have to use wx-config, what does it?
How I set the path correctly?
How I make that the linker will find the build-cocoa-debug folder with the bin?
Do I have to use a Makefile/Builtfile/Bakefile?
In the samples/minimal folder, I do not know what the files are doing.
There I do not know, If they are related to wx but that was used in the examples, so I am going to ask it:
Where is the difference between Make-, Built and Bakefiles?
How do I create an .app Application as seen in the examples?
I am using macOS 10.15.4, VScodium 1.44.0, g++, Apple clang version 11. Xcode and command line tools are installed.
Thank you very much for your help and for this project/forum.