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
Unable to compile under Windows #62
Comments
|
See issue #19. I haven't had time to get it working on Windows yet. |
Does the following error means something? |
Nope, sorry, the message doesn't mean anything to me. |
That error message is why BOOST_PYTHON_SOURCE needs to be added to the project definition. |
@char101 which project definition file? I am using this under cygwin Also why dont you make a pull request if you are able to compile for windows? Thanks |
Add -DBOOST_PYTHON_SOURCE By windows I mean compiling with visual studio compiler. Compiling with cygwin/mingw is more similar to compiling in linux that windows. |
How can i specify that parameter when using nmake? |
@char101 ok as cmake tends to ignore manual definitions on command line i added them to CMakeLists.txt . i.e. That error is gone but i have some more @jarmo you can do the same too i guess EDIT:sorry about above it was due to CMAKE_LEGACY_CYGWIN_WIN32=1 flag..i was able to compile past 78% stuck in some clang isuue now (seems like my clang build was not good ). Thanks |
Good news is i am able to compile ycm on windows. ycm doesnt seem to link to static libclang.a but linking to cygclang.dll worked for me. After compiling i see libycm_core.dll.a and ycm_core.so ( i was expecting a dll here ) inside ycm dir. i also copied cygclang.dll to python dir. But still on opening vim ycm complains that ycm_core[so|dll] not found. I am stuck at this now. |
@kul Did you try to rename the .so file to .dll ? |
Its surprising how people are able to run it on windows ...the readme never tell on which folder to copy the ycm_core.[so|dll]] to. I figured from code its looking inside python dir. Secondly the function function! s:HasYcmCore() only looks for so and pyd. |
When do you think Windows support will be coming? I've been beating my head against this particular brick wall for days! I get this whether I build with clang support or without it. Alternatively, I also tried using the nmake method using the Developer Command Prompt for VS2012, but got stuck at the same place as Jarmo did. Again, this happened to me whether or not I built the project with clang or without it. |
I have complied with Visual Studio 2012 Express.
Still, after a few seconds plugin gets in a infinite loop and hangs Vim. Did anyone successfully ran YCM in windows? |
@Valloric Do you have modified the boost parts source code? If not, why not just ask to link against existing boost libs available for most of the platforms, it will decrease the complexity for build imo. Any thoughts? |
@kul Nope, the Boost parts code is unmodified. There's no package manager for Windows so it wouldn't really be easy for users to get a set of Boost binaries. Getting YCM to work on Windows is merely a matter of me finding a day of free time (which so far I haven't found) where I can get it to work there and then writing more docs. This is not my first time around the cross-platform block. :) There's also no one universal package manager for Mac. Bottom line, using an out-of-tree Boost would require users to perform extra steps to get YCM working (current situation with Windows notwithstanding). |
@Valloric Well, I did find this tool for Windows that will download Boost and compile it with Visual Studio 2010/12 (in case anyone finds that useful), but I agree about the extra steps. Also, if you didn't already need Boost for something it would be silly to download the entire Boost library set just for a Vim plugin. |
Ok well my point was not to download the whole library and compile it. But just getting the binaries and includes like you did for clang, and link against them. But i may be overlooking some extra effort or potential problems. Using cmake as build system already has made build process cross platform i guess, Apart from a few thing with cmake config like renaming with .so extension intead of leaving it to cmake and adding few definitions. I was able to compile it in cygwin. Its just a matter of debugging if you ask me to get it working. |
Can't compile even with the latest code and following instructions in the wiki. I'm seeing this error:
The file exists and seems to be a legal xml file. Any ideas? |
This is the issue the wiki page talks about; you have mixed up architectures. I'm guessing python27.dll is x64 and ycm_core.obj is x86. |
That's what i also suspected and was actually right, but i replaced 64bit Python with 32bit and i'm still getting the same error. I also have Visual Studio only for 32bits - located under This is the python information:
This is how i ran
As you can see i'm pointing to the 32bit python27.dll specifically (i don't even have 64 bit version of it anymore). |
I managed to compile it! Right after i removed |
I got it to compile (without clang) using MinGW64, and added instructions to the existing wiki page. Download the 64-bit binary at http://goo.gl/SQacI if you can't get your own to compile. |
It cannot compile with -- Found PythonLibs: D:/python/2.7/libs/python27.lib (found suitable version "2.7.3", required is "2.5") So I think you need define to link with dll directly by adding to cmake the following:
You build for some reason, cannot be used with my With the note above you build instructions work, thanks. |
@kul or anyone else Did anyone figure out how to compile in Cygwin (using generator Unix Makefiles)? I followed @stormy-henderson instructions on compiling for MinGW64:
Build gets 88% complete then gets the following errors:
I also tried commenting out the last three lines in ycm_core.cpp (the ones that create a dummy tss_cleanup_implemented), but it's the same results. |
UPDATE
I've uploaded the compiled ycm_core.dll to: https://github.com/saamalik/dotvim/tree/master/windows_binaries. |
I tried to compile under windows, but failed. I used
nmake
to do that and getting to 81% of completion.This is how i created the
Makefile
:This is what
nmake
produces:There doesn't seem to be any obvious reasons for getting
Permission denied
errors since i cancd
to these directories and all the files seem to exist too.Any ideas?
The text was updated successfully, but these errors were encountered: