$ pacman -S mingw-w64-x86_64-toolchain
tar -xf fltk-1.3.3-source.tar.gz
cd fltk-1.3.3/
./configure --enable-threads --enable-localjpeg --enable-localzlib --enable-localpng
checking build system type... ./config.guess: unable to guess system type
This script, last modified 2013-06-10, has failed to recognizethe operating system you are using. It is advised that youdownload the most up to date version of the config scripts from
and
If the version you run (./config.guess) is already up to date, pleasesend the following data and any information you think might bepertinent to <config-...@gnu.org> in order to provide the neededinformation to handle your system.
config.guess timestamp = 2013-06-10
uname -m = x86_64uname -r = 2.4.1(0.294/5/3)uname -s = MSYS_NT-10.0uname -v = 2016-02-03 10:57
/usr/bin/uname -p = unknown/bin/uname -X =
hostinfo =/bin/universe =/usr/bin/arch -k =/bin/arch = x86_64/usr/bin/oslevel =/usr/convex/getsysinfo =
UNAME_MACHINE = x86_64UNAME_RELEASE = 2.4.1(0.294/5/3)UNAME_SYSTEM = MSYS_NT-10.0UNAME_VERSION = 2016-02-03 10:57configure: error: cannot guess build type; you must specify one
$ ./configure --enable-threads --enable-localjpeg --enable-localzlib --enable-localpngchecking build system type... x86_64-pc-msyschecking host system type... x86_64-pc-msyschecking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.exechecking for suffix of executables... .exechecking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking for g++... g++checking whether we are using the GNU C++ compiler... yeschecking whether g++ accepts -g... yeschecking for a BSD-compatible install... /usr/bin/install -cchecking for nroff... nochecking for doxygen... nochecking for ranlib... ranlibchecking for ar... /mingw64/bin/archecking for windres... /mingw64/bin/windreschecking how to run the C preprocessor... gcc -Echecking for grep that handles long lines and -e... /usr/bin/grepchecking for egrep... /usr/bin/grep -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking size of short... 2checking size of int... 4checking size of long... 4checking whether byte ordering is bigendian... nochecking whether the compiler recognizes bool as a built-in type... yeschecking for dirent.h that defines DIR... yeschecking for library containing opendir... none requiredchecking sys/select.h usability... nochecking sys/select.h presence... nochecking for sys/select.h... nochecking sys/stdtypes.h usability... nochecking sys/stdtypes.h presence... nochecking for sys/stdtypes.h... nochecking whether we have the POSIX compatible scandir() prototype... nochecking for scandir... nochecking for vsnprintf... yeschecking for snprintf... yeschecking for strings.h... (cached) yeschecking for strcasecmp... yeschecking for strlcat... nochecking for strlcpy... nochecking locale.h usability... yeschecking locale.h presence... yeschecking for locale.h... yeschecking for localeconv... yeschecking for library containing pow... none requiredchecking for special C compiler options needed for large files... nochecking for _FILE_OFFSET_BITS value needed for large files... 64checking for long long int... yeschecking for library containing dlsym... nochecking dlfcn.h usability... nochecking dlfcn.h presence... nochecking for dlfcn.h... nochecking alsa/asoundlib.h usability... nochecking alsa/asoundlib.h presence... nochecking for alsa/asoundlib.h... nochecking pthread.h usability... yeschecking pthread.h presence... yeschecking for pthread.h... yeschecking for pthread_create using -lpthreads... nochecking for pthread_create using -lpthread... yeschecking for X... no./configure: line 410: test: aborting.: integer expression expectedconfigure: error: Configure could not find required X11 libraries./configure: line 299: return: aborting.: numeric argument required./configure: line 309: exit: aborting.: numeric argument required
$ ./configure --enable-threads --enable-localjpeg --enable-localzlib --enable-localpngchecking build system type... x86_64-unknown-cygwinchecking host system type... x86_64-unknown-cygwinchecking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.exechecking for suffix of executables... .exechecking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking for g++... g++checking whether we are using the GNU C++ compiler... yeschecking whether g++ accepts -g... yeschecking for a BSD-compatible install... /usr/bin/install -cchecking for nroff... /usr/bin/nroffchecking for doxygen... nochecking for ranlib... ranlibchecking for ar... /cygdrive/c/msys64/mingw64/bin/archecking for windres... /cygdrive/c/msys64/mingw64/bin/windreschecking how to run the C preprocessor... gcc -Echecking for grep that handles long lines and -e... /usr/bin/grepchecking for egrep... /usr/bin/grep -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking size of short... 2checking size of int... 4checking size of long... 4checking whether byte ordering is bigendian... nochecking whether the compiler recognizes bool as a built-in type... yeschecking for dirent.h that defines DIR... yeschecking for library containing opendir... none requiredchecking sys/select.h usability... nochecking sys/select.h presence... nochecking for sys/select.h... nochecking sys/stdtypes.h usability... nochecking sys/stdtypes.h presence... nochecking for sys/stdtypes.h... nochecking whether we have the POSIX compatible scandir() prototype... nochecking for scandir... nochecking for vsnprintf... yeschecking for snprintf... yeschecking for strings.h... (cached) yeschecking for strcasecmp... yeschecking for strlcat... nochecking for strlcpy... nochecking locale.h usability... yeschecking locale.h presence... yeschecking for locale.h... yeschecking for localeconv... yeschecking for library containing pow... none requiredchecking for special C compiler options needed for large files... nochecking for _FILE_OFFSET_BITS value needed for large files... 64checking for long long int... yeschecking for library containing dlsym... nochecking dlfcn.h usability... nochecking dlfcn.h presence... nochecking for dlfcn.h... nochecking GL/gl.h usability... yeschecking GL/gl.h presence... yeschecking for GL/gl.h... yeschecking GL/glu.h usability... yeschecking GL/glu.h presence... yeschecking for GL/glu.h... yeschecking if GCC supports -fno-exceptions... yeschecking if GCC supports -fno-strict-aliasing... yeschecking if ld supports -Bsymbolic-functions... yeschecking if toolchain supports sections... yes
Configuration Summary------------------------------------------------------------------------- Directories: prefix=/usr/local bindir=${exec_prefix}/bin datadir=${datarootdir} datarootdir=${prefix}/share exec_prefix=${prefix} includedir=${prefix}/include libdir=${exec_prefix}/lib mandir=${datarootdir}/man Graphics: GDIImage Libraries: JPEG=Builtin PNG=Builtin ZLIB=Builtin Large Files: YES OpenGL: YES Threads: YESconfigure: creating ./config.statusconfig.status: creating makeincludeconfig.status: creating fltk.listconfig.status: creating fltk-configconfig.status: creating fltk.specconfig.status: creating FL/Makefileconfig.status: creating config.h
make[1]: /cygdrive/c/msys64/mingw64/bin/ar: Command not found
The C compiler identification is GNU 5.3.0
The CXX compiler identification is GNU 5.3.0
Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe
Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe
Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Check if the system is big endian
Searching 16 bit integer
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of unsigned short
Check size of unsigned short - done
Using unsigned short
Check if the system is big endian - little endian
Check size of short
Check size of short - done
Check size of int
Check size of int - done
Check size of long
Check size of long - done
Check size of long long
Check size of long long - done
Looking for dlsym
Looking for dlsym - not found
Looking for localeconv
Looking for localeconv - found
Looking for png_get_valid
Looking for png_get_valid - not found
Looking for png_set_tRNS_to_alpha
Looking for png_set_tRNS_to_alpha - not found
Looking for scandir
Looking for scandir - not found
Looking for snprintf
Looking for snprintf - found
Looking for strcasecmp
Looking for strcasecmp - found
Looking for strlcat
Looking for strlcat - not found
Looking for strlcpy
Looking for strlcpy - not found
Looking for vsnprintf
Looking for vsnprintf - found
Found PkgConfig: C:/msys64/mingw64/bin/pkg-config.exe (found version "0.29")
Found OpenGL: opengl32
Looking for glXGetProcAddressARB
Looking for glXGetProcAddressARB - not found
Looking for pthread.h
Looking for pthread.h - found
Looking for pthread_create
Looking for pthread_create - not found
Looking for pthread_create in pthreads
Looking for pthread_create in pthreads - not found
Looking for pthread_create in pthread
Looking for pthread_create in pthread - not found
Check if compiler accepts -pthread
Check if compiler accepts -pthread - yes
Found Threads: TRUE
Found ZLIB: C:/msys64/mingw64/lib/libz.dll.a (found version "1.2.8")
cannot find system jpeg library - using built-in
cannot find system png library - using built-in
CMake Warning (dev) at CMake/export.cmake:48 (set):
Policy CMP0053 is not set: Simplify variable reference and escape sequence
evaluation. Run "cmake --help-policy CMP0053" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
For input:
'@FLTK_INCLUDE_DIRS@'
the old evaluation rules produce:
'D:/fltk/build-1.3.3;D:/fltk/fltk-1.3.3'
but the new evaluation rules produce:
'@FLTK_INCLUDE_DIRS@'
Using the old result for compatibility since the policy is not set.
Call Stack (most recent call first):
CMakeLists.txt:50 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMake/export.cmake:49 (set):
Policy CMP0053 is not set: Simplify variable reference and escape sequence
evaluation. Run "cmake --help-policy CMP0053" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
For input:
'@FLTK_BINARY_DIR@'
the old evaluation rules produce:
'D:/fltk/build-1.3.3'
but the new evaluation rules produce:
'@FLTK_BINARY_DIR@'
Using the old result for compatibility since the policy is not set.
Call Stack (most recent call first):
CMakeLists.txt:50 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMake/install.cmake:46 (set):
Policy CMP0053 is not set: Simplify variable reference and escape sequence
evaluation. Run "cmake --help-policy CMP0053" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
For input:
'${CMAKE_INSTALL_PREFIX}/@FLTK_CONFIG_PATH@'
the old evaluation rules produce:
'C:/Program Files (x86)/FLTK/CMake'
but the new evaluation rules produce:
'C:/Program Files (x86)/FLTK/@FLTK_CONFIG_PATH@'
Using the old result for compatibility since the policy is not set.
Call Stack (most recent call first):
CMakeLists.txt:62 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
Configuring done
svn co http://svn.easysw.com/public/fltk/fltk/branches/branch-1.3/ fltk-1.3
$ cmake CMakeLists.txt -DOPTION_BUILD_EXAMPLES=NO -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=D:\fltk\fltk-1.3.3-- Building for: Visual Studio 14 2015 //<---- why!!! my compiler is GCC, goddammit[...]
CMake Warning (dev) at CMake/export.cmake:48 (set): Policy CMP0053 is not set: Simplify variable reference and escape sequence evaluation. Run "cmake --help-policy CMP0053" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
For input:
'@FLTK_INCLUDE_DIRS@'
the old evaluation rules produce:
'D:/fltk/fltk-1.3.3;D:/fltk/fltk-1.3.3'
but the new evaluation rules produce:
'@FLTK_INCLUDE_DIRS@'
Using the old result for compatibility since the policy is not set.Call Stack (most recent call first): CMakeLists.txt:50 (include)This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMake/export.cmake:49 (set): Policy CMP0053 is not set: Simplify variable reference and escape sequence evaluation. Run "cmake --help-policy CMP0053" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
For input:
'@FLTK_BINARY_DIR@'
the old evaluation rules produce:
'D:/fltk/fltk-1.3.3'
but the new evaluation rules produce:
'@FLTK_BINARY_DIR@'
Using the old result for compatibility since the policy is not set.Call Stack (most recent call first): CMakeLists.txt:50 (include)This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMake/install.cmake:46 (set): Policy CMP0053 is not set: Simplify variable reference and escape sequence evaluation. Run "cmake --help-policy CMP0053" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
For input:
'${CMAKE_INSTALL_PREFIX}/@FLTK_CONFIG_PATH@'
the old evaluation rules produce:
'D:fltkfltk-1.3.3/CMake'
but the new evaluation rules produce:
'D:fltkfltk-1.3.3/@FLTK_CONFIG_PATH@'
Using the old result for compatibility since the policy is not set.Call Stack (most recent call first): CMakeLists.txt:62 (include)This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done-- Generating doneCMake Warning: Manually-specified variables were not used by the project:
CMAKE_BUILD_TYPE
-- Build files have been written to: D:/fltk/fltk-1.3.3
$ make=== making jpeg ===Archiving ../lib/libfltk_jpeg.a...make[1]: /cygdrive/c/msys64/mingw64/bin/ar: Command not foundMakefile:129: Rule for target „../lib/libfltk_jpeg.a“ scheiterte //???????????? What is "target ../lib/..."??????????make[1]: *** [../lib/libfltk_jpeg.a] Error 127Makefile:24: Rule for target „all“ failedmake: *** [all] Error 1
$ make install=== installing FL ===Installing include files in /usr/local/include...=== installing jpeg ===Installing ../lib/libfltk_jpeg.a in /usr/local/lib...Installing jpeg headers in /usr/local/include/FL/images...=== installing zlib ===Installing libfltk_z.a in /usr/local/lib...Installing zlib headers in /usr/local/include/FL/images...=== installing png ===Installing libfltk_png.a in /usr/local/lib...Installing png headers in /usr/local/include/FL/images...=== installing src ===Installing libraries in /usr/local/lib...=== installing fluid ===Installing FLUID in /usr/local/bin...=== installing test ===Installing example programs to /usr/local/share/doc/fltk/examples...=== installing documentation ===Installing documentation files in /usr/local/share/doc/fltk ...Installing man pages in /usr/local/share/man ...
Please use current svn and just run 'make'. This ought to work. The
instructions in Article #598 lack this important information.
Code hier eingeben...
An MinGW terminal looks like this:
As you can see, the "MinGW terminal" does not recognize the commands make or automake, however, they are added to the PATH.
echoing the PATH in an MSYS shell gives me the same file paths as the built-in Windows editor (see above). So I am not sure if I completed this step correctly.
I checked out the latest svn copy, unzipped it, went into the directory and ran "make distclean".
The result:
Felix@FELIX ~$ gcc --version
Felix@FELIX /d/fltk/fltk-1.3$ lsANNOUNCEMENT DartConfig.cmake README.OSX.txt cairo fltk.spec.in mac_endianness.hCHANGES FL README.Unix.txt configh.cmake.in fltk.xpm makeinclude.inCHANGES_1.0 GL README.abi-version.txt configh.in fluid makesrcdistCHANGES_1.1 Makefile VERSION configure.in forms.h miscCMake README abi-version.cmake.in documentation ide pngCMakeLists.txt README.CMake.txt abi-version.ide examples install-sh srcCOPYING README.Cairo.txt abi-version.in fltk-config.in jpeg testCREDITS README.MSWindows.txt autogen.sh fltk.list.in lib zlib
Felix@FELIX /d/fltk/fltk-1.3$ make distcleanMakefile:19: makeinclude: No such file or directoryautoconf/mingw/autoconf-2.68: line 501: /mingw/bin/autom4te-2.68: No such file or directory/mingw/autoconf-2.68: line 501: exec: /mingw/bin/autom4te-2.68: cannot execute: No such file or directorymake: *** [configure] Error 126
Why does this fail? autom4te-2.68 is in "C:\MinGW\bin", the mingw32 installation directory, that I added to the PATH. It should be found.
What is "makeinclude"?
I am still not any closer to building FLTK and actually doing something with it, if anybody could help, that'd be great.
Thanks in advance,
Felix
Hi. I am trying to follow the installation instructions for installing FLTK on Windows 10: http://www.fltk.org/articles.php?L598+I100+T+P1+QI have done the following:
- I installed MSYS2 64 bit
- Via the MSYS terminal, I installed the mingw-w64-x86_64-toolchain:
$ pacman -S mingw-w64-x86_64-toolchain
- I downloaded fltk 1.3.3 from the website
- I unpacked it (the installation instructions have by the way not been updated, as fltk is not bzip2 compressed anymore, but gzip compressed)
tar -xf fltk-1.3.3-source.tar.gz
cd fltk-1.3.3/
./configure --enable-threads --enable-localjpeg --enable-localzlib --enable-localpn