I am having trouble compiling InterViews (iv-18) with cygwin on Windows 8.1. The problem seems related to the recipe for cursor.lo (cursor.cpp) contained in src/lib/IV-Win. Configuration seems to run without a hitch. The problem arises at the make level. Please see below:
Code: Select all
CCo@CC ~/iv
$ ./configure --prefix=`pwd` --without-x --build=x86_64-pc-cygwin
checking build system type... x86_64-pc-cygwin
checking host system type... x86_64-pc-cygwin
CYGWIN=yes
MINGW=no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking how to print strings... printf
checking for gcc... gcc
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 a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-pc-cygwin/bin/ld.exe
checking if the linker (/usr/x86_64-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-pc-cygwin file names to x86_64-pc-cygwin format.. . func_convert_file_noop
checking how to convert x86_64-pc-cygwin file names to toolchain format... func_ convert_file_noop
checking for /usr/x86_64-pc-cygwin/bin/ld.exe option to reload object files... - r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import| ^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_imp lib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports shar ed libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/x86_64-pc-cygwin/bin/ld.exe
checking if the linker (/usr/x86_64-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports shar ed libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports shar ed libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether the compiler implements namespaces... yes
checking whether the compiler has stringstream... yes
We are able to link a c++ program that uses streams
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking osfcn.h usability... no
checking osfcn.h presence... no
checking for osfcn.h... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/stat.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking sys/conf.h usability... no
checking sys/conf.h presence... no
checking for sys/conf.h... no
CYGWIN defined so make MSWwin version
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uid_t in sys/types.h... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for getcwd... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for regcomp... yes
checking for select... yes
checking for socket... yes
checking for strcspn... yes
checking for strerror... yes
checking for strtod... yes
checking for strtol... yes
checking for uname... yes
checking for prototype for gettimeofday... found
checking for type of signal functions... posix
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating src/Makefile
config.status: WARNING: 'src/Makefile.in' seems to ignore the --datarootdir set ting
config.status: creating src/bin/Makefile
config.status: WARNING: 'src/bin/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating src/bin/idemo/Makefile
config.status: WARNING: 'src/bin/idemo/Makefile.in' seems to ignore the --datar ootdir setting
config.status: creating src/bin/idraw/Makefile
config.status: WARNING: 'src/bin/idraw/Makefile.in' seems to ignore the --datar ootdir setting
config.status: creating src/bin/iclass/Makefile
config.status: WARNING: 'src/bin/iclass/Makefile.in' seems to ignore the --data rootdir setting
config.status: creating src/include/Makefile
config.status: WARNING: 'src/include/Makefile.in' seems to ignore the --dataroo tdir setting
config.status: creating src/lib/Makefile
config.status: WARNING: 'src/lib/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating config.h
config.status: creating src/include/ivstream.h
config.status: src/include/ivstream.h is unchanged
config.status: executing libtool commands
CCo@CC ~/iv
$ make
Making all in src
make[1]: Entering directory '/home/CCo/iv/src'
Making all in lib
make[2]: Entering directory '/home/CCo/iv/src/lib'
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -c Dispatch/d ispatcher.cpp -DDLL_EXPORT -DPIC -o Dispatch/.libs/dispatcher.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -c Dispatch/i ohandler.cpp -DDLL_EXPORT -DPIC -o Dispatch/.libs/iohandler.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -c IV-Win/bit map.cpp -DDLL_EXPORT -DPIC -o IV-Win/.libs/bitmap.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -c IV-Win/bru sh.cpp -DDLL_EXPORT -DPIC -o IV-Win/.libs/brush.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -c IV-Win/can vas.cpp -DDLL_EXPORT -DPIC -o IV-Win/.libs/canvas.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -c IV-Win/can vas16.cpp -DDLL_EXPORT -DPIC -o IV-Win/.libs/canvas16.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -c IV-Win/col or.cpp -DDLL_EXPORT -DPIC -o IV-Win/.libs/color.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -c IV-Win/cur sor.cpp -DDLL_EXPORT -DPIC -o IV-Win/.libs/cursor.o
In file included from /usr/include/w32api/windows.h:72:0,
from ../include/IV-Win/MWlib.h:42,
from IV-Win/cursor.cpp:34:
IV-Win/cursor.cpp: In static member function 'static void ivCursor::init()':
IV-Win/cursor.cpp:90:29: error: cast from 'LPSTR {aka char*}' to 'int' loses pre cision [-fpermissive]
arrow = new Cursor(cp2int IDC_ARROW);
^
IV-Win/cursor.cpp:91:33: error: cast from 'LPSTR {aka char*}' to 'int' loses pre cision [-fpermissive]
crosshairs = new Cursor(cp2int IDC_CROSS);
^
IV-Win/cursor.cpp:94:35: error: cast from 'LPSTR {aka char*}' to 'int' loses pre cision [-fpermissive]
hourglass = new Cursor(cp2int IDC_WAIT);
^
IV-Win/cursor.cpp:95:35: error: cast from 'LPSTR {aka char*}' to 'int' loses pre cision [-fpermissive]
upperleft = new Cursor(cp2int IDC_SIZENWSE);
^
IV-Win/cursor.cpp:96:36: error: cast from 'LPSTR {aka char*}' to 'int' loses pre cision [-fpermissive]
upperright = new Cursor(cp2int IDC_SIZENESW);
^
IV-Win/cursor.cpp:97:32: error: cast from 'LPSTR {aka char*}' to 'int' loses pre cision [-fpermissive]
lowerleft = new Cursor(cp2int IDC_SIZENESW);
^
IV-Win/cursor.cpp:98:36: error: cast from 'LPSTR {aka char*}' to 'int' loses pre cision [-fpermissive]
lowerright = new Cursor(cp2int IDC_SIZENWSE);
^
Makefile:482: recipe for target 'IV-Win/cursor.lo' failed
make[2]: *** [IV-Win/cursor.lo] Error 1
make[2]: Leaving directory '/home/CCo/iv/src/lib'
Making all in include
make[2]: Entering directory '/home/CCo/iv/src/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/CCo/iv/src/include'
Making all in bin
make[2]: Entering directory '/home/CCo/iv/src/bin'
Making all in idemo
make[3]: Entering directory '/home/CCo/iv/src/bin/idemo'
g++ -DHAVE_CONFIG_H -I. -I. -I../../include -g -O2 -c -o main.o main.cpp
/bin/sh ../../../libtool --mode=link g++ -g -O2 -mwindows -e _mainCRTStartup -o idemo main.o ../../lib/libIVhines.la -lgdi32 -lcomdlg32
libtool: link: cannot find the library `../../lib/libIVhines.la' or unhandled ar gument `../../lib/libIVhines.la'
Makefile:124: recipe for target 'idemo' failed
make[3]: *** [idemo] Error 1
make[3]: Leaving directory '/home/CCo/iv/src/bin/idemo'
make[2]: Leaving directory '/home/CCo/iv/src/bin'
make[1]: Leaving directory '/home/CCo/iv/src'
Thank you in advance.
Charles