Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Cannot build with cygwin #28

Open
martinthurn opened this issue Nov 20, 2014 · 1 comment
Open

Cannot build with cygwin #28

martinthurn opened this issue Nov 20, 2014 · 1 comment

Comments

@martinthurn
Copy link

Fresh 32-bit cygwin on Windows 7

$ make
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.14
cd . && automake-1.14 --gnu
configure.ac:5: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.ac:5: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:8: error: required file './compile' not found
configure.ac:8: 'automake --add-missing' can install 'compile'
configure.ac:5: error: required file './missing' not found
configure.ac:5: 'automake --add-missing' can install 'missing'
Makefile.am:28: warning: source file 'encodings/compact_lang_det/cldutil.cc' is in a subdirectory,
Makefile.am:28: but option 'subdir-objects' is disabled
automake-1.14: warning: possible forward-incompatibility.
automake-1.14: At least a source file is in a subdirectory, but the 'subdir-objects'
automake-1.14: automake option hasn't been enabled. For now, the corresponding output
automake-1.14: object file(s) will be placed in the top-level directory. However,
automake-1.14: this behaviour will change in future Automake versions: they will
automake-1.14: unconditionally cause object files to be placed in the same subdirectory
automake-1.14: of the corresponding sources.
automake-1.14: You are advised to start using 'subdir-objects' option throughout your
automake-1.14: project, to avoid future incompatibilities.

@martinthurn
Copy link
Author

Well I got past the above error by executing automake --add-missing and then make again, but now it seems that you do not have settings for cygwin in build_config.h:

make[1]: Entering directory '/cygdrive/c/Martin/Scrapers/Columbia/cld'
/bin/sh ./libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME="Compact\ Language\ Detector" -DPACKAGE_TARNAME="cld" -DPACKAGE_VERSION="0.1" -DPACKAGE_STRING="Compact\ Language\ Detector\ 0.1" -DPACKAGE_BUGREPORT="matt@mzsanford.com" -DPACKAGE_URL="" -DPACKAGE="cld" -DVERSION="0.1" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. -I. -Ibase -DCLD_WINDOWS -g -O2 -MT cldutil.lo -MD -MP -MF .deps/cldutil.Tpo -c -o cldutil.lo test -f 'encodings/compact_lang_det/cldutil.cc' || echo './'encodings/compact_lang_det/cldutil.cc
libtool: compile: g++ "-DPACKAGE_NAME="Compact Language Detector"" -DPACKAGE_TARNAME="cld" -DPACKAGE_VERSION="0.1" "-DPACKAGE_STRING="Compact Language Detector 0.1"" -DPACKAGE_BUGREPORT="matt@mzsanford.com" -DPACKAGE_URL="" -DPACKAGE="cld" -DVERSION="0.1" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -I. -I. -Ibase -DCLD_WINDOWS -g -O2 -MT cldutil.lo -MD -MP -MF .deps/cldutil.Tpo -c encodings/compact_lang_det/cldutil.cc -DDLL_EXPORT -DPIC -o .libs/cldutil.o
In file included from ./base/port.h:9:0,
from ./base/basictypes.h:12,
from ./encodings/compact_lang_det/win/cld_basictypes.h:8,
from ./encodings/compact_lang_det/tote.h:9,
from ./encodings/compact_lang_det/cldutil.h:10,
from encodings/compact_lang_det/cldutil.cc:6:
./base/build_config.h:39:2: error: #error Please add support for your platform in build/build_config.h
#error Please add support for your platform in build/build_config.h
^
./base/build_config.h:112:2: error: #error Please add support for your compiler in build/build_config.h
#error Please add support for your compiler in build/build_config.h
^
Makefile:568: recipe for target 'cldutil.lo' failed
make[1]: *** [cldutil.lo] Error 1
make[1]: Leaving directory '/cygdrive/c/Martin/Scrapers/Columbia/cld'
Makefile:884: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant