Can't find OpenSSL during the installation of Resin 4.0.64 on command ./configure.
Log:
checking build system type... x86_64-apple-darwin19.4.0
checking host system type... x86_64-apple-darwin19.4.0
checking target system type... x86_64-apple-darwin19.4.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... automake/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
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 how to print strings... printf
checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for egrep... (cached) /usr/bin/grep -E
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 sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/epoll.h usability... no
checking sys/epoll.h presence... no
checking for sys/epoll.h... no
checking for JAVA_HOME... /Users/username/Library/Java/JavaVirtualMachines/openjdk-14/Contents/Home
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 whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin19.4.0 file names to x86_64-apple-darwin19.4.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin19.4.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver #FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin19.4.0 dyld
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... yes
./configure: line 12674: test: too many arguments
checking if /usr/bin/java is 64-bit...
no
./configure: line 13290: plugin_ld_shlib: command not found
checking if /bin/cp accepts -u...
no
checking for JNI in /Users/username/Library/Java/JavaVirtualMachines/openjdk-14/Contents/Home/include/darwin ... found
Using JVMTI for class reloading
Can't find OpenSSL include ''
conftest.c:1:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
^~~~~~~~~~~~~~~
1 error generated.
configure: WARNING: Can't compile SSL. Check compilation flags: gcc -g -O2 -D_POSIX_PTHREAD_SEMANTICS -DHAS_SOCK_TIMEOUT -DHAS_JVMTI -L -lssl -lcrypto
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating modules/c/src/Makefile
config.status: creating modules/c/src/common/Makefile
config.status: creating modules/c/src/apache2/Makefile
config.status: creating modules/c/src/resin_os/Makefile
config.status: creating init.d/resin
config.status: creating bin/resinctl
config.status: executing depfiles commands
config.status: executing libtool commands
Resin Configuration Summary:
RESIN : 4.0.64
home : /usr/local/share/resin-4.0.64
root : /var/resin
conf : /etc/resin
log : /var/log/resin
plugins : common resin_os
JAVA_HOME : /Users/username/Library/Java/JavaVirtualMachines/openjdk-14/Contents/Home
JNI : 32-bit
include : -I/Users/username/Library/Java/JavaVirtualMachines/openjdk-14/Contents/Home/include -I/Users/username/Library/Java/JavaVirtualMachines/openjdk-14/Contents/Home/include/darwin
CFLAGS :
cflags_shlib : -DSHARED_MODULE
ld_shlib : gcc
ldflags_shlib : -dynamiclib -undefined suppress -flat_namespace
libs_shlib :
select() for keepalives
OPENSSL : No OpenSSL has been found
*** OpenSSL libraries cannot be compiled ***
Run:
./configure --with-openssl=/usr/local/opt/openssl
Source:
https://github.com/vysheng/tg/issues/1488
Related
I've been trying to build a specific version of GCC (8.3.0) on a new Ubuntu 20.04 machine. However, when I follow the steps at the following link: https://gcc.gnu.org/wiki/InstallingGCC I run into a Makefile error.
Steps:
wget https://ftp.gnu.org/gnu/gcc/gcc-8.3.0/gcc-8.3.0.tar.xz
tar xf gcc-8.3.0.tar.xz
cd gcc-8.3.0
./contrib/download_prerequisites
cd .. ; mkdir build ; cd build
../gcc-8.3.0/configure --prefix=/opt/gcc-8.3 --enable-languages=c,c++,fortran --disable-multilib
Config output:
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... no
checking for mawk... mawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libmpx support... yes
checking for libhsail-rt support... yes
checking for gcc... gcc-7
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc-7 accepts -g... yes
checking for gcc-7 option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether g++-7 accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
configure: WARNING: using in-tree isl, disabling version check
*** This configuration is not supported in the following subdirectories:
gnattools gotools target-libada target-libhsail-rt target-libgo target-libffi target-libobjc target-liboffloadmic
(Any other directories should still work fine.)
checking for default BUILD_CONFIG... bootstrap-debug
checking for --enable-vtable-verify... no
checking for bison... no
checking for byacc... no
checking for yacc... no
checking for bison... no
checking for gm4... no
checking for gnum4... no
checking for m4... no
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... no
/home/ubuntu/gcc-8.3.0/missing: 81: makeinfo: not found
checking for expect... expect
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... objcopy
checking for objdump... objdump
checking for readelf... readelf
checking for cc... cc
checking for c++... c++
checking for gcc... gcc
checking for gfortran... no
checking for gccgo... no
checking for ar... no
checking for ar... ar
checking for as... no
checking for as... as
checking for dlltool... no
checking for dlltool... no
checking for ld... no
checking for ld... ld
checking for lipo... no
checking for lipo... no
checking for nm... no
checking for nm... nm
checking for objcopy... no
checking for objcopy... objcopy
checking for objdump... no
checking for objdump... objdump
checking for ranlib... no
checking for ranlib... ranlib
checking for readelf... no
checking for readelf... readelf
checking for strip... no
checking for strip... strip
checking for windres... no
checking for windres... no
checking for windmc... no
checking for windmc... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gfortran... just compiled
checking where to find the target gccgo... host tool
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objcopy... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target readelf... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
Then finally, using make -j 8, and sifting through the enormous output, I get the following error:
make -j8
...
/bin/bash ./libtool --tag=CC --mode=compile /home/ubuntu/build/./gcc/xgcc -B/home/ubuntu/build/./gcc/ -B/opt/gcc-8.3/x86_64-pc-linux-gnu/bin/ -B/opt/gcc-8.3/x86_64-pc-linux-gnu/lib/ -isystem /opt/gcc-8.3/x86_64-pc-linux-gnu/include -isystem /opt/gcc-8.3/x86_64-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I../../../gcc-8.3.0/libatomic/config/x86 -I../../../gcc-8.3.0/libatomic/config/posix -I../../../gcc-8.3.0/libatomic -I. -Wall -Werror -pthread -g -O2 -MT fior_8_.lo -MD -MP -MF .deps/fior_8_.lo.Ppo -DN=8 -c -o fior_8_.lo ../../../gcc-8.3.0/libatomic/fior_n.c
In file included from ../../../../gcc-8.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:193:
../../../../gcc-8.3.0/libsanitizer/sanitizer_common/sanitizer_internal_defs.h:317:72: error: size of array 'assertion_failed__1152' is negative
typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1]
^
...
make: *** [Makefile:955: all] Error 2
Any ideas? I've also tried configuring with CC=gcc-7 and CXX=g++-7 enviro variables and received the same result (it still uses xgcc). This seems to be an error with the cross compiler xgcc.
I think you need this patch: https://raw.githubusercontent.com/easybuilders/easybuild-easyconfigs/develop/easybuild/easyconfigs/g/GCCcore/GCCcore-9.2.0-fix-glibc-2.31-libsanitizer.patch - it'll apply to 8.3.0 fine
I have php 7.3.4 installed on my macbook pro and I am trying to enable a php extension which composer requires (intl). I have enabled the extension intl in php.ini, to which I received an error message saying it can not be found - so I'm assuming this means I need to install it. I found a tutorial online on how to install the extensions (link at bottom), and I followed this.
At the stage where when I run sudo pecl install intl, I receive an error;
make: *** [php_intl.lo] Error 1
ERROR: `make' failed
Does anyone have a solution?
Jamess-MBP:~ work$ sudo pecl install intl
Password: .........
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/lib/php/pecl/20180731/intl (dlopen(/usr/local/lib/php/pecl/20180731/intl, 9): image not found), /usr/local/lib/php/pecl/20180731/intl.so (dlopen(/usr/local/lib/php/pecl/20180731/intl.so, 9): image not found)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/lib/php/pecl/20180731/intl (dlopen(/usr/local/lib/php/pecl/20180731/intl, 9): image not found), /usr/local/lib/php/pecl/20180731/intl.so (dlopen(/usr/local/lib/php/pecl/20180731/intl.so, 9): image not found)) in Unknown on line 0
downloading intl-3.0.0.tgz ...
Starting to download intl-3.0.0.tgz (248,200 bytes)
....................................................done: 248,200 bytes
150 source files, building
running: phpize
Configuring for:
PHP Api Version: 20180731
Zend Module Api No: 20180731
Zend Extension Api No: 320180731
Specify where ICU libraries and headers can be found [DEFAULT] : /usr/local/Cellar/icu4c/63.1/
building in /private/tmp/pear/temp/pear-build-rootf9ZgsV/intl-3.0.0
running: /private/tmp/pear/temp/intl/configure --with-php-config=/usr/local/Cellar/php/7.3.4/bin/php-config --with-icu-dir=/usr/local/Cellar/icu4c/63.1/
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-apple-darwin17.7.0
checking host system type... x86_64-apple-darwin17.7.0
checking target system type... x86_64-apple-darwin17.7.0
checking for PHP prefix... /usr/local/Cellar/php/7.3.4
checking for PHP includes... -I/usr/local/Cellar/php/7.3.4/include/php -I/usr/local/Cellar/php/7.3.4/include/php/main -I/usr/local/Cellar/php/7.3.4/include/php/TSRM -I/usr/local/Cellar/php/7.3.4/include/php/Zend -I/usr/local/Cellar/php/7.3.4/include/php/ext -I/usr/local/Cellar/php/7.3.4/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/Cellar/php/7.3.4/pecl/20180731
checking for PHP installed headers prefix... /usr/local/Cellar/php/7.3.4/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable internationalization support... yes, shared
checking for location of ICU headers and libraries... checking for pkg-config... /usr/local/bin/pkg-config
/usr/local/Cellar/icu4c/63.1
checking for ICU 4.0 or greater... found 63.1
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by cc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin17.7.0 dyld
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
creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin17.7.0 dyld
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /private/tmp/pear/temp/pear-build-rootf9ZgsV/intl-3.0.0/libtool --mode=compile cc -I/usr/local/Cellar/icu4c/63.1/include -Wno-write-strings -I. -I/private/tmp/pear/temp/intl -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootf9ZgsV/intl-3.0.0/include -I/private/tmp/pear/temp/pear-build-rootf9ZgsV/intl-3.0.0/main -I/private/tmp/pear/temp/intl -I/usr/local/Cellar/php/7.3.4/include/php -I/usr/local/Cellar/php/7.3.4/include/php/main -I/usr/local/Cellar/php/7.3.4/include/php/TSRM -I/usr/local/Cellar/php/7.3.4/include/php/Zend -I/usr/local/Cellar/php/7.3.4/include/php/ext -I/usr/local/Cellar/php/7.3.4/include/php/ext/date/lib -I/usr/local/Cellar/icu4c/63.1/include -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/intl/php_intl.c -o php_intl.lo
mkdir .libs
cc -I/usr/local/Cellar/icu4c/63.1/include -Wno-write-strings -I. -I/private/tmp/pear/temp/intl -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootf9ZgsV/intl-3.0.0/include -I/private/tmp/pear/temp/pear-build-rootf9ZgsV/intl-3.0.0/main -I/private/tmp/pear/temp/intl -I/usr/local/Cellar/php/7.3.4/include/php -I/usr/local/Cellar/php/7.3.4/include/php/main -I/usr/local/Cellar/php/7.3.4/include/php/TSRM -I/usr/local/Cellar/php/7.3.4/include/php/Zend -I/usr/local/Cellar/php/7.3.4/include/php/ext -I/usr/local/Cellar/php/7.3.4/include/php/ext/date/lib -I/usr/local/Cellar/icu4c/63.1/include -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/intl/php_intl.c -fno-common -DPIC -o .libs/php_intl.o
In file included from /private/tmp/pear/temp/intl/php_intl.c:25:
In file included from /private/tmp/pear/temp/intl/php_intl.h:34:
/private/tmp/pear/temp/intl/intl_error.h:24:10: fatal error: 'ext/standard/php_smart_str.h' file not found
#include <ext/standard/php_smart_str.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [php_intl.lo] Error 1
ERROR: `make' failed
I followed an online tutorial to get to this stage, this was http://budiirawan.com/install-php-intl-extension-os-x/
Please follow the process (from https://medium.com/#agaetis/solved-install-intl-php-extension-for-xampp-and-magento-for-macos-mojave-41fa42336fc6)
Steps to install intl.so: correct intl ships with PHP source, not available in PECL.
Make sure Xcode and autoconf is installed
Download PHP version used in XAMPP from php.net and run series of command
tar -xzvf php-7.3.10.tar.gz; cd php-7.3.10/ext/intl
/Applications/XAMPP/bin/phpize
./configure --enable-intl --with-php-config=/Applications/XAMPP/bin/php-config --with-icu-dir=/Applications/XAMPP/xamppfiles/
make
sudo make install
add below line in php.ini (/Applications/XAMPP/xamppfiles/etc/php.ini)
extension=intl.so
I’ve solved this myself by installing the extension with macports rather than pecl.
Recently, I tried to compile vlc for Android and came across this error.
My OS: OS X El Capitan.
Attached below is my compiling log:
Last login: Sat May 7 17:48:07 on ttys000
wedonedeiMac:~ wedone$ cd /Volumes/D/vlc_source_code/Android
wedonedeiMac:Android wedone$ ./compile.sh
VLC source found`
Configuring`
ABI: armeabi-v7a
API: android-9
SYSROOT: /Volumes/D/android/android-ndk/platforms/android-9/arch-arm
PATH: /Volumes/D/android/android-ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Volumes/D/android/android-sdk/tools:/Volumes/D/android/android-sdk/platform-tools:/Volumes/D/android/android-ndk`
CFLAGS: -g -O2 -fstrict-aliasing -funsafe-math-optimizations -mlong-calls`
EXTRA_CFLAGS: -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/Volumes/D/android/android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/include -I/Volumes/D/android/android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include`
Building tools
You are ready to build VLC and its contribs
Building the contribs
Generating EGL pkg-config file
Generating GLESv2 pkg-config file
-n Guessing build system...
x86_64-apple-darwin15.4.0
Creating configuration file... config.mak
Bootstrap completed.
Run "make" to start compilation.
Other targets:
* make install same as "make"
* make prebuilt fetch and install prebuilt binaries
* make list list packages
* make fetch fetch required source tarballs
* make fetch-all fetch all source tarballs
* make distclean clean everything and undo bootstrap
* make mostlyclean clean everything except source tarballs
* make clean clean everything
* make package prepare prebuilt packages
make: Nothing to be done for `fetch'.
make: `.gettext' is up to date.
mkdir -p -- /Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/share/aclocal && cd vncclient && autoreconf -fiv -I/Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/share/aclocal
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I /Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/share/aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
autoreconf: running: /Volumes/D/vlc_source_code/Android/vlc/extras/tools/build/bin/autoconf --include=/Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
autoreconf: running: /Volumes/D/vlc_source_code/Android/vlc/extras/tools/build/bin/autoheader --include=/Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/share/aclocal --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
cd vncclient && CC="arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm" CXX="arm-linux-androideabi-g++ --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm" LD="arm-linux-androideabi-ld" AR="arm-linux-androideabi-ar" CCAS="arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm -c" RANLIB="arm-linux-androideabi-ranlib" STRIP="arm-linux-androideabi-strip" PATH="/Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/bin:/Volumes/D/vlc_source_code/Android/vlc/extras/tools/build/bin:/Volumes/D/vlc_source_code/Android/vlc/extras/tools/build/bin:/Volumes/D/android/android-ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Volumes/D/android/android-sdk/tools:/Volumes/D/android/android-sdk/platform-tools:/Volumes/D/android/android-ndk:/Volumes/D/vlc_source_code/Android/vlc/contrib/contrib-android-arm-linux-androideabi/../arm-linux-androideabi/bin" CPPFLAGS=" -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/Volumes/D/android/android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/include -I/Volumes/D/android/android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -I/Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/include" CFLAGS=" -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/Volumes/D/android/android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/include -I/Volumes/D/android/android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -I/Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/include -g" CXXFLAGS=" -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/Volumes/D/android/android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/include -I/Volumes/D/android/android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include -I/Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/include -g" LDFLAGS=" -L/Volumes/D/android/android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -lgnustl_static -L/Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/lib" ./configure --prefix="/Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi" --datarootdir="/Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/share" --includedir="/Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/include" --libdir="/Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/lib" --build="x86_64-apple-darwin15.4.0" --host="arm-linux-androideabi" --target="arm-linux-androideabi" --program-prefix="" --enable-static --disable-shared --disable-dependency-tracking --with-pic --without-libva
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-androideabi-strip... arm-linux-androideabi-strip
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for arm-linux-androideabi-gcc... arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm accepts -g... yes
checking for arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm option to accept ISO C89... none needed
checking whether arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm... none
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-apple-darwin15.4.0
checking host system type... arm-unknown-linux-androideabi
checking how to print strings... printf
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 arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm... arm-linux-androideabi-ld
checking if the linker (arm-linux-androideabi-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /Volumes/D/android/android-ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm -B
checking the name lister (/Volumes/D/android/android-ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-apple-darwin15.4.0 file names to arm-unknown-linux-androideabi format... func_convert_file_noop
checking how to convert x86_64-apple-darwin15.4.0 file names to toolchain format... func_convert_file_noop
checking for arm-linux-androideabi-ld option to reload object files... -r
checking for arm-linux-androideabi-objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for arm-linux-androideabi-dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for arm-linux-androideabi-ar... arm-linux-androideabi-ar
checking for archiver #FILE support... #
checking for arm-linux-androideabi-strip... (cached) arm-linux-androideabi-strip
checking for arm-linux-androideabi-ranlib... arm-linux-androideabi-ranlib
checking command to parse /Volumes/D/android/android-ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-nm -B output from arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm object... ok
checking for sysroot... no
checking for arm-linux-androideabi-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm -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 arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm supports -fno-rtti -fno-exceptions... no
checking for arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm option to produce PIC... -fPIC -DPIC
checking if arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm PIC flag -fPIC -DPIC works... yes
checking if arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm static flag -static works... yes
checking if arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm supports -c -o file.o... yes
checking if arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm supports -c -o file.o... (cached) yes
checking whether the arm-linux-androideabi-gcc --sysroot=/Volumes/D/android/android-ndk/platforms/android-9/arch-arm linker (arm-linux-androideabi-ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
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... no
checking whether to build static libraries... yes
checking for ar... /usr/bin/ar
checking for __b64_ntop... yes
checking thenonexistentheader.h usability... no
checking thenonexistentheader.h presence... no
checking for thenonexistentheader.h... no
checking for crypt... no
checking for crypt in -lcrypt... no
checking for RAND_file_name in -lcrypto... no
checking for SSL_library_init in -lssl... no
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_CreateCompress in libjpeg... yes
checking whether JPEG library is libjpeg-turbo... no
configure: WARNING:
==========================================================================
*** The libjpeg library you are building against is not libjpeg-turbo.
Performance will be reduced. You can obtain libjpeg-turbo from:
https://sourceforge.net/projects/libjpeg-turbo/files/ ***
==========================================================================
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_create_write_struct in -lpng... no
configure: WARNING:
==========================================================================
*** The libpng compression library was not found. ***
This may lead to reduced performance, especially over slow links.
If libpng is in a non-standard location use --with-png=DIR to
indicate the header file is in DIR/include/png.h and the library
in DIR/lib/libpng.a. A copy of libpng may be obtained from:
http://www.libpng.org/pub/png/libpng.html
==========================================================================
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for deflate in -lz... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_mutex_lock in -lpthread... no
checking for pthread_mutex_lock in -lpthread... (cached) no
checking for __thread... yes
checking for arm-linux-androideabi-pkg-config... no
checking for pkg-config... /Volumes/D/vlc_source_code/Android/vlc/extras/tools/build/bin/pkg-config
configure: WARNING: using cross tools not prefixed with host triplet
checking pkg-config is at least version 0.9.0... yes
checking for GTK... no
checking for arm-linux-androideabi-libgcrypt-config... no
checking for libgcrypt-config... /Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.4.0... yes (1.6.4)
checking for GNUTLS... yes
checking for getaddrinfo... yes
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/endian.h usability... yes
checking sys/endian.h presence... yes
checking for sys/endian.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking ws2tcpip.h usability... no
checking ws2tcpip.h presence... no
checking for ws2tcpip.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for socklen_t... yes
checking for stdint types... stdint.h (shortcircuit)
make use of stdint.h in rfb/rfbint.h (assuming C99 compatible system)
checking for in_addr_t...
checking for working memcmp... no
checking whether lstat correctly handles trailing slash... no
checking whether stat accepts an empty string... yes
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking for gethostbyname in -lnsl... no
checking for socket in -lsocket... no
checking for ftime... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for memset... yes
checking for mmap... yes
checking for mkfifo... no
checking for select... yes
checking for socket... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
checking for shmget in -lcygipc... no
checking ApplicationServices/ApplicationServices.h usability... no
checking ApplicationServices/ApplicationServices.h presence... no
checking for ApplicationServices/ApplicationServices.h... no
checking android/api-level.h usability... yes
checking android/api-level.h presence... yes
checking for android/api-level.h... yes
checking for rpm sources path... NOT-FOUND
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libvncserver.pc
config.status: creating libvncclient.pc
config.status: creating libvncserver/Makefile
config.status: creating examples/Makefile
config.status: creating examples/android/Makefile
config.status: creating webclients/Makefile
config.status: creating webclients/java-applet/Makefile
config.status: creating webclients/java-applet/ssl/Makefile
config.status: creating libvncclient/Makefile
config.status: creating client_examples/Makefile
config.status: creating test/Makefile
config.status: creating libvncserver-config
config.status: creating LibVNCServer.spec
config.status: creating rfbconfig.h
config.status: rfbconfig.h is unchanged
config.status: executing rfb/rfbconfig.h commands
config.status: creating rfb/rfbconfig.h - prefix LIBVNCSERVER for rfbconfig.h defines
config.status: rfb/rfbconfig.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing rfb/rfbint.h commands
config.status: creating rfb/rfbint.h : _LIBVNCSERVER_RFB_RFBINT_H
config.status: rfb/rfbint.h is unchanged
config.status: executing chmod-libvncserver-config commands
cd vncclient && /Applications/Xcode.app/Contents/Developer/usr/bin/make -C libvncclient install
make[2]: Nothing to be done for `install-data-am'.
.././install-sh -c -d '/Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/lib'
/bin/sh ../libtool --mode=install /usr/bin/install -c libvncclient.la '/Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/lib'
libtool: install: /usr/bin/install -c .libs/libvncclient.lai /Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/lib/libvncclient.la
libtool: install: /usr/bin/install -c .libs/libvncclient.a /Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/lib/libvncclient.a
libtool: install: chmod 644 /Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/lib/libvncclient.a
libtool: install: arm-linux-androideabi-ranlib /Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/lib/libvncclient.a
arm-linux-androideabi-ranlib: /Volumes/D/vlc_source_code/Android/vlc/contrib/arm-linux-androideabi/lib/libvncclient.a: Malformed archive
make[2]: *** [install-libLTLIBRARIES] Error 1
make[1]: *** [install-am] Error 2
make: *** [.vncclient] Error 2
contribs: make failed
wedonedeiMac:Android wedone$
I got the same problem to compile vlc-android on mac, after worked for few hours, I had built apk file successfully with the following modification. I hope it's useful for you and any others have been faced with the same problem.
diff --git a/contrib/src/lua/rules.mak b/contrib/src/lua/rules.mak
index 037d680..53eb59e 100644
--- a/contrib/src/lua/rules.mak
+++ b/contrib/src/lua/rules.mak
## -85,7 +85,9 ## ifdef HAVE_WIN32
cd $< && $(RANLIB) "$(PREFIX)/lib/liblua.a"
endif
ifdef HAVE_CROSS_COMPILE
+ cd $</src && mv Makefile Makefile.new && mv Makefile.orig Makefile
cd $</src && $(MAKE) clean && $(MAKE) liblua.a && ranlib liblua.a && $(MAKE) luac
cp $</src/luac $(PREFIX)/bin
+ cd $</src && mv Makefile Makefile.orig && mv Makefile.new Makefile
endif
touch $#
diff --git a/contrib/src/vncclient/rules.mak b/contrib/src/vncclient/rules.mak
index 1915f5c..a4e23b3 100644
--- a/contrib/src/vncclient/rules.mak
+++ b/contrib/src/vncclient/rules.mak
## -31,7 +31,7 ## DEPS_vncclient = gcrypt $(DEPS_gcrypt) jpeg $(DEPS_jpeg) png $(DEPS_png) gnutls
.vncclient: vncclient
$(RECONF)
- cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --without-libva
+ cd $< && $(HOSTVARS) ac_cv_path_AR="$(AR)" ./configure $(HOSTCONF) --without-libva
cd $< && $(MAKE) -C libvncclient install
cd $< && $(MAKE) install-data
touch $#
diff --git a/share/Makefile.am b/share/Makefile.am
index 3ed638a..de5188c 100644
--- a/share/Makefile.am
+++ b/share/Makefile.am
## -4,8 +4,10 ## EXTRA_DIST =
appdatadir = $(datadir)/applications
if !HAVE_WIN32
+if !HAVE_ANDROID
appdata_DATA = vlc.desktop
endif
+endif
EXTRA_DIST += vlc.desktop.in vlc.desktop.mimetypes
CLEANFILES += $(appdata_DATA)
I thought that vncclient is not necessary for vlc,so I disposs the vncclient module.
path:…/vlcandroid/vlc/contrib/src/vncclient
ruls.mak
$(RECONF)
cd $< && $(HOSTVARS) ac_cv_path_AR="$(AR)" ./configure $(HOSTCONF) --without-libva
#cd $< && $(MAKE) -C libvncclient install
#cd $< && $(MAKE) install-data
touch $#
path:…/vlcandroid/vlc/share
makefile.am
appdatadir = $(datadir)/applications
if !HAVE_WIN32
if !HAVE_DARWIN
#appdata_DATA = vlc.desktop
endif
endif
EXTRA_DIST += vlc.desktop.in vlc.desktop.mimetypes
CLEANFILES += $(appdata_DATA)
Then you can continue compiling your project.
I have installed glog form source.
git clone https://github.com/google/glog.git -b v0.3.3
cd glog
sudo ./configure --prefix=/usr --libdir=/usr/lib64 && sudo make && sudo make install
then configuring mesos with options as:
../configure --with-protobuf=/usr --with-boost=/usr --with-glog=/usr
but it cannot find the glog and glog/logging.h.
configure output:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) 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 whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for archiver #FILE support... #
checking for strip... strip
checking for ranlib... ranlib
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... -fPIC -DPIC
checking if gcc PIC flag -fPIC -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/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
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/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -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/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.lt
config.lt: creating libtool
configure: Setting up build environment for x86_64 linux-gnu
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for C++ compiler vendor... gnu
checking for C++ compiler version... 4.8.5
checking for C++ compiler vendor... (cached) gnu
checking glog/logging.h usability... no
checking glog/logging.h presence... no
checking for glog/logging.h... no
configure: error: cannot find glog
-------------------------------------------------------------------
You have requested the use of a non-bundled glog but no suitable
glog could be found.
You may want specify the location of glog by providing a prefix
path via --with-glog=DIR, or check that the path you provided is
correct if you're already doing this.
-------------------------------------------------------------------
glog/logging.h is placed in /usr/include. why it is not able to find it?
what am I missing here?
NOTE: I have successfully installed glog.
I think --with-glog=/usr/lib64 is what you are looking for to get past that error.
Having said that you might have to do the same for --with-protobuf and --with-boost assuming you are using your own installed from source version similar to glog.
I have a problem - i can't compile SqlCipher.
I'm using this http://groups.google.com/group/sqlcipher/browse_thread/thread/55c6296b56bf4533/c792bbec6df7d4f4?tvc=2#c792bbec6df7d4f4 instructions (thx to Sam) but still can't compile it. I do the following:
$ ./configure --disable-tcl CFLAGS="-DSQLITE_HAS_CODEC -I/usr/usr/src/openssl/i
nclude" LDFLAGS="-leay32"
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking for gcc... gcc
checking for C compiler default output file name... rm: cannot remove directory
`conftest': Is a directory
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 a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... c:/mingw/mingw32/bin/ld.exe
checking if the linker (c:/mingw/mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /mingw/bin/nm
checking the name lister (/mingw/bin/nm) interface... BSD nm
checking whether ln -s works... yes
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 for c:/mingw/mingw32/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 ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /mingw/bin/nm output from gcc object... ok
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... no
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... ./configure: line 10444: 4076 Segmenta
tion fault (core dumped) $RM -r conftest 2>/dev/null
mkdir: cannot create directory `conftest': File exists
mkdir: cannot create directory `out': File exists
rmdir: out: Directory not empty
0 [main] rm 5688 open_stackdumpfile: Dumping stack trace to rm.exe.stackdu
mp
./configure: line 10444: 5688 Segmentation fault (core dumped) $RM -r conf
test
yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (c:/mingw/mingw32/bin/ld.exe) supports shared li
braries... 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... yes
checking for a BSD-compatible install... 0 [main] rm 468 open_stackdumpfil
e: Dumping stack trace to rm.exe.stackdump
./configure: line 10509: 468 Segmentation fault (core dumped) rm -rf conf
test.one conftest.two conftest.dir
mkdir: cannot create directory `conftest.dir': File exists
0 [main] rm 5040 open_stackdumpfile: Dumping stack trace to rm.exe.stackdu
mp
./configure: line 10554: 5040 Segmentation fault (core dumped) rm -rf conf
test.one conftest.two conftest.dir
/bin/install -c
checking for gawk... gawk
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... unknown
checking for _LARGE_FILES value needed for large files... unknown
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for intptr_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uintptr_t... yes
checking for sys/types.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for usleep... yes
checking for fdatasync... no
checking for localtime_r... no
checking for gmtime_r... no
checking for localtime_s... no
checking for tclsh8.4... no
checking for tclsh... no
Warning: can't find tclsh - defaulting to non-amalgamation build.
./configure: line 12322: tclsh: command not found
configure: Version set to 3.6
configure: Release set to 3.6.21
configure: Version number set to 3006021
checking whether to support threadsafe operation... yes
checking for library containing pthread_create... no
checking whether to allow connections to be shared across threads... no
checking whether threads can override each others locks... no
checking whether to support shared library linked as release mode or not... no
checking whether to use an in-ram database for temporary tables... no
checking if executables have the .exe suffix... unknown
checking host system type... (cached) i686-pc-mingw32
checking for library containing tgetent... no
checking for readline in -lreadline... no
checking readline.h usability... no
checking readline.h presence... no
checking for readline.h... no
checking for /usr/include/readline.h... no
checking for /usr/include/readline/readline.h... no
checking for /usr/local/include/readline.h... no
checking for /usr/local/include/readline/readline.h... no
checking for /usr/local/readline/include/readline.h... no
checking for /usr/local/readline/include/readline/readline.h... no
checking for /usr/contrib/include/readline.h... no
checking for /usr/contrib/include/readline/readline.h... no
checking for /mingw/include/readline.h... no
checking for /mingw/include/readline/readline.h... no
checking for library containing fdatasync... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sqlite3.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands
0 [main] rm 5064 open_stackdumpfile: Dumping stack trace to rm.exe.stackdu
mp
./config.status: line 1895: 5064 Segmentation fault (core dumped) rm -fr "
$tmp"
ilukyanov#DEPONEOS-230-3 /usr/usr/src/sqlcipher
$ make
make: *** No targets specified and no makefile found. Stop.
ilukyanov#DEPONEOS-230-3 /usr/usr/src/sqlcipher
$ mingw32-make
tclsh ./tool/mksqlite3h.tcl . >sqlite3.h
/bin/sh: sqlite3.h: No such file or directory
mingw32-make: *** [sqlite3.h] Error 1
what's wrong?
i had exactly the same problem and this is how I have solved it
You have first to install tcl from here
Now, open C:\msys\1.0\etc\fstab with a text editor and add this line in the end:
c:/Tcl /tcl
This looks like a problem with your msys / mingw installation to me. If you look at the configure results it shows that rm failed and actually dumped core in the middle of the configure. I would seriously consider uninstalling MinGW and msys and reinstalling it from scratch. Verify that some basic commands work (i.e. rm), and then try to rebuild from source.
One other thing to note, is that if you don't have TCL installed the standard amalgamated build will fail. Therefore you should either install TCL under msys, install the ActiveState distribution and link tclsh to tclsh85, or configure SQLCipher with --disable-amalgamation.