Hi,
Hello,
Zimon wrote: ↑Fri Sep 25, 2020 10:37 am
I am starting to learn how to use wxWidgets and after 3 days am not even able to get it to work using my regular C++ environment. I've read many tutorials, but none of them seem to cover the specific combination of MSYS2, MingW and CLion. My goal is to build an run the HelloWorld App for starters.
Welcome!
Zimon wrote: ↑Fri Sep 25, 2020 10:37 am
Let me list what i've tried:
- installing the MingW packages "mingw-w64-x86_64-wxWidgets" and "mingw-w64-i686-wxWidgets".
Let me stop you right there.
When you say "installing wxWidgets" - what did you mean?
Downloaded and run the installer?
Downloaded prebuilt binaries from wxwidgets.org/download?
Installed prebuilt binaries from the MSYS environment??
Something else?
Zimon wrote: ↑Fri Sep 25, 2020 10:37 am
- manually compile the github packages and installing the libs to MingW
Did you compile them using standard MSYS way - using configure?
Or you are working from the Windows environment with just MinGW?
Zimon wrote: ↑Fri Sep 25, 2020 10:37 am
- using the prebuilt development libraries für MingW (this appeared to be the most promising approach, since I was able to start the compiling process but got loads of errors relating to missing constants of the setup.h, which I still struggle to understand the purpose of).
What you were tried to compile? How? Inside MSYS or Windows environment? What command did you use?
Zimon wrote: ↑Fri Sep 25, 2020 10:37 am
- downloading the Linux and Windows versions from the website (what's the difference compared to the github version and which one would I need for the MSYS2, which is a Linux-type system)?
Please do not mix up different OSes - start with one and then move to the other one.
For the MSYS you will need the Windows source code.
Zimon wrote: ↑Fri Sep 25, 2020 10:37 am
I've read that I am merely to build and install the libs for wxWidgets, but apparently that's not quite the case. I am suprised how different wokring with wx is compared to Qt5, which only needs the packages that are available as part of the msys2/MingW repo.
I believe there is a package made for MSYS environment and you can catch its "maintainer" here on the forum.
However, it is very easy to build wxWidgets for MSYS{2} -- do the following:
Code: Select all
cd wxWidgets
mkdir buildMSYS
cd buildMSYS
CXXFLAGS="-std=c++11" ..configure --with-msw --enable-debug && make
make install
Now, the only difference between Windows and Linux/Mac versions is the line ending,
But for MSYS2 getting the Windows archive is better.
Zimon wrote: ↑Fri Sep 25, 2020 10:37 am
Sorry for those questions, but after 3 days of trying to get this to work, I can honestly say, that no online source to far really helped me with this and I really would like to try out wxWidgets.
Please let us know if you get any other questions - we are here to help.
Thank you.