HI,
I'm trying to compile latest sources on Windows by using Mingw. I've also
done it on Ubuntu without any problem.
On WIndows: I've successfully built freetype-2.4.4, giflib-4.1.6, jpeg-8b
and zlib-1.2.5. Configure libpng-1.5.2 fails because zlib is not found (?)
Then when I try to build SWFTools:
1) ./configure && make install
configure outputs:
***************************************************
* The following headers/libraries are missing: jpeglib.h gif_lib.h zlib.h
* Disabling pdf2swf tool...
* Disabling jpeg2swf tool...
* Disabling gif2swf tool...
* Disabling png2swf tool...
***************************************************
Though all those headers are placed in the /usr/local/include directory (?)
and make fails because:
***************************************************
gcc -c -DHAVE_CONFIG_H -I/usr/local/include/freetype2 -I/usr/local/include
-Ilame -Ilib/lame -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat
-O -fo
mit-frame-pointer -DSWFTOOLS_DATADIR=\"/usr/local/share/swftools\" os.c -o
os.obj
os.c:1:0: warning: -fPIC ignored for target (all code is position
independent)
In file included from
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/objbase.h:4:0,
from
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/ole2.h:9,
from
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windows.h:114,
from os.c:28:
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/rpcndr.h:52:23:
error: two or more data types in declaration specifiers
os.c: In function 'getRegistryEntry':
os.c:80:2: warning: format '%d' expects type 'int', but argument 3 has type
'long int'
os.c:86:2: warning: format '%d' expects type 'int', but argument 3 has type
'long int'
make[1]: *** [os.obj] Error 1
make[1]: Leaving directory `/home/pablo/swftools/lib'
make: *** [all] Error 2
***************************************************
2) Alternatively, I have also tried to do (as described in SWFTools FAQ):
CXX=i386-mingw32msvc-g++ CPP=i386-mingw32msvc-cpp CC=i386-mingw32msvc-gcc \
./configure --host=i586-mingw32msvc && make
which outputs:
***************************************************
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-mingw32
checking host system type... i586-pc-mingw32msvc
checking for i586-mingw32msvc-gcc... i386-mingw32msvc-gcc
checking whether the C compiler works... no
configure: error: in `/home/pablo/swftools':
configure: error: C compiler cannot create executables
See `config.log' for more details.
***************************************************
config.lg is also attached in this email.
My environment is a vanilla Mingw installation just for building SWFTools.
Please, any help will be very appreciated.
Thanks in advance.
Pablo
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.65. Invocation command line was
$ ./configure --host=i586-mingw32msvc
## --------- ##
## Platform. ##
## --------- ##
hostname = w7
uname -m = i686
uname -r = 1.0.17(0.48/3/2)
uname -s = MINGW32_NT-6.1
uname -v = 2011-04-24 23:39
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: .
PATH: /usr/local/bin
PATH: /mingw/bin
PATH: /bin
PATH: /c/Program Files/Subversion
PATH: /c/Windows/system32
PATH: /c/Windows
PATH: /c/Windows/System32/Wbem
PATH: /c/Windows/System32/WindowsPowerShell/v1.0/
PATH: /e/atlassian-plugin-sdk-3.3.1/bin
PATH: /c/Program Files/TortoiseSVN/bin
PATH: /c/Program Files/Microsoft SQL Server/100/Tools/Binn/
PATH: /c/Program Files/Microsoft SQL Server/100/DTS/Binn/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2730: checking build system type
configure:2744: result: i686-pc-mingw32
configure:2764: checking host system type
configure:2777: result: i586-pc-mingw32msvc
configure:2830: checking for i586-mingw32msvc-gcc
configure:2857: result: i386-mingw32msvc-gcc
configure:3126: checking for C compiler version
configure:3135: i386-mingw32msvc-gcc --version >&5
./configure: line 3137: i386-mingw32msvc-gcc: command not found
configure:3146: $? = 127
configure:3135: i386-mingw32msvc-gcc -v >&5
./configure: line 3137: i386-mingw32msvc-gcc: command not found
configure:3146: $? = 127
configure:3135: i386-mingw32msvc-gcc -V >&5
./configure: line 3137: i386-mingw32msvc-gcc: command not found
configure:3146: $? = 127
configure:3135: i386-mingw32msvc-gcc -qversion >&5
./configure: line 3137: i386-mingw32msvc-gcc: command not found
configure:3146: $? = 127
configure:3166: checking whether the C compiler works
configure:3188: i386-mingw32msvc-gcc -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointer conftest.c >&5
./configure: line 3190: i386-mingw32msvc-gcc: command not found
configure:3192: $? = 127
configure:3230: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3235: error: in `/home/pablo/swftools':
configure:3239: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-mingw32
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=i386-mingw32msvc-gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=set
ac_cv_env_CPP_value=i386-mingw32msvc-cpp
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=i386-mingw32msvc-g++
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_POPPLER_CFLAGS_set=
ac_cv_env_POPPLER_CFLAGS_value=
ac_cv_env_POPPLER_LIBS_set=
ac_cv_env_POPPLER_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i586-mingw32msvc
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i586-pc-mingw32msvc
ac_cv_prog_CC=i386-mingw32msvc-gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
AREXT=''
AVIFILE_CONFIG=''
CC='i386-mingw32msvc-gcc'
CFLAGS='-fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointer '
CPP='i386-mingw32msvc-cpp'
CPPFLAGS=''
CXX='i386-mingw32msvc-g++'
CXXCPP=''
CXXFLAGS='-fPIC -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointer '
CXXLIBS=''
DEFS=''
DEVICE_OPENGL=''
DEVICE_PDF=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FREETYPE_CONFIG=''
GIF2SWF=''
GREP=''
HAVE_PYTHON_IMAGING=''
HAVE_UNISTD_H=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
JPEG2SWF=''
LDFLAGS=''
LIBOBJS=''
LIBPDF=''
LIBS=''
LN_S=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE='swftools'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PDF2PDF=''
PDF2SWF=''
PKG_CONFIG=''
PNG2SWF=''
POPPLER_CFLAGS=''
POPPLER_LIBS=''
PYTHON_EXECUTABLE=''
PYTHON_INCLUDES=''
PYTHON_INSTALL_PATH=''
PYTHON_LIB=''
RANLIB=''
RUBY=''
RUBY_CPPFLAGS=''
RUBY_INSTALLDIR=''
RUBY_LDFLAGS=''
RUBY_LIBS=''
SET_MAKE=''
SHARED='-shared'
SHELL='/bin/sh'
SLEXT='so'
STRIP=''
SYSTEM_BACKTICKS=''
UNCOMPRESS=''
USE_GZIP=''
VERSION='2010-08-05-2217'
VIDEO_CFLAGS=''
VIDEO_LIBS=''
WORDS_BIGENDIAN=''
ac_ct_CC=''
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='i686-pc-mingw32'
build_alias=''
build_cpu='i686'
build_os='mingw32'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i586-pc-mingw32msvc'
host_alias='i586-mingw32msvc'
host_cpu='i586'
host_os='mingw32msvc'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
lame_in_source=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
splash_in_source=''
sysconfdir='${prefix}/etc'
target=''
target_alias=''
target_cpu=''
target_os=''
target_vendor=''
xpdf_in_source=''
xpdf_include=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
configure: exit 77