Reputation:
I was trying to get glew working on my new Ubuntu. No problem building(seems) but during the runtime this error shows:
error while loading shared libraries: libGlew.so.1.12: cannot open shared object file: No such file or directory
So I went to the /usr/lib and found out I have libGlew.so.1.10. How can i configure Code::Blocks to use the right libglew.so file? Source code seems to be irrelevant to the problem, but if it is needed I will add the source.
IDE: Code::Blocks; OS: Ubuntu 14.04.2
Edit: I think I found the problem. The tgz package from GLEW website doesn't include the .so files (Why?).I would appreciate if somebody could share me a link to the correct version of .so files. I have been trying to find them for few hours.
Upvotes: 1
Views: 631
Reputation: 1044
You must link your project to the library. In order to to this, right click on the project -> build options -> find the Linker settings tab -> and then click on the Add button and set the path to the .so file
Upvotes: 1