Hi,
I have done some cross compiling (from linux to windows) for my OpenGL program before. Now I am using FTGL (font library) and I try to do cross compiling using Mingw32 (for linux). I already copied all the included and src files to my Mingw32 compiler's directory (and also the lib files). But I still got this error :
/tmp/ccAPEWsK.o:main.cpp:(.text+0x10fb): undefined reference to `FTPixmapFont::FTPixmapFont(char const*)'
/tmp/ccAPEWsK.o:main.cpp:(.text+0x1175): undefined reference to `FTSimpleLayout::SetFont(FTFont*)'
/tmp/ccAPEWsK.o:main.cpp:(.text+0x118b): undefined reference to `FTSimpleLayout::SetLineLength(float)'
/tmp/ccAPEWsK.o:main.cpp:(.text+0x1494): undefined reference to `FTSimpleLayout::Render(char const*, int, FTPoint, int)'
/tmp/ccAPEWsK.o:main.cpp:(.text+0x1524): undefined reference to `FTSimpleLayout::FTSimpleLayout()'
/tmp/ccAPEWsK.o:main.cpp:(.text+0x1543): undefined reference to `FTSimpleLayout::~FTSimpleLayout()'
collect2: ld returned 1 exit status
make: *** [all] Error 1
Here's my makefile:
i586-mingw32msvc-g++ -I/usr/i586-mingw32msvc/include -L/usr/i586-
mingw32msvc/lib main.cpp -o main.exe -lfreetype -lftgl -lglfw -lglfwdll
-lstdc++ -lgcc -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32
-lctl3d32 -lodbc32 -ladvapi32 -lodbc32 -lwsock32 -lopengl32 -lglu32 -lole32
-loleaut32 -luser32 -lkernel32 -luuid -mwindows
I already included the -lfreetype and -lftgl into the parameter, is anyone knows about this problem? Have anyone try to do cross compiling with FTGL library in linux? Thanks for the help.