-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not compiling under MinGW-64 (static link) #438
Comments
Add to comnand line:
|
When building it in cmake or when using the static library provided? |
When using. Also - |
And likely you will need manifest, as in #436 |
Not sure, but most likely its manifest. |
Nothing happens. Using manifest. GIF Video: Code compiles, starts and breaks. |
Strange. What happens if you compile for example https://github.com/andlabs/libui/blob/master/examples/timer/main.c by that toolchain? If it not working too - maybe it's some subtle difference between msys2-mingw64 and your mingw variant. Then you need to compile libui from sources. |
Aparently I get the same result... https://i.gyazo.com/d4a0e50a57b02dfdf1d3251a74032ea4.mp4 I cannot compile the source since I see this error: What can I do? I'm feeling super lost right now... I really need to get this amazing thing working!!!
|
Can you switch to msys2-mingw compiler? All testing was done by it, and it definitely works. |
it's msys2-mingw already. |
Well - then I gave up, maybe someone else have more ideas. On my computer it works without any issues. |
Could you post your |
32-bit: @echo off
set PATH=c:\msys64\mingw32\bin;%PATH%
g++ -v
windres resources.rc -O coff -o resources32.res
g++ timer.c -static lib32/libui.a resources32.res -o timer32.exe ^
-luser32 -lkernel32 -lgdi32 -lcomctl32 -luxtheme -lmsimg32 -lcomdlg32 ^
-ld2d1 -ldwrite -lole32 -loleaut32 -loleacc -luuid
64-bit:
|
For
|
In case it helps, I have a "recipe" to install the msys2 system with mingw64 and build libui. For me it was important to always use the mingw-w64's packages instead on the msys2's one, only exception being vim, make and tar. Install MSYS2Install Msys2 from https://www.msys2.org/. You can choose either i686 or x86_64 but is better to choose x86_64. For Msys2 $HOME corresponds to the Msys2's install directory plus /home/$WINDOWS_USER_NAME. To continue one needs to update with:
Close the terminal without returning to the bash shell and repeat again the update. A simple pacman cheatsheet is available from: Install dev packagespacman -S vim make tar Optional: pacman -S mingw64/mingw-w64-x86_64-gdb NB: the msys' make is installed instead of the mingw's make because this latter does not Install GitInstall git from the git website, the windows installer. Modify $HOME/.bashrc to add the git directory in the PATH:
Recipe to build libuigit clone https://github.com/andlabs/libui.git git checkout alpha4.1 mkdir build && cd build
cmake -G "Ninja" -DBUILD_SHARED_LIBS=OFF .. ninja |
Right, you should be using MinGW-w64 as an environment, not MSYS2. MSYS2 is closer to a Unix environment than a Windows environment anyway. I'll need to add something to the docs about that. Keep open until then. As for the error building libui itself, it's now fixed (#446). |
Errors: (Also why is it displaying C:/projects/libui/....... ? I do not have this path anywhere
G++ Version and info:
As an added info, the failing is:
EDIT: If I try to build the source myself as the docs say, CMAKE success in the genreation but when make command is invoked, it fails at the following:
The text was updated successfully, but these errors were encountered: