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

Error building on windows #9

Open
Anthz opened this issue Jul 31, 2014 · 2 comments
Open

Error building on windows #9

Anthz opened this issue Jul 31, 2014 · 2 comments

Comments

@Anthz
Copy link

Anthz commented Jul 31, 2014

I've hit a brick wall trying to get this to compile for windows. I've tried different branches with different OS', cmake versions and visual studio editions with no success. When trying to build, I get 201 errors which mostly consist of mac line endings:

Error 1 Mac file format detected: please convert the source file to either DOS or UNIX format [Z:\home\USER\Documents\rift-sdk0.3.x\OpenTK.Rift\obj\x86\Debug\OVR.vcxproj] Z:\home\USER\Documents\rift-sdk0.3.x\OpenTK.Rift\LibOVR\Src\OVR_CAPI.cpp OpenTK.Rift

Many #if/#else mismatching errors:

Error 7 mismatched #if/#endif pair in file 'z:\home\USER\documents\rift-sdk0.3.x\opentk.rift\libovr\src\ovr_devicehandle.h' [Z:\home\USER\Documents\rift-sdk0.3.x\OpenTK.Rift\obj\x86\Debug\OVR.vcxproj] z:\home\USER\documents\rift-sdk0.3.x\opentk.rift\libovr\src\OVR_DeviceHandle.h 2 OpenTK.Rift

Cmake exits with code 3:

Error 375 The command "cd obj/x86/Debug && ((cmake -G"Visual Studio 12" -DCMAKE_CXX_FLAGS="/MP" -DPROJECT_NAME=OVR -DCMAKE_BUILD_TYPE=Debug -DINSTALL_DIR:PATH=../../../../bin/Debug/lib/x86/ ../../../Wrapper) || (/usr/local/bin/cmake -G"Visual Studio 12" -DCMAKE_CXX_FLAGS="/MP" -DPROJECT_NAME=OVR -DCMAKE_BUILD_TYPE=Debug -DINSTALL_DIR:PATH=../../../../bin/Debug/lib/x86/ ../../../Wrapper)) && ((cmake --build . --config Debug --target install) || (/usr/local/bin/cmake --build . --config Debug --target install)) && cd ../../../" exited with code 3. \net\dfs\home\USER\Documents\rift-sdk0.3.x\OpenTK.Rift\OpenTK.Rift.csproj 50 5 OpenTK.Rift

and finally OpenTK.Rift.dll could not be found:

Error 377 Metadata file '\net\dfs\home\USER\Documents\rift-sdk0.3.x\bin\Debug\OpenTK.Rift.dll' could not be found \net\dfs\home\USER\Documents\rift-sdk0.3.x\Test\Console\CSC Test.Console

Any ideas?

@thefiddler
Copy link
Contributor

Try opening the file in visual studio, then ctrl-a, ctrl-x, ctrl-v and save. This should fix the line endings issue.

@Anthz
Copy link
Author

Anthz commented Jul 31, 2014

Even if I edit the file (which I have many times), it's being generated by CMake on build so it creates a new one each time with the same Mac format.

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