jhkorhonen / MOODS

MOODS: Motif Occurrence Detection Suite
Other
96 stars 12 forks source link

Windows installation #33

Open denklewer opened 3 years ago

denklewer commented 3 years ago

Hello, does your project support windows? have a lot of errors when trying to install using conda python 3.9.1 + latest visual studio

Error message below:

moods_parsers.cpp
core/moods_parsers.cpp(57): error C2146: syntax error: missing ')' before identifier 'or'
core/moods_parsers.cpp(57): error C2065: 'or': undeclared identifier
core/moods_parsers.cpp(57): error C2146: syntax error: missing ';' before identifier 'n'
core/moods_parsers.cpp(57): error C2059: syntax error: ')'
core/moods_parsers.cpp(58): error C2059: syntax error: 'return'
core/moods_parsers.cpp(61): error C2059: syntax error: 'for'
core/moods_parsers.cpp(61): error C2143: syntax error: missing ')' before ';'
core/moods_parsers.cpp(61): error C2143: syntax error: missing ';' before '<'
core/moods_parsers.cpp(61): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
core/moods_parsers.cpp(61): error C2059: syntax error: '++'
core/moods_parsers.cpp(61): error C2059: syntax error: ')'
core/moods_parsers.cpp(61): error C2143: syntax error: missing ';' before '{'
core/moods_parsers.cpp(61): error C2447: '{': missing function header (old-style formal list?)
core/moods_parsers.cpp(67): error C2059: syntax error: 'return'
core/moods_parsers.cpp(71): error C3861: 'read_table': identifier not found
core/moods_parsers.cpp(76): error C2146: syntax error: missing ')' before identifier 'or'
core/moods_parsers.cpp(76): error C2065: 'or': undeclared identifier
core/moods_parsers.cpp(76): error C2146: syntax error: missing ';' before identifier 'n'
core/moods_parsers.cpp(76): error C2059: syntax error: ')'
core/moods_parsers.cpp(77): error C2059: syntax error: 'return'
core/moods_parsers.cpp(80): error C2059: syntax error: 'for'
core/moods_parsers.cpp(80): error C2143: syntax error: missing ')' before ';'
core/moods_parsers.cpp(80): error C2143: syntax error: missing ';' before '<'
core/moods_parsers.cpp(80): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
core/moods_parsers.cpp(80): error C2059: syntax error: '++'
core/moods_parsers.cpp(80): error C2059: syntax error: ')'
core/moods_parsers.cpp(80): error C2143: syntax error: missing ';' before '{'
core/moods_parsers.cpp(80): error C2447: '{': missing function header (old-style formal list?)
core/moods_parsers.cpp(86): error C2059: syntax error: 'if'
core/moods_parsers.cpp(86): error C2143: syntax error: missing ';' before '{'
core/moods_parsers.cpp(86): error C2447: '{': missing function header (old-style formal list?)
core/moods_parsers.cpp(89): error C2059: syntax error: 'else'
core/moods_parsers.cpp(89): error C2143: syntax error: missing ';' before '{'
core/moods_parsers.cpp(89): error C2447: '{': missing function header (old-style formal list?)
core/moods_parsers.cpp(96): error C3861: 'read_table': identifier not found
core/moods_parsers.cpp(165): error C2653: 'tools': is not a class or namespace name
core/moods_parsers.cpp(165): error C3861: 'log_odds': identifier not found
core/moods_parsers.cpp(168): error C2059: syntax error: '}'
core/moods_parsers.cpp(168): error C2143: syntax error: missing ';' before '}'
core/moods_parsers.cpp(169): error C2143: syntax error: missing ';' before '}'
core/moods_parsers.cpp(169): error C2059: syntax error: '}'
jhkorhonen commented 3 years ago

Windows is not officially supported, as I don't have resources to make sure everything works on Windows.

That said, I think I've had reports of MOODS compiling on Windows, but that was probably with cygwin. I have no experience with Visual Studio, and without more details I can only speculate, but looks like MSVC doesn't like something in the code. I believe Visual Studio supports clang as compiler, so you may want to try with that instead, but I'm again speculating.