Re: [GtkGLExt] GtkGLExt - (cross) building troubles



Peter Sivak wrote:
> Hello again,
> still no success with building "gtkglextmm" library :-( .
> 
> Could someone tell me from this error:
> 
>     configure:20212: checking for GtkGLExt - version >= 1.0.0
>     configure:20336: i386-mingw32-gcc -o conftest.exe -g -O2 -mms-bitfields
> -I/windows/include/gtkglext-1.0 -I/windows/lib/gtkglext-1.0/include
> -I/windows/include/gtk-2.0 -I/windows/lib/gtk-2.0/include
> -I/windows/include/pango-1.0 -I/windows/include/glib-2.0
> -I/windows/lib/glib-2.0/include -I/windows/include/cairo
> -I/windows/include/freetype2 -I/windows/include -I/windows/include/libpng12
> -I/windows/include/atk-1.0  ^M   conftest.c -L/windows/lib
> -lgtkglext-win32-1.0 -lgdkglext-win32-1.0 -lglu32 -lopengl32 -luser32
> -lkernel32 -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgio-2.0
> -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lpango-1.0
> -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl  ^M  >&5
>     i386-mingw32-gcc: ^M: No such file or directory
> 
> "which" file or directory couldn't be found?
> 
> P.S.: And what do the "^M" symbols from the error message mean (maybe the
> error is because of that "strange" symbols)?

Yes, ^M is the cause of this error. ^M = character number 13. Unix tools
traditionally expect line endings as character 10, while DOS/Windows
tools as two characters: 13+10. Although most newer tools can handle
text files with both line endings, bash/sh under Windows may (for speed)
still insist on having scripts with Unix line endings.

The bottom line: you have a script with Windows line endings, while
something along the way expects only Unix line endings, and treats
character 13 (^M) like something strange --- e.g. additional filename on
the command-line, a filename that of course doesn't exist.

Try to convert the "configure" script to Unix line endings (any advanced
text editor should do it, I can do it with Emacs under Windows, others
may advice something else) and then try again.

Michalis


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]