Skip to content
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

Installing #34

Open
rasgo-cc opened this issue Sep 6, 2015 · 2 comments
Open

Installing #34

rasgo-cc opened this issue Sep 6, 2015 · 2 comments

Comments

@rasgo-cc
Copy link

rasgo-cc commented Sep 6, 2015

Hi,

Why installation though package control supported only on OSX?
And how can it be installed on Windows?

Thanks

@rasgo-cc
Copy link
Author

rasgo-cc commented Sep 6, 2015

So I tried to compile it on Windows, using MinGW. However, in order to use de LLVM/Clang .lib file, the makefile must contain use "-llibclang" instead of "-lclang".

Still, I can't build it:

C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete>make
gcc -shared -o lib/libcc.dll -g -Wall src/cc_result.c src/cc_resultcache.c src/cc_symbol.c src
/cc_trie.c src/py_bind.c -L"/c/Users/Mario/AppData/Roaming/Sublime Text 3/Packages/Clang-Comple
te/lib" -I"/c/Users/Mario/AppData/Roaming/Sublime Text 3/Packages/Clang-Complete/lib"/include
-llibclang
C:\Users\Mario\AppData\Local\Temp\ccQ2wUAD.o: In function cc_result_new': C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_result.c:28: undef ined reference toclang_codeCompleteAt'
C:\Users\Mario\AppData\Local\Temp\ccQ2wUAD.o: In function cc_result_free': C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_result.c:45: undef ined reference toclang_disposeCodeCompleteResults'
C:\Users\Mario\AppData\Local\Temp\ccQ2wUAD.o: In function cc_result_entryname': C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_result.c:52: undef ined reference toclang_getNumCompletionChunks'
C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_result.c:53: undef
ined reference to clang_getCompletionAvailability' C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_result.c:56: undef ined reference toclang_getCompletionChunkKind'
C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_result.c:58: undef
ined reference to clang_getCompletionChunkText' C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_result.c:59: undef ined reference toclang_getCString'
C:\Users\Mario\AppData\Local\Temp\cciweKeg.o: In function cc_symbol_new': C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:31: undef ined reference toclang_createIndex'
C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:32: undef
ined reference to clang_parseTranslationUnit' C:\Users\Mario\AppData\Local\Temp\cciweKeg.o: In functioncc_symbol_free':
C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:47: undef
ined reference to clang_disposeTranslationUnit' C:\Users\Mario\AppData\Local\Temp\cciweKeg.o: In functioncc_symbol_reparse':
C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:58: undef
ined reference to clang_reparseTranslationUnit' C:\Users\Mario\AppData\Local\Temp\cciweKeg.o: In functioncc_symbol_diagnostic':
C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:64: undef
ined reference to clang_getDiagnosticSetFromTU' C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:65: undef ined reference toclang_getNumDiagnosticsInSet'
C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:68: undef
ined reference to clang_getDiagnosticInSet' C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:69: undef ined reference toclang_formatDiagnostic'
C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:70: undef
ined reference to clang_getCString' C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:72: undef ined reference toclang_disposeDiagnosticSet'
C:\Users\Mario\AppData\Local\Temp\cciweKeg.o: In function cc_symbol_def': C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:85: undef ined reference toclang_getFile'
C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:85: undef
ined reference to clang_getLocation' C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:86: undef ined reference toclang_getCursor'
C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:87: undef
ined reference to clang_getCursorDefinition' C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:88: undef ined reference toclang_Cursor_isNull'
C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:89: undef
ined reference to clang_getCursorReferenced' C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:90: undef ined reference toclang_Cursor_isNull'
C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:93: undef
ined reference to clang_getCursorLocation' C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:97: undef ined reference toclang_getSpellingLocation'
C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:98: undef
ined reference to clang_getFileName' C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/cc_symbol.c:98: undef ined reference toclang_getCString'
C:\Users\Mario\AppData\Local\Temp\ccUvsvzS.o: In function py_cs_count': C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/py_bind.c:66: undefin ed reference toclang_getNumCompletionChunks'
C:\Users\Mario\AppData\Local\Temp\ccUvsvzS.o: In function py_cs_trunk': C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/py_bind.c:77: undefin ed reference toclang_getCompletionChunkKind'
C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/py_bind.c:81: undefin
ed reference to clang_getCompletionChunkText' C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/py_bind.c:82: undefin ed reference toclang_getCString'
C:\Users\Mario\AppData\Local\Temp\ccUvsvzS.o: In function py_diagnostic_new': C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/py_bind.c:89: undefin ed reference toclang_getDiagnosticSetFromTU'
C:\Users\Mario\AppData\Local\Temp\ccUvsvzS.o: In function py_diagnostic_free': C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/py_bind.c:95: undefin ed reference toclang_disposeDiagnosticSet'
C:\Users\Mario\AppData\Local\Temp\ccUvsvzS.o: In function py_diagnostic_num': C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/py_bind.c:101: undefi ned reference toclang_getNumDiagnosticsInSet'
C:\Users\Mario\AppData\Local\Temp\ccUvsvzS.o: In function py_diagnostic': C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/py_bind.c:107: undefi ned reference toclang_getDiagnosticInSet'
C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/py_bind.c:108: undefi
ned reference to clang_formatDiagnostic' C:\Users\Mario\AppData\Roaming\Sublime Text 3\Packages\Clang-Complete/src/py_bind.c:109: undefi ned reference toclang_getCString'
collect2.exe: error: ld returned 1 exit status
make: *** [cc_lib] Error 1

Which Clang's version should be used?

@lvzixun
Copy link
Owner

lvzixun commented Sep 6, 2015

checkout window branch. libclang.dll and libcc.dll binary share lib is included in lib directory.

because libclang.dll and libcc.dll binary file is too large. so, I don't want to download dll from package controller. I suggest install plugin from clone repo at window platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants