-
Notifications
You must be signed in to change notification settings - Fork 38
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
Installation Failed on windows #7
Comments
Hi, Thanks for reporting that. I just committed a fix that I hope can solve André 2013/8/26 tesla1060 [email protected]
|
Hi, I am not sure how to install this without |
I just realized that installing is not completely trivial as we didn't merge our changes upstream to @andre-martins' repo. |
Ok, I pulled the changes in the pystruct repo. Thanks :) |
There is a new error
|
Just committed a fix. Can you please update and try? André 2013/8/27 tesla1060 [email protected]
|
Hi do I still use If yes, the same error message still show. |
Did you run git pull and deleted all the object files? You shouldn't get -#include <gettimeofday.h> so the code is not trying to include that header file anymore... André 2013/8/27 tesla1060 [email protected]
|
err, sorry, I am not sure how install from the source in Windows. |
Please do @andre-martins: that fetches the current master branch as zip and runs |
well, I am still getting the same error here
|
The line is actually still there @andre-martins. |
Sorry, my bad... Just removed that line and committed a new version. Let me André 2013/8/27 tesla1060 [email protected]
|
OK. that error is gone, but here is a new one though,
|
Fixed. Can you try again? 2013/8/27 tesla1060 [email protected]
|
That one is gone, but more emerged...
|
Can you try to uncomment line 26 in Utils.cpp? //#include <windows.h> //I've ommited this line. If it works, I'll commit the change. André 2013/8/27 tesla1060 [email protected]
|
No, a lot more errors C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W Utils.cpp C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winsock.h(111) : error C20
declaration of 'AD3::timeval' ad3/Utils.cpp(56) : error C2027: use of undefined type 'AD3::timeval'
declaration of 'AD3::timeval' ad3/Utils.cpp(56) : error C2227: left of '->tv_sec' must point to class/struct/u ad3/Utils.cpp(57) : error C2027: use of undefined type 'AD3::timeval'
declaration of 'AD3::timeval' ad3/Utils.cpp(57) : error C2227: left of '->tv_usec' must point to class/struct/ ad3/Utils.cpp(76) : error C2027: use of undefined type 'AD3::timeval'
declaration of 'AD3::timeval' ad3/Utils.cpp(76) : error C2228: left of '.tv_sec' must have class/struct/union ad3/Utils.cpp(76) : error C2027: use of undefined type 'AD3::timeval'
declaration of 'AD3::timeval' ad3/Utils.cpp(76) : error C2228: left of '.tv_sec' must have class/struct/union ad3/Utils.cpp(77) : error C2027: use of undefined type 'AD3::timeval'
declaration of 'AD3::timeval' ad3/Utils.cpp(77) : error C2228: left of '.tv_usec' must have class/struct/union ad3/Utils.cpp(77) : error C2027: use of undefined type 'AD3::timeval'
declaration of 'AD3::timeval' ad3/Utils.cpp(77) : error C2228: left of '.tv_usec' must have class/struct/union ad3/Utils.cpp(81) : error C2027: use of undefined type 'AD3::timeval'
declaration of 'AD3::timeval' ad3/Utils.cpp(81) : error C2228: left of '.tv_sec' must have class/struct/union ad3/Utils.cpp(81) : error C2027: use of undefined type 'AD3::timeval'
declaration of 'AD3::timeval' ad3/Utils.cpp(81) : error C2228: left of '.tv_sec' must have class/struct/union ad3/Utils.cpp(82) : error C2027: use of undefined type 'AD3::timeval'
declaration of 'AD3::timeval' ad3/Utils.cpp(82) : error C2228: left of '.tv_usec' must have class/struct/union ad3/Utils.cpp(82) : error C2027: use of undefined type 'AD3::timeval'
declaration of 'AD3::timeval' ad3/Utils.cpp(82) : error C2228: left of '.tv_usec' must have class/struct/union error: command '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' fa |
OK. I finally got to try this in a Windows machine and made it to at least 2013/8/28 tesla1060 [email protected]
|
OK, i can install now, thanks! |
Great! :-) 2013/8/28 tesla1060 [email protected]
|
Hi, can someone write a simple and clear readme how to compile on Windows? Cloning and running
After reading README install instruction it seemed that maybe I should run
? |
Hi klonuo, I just fixed the "must return a value" errors. Can you pull the new version I think you shouldn't need to run make (that is an old README and I should Let me know if it worked (I don't have a Windows machine at hand right now). André 2014-09-23 10:27 GMT+01:00 klonuo [email protected]:
|
Hi Andre, I don't see any commit. |
My bad, I forgot to push. It's there now. 2014-09-23 12:15 GMT+01:00 klonuo [email protected]:
|
Thanks It compiled fine now Cheers |
Sorry digging up this again, I now get
This is using mingw gcc as delivered by the anaconda package. |
EDIT: This comment has proven to be useless, since the difference was not in the source, but in the compiler configuration. See below. I had this issue ; I no longer have this issue. I just compiled my vs project and it worked fine. However, I don't recall what I did to solve it. You may diff through my ad3 source files: https://www.dropbox.com/s/gri3nmesqev40vy/win_friendly_ad3.zip?dl=0 If you can't find any difference, it means that the solution was somewhere in vsproject/os properties. If you do find a difference, it's probably that, since I didn't change anything else (I think). Good luck. |
Have you guys managed to solve this?
The diffs by smiranda showed only one change which doesn't seem to be relevant:
I'm on Win8.1 64bit. Cheers |
Hello again. I just downloaded a clean master-branch from the repo and did the following steps in visual studio 2013:
It works for me, Win8.1 64bit. Hope this helps. |
Are there any solutions to the redefinition of 'struct timezone" error that amueller and kiwitea were seeing? I'm using pip install on Windows through Anaconda and I'm getting the same error: "ad3/Utils.cpp:34:8: error: redefinition of 'struct timezone' Thanks, |
I got the python bindings to work by compiling ad3 with the microsoft c++ compiler, instead of gcc via mingw (which seems to be what you are using). I haven't installed through anaconda though. Can you tell it to use the microsoft compiler to build ad3 ? |
Ok. I got it to work on windows 8.1 x64 under MinGW. This issue should be fixed in 1a08a99 |
Great. I'll try it out today and let you know if it works. Thanks. |
Your fixes solved the problem. Thank you. -Eran |
I tried to
EDIT: I had to also manually I solved the issue by reverting the changes above 1a08a99 Specifically, I reverted the three occurrences of change |
|
Hi I've got the same problem, Windows 10, x64 I came across this when trying to use @amueller PyStruct Is there a way to specify x64 machine? This is the error:
Command "C:\Users\scram\Anaconda2\python.exe -u -c "import setuptools, tokenize;file='c:\users\scram\appdata\local\temp\pip-nxpoek-build\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record c:\users\scram\appdata\local\temp\pip-3pcne5-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\scram\appdata\local\temp\pip-nxpoek-build\ |
AD3 installs without File "C:\Users\scram\Anaconda2\lib\site-packages\pystruct\inference\inference_methods.py", line 354, in inference_ad3 File "C:\Users\scram\Anaconda2\lib\site-packages\ad3_init_.py", line 1, in ImportError: DLL load failed: The specified procedure could not be found. |
There are binary wheels available on pypi now as of version 2.1: you should be able to simply do |
Hi,
I have used
pip install ad3
to install, I am receiving the below error,Is that because
sys/time
not inwin32
?The text was updated successfully, but these errors were encountered: