Inuart wrote:
If I want to compile everything at the same time to make a standalone executable what steps do I need to follow?
I assume you've already compiled Horde3D with:
Code:
$ cd $HORDE3D_DIR && cmake .. && make && sudo make install
Just in case, make sure that ldconfig detects your Horde3D library:
Code:
# sudo ldconfig -p | grep Horde3D
libHorde3DUtils.so (libc6,x86-64) => /usr/local/lib/libHorde3DUtils.so
libHorde3D.so (libc6,x86-64) => /usr/local/lib/libHorde3D.so
The procedure is simple, just create your test program:
Code:
$ echo '
#include <cstdio>
#include "horde3d/Horde3D.h"
int main()
{
printf("%s", h3dGetVersionString());
return 0;
}
' > main.cpp
and compile it
Code:
$ gcc main.cpp -lHorde3D -o test
If it fails, that probably means you haven't added /usr/local/include to search path.
Code:
export CXX_FLAGS="$CXX_FLAGS -I/usr/local/include"
and run the test
Code:
$ ./test
You should see a string like `Horde3D 1.0.0 Beta5`.