Hello,
update:
Could solve the compile problem of the run.cxx file by changing line 96:
original: #if __MINGW32__
modified:
#if defined(__MINGW32__) || defined(__CYGWIN__)
Got a link problem now:
$ sh configure --prefix=/cygdrive/c/Programme/FLTK/fltk-2.0.x-r6149
--enable-cygwin --enable-gl --enable-threads --enab
le-jpeg --enable-zlib --enable-png --enable-cairo
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for nroff... /usr/bin/nroff
checking for htmldoc... no
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking whether the compiler recognizes bool as a built-in type... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/stdtypes.h usability... no
checking sys/stdtypes.h presence... no
checking for sys/stdtypes.h... no
checking for scandir... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for library containing pow... none required
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_destroy_decompress in -ljpeg... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzopen in -lz... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking libpng/png.h usability... yes
checking libpng/png.h presence... yes
checking for libpng/png.h... yes
checking for png_read_rows in -lpng... yes
checking for png_get_valid... yes
checking for png_set_tRNS_to_alpha... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking if libsupc++ is required... yes
configure: creating ./config.status
config.status: creating makeinclude
config.status: WARNING: makeinclude.in seems to ignore the --datarootdir
setting
config.status: creating fltk.list
config.status: WARNING: fltk.list.in seems to ignore the --datarootdir setting
config.status: creating fltk2-config
config.status: creating config.h
config.status: config.h is unchanged
Libs: -lpthread -lmsimg32 -lole32 -luuid -lcomctl32 -lwsock32 -lsupc++
System image libs: -lpng -lfltk2_images -ljpeg -lz
Local image libs:
OpenGL libs: -lglu32 -lopengl32
Build targets: static
/cygdrive/c/Programme/FLTK/fltk-2.0.x-r6149
$ make
=== making src ===
=== making images ===
Compiling FileIcon2.cxx...
Compiling Fl_Guess_Image.cxx...
Compiling fl_jpeg.cxx...
Compiling fl_png.cxx...
Compiling HelpDialog.cxx...
Compiling images_core.cxx...
Compiling pnmImage.cxx...
Compiling xpmFileImage.cxx...
/usr/bin/ar cr ../lib/libfltk2_images.a ...
=== making OpenGL ===
Compiling Fl_Gl_Choice.cxx...
Compiling Fl_Gl_Overlay.cxx...
Compiling Fl_Gl_Window.cxx...
Compiling gl_draw.cxx...
Compiling gl_start.cxx...
/usr/bin/ar cr ../lib/libfltk2_gl.a ...
=== making fluid ===
Compiling about_panel.cxx...
Compiling align_widget.cxx...
Compiling alignment_panel.cxx...
Compiling code.cxx...
Compiling CodeEditor.cxx...
Compiling coding_style.cxx...
Compiling coding_style_func.cxx...
Compiling Enumeration.cxx...
Compiling factory.cxx...
Compiling file.cxx...
Compiling fluid.cxx...
Compiling Fluid_Image.cxx...
Compiling fluid_img.cxx...
Compiling fluid_menus.cxx...
Compiling Fluid_Plugins.cxx...
Compiling FluidType.cxx...
Compiling function_panel.cxx...
Compiling FunctionType.cxx...
Compiling GroupType.cxx...
Compiling MenuType.cxx...
Compiling template_panel.cxx...
Compiling undo.cxx...
Compiling widget_panel.cxx...
Compiling WidgetClassType.cxx...
Compiling WidgetType.cxx...
Compiling WindowType.cxx...
Linking fluid2.exe...
../lib/libfltk2.a(drawtext.o):drawtext.cxx:(.text+0x4e9): undefined reference
to `__imp___pctype'
../lib/libfltk2.a(drawtext.o):drawtext.cxx:(.text+0x511): undefined reference
to `__isctype'
../lib/libfltk2.a(drawtext.o):drawtext.cxx:(.text+0x795): undefined reference
to `__isctype'
../lib/libfltk2.a(drawtext.o):drawtext.cxx:(.text+0x7c3): undefined reference
to `__imp___pctype'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0xcc9): undefined
reference to `__imp___pctype'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0xcee): undefined
reference to `__imp___pctype'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0xdcd): undefined
reference to `__isctype'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0xde3): undefined
reference to `__isctype'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0x17cd): undefined
reference to `__stricmp'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0x1956): undefined
reference to `__errno'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0x1960): undefined
reference to `__errno'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0x21da): undefined
reference to `__imp___pctype'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0x22ac): undefined
reference to `__stricmp'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0x23a4): undefined
reference to `__strnicmp'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0x23d2): undefined
reference to `__strnicmp'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0x25d6): undefined
reference to `__imp___pctype'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0x2674): undefined
reference to `__strnicmp'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0x2734): undefined
reference to `__isctype'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0x2856): undefined
reference to `__isctype'
../lib/libfltk2.a(FileChooser2.o):FileChooser2.cxx:(.text+0x2920): undefined
reference to `__stricmp'
collect2: ld returned 1 exit status
make[1]: *** [fluid2.exe] Error 1
make: *** [all] Error 2
________________________________
Von: Berninger Udo
Gesendet: Mo 04.08.2008 20:18
An: [EMAIL PROTECTED]
Betreff: AW: Problem making FLTK with cygwin
Hello,
update:
if I just extract the tar file, go to the fltk directory and type make, I get
the following error:
$ make
Makefile:26: makeinclude: No such file or directory
if test -f config.status; then \
./config.status --recheck; \
./config.status; \
else \
./configure; \
fi
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for nroff... /usr/bin/nroff
checking for htmldoc... no
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
: integer expression expected 2
: integer expression expected 4
: integer expression expected 4
: integer expression expected 4
: integer expression expected 4
checking whether the compiler recognizes bool as a built-in type... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking sys/select.h usability... no
checking sys/select.h presence... no
checking for sys/select.h... no
checking sys/stdtypes.h usability... no
checking sys/stdtypes.h presence... no
checking for sys/stdtypes.h... no
checking for scandir... no
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strlcat... no
checking for strlcpy... no
checking for library containing pow... none required
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzopen in -lz... yes
checking png.h usability... no
checking png.h presence... no
checking for png.h... no
checking libpng/png.h usability... no
checking libpng/png.h presence... no
checking for libpng/png.h... no
checking pthread.h usability... no
checking pthread.h presence... no
checking for pthread.h... no
checking for pthread_create in -lpthread... yes
checking for pthread_create using -pthread... no
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking if libsupc++ is required... yes
configure: creating ./config.status
config.status: creating makeinclude
config.status: WARNING: makeinclude.in seems to ignore the --datarootdir
setting
config.status: creating fltk.list
config.status: WARNING: fltk.list.in seems to ignore the --datarootdir setting
config.status: creating fltk2-config
config.status: creating config.h
Libs: -lpthread -lmsimg32 -lole32 -luuid -lcomctl32 -lwsock32 -lsupc++
System image libs: -lfltk2_png -lfltk2_images -lfltk2_jpeg -lz
Local image libs: ../lib/libfltk2_jpeg.a ../lib/libfltk2_png.a
OpenGL libs: -lglu32 -lopengl32
Build targets: static
=== making src ===
Compiling add_idle.cxx...
Compiling addarc.cxx...
Compiling addcurve.cxx...
Compiling Adjuster.cxx...
Compiling AlignGroup.cxx...
Compiling AnsiWidget.cxx...
Compiling args.cxx...
Compiling BarGroup.cxx...
Compiling bmpImage.cxx...
Compiling Browser.cxx...
Browser.cxx: In member function `virtual void BButton::layout()':
Browser.cxx:1751: warning: passing `float' for converting 1 of `void
fltk::Rectangle::h(int)'
Compiling Browser_load.cxx...
Compiling Button.cxx...
Compiling CheckButton.cxx...
Compiling Choice.cxx...
Compiling clip.cxx...
Compiling Clock.cxx...
Compiling Color.cxx...
Compiling color_chooser.cxx...
Compiling ComboBox.cxx...
Compiling compose.cxx...
Compiling Cursor.cxx...
Compiling CycleButton.cxx...
Compiling default_glyph.cxx...
Compiling Dial.cxx...
Compiling DiamondBox.cxx...
Compiling dnd.cxx...
Compiling drawtext.cxx...
drawtext.cxx: In function `void wrap(const char*, const char*, float, float,
float, float (*)(const char*, int))':
drawtext.cxx:446: warning: converting to `int' from `float'
Compiling EngravedLabel.cxx...
Compiling error.cxx...
Compiling event_key_state.cxx...
Compiling file_chooser.cxx...
Compiling FileBrowser.cxx...
Compiling FileChooser.cxx...
Compiling FileChooser2.cxx...
Compiling FileIcon.cxx...
Compiling FileInput.cxx...
Compiling filename_absolute.cxx...
Compiling filename_ext.cxx...
Compiling filename_isdir.cxx...
Compiling filename_list.cxx...
Compiling filename_match.cxx...
Compiling filename_name.cxx...
Compiling fillrect.cxx...
Compiling Fl_Menu_Item.cxx...
Compiling FloatInput.cxx...
Compiling fltk_theme.cxx...
Compiling Font.cxx...
Compiling gifImage.cxx...
gifImage.cxx: In member function `virtual bool fltk::gifImage::fetch()':
gifImage.cxx:105: error: `U32' undeclared (first use this function)
gifImage.cxx:105: error: (Each undeclared identifier is reported only once for
each function it appears in.)
gifImage.cxx:105: error: expected `;' before "colormap"
gifImage.cxx:109: error: expected `;' before "r"
gifImage.cxx:110: error: expected `;' before "g"
gifImage.cxx:111: error: expected `;' before "b"
gifImage.cxx:112: error: `colormap' undeclared (first use this function)
gifImage.cxx:112: error: `r' undeclared (first use this function)
gifImage.cxx:112: error: `g' undeclared (first use this function)
gifImage.cxx:112: error: `b' undeclared (first use this function)
gifImage.cxx:181: error: expected `;' before "r"
gifImage.cxx:182: error: expected `;' before "g"
gifImage.cxx:183: error: expected `;' before "b"
gifImage.cxx:314: error: `to' undeclared (first use this function)
gifImage.cxx:314: error: expected primary-expression before ')' token
make[1]: *** [gifImage.o] Error 1
make: *** [all] Error 2
Kind regards,
Udo
________________________________
Von: Berninger Udo
Gesendet: Mo 04.08.2008 15:40
An: [EMAIL PROTECTED]
Betreff: Problem making FLTK with cygwin
Hello,
I am running cygwin with Windows XP Professional Version 2002, service pack 2,
on a Lenovo AMD Athlon 64 X2 Dual Core Processor 3800+.
I tried to make FLTK but I got an error, details attached.
Any suggestions?
Kind regards,
Udo
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs