fltk complains about gcc on windows

ducklin5

I've been trying for almost a to build fltk on windows in so many different ways but I always end up with:

configure: error: C compiler cannot create executable (msys fltk/configure)

or

Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken (CMake-gui)

I've tried it with fltk 1.3.0 and 1.3.3 and I've even used three different MinGW distros, GCC version: 5.1.0; 4.9.2 and 3.4.5. Yet it just won't compile. Here is some of the error log generated by the ./configure file:

$ ./configure --prefix=C:/libs/fltk-1.3.3

-----------

Core tests.

-----------

configure:1336: checking build system type configure:1354: result: i686-pc-mingw32 configure:1362: checking host system type configure:1376: result: i686-pc-mingw32 configure:1439: checking for gcc configure:1455: found /c/mingw32/bin/gcc configure:1465: result: gcc configure:1709: checking for C compiler version configure:1712: gcc --version &5 gcc.exe (i686-win32-dwarf-rev2, Built by MinGW-W64 project) 4.9.2 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1715: $? = 0 configure:1717: gcc -v &5 Using built-in specs. COLLECT_GCC=c:\mingw32\bin\gcc.exe COLLECT_LTO_WRAPPER=c:/mingw32/bin/../libexec/gcc/i686-w64-mingw32/4.9.2/lto-wrapper.exe Target: i686-w64-mingw32 Configured with: ../../../src/gcc-4.9.2/configure --host=i686-w64-mingw32 --build=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/mingw32 --with-sysroot=/c/mingw492/i686-492-win32-dwarf-rt_v4-rev2/mingw32 --with-gxx-include-dir=/mingw32/i686-w64-mingw32/include/c++ --enable-shared --enable-static --disable-multilib --enable-languages=ada,c,c++,fortran,objc,obj-c++,lto --enable-libstdcxx-time=yes --enable-threads=win32 --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-sjlj-exceptions --with-dwarf2 --disable-isl-version-check --disable-cloog-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=i686 --with-tune=generic --with-libiconv --with-system-zlib --with-gmp=/c/mingw492/prerequisites/i686-w64-mingw32-static --with-mpfr=/c/mingw492/prerequisites/i686-w64-mingw32-static --with-mpc=/c/mingw492/prerequisites/i686-w64-mingw32-static --with-isl=/c/mingw492/prerequisites/i686-w64-mingw32-static --with-cloog=/c/mingw492/prerequisites/i686-w64-mingw32-static --enable-cloog-backend=isl --with-pkgversion='i686-win32-dwarf-rev2, Built by MinGW-W64 project' --with-bugurl=http://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -I/c/mingw492/i686-492-win32-dwarf-rt_v4-rev2/mingw32/opt/include -I/c/mingw492/prerequisites/i686-zlib-static/include -I/c/mingw492/prerequisites/i686-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -I/c/mingw492/i686-492-win32-dwarf-rt_v4-rev2/mingw32/opt/include -I/c/mingw492/prerequisites/i686-zlib-static/include -I/c/mingw492/prerequisites/i686-w64-mingw32-static/include' CPPFLAGS= LDFLAGS='-pipe -L/c/mingw492/i686-492-win32-dwarf-rt_v4-rev2/mingw32/opt/lib -L/c/mingw492/prerequisites/i686-zlib-static/lib -L/c/mingw492/prerequisites/i686-w64-mingw32-static/lib -Wl,--large-address-aware' Thread model: win32 gcc version 4.9.2 (i686-win32-dwarf-rev2, Built by MinGW-W64 project) configure:1720: $? = 0 configure:1722: gcc -V &5 gcc.exe: error: unrecognized command line option '-V' gcc.exe: fatal error: no input files compilation terminated. configure:1725: $? = 1 configure:1748: checking for C compiler default output configure:1751: gcc
conftest.c >&5 c:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x39): undefined reference to `WinMain@16' collect2.exe: error: ld returned 1 exit status configure:1754: $? = 1 configure: failed program was: |

line 1728 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define

PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | | int main () | { | | ; | return 0; | } configure:1793: error: C compiler cannot create executables See `config.log' for more details.

configure: exit 77

I previously compiled 2 other gui libraries with these same tools (nana and SFML), so there can't be anything wrong with the gcc compilers.

EDIT

Something (most probably cygwin) keeps breaking my mingw gcc program and every time its "broken" I get black vcc1.exe windows. Then I must replace the mingw folder to get it working again, this happens mostly when I open netbeans. I just don't know how to fix this, so I've just been avoiding cygwin and netbeans.

ducklin5
  • I was finally able to build it yesterday with this version of TDM-GCC (as per the gui installer):
    • MinGW-w64/TDM64 (32-bit and 64-bit) ==> TDM-GCC
  • I used he cmake gui instead of the .configure
    1. open cmake gui.
    2. input the source code folder (root of fltk folder, ie: "C:/libs/fltk-1.3.3").
    3. input the build folder, ie: "C:/libs/fltk-1.3.3/build/".
    4. click configure
    5. ** optionally you can change some options but i didn't
    6. click Genertae
    7. in cmd (I used git bash though): cd to the build directory and run make or mingw32-make

  • I completely uninstalled cygwin because of its interference with the tool chain builds, i.e mingw and tdm-gcc (Still not sure why this happens).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

CUDA 7.0 complains about not supporting gcc 4.9

From Dev

GCC linker complains about undefined reference to existing global variable

From Dev

FLTK compile error with gcc

From Dev

CUDA version X complains about not supporting gcc version Y - what to do?

From Dev

gcc -fanalyzer complains about double free, I don't understand why

From Dev

PHPUnit complains about Selenium

From Dev

PHPUnit complains about Selenium

From Dev

Gradle complains about bracket

From Dev

What to do if Windows XP install complains about not finding file XXX.dl_

From Dev

Linker complains about missing -fPIC

From Dev

Xcode complains about Unused functions that are used

From Dev

split now complains about missing "isSeparator"

From Dev

embedFonts complains about “Unknown device: pswrite”

From Dev

Aida Web install complains about missing "SecureHashAlgorithm"

From Dev

GHC complains about overlapping instances when in fact they are not

From Dev

PyCharm complains about patch.object but why?

From Dev

Spyder complains about some basic commands

From Dev

ggplot complains about applying code to the data

From Dev

Juicy Pixels complains about not having enough memory

From Dev

Doxygen complains about recursive C++ class

From Dev

Stringer tool complains about wrong archive header

From Dev

Why Netbeans complains about "incorrect credentials" with Git?

From Dev

Tuple struct constructor complains about private fields

From Dev

ESlint Airbnb Config Complains about Quotes

From Dev

Sonar complains about Spring Boot configuration

From Dev

Jacoco complains about unlikely missing branch coverage

From Dev

Pylint complains about comparing a string to a literal with 'is'

From Dev

Coverity complains about htonl operands but why?

From Dev

Tuple struct constructor complains about private fields

Related Related

  1. 1

    CUDA 7.0 complains about not supporting gcc 4.9

  2. 2

    GCC linker complains about undefined reference to existing global variable

  3. 3

    FLTK compile error with gcc

  4. 4

    CUDA version X complains about not supporting gcc version Y - what to do?

  5. 5

    gcc -fanalyzer complains about double free, I don't understand why

  6. 6

    PHPUnit complains about Selenium

  7. 7

    PHPUnit complains about Selenium

  8. 8

    Gradle complains about bracket

  9. 9

    What to do if Windows XP install complains about not finding file XXX.dl_

  10. 10

    Linker complains about missing -fPIC

  11. 11

    Xcode complains about Unused functions that are used

  12. 12

    split now complains about missing "isSeparator"

  13. 13

    embedFonts complains about “Unknown device: pswrite”

  14. 14

    Aida Web install complains about missing "SecureHashAlgorithm"

  15. 15

    GHC complains about overlapping instances when in fact they are not

  16. 16

    PyCharm complains about patch.object but why?

  17. 17

    Spyder complains about some basic commands

  18. 18

    ggplot complains about applying code to the data

  19. 19

    Juicy Pixels complains about not having enough memory

  20. 20

    Doxygen complains about recursive C++ class

  21. 21

    Stringer tool complains about wrong archive header

  22. 22

    Why Netbeans complains about "incorrect credentials" with Git?

  23. 23

    Tuple struct constructor complains about private fields

  24. 24

    ESlint Airbnb Config Complains about Quotes

  25. 25

    Sonar complains about Spring Boot configuration

  26. 26

    Jacoco complains about unlikely missing branch coverage

  27. 27

    Pylint complains about comparing a string to a literal with 'is'

  28. 28

    Coverity complains about htonl operands but why?

  29. 29

    Tuple struct constructor complains about private fields

HotTag

Archive