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
windows: could not build on Windows 7 #16
Comments
Huh. What version of GNU make are you using? And what shows up if you do |
Make version:
|
What happens if you run
yourself? What about
? |
It compiles without prompting an error. |
Hm, so something is wrong with the way make is issuing the command. Here's an idea: try compiling this program:
as, for example,
to
What does make say this time? I'll do the same on my system (Windows 7, MSVC 2013, GNU make 4.1) and compare the results, |
I used
|
Try |
Output replace by
|
Okay, so whatever shell you're using is for whatever reason expanding the |
I installed MinGW32 and make binary for windows. I launch the make from |
http://www.mingw.org/wiki/Posix_path_conversion this explains what's going on I'm not sure how to override this. I'll have to find out... |
How did you install MinGW32? Is there a command |
There is no difference apparently:
|
And could you link the MinGW package you downloaded? |
I used the MinGW Synaptics like installer for Windows.
|
And is this vanilla MinGW or MinGW-w64, or some other variant of MinGW? |
I used the installer provided on http://www.mingw.org/ and called |
Okay, thanks. I'll need to investigate options to deal with this myself. At worst I'll have to bar broken MinGW setups from being used. Maybe at some point in the future I'll switch to a proper build system... In the meantime, you can download a GNU make source repository and build it using the MSVC compiler by running the included |
Actually hm. cvtres doesn't seem to be necessary, and the other commands all allow using |
1) cvtres is no longer used directly. MSDN says to send the .res files to link.exe; that runs cvtres for us (at least it seems to, accoring to Google results for error LNK1158). It'll also avoid some of the weird warnings in cvtres, like CVT4001. 2) (and more important, but it depended on 1) Command-line switches are now passed using - instead of /. This is because some versions of MinGW are buggy and treat anything that starts with a / as a MSYS filename that needs to be converted to a Windows pathname. Update #16.
Okay, try the latest master with your MinGW-provided make and see if it builds. If it does, I'll close this issue as fixed, and no need to build a custom GNU make. :) |
I tested with the last master:
It sounds better as |
Oops, missed a spot. Sorry! ^^ Try again now. |
On
But on I have a small error when it tries to compile the ressources files:
|
Are you running cmd.exe directly instead of the Visual Studio command line environment? If so, that's your issue; you need to use the shortcuts in the Start menu to set up the environment variables correctly. That error is in the linker; I'll have to figure out what's going on there... |
Using the shortcut provided as |
see #17 |
I don't have access to my Windows project anymore :( Le Monday, May 16, 2016, Pietro Gagliardi notifications@github.com a
|
@andlabs could you push the dll to repository?It is difficult for me to build a libui.dll. Thanks. |
It works for me on Windows 10 with the following steps. No cygwin or msys required. |
Yes, that is exactly how you are supposed to build libui for now, except I build my GNU Make from source using the included |
@andlabs Yes, what @Overv said is right,and it is the easier way to install make.exe.The dependency DLLs libintl and libiconv have been installed the bin directory automatically. I have compiled the .cpp to .o ,but failed to link them with many error about c:\program files (x86)\microsoft sdks\windows\v7.1a\include\commctrl.inl. |
The issues here seem to be resolved so I am going to close this issue. Reopen it if I am wrong in doing so. |
Impossible for me to build (MVSC 2010):
The text was updated successfully, but these errors were encountered: