Hello, Hello
I try to use CEGUI with a simple main :
# include "CEGUI/CEGUI.h"
# include "CEGUI/RendererModules/OpenGLGUIRenderer/openglrenderer.h"
int main (void)
{
CEGUI::OpenGLRenderer* myrend = new CEGUI::OpenGLRenderer (0, 800, 600);
CEGUI::System* sys = new CEGUI::System(myrend);
CEGUI::System::getSingleton().renderGUI();
return 0;
}
and my makefile compile with :
all:
$(CC) $(CFLAGS) $(OBJ) -o $(EXEC) -I/usr/include/CEGUI -I/usr/includeCEGUI/RendererModules/OpenGLGUIRenderer/openglrenderer.h -I/usr/local/lib
-I/usr/local/include -I/usr/local/include/CEGUI -lCEGUIBase -lCEGUIOpenGLRenderer -lCEGUISampleHelper
It is compiling but when I execute I got this error:
./test: error while loading shared libraries: libCEGUISampleHelper.so.1: cannot open shared object file: No such file or directory
I checked and I have this file in /usr/local/lib
What can I do ?
Compil project with CEGUI
Moderators: CEGUI MVP, CEGUI Team
Tho I have not been developing in linux for quite some time (i used to a lot), my recollection is that LD_LIBRARY_PATH (load library path) is pertinent for executables that require shared object libraries that are not in the standard location for shared libraries. The load library path specifies a semi-colon separated list of directories containing additional paths for the run-time linker to look.
At compile time just make sure that you specify -L pathname to tell the linker where to find object libraries. So use -L not -I for library directories.
At compile time just make sure that you specify -L pathname to tell the linker where to find object libraries. So use -L not -I for library directories.
I build cegui from source, tho I do not include it in my project. I just have a separate project for it. I really dont think including the source in your project is the answer. I think you just need to play with your compiler/linker options to make sure the compiler/linker know where to find the libraries.
Who is online
Users browsing this forum: No registered users and 3 guests