-
Notifications
You must be signed in to change notification settings - Fork 161
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
Meson build - Windows #104
Comments
Right, this is addressed in #100. I assume you're using a newer version of Meson. |
Yes - I am grabbing the latest version of Meson (0.38.0). |
No, it hasn't yet, but I'm going to work on it ASAP. |
I've merged PR #100 which means that you'll need both Python 3 and Python 2 installed in order to build Epoxy. We cannot really drop the Python 2 requirement because various platforms shipping Epoxy do not have Python 3 — which is also why we are keeping the autotools build. If you install Python 2 and Python 3, everything should work out of the box. Maybe in the future I'll add a new |
Thanks!
I have done this with only Python 2.7 in my path, only Python 3.6 in my path, and both 2.7 and 3.6 in the path (making a symlink from python.exe to python3.exe for 3.6). All attempts to build fail at the msbuild stage. There are a number of link errors similar to: |
Seems like a symbol visibility issue; I cannot reproduce it when cross-compiling, so it could be an issue that is exposed because of some missing compiler flag. It would be helpful if you could attach a build log to the issue. |
I've attached a sample build output from the msbuild command |
I have similar issue. Epoxy.dll is built without problems, but executables fail to link to it. Static build works though, so I think some symbols are not exported/imported correctly. Edit:
This works for importing functions from dll, but to import data symbols Edit2: |
Indeed, it seems we need |
I am still getting the same error after merging the latest into my fork. |
In case it matters, here is the output from Meson:
|
Unfortunately latest patch didn't help for me either. |
Oh, ouch; I didn't see the |
@codicodi, can you still provide your build process? As I am unable to even build a dll (regardless of whether it functions or not), comparing my workflow to yours would be helpful. |
Sure, here you go: Your log mentions dll was successfully created, see line 146 |
@codicodi I've updated the WGL tests, which were the only ones that included |
Cool, it builds for me now. Many thanks! |
Yup - working for me too! |
Hello.
I am having an issue building with Meson on Windows.
First, when I install Python 3.6 for windows, the executable is python.exe (not python3.exe). When I run
meson.py .. . --backend=vs2015
I get an error sayingProgram python3 found: NO
.I created a symlink from python.exe to python3.exe. This resolved that issue and successfully creates a MSVC solution. However, when building, it has several errors along the lines of:
It appears as though the gen_dispatch.py is set to be called from python twice, which is what causes the error.
The text was updated successfully, but these errors were encountered: