Previous OS: Windows 7
New OS: Kubuntu 12.04 (fully updated)
So, I have a project I was working on awhile ago using SFML 2.0 and it had no problems. Recently I decided to start working on that project again, but I have since switched operating systems. I downloaded the latest linux sources and compiled SFML 2.0 using CMake and I have all the dependencies installed.
BUILD_SHARED_LIBS - Yes
CMAKE_BUILD_TYPE - (I did both)
CMAKE_CODEBLOCKS_EXECUTABLE - /usr/bin/codeblocks
CMAKE_INSTALL_PREFIX - /usr/local
GLEW_INCLUDE_PATH - /usr/include
GLEW_LIBRARY - /usr/lib/i386-linux-gnu/libGLEW.so
SFML_BUILD_DOC - no
SFML_BUILD_EXAMPLES - no
SFML_INSTALL_PKGCONFIG_FILES - yes (could someone clarify what this does exactly?)
I managed to compile the libraries with no problems whatsoever in Code::Blocks
This is where it starts getting confusing to me.
I have .so, .so.2, and .so.2.0 files for everything. Could someone explain to me what the difference is between each of these and whether I need all of them? I was only expecting it to produce .so files.
Anyways, I went into my Code::Blocks project settings and configured it, telling it where the include and lib folders were. I am linking to opengl32 and glu32 properly. I am also linking to sfml-graphics, sfml-window, and sfml-system (those were the only ones I needed on Windows anyways... I don't see why it'd be different on Linux)
When I try to compile, I get tons of errors that read like this
error: 'class sf::<class name>' has no member named '<member function name>'
I assumed that you had changed the function names(2.0 is still in development after all), but when I looked into it, I found that this is not the case. Not only does the Code::Blocks autocomplete know those member functions exist, but I even looked in the SFML header files to make sure. All the member functions I am trying to use definitely exist.
Any ideas on what I'm doing wrong?