Closed jonathanbernal closed 8 years ago
easy: building from a network drive is likely the cause of the error. Just use a normal disk drive.
Thank you for your input. Now I'm running into another issue. I added the additional includes to my VS 2015 project and for linking I added nanogui.lib. I don't know if I'm missing something.
1>------ Build started: Project: Nanogui-test, Configuration: Debug x64 ------ 1> main.cpp 1>c:\libraries\nanogui\nanogui\include\nanogui\common.h(14): fatal error C1083: Cannot open include file: 'Eigen/Core': No such file or directory ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I figured out what the issue was. All I needed was to specify the include directories for the dependencies stored in the /ext folder. However, I am getting the following error now. Am I missing any other dependencies that may not have been included in nanogui?
1>------ Build started: Project: Nanogui-test, Configuration: Debug x64 ------ 1> main.cpp 1>c:\libraries\nanogui\nanogui\include\nanogui\glutil.h(32): error C2065: 'GL_HALF_FLOAT': undeclared identifier ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
@thinkeneering I'm just getting same error as you.
I pushed a fix -- does it work with that?
@wjakob now it gives an error as in the ss http://i.hizliresim.com/mEOMz8.png
That's strange -- these are all standard OpenGL functions. The build works fine with AppVeyor on Visual Studio 2015, so I suspect that something is differerent about your setup. (incompatible VS version/ not updated to latest patch level / Git repository not checked out correctly)
Actually, my bad -- why don't you try again? There was an issue with symbols on windows.
dear @wjakob ,
Thanks for your help. I'm gonna try it again to night at home. After your fix and error in my last entry, I tried different things and I stopped at last step. Now it gives "cinder-v140.lib" error. There is no cinder-v140.lib file in libs folder.
In adition, I build my test codes with openframeworks library. It worked fine but I wanna use nanogui because it looks better then library I used in openframeworks.
Again thanks for your help.
Regards, Onder
@ndrshn Were you able to solve your issue? If not, I think the problem you're getting is that you're forgetting to include some of the dependencies in the /ext folder. You must include them all in your Visual Studio project. Additionally, make sure your installation path for nanogui is in your local drive, not on a network drive.
If you're missing GL_HALF_FLOAT, all you need to do is edit glutil.h. You'll notice there are several constants defined as GL... Each declaration for memory addresses is 4 bytes apart. So, if the address of the last declared constant is 0x04, for instance, you can declare GL_HALF_FLOAT as
#define GL_HALF_FLOAT 0x08
.
@thinkeneering Thanks for your help. I solved issue with github.
I ran CMake and then built the project that CMake generated with Visual Studio 2015. When running the project, I came across a linking error. I downloaded the source recursively and as submodules, but nothing worked. Any ideas on how I could solve this issue? Below is the build log from Visual Studio 2015.