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

Can't generate with CMake on VS2010 even with libQGLviewer compiled #64

Open
yunyu opened this issue Jul 1, 2014 · 10 comments
Open

Can't generate with CMake on VS2010 even with libQGLviewer compiled #64

yunyu opened this issue Jul 1, 2014 · 10 comments

Comments

@yunyu
Copy link

yunyu commented Jul 1, 2014

Here's my QGLViewer properties (removed the prefix as the README told me to):

The DLL is generated in octovis\src\extern\QGLViewer. However, when attempting to generate a VS2010 project with CMake, I get:

@ahornung
Copy link
Member

ahornung commented Jul 1, 2014

Looks like it can't find the compiled library (DLL) of QGLViewer. Did you recompile it successfully as described in the README?

@yunyu
Copy link
Author

yunyu commented Jul 1, 2014

Yeah:

@ahornung
Copy link
Member

ahornung commented Jul 1, 2014

According to your first screenshot QGLViewer is still ending up in the ...\debug\... path, so it's not accepting the removed prefixes (Did you change it after compilation? Try a make clean / removal of the CMake cache?)

@yunyu
Copy link
Author

yunyu commented Jul 1, 2014

I tried copying all of the contents of \debug\ into the QGLViewer root, and also deleted the CMake cache. Unfortunately, I'm still having the same issue. Is there anything wrong with my VS project settings?

@ahornung
Copy link
Member

ahornung commented Jul 1, 2014

Sorry, no idea since I don't have Windows with VS around. But you could still try the MinGW way, that creates fewer troubles in my experience.

@yunyu
Copy link
Author

yunyu commented Jul 1, 2014

Okay, thanks for your help anyways.

@codingcasp
Copy link

Hi, I had some issues too with that but I got it working in the end. The easiest way for me was to actually copy the .dll and the .lib to Windows\System32\

For some reason cmake never was happy until i did that, even though they were in the PATH in another folder.

Maybe give it a try, it might save you a lot of trouble.

@yunyu
Copy link
Author

yunyu commented Jul 2, 2014

I actually get the same error with the files copied to system32, and system32 is in my PATH.

@codingcasp
Copy link

I see that you have the QGLViewerd2.dll there. I think that's the debug verison and you probably need to run the Release build and copy those DLLs. I'll double check tomorrow at my office PC if my files have different names. Might explain everything :-)

Update : I just checked at the office. My files are indeed called QGLViewer2.lib, QGLViewer2.dll. Check if you only have the debug versions in your PATH and if so replace them and you're probably good to go!

@yunyu
Copy link
Author

yunyu commented Jul 7, 2014

I moved the files as you suggested, and then removed the 2 from the filenames, and then I had issues with linking (it seemed to be attempting to link against some DLLs instead of the libs). I eventually got it working on VS2010: https://gist.github.com/yunyu/8f7c4d5a685c3daaaa8b

Definitely not the proper way, but hey, it works (I've gotten pointcloud conversion and the viewer working).

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

No branches or pull requests

3 participants