mit-nlp / MITIE

MITIE: library and tools for information extraction
2.92k stars 537 forks source link

Errors Building MITIE for Java #22

Closed dbl001 closed 9 years ago

dbl001 commented 9 years ago

/Users/davidlaxer/MITIE/dlib/dlib/gui_widgets/nativefont.h:29:10: fatal error: 'X11/Xlocale.h' file not found

include <X11/Xlocale.h>

     ^

1 error generated.

OS X 10.10.4.

David-Laxers-MacBook-Pro:MITIE davidlaxer$ xcode-select --install xcode-select: error: command line tools are already installed, use "Software Update" to install updates

David-Laxers-MacBook-Pro:java davidlaxer$ pwd /Users/davidlaxer/MITIE/mitielib/java

David-Laxers-MacBook-Pro:java davidlaxer$ java -version java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode) David-Laxers-MacBook-Pro:java davidlaxer$

-- The C compiler identification is AppleClang 6.1.0.6020053 -- The CXX compiler identification is AppleClang 6.1.0.6020053

David-Laxers-MacBook-Pro:java davidlaxer$ mkdir build David-Laxers-MacBook-Pro:java davidlaxer$ cmake .. -- The C compiler identification is AppleClang 6.1.0.6020053 -- The CXX compiler identification is AppleClang 6.1.0.6020053 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- 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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for png_create_read_struct -- Looking for png_create_read_struct - found -- Looking for jpeg_read_header -- Looking for jpeg_read_header - found -- Searching for BLAS and LAPACK -- 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 void -- Check size of void\ - done -- Found OpenBLAS library -- Looking for sgetrf_single -- Looking for sgetrf_single - not found -- Found LAPACK library -- Looking for cblas_ddot -- Looking for cblas_ddot - found -- Check for STD namespace -- Check for STD namespace - found -- Looking for C++ include iostream -- Looking for C++ include iostream - found -- Configuring done CMake Warning (dev): Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake --help-policy CMP0042" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

MACOSX_RPATH is not specified for the following targets:

mitie

This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done -- Build files have been written to: /Users/davidlaxer/MITIE/mitielib/java David-Laxers-MacBook-Pro:java davidlaxer$ cmake --build . --config Release --target install Scanning dependencies of target dlib [ 0%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.o [ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.o [ 2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_2.o [ 3%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.o [ 4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.o [ 5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.o [ 6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.o [ 7%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.o [ 8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/md5/md5_kernel_1.o [ 9%] Building CXX object dlib_build/CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.o [ 10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/unicode/unicode.o [ 11%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/image_dataset_metadata.o [ 12%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_1.o [ 13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bsp/bsp.o [ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.o [ 15%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.o [ 16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.o [ 17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/linker/linker_kernel_1.o [ 18%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.o [ 19%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_kernel_1.o [ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_config_file.o [ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.o [ 21%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.o [ 22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_extensions.o [ 23%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_2.o [ 24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.o [ 25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.o [ 26%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_kernel.o [ 27%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_iostream.o [ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_http.o [ 29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.o [ 30%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threaded_object_extension.o [ 31%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_1.o [ 32%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_2.o [ 33%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_shared.o [ 34%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/thread_pool_extension.o [ 35%] Building CXX object dlib_build/CMakeFiles/dlib.dir/timer/timer.o [ 36%] Building CXX object dlib_build/CMakeFiles/dlib.dir/stack_trace.o [ 37%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o In file included from /Users/davidlaxer/MITIE/dlib/dlib/gui_widgets/fonts.cpp:14: /Users/davidlaxer/MITIE/dlib/dlib/gui_widgets/nativefont.h:29:10: fatal error: 'X11/Xlocale.h' file not found

include <X11/Xlocale.h>

     ^

1 error generated. dlib_build/CMakeFiles/dlib.dir/build.make:974: recipe for target 'dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o' failed gmake[2]: * [dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o] Error 1 CMakeFiles/Makefile2:122: recipe for target 'dlib_build/CMakeFiles/dlib.dir/all' failed gmake[1]: * [dlib_build/CMakeFiles/dlib.dir/all] Error 2 Makefile:127: recipe for target 'all' failed gmake: *\ [all] Error 2 David-Laxers-MacBook-Pro:java davidlaxer$

davisking commented 9 years ago

You don't have X11 installed correctly. Did you install XQuartz?

Also, where does cmake think X11 is? Run this command and post the output: grep X11 CMakeCache.txt

dbl001 commented 9 years ago

David-Laxers-MacBook-Pro:java davidlaxer$ grep X11 CMakeCache.txt dlib_LIB_DEPENDS:STATIC=general;/usr/lib/libpthread.dylib;general;/opt/local/lib/libX11.dylib;general;/users/davidlaxer/anaconda/lib/libpng.dylib;general;/opt/local/lib/libopenblas.dylib;general;/usr/lib/liblapack.dylib;general;/users/davidlaxer/anaconda/lib/libsqlite3.dylib; xlib:FILEPATH=/opt/local/lib/libX11.dylib xlib_path:PATH=/users/davidlaxer/anaconda/include/X11

On Aug 25, 2015, at 3:44 AM, Davis E. King notifications@github.com wrote:

You don't have X11 installed correctly. Did you install XQuartz?

Also, where does cmake think X11 is? Run this command and post the output: grep X11 CMakeCache.txt — Reply to this email directly or view it on GitHub https://github.com/mit-nlp/MITIE/issues/22#issuecomment-134552859.

dbl001 commented 9 years ago

I (re)installed XQuartz 2.7.7 from here:

http://xquartz.macosforge.org/trac/wiki/X112.7.7 http://xquartz.macosforge.org/trac/wiki/X112.7.7

Logged out, same error.

On Aug 25, 2015, at 3:50 AM, David Laxer davidl@softintel.com wrote:

David-Laxers-MacBook-Pro:java davidlaxer$ grep X11 CMakeCache.txt dlib_LIB_DEPENDS:STATIC=general;/usr/lib/libpthread.dylib;general;/opt/local/lib/libX11.dylib;general;/users/davidlaxer/anaconda/lib/libpng.dylib;general;/opt/local/lib/libopenblas.dylib;general;/usr/lib/liblapack.dylib;general;/users/davidlaxer/anaconda/lib/libsqlite3.dylib; xlib:FILEPATH=/opt/local/lib/libX11.dylib xlib_path:PATH=/users/davidlaxer/anaconda/include/X11

On Aug 25, 2015, at 3:44 AM, Davis E. King <notifications@github.com mailto:notifications@github.com> wrote:

You don't have X11 installed correctly. Did you install XQuartz?

Also, where does cmake think X11 is? Run this command and post the output: grep X11 CMakeCache.txt — Reply to this email directly or view it on GitHub https://github.com/mit-nlp/MITIE/issues/22#issuecomment-134552859.

davisking commented 9 years ago

CMake is finding the anaconda copy of X11 which is missing files.

If you edit dlib/CMakeLists.txt at line 149 to say:

        find_path(xlib_path NAMES Xlib.h Xlocale.h

instead of this:

        find_path(xlib_path Xlib.h

Does it fix the problem? You will probably have to delete the folder and rerun cmake.

dbl001 commented 9 years ago

I removed the build directory, recreated it, cd’d to it, then ran cmake .. This didn’t happen before I edited dlib/dlib/CMakeLists.txt

David-Laxers-MacBook-Pro:build davidlaxer$ cmake .. -- Searching for BLAS and LAPACK -- Found OpenBLAS library -- Found LAPACK library -- Configuring done CMake Warning (dev): Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake --help-policy CMP0042" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

MACOSX_RPATH is not specified for the following targets:

mitie

This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done -- Build files have been written to: /Users/davidlaxer/MITIE/mitielib/java

The build directory is empty:

David-Laxers-MacBook-Pro:build davidlaxer$ pwd /Users/davidlaxer/MITIE/mitielib/java/build David-Laxers-MacBook-Pro:build davidlaxer$ ls -l David-Laxers-MacBook-Pro:build davidlaxer$

On Aug 25, 2015, at 4:45 AM, Davis E. King notifications@github.com wrote:

CMake is finding the anaconda copy of X11 which is missing files.

If you edit dlib/CMakeLists.txt at line 149 to say:

find_path(xlib_path NAMES Xlib.h Xlocale.h

instead of this:

find_path(xlib_path Xlib.h

Does it fix the problem? You will probably have to delete the folder and rerun cmake. — Reply to this email directly or view it on GitHub https://github.com/mit-nlp/MITIE/issues/22#issuecomment-134561784.

davisking commented 9 years ago

It says "Build files have been written to: /Users/davidlaxer/MITIE/mitielib/java". ;-)

dbl001 commented 9 years ago

I know. But this didn’t happen before I changed dlib/dlib/CMakeLists.txt. Is this expected?

On Aug 25, 2015, at 10:21 AM, Davis E. King notifications@github.com wrote:

It says "Build files have been written to: /Users/davidlaxer/MITIE/mitielib/java". ;-) — Reply to this email directly or view it on GitHub https://github.com/mit-nlp/MITIE/issues/22#issuecomment-134676516.

davisking commented 9 years ago

No, it is unrelated. It's because you also ran cmake in the parent folder and generated files there. Delete the entire source tree and try again to clear out any build files you have generated.

dbl001 commented 9 years ago

David-Laxers-MacBook-Pro:java davidlaxer$ pwd /Users/davidlaxer/MITIE/mitielib/java David-Laxers-MacBook-Pro:java davidlaxer$ make clean David-Laxers-MacBook-Pro:java davidlaxer$ cmake --build . --config Release --target install [ 0%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.o [ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.o [ 2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_2.o [ 3%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.o [ 4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.o [ 5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.o [ 6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.o [ 7%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.o [ 8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/md5/md5_kernel_1.o [ 9%] Building CXX object dlib_build/CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.o [ 10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/unicode/unicode.o [ 11%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/image_dataset_metadata.o [ 12%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_1.o [ 13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bsp/bsp.o [ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.o [ 15%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.o [ 16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.o [ 17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/linker/linker_kernel_1.o [ 18%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.o [ 19%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_kernel_1.o [ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_config_file.o [ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.o [ 21%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.o [ 22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_extensions.o [ 23%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_2.o [ 24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.o [ 25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.o [ 26%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_kernel.o [ 27%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_iostream.o [ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_http.o [ 29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.o [ 30%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threaded_object_extension.o [ 31%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_1.o [ 32%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_2.o [ 33%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_shared.o [ 34%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/thread_pool_extension.o [ 35%] Building CXX object dlib_build/CMakeFiles/dlib.dir/timer/timer.o [ 36%] Building CXX object dlib_build/CMakeFiles/dlib.dir/stack_trace.o [ 37%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o In file included from /Users/davidlaxer/MITIE/dlib/dlib/gui_widgets/fonts.cpp:14: /Users/davidlaxer/MITIE/dlib/dlib/gui_widgets/nativefont.h:29:10: fatal error: 'X11/Xlocale.h' file not found

include <X11/Xlocale.h>

     ^

1 error generated. dlib_build/CMakeFiles/dlib.dir/build.make:974: recipe for target 'dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o' failed gmake[2]: * [dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o] Error 1 CMakeFiles/Makefile2:122: recipe for target 'dlib_build/CMakeFiles/dlib.dir/all' failed gmake[1]: * [dlib_build/CMakeFiles/dlib.dir/all] Error 2 Makefile:127: recipe for target 'all' failed gmake: *\ [all] Error 2 David-Laxers-MacBook-Pro:java davidlaxer$

On Aug 25, 2015, at 10:21 AM, Davis E. King notifications@github.com wrote:

It says "Build files have been written to: /Users/davidlaxer/MITIE/mitielib/java". ;-) — Reply to this email directly or view it on GitHub https://github.com/mit-nlp/MITIE/issues/22#issuecomment-134676516.

davisking commented 9 years ago

That didn't rerun cmake. Delete all the build files you generated and rerun it from scratch. I would just reclone the repo and try from a fresh copy.

dbl001 commented 9 years ago

Same error. For Java and for C:

David-Laxers-MacBook-Pro:dlib davidlaxer$ cd dlib/dlib

David-Laxers-MacBook-Pro:dlib davidlaxer$ vi CMakeLists.txt if (NOT DLIB_NO_GUI_SUPPORT) find_library(xlib X11)

make sure X11 is in the include path

        find_path(xlib_path NAMES Xlib.h Xlocale.h
           PATHS
           /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include
           PATH_SUFFIXES X11
           )

David-Laxers-MacBook-Pro:dlib davidlaxer$ cd ../.. David-Laxers-MacBook-Pro:MITIE davidlaxer$ make MITIE-models curl -LO http://sourceforge.net/projects/mitie/files/binaries/MITIE-models-v0.2.tar.bz2 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 357 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 447 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 361 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 415M 100 415M 0 0 128k 0 0:55:21 0:55:21 --:--:-- 119k tar -xjf MITIE-models-v0.2.tar.bz2 David-Laxers-MacBook-Pro:MITIE davidlaxer$ make /Applications/Xcode.app/Contents/Developer/usr/bin/make -C mitielib Compiling src/mitie.cpp Compiling src/named_entity_extractor.cpp Compiling src/ner_feature_extraction.cpp Compiling src/binary_relation_detector.cpp Compiling src/binary_relation_detector_trainer.cpp Compiling src/stem.c Compiling src/stemmer.cpp Compiling src/conll_parser.cpp Compiling src/ner_trainer.cpp Compiling ../dlib/dlib/threads/multithreaded_object_extension.cpp Compiling ../dlib/dlib/threads/threaded_object_extension.cpp Compiling ../dlib/dlib/threads/threads_kernel_1.cpp Compiling ../dlib/dlib/threads/threads_kernel_2.cpp Compiling ../dlib/dlib/threads/threads_kernel_shared.cpp Compiling ../dlib/dlib/threads/thread_pool_extension.cpp Compiling ../dlib/dlib/misc_api/misc_api_kernel_1.cpp Compiling ../dlib/dlib/misc_api/misc_api_kernel_2.cpp Linking libmitie.so Making libmitie.a /opt/local/bin/ranlib: file: libmitie.a(threads_kernel_1.o) has no symbols Build Complete /Applications/Xcode.app/Contents/Developer/usr/bin/make -C tools/ner_stream Compiling src/main.cpp make[2]: Nothing to be done for all'. Linking ner_stream with flags: ../../mitielib/libmitie.a Build Complete /Applications/Xcode.app/Contents/Developer/usr/bin/make -C examples/C/ner Compiling ner_example.c make[2]: Nothing to be done forall'. Linking ner_example with flags: ../../../mitielib/libmitie.a -lpthread Build Complete /Applications/Xcode.app/Contents/Developer/usr/bin/make -C examples/C/relation_extraction Compiling relation_extraction_example.c make[2]: Nothing to be done for all'. Linking relation_extraction_example with flags: ../../../mitielib/libmitie.a -lpthread Build Complete cp examples/C/ner/ner_example . cp examples/C/relation_extraction/relation_extraction_example . cp tools/ner_stream/ner_stream . David-Laxers-MacBook-Pro:MITIE davidlaxer$ cd mitielib/ David-Laxers-MacBook-Pro:mitielib davidlaxer$ make make: Nothing to be done forall'. David-Laxers-MacBook-Pro:mitielib davidlaxer$ cd .. David-Laxers-MacBook-Pro:MITIE davidlaxer$ cd examples/C/ner/ David-Laxers-MacBook-Pro:ner davidlaxer$ mkdir build David-Laxers-MacBook-Pro:ner davidlaxer$ cd build David-Laxers-MacBook-Pro:build davidlaxer$ cmake .. -- The C compiler identification is AppleClang 6.1.0.6020053 -- The CXX compiler identification is AppleClang 6.1.0.6020053 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- 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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for png_create_read_struct -- Looking for png_create_read_struct - found -- Looking for jpeg_read_header -- Looking for jpeg_read_header - found -- Searching for BLAS and LAPACK -- 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 void -- Check size of void\ - done -- Found OpenBLAS library -- Looking for sgetrf_single -- Looking for sgetrf_single - not found -- Found LAPACK library -- Looking for cblas_ddot -- Looking for cblas_ddot - found -- Check for STD namespace -- Check for STD namespace - found -- Looking for C++ include iostream -- Looking for C++ include iostream - found -- Configuring done -- Generating done -- Build files have been written to: /Users/davidlaxer/MITIE/examples/C/ner/build David-Laxers-MacBook-Pro:build davidlaxer$ cmake --build . --config Release Scanning dependencies of target dlib [ 0%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.o [ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.o [ 2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_2.o [ 3%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.o [ 4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.o [ 5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.o [ 6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.o [ 7%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.o [ 8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/md5/md5_kernel_1.o [ 9%] Building CXX object dlib_build/CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.o [ 10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/unicode/unicode.o [ 11%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/image_dataset_metadata.o [ 12%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_1.o [ 13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bsp/bsp.o [ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.o [ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.o [ 15%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.o [ 16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/linker/linker_kernel_1.o [ 17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.o [ 18%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_kernel_1.o [ 19%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_config_file.o [ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.o [ 21%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.o [ 22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_extensions.o [ 23%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_2.o [ 24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.o [ 25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.o [ 26%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_kernel.o [ 27%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_iostream.o [ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_http.o [ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.o [ 29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threaded_object_extension.o [ 30%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_1.o [ 31%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_2.o [ 32%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_shared.o [ 33%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/thread_pool_extension.o [ 34%] Building CXX object dlib_build/CMakeFiles/dlib.dir/timer/timer.o [ 35%] Building CXX object dlib_build/CMakeFiles/dlib.dir/stack_trace.o [ 36%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o In file included from /Users/davidlaxer/MITIE/dlib/dlib/gui_widgets/fonts.cpp:14: /Users/davidlaxer/MITIE/dlib/dlib/gui_widgets/nativefont.h:29:10: fatal error: 'X11/Xlocale.h' file not found

include <X11/Xlocale.h>

     ^

1 error generated. dlib_build/CMakeFiles/dlib.dir/build.make:974: recipe for target 'dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o' failed gmake[2]: * [dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o] Error 1 CMakeFiles/Makefile2:123: recipe for target 'dlib_build/CMakeFiles/dlib.dir/all' failed gmake[1]: * [dlib_build/CMakeFiles/dlib.dir/all] Error 2 Makefile:127: recipe for target 'all' failed gmake: ** [all] Error 2 David-Laxers-MacBook-Pro:build davidlaxer$ cd .. David-Laxers-MacBook-Pro:ner davidlaxer$ cd .. David-Laxers-MacBook-Pro:C davidlaxer$ ls ner relation_extraction David-Laxers-MacBook-Pro:C davidlaxer$ cd .. David-Laxers-MacBook-Pro:examples davidlaxer$ ls C cpp java matlab python David-Laxers-MacBook-Pro:examples davidlaxer$ cd pwd -bash: cd: pwd: No such file or directory David-Laxers-MacBook-Pro:examples davidlaxer$ pwd /Users/davidlaxer/MITIE/examples David-Laxers-MacBook-Pro:examples davidlaxer$ cd .. David-Laxers-MacBook-Pro:MITIE davidlaxer$ cd mitielib/java David-Laxers-MacBook-Pro:java davidlaxer$ mkdir build David-Laxers-MacBook-Pro:java davidlaxer$ cd build David-Laxers-MacBook-Pro:build davidlaxer$ cmake .. -- The C compiler identification is AppleClang 6.1.0.6020053 -- The CXX compiler identification is AppleClang 6.1.0.6020053 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- 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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for png_create_read_struct -- Looking for png_create_read_struct - found -- Looking for jpeg_read_header -- Looking for jpeg_read_header - found -- Searching for BLAS and LAPACK -- 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 void -- Check size of void* - done -- Found OpenBLAS library -- Looking for sgetrf_single -- Looking for sgetrf_single - not found -- Found LAPACK library -- Looking for cblas_ddot -- Looking for cblas_ddot - found -- Check for STD namespace -- Check for STD namespace - found -- Looking for C++ include iostream -- Looking for C++ include iostream - found -- Found SWIG: /usr/local/bin/swig (found version "2.0.1") -- Found Java: /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java (found version "1.8.0.05") -- Found JNI: /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libjawt.dylib
-- Configuring done -- Generating done -- Build files have been written to: /Users/davidlaxer/MITIE/mitielib/java/build David-Laxers-MacBook-Pro:build davidlaxer$ cmake --build . --config Release --target install Scanning dependencies of target dlib [ 0%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.o [ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.o [ 2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_2.o [ 3%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.o [ 4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.o [ 5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.o [ 6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.o [ 7%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.o [ 8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/md5/md5_kernel_1.o [ 9%] Building CXX object dlib_build/CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.o [ 10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/unicode/unicode.o [ 11%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/image_dataset_metadata.o [ 12%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_1.o [ 13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bsp/bsp.o [ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.o [ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.o [ 15%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.o [ 16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/linker/linker_kernel_1.o [ 17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.o [ 18%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_kernel_1.o [ 19%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_config_file.o [ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.o [ 21%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.o [ 22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_extensions.o [ 23%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_2.o [ 24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.o [ 25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.o [ 26%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_kernel.o [ 27%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_iostream.o [ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_http.o [ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.o [ 29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threaded_object_extension.o [ 30%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_1.o [ 31%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_2.o [ 32%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_shared.o [ 33%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/thread_pool_extension.o [ 34%] Building CXX object dlib_build/CMakeFiles/dlib.dir/timer/timer.o [ 35%] Building CXX object dlib_build/CMakeFiles/dlib.dir/stack_trace.o [ 36%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o In file included from /Users/davidlaxer/MITIE/dlib/dlib/gui_widgets/fonts.cpp:14: /Users/davidlaxer/MITIE/dlib/dlib/gui_widgets/nativefont.h:29:10: fatal error: 'X11/Xlocale.h' file not found

include <X11/Xlocale.h>

     ^

1 error generated. dlib_build/CMakeFiles/dlib.dir/build.make:974: recipe for target 'dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o' failed gmake[2]: * [dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o] Error 1 CMakeFiles/Makefile2:122: recipe for target 'dlib_build/CMakeFiles/dlib.dir/all' failed gmake[1]: * [dlib_build/CMakeFiles/dlib.dir/all] Error 2 Makefile:127: recipe for target 'all' failed gmake: *\ [all] Error 2 David-Laxers-MacBook-Pro:build davidlaxer$

On Aug 25, 2015, at 10:31 AM, Davis E. King notifications@github.com wrote:

That didn't rerun cmake. Delete all the build files you generated and rerun it from scratch. I would just reclone the repo and try from a fresh copy. — Reply to this email directly or view it on GitHub https://github.com/mit-nlp/MITIE/issues/22#issuecomment-134678800.

davisking commented 9 years ago

Hmm, try replacing that find_path statement with this:

        find_path(xlib_path_hint X11/Xlocale.h )
        find_path(xlib_path Xlib.h
           HINTS ${xlib_path_hint}
           PATHS
           /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include
           PATH_SUFFIXES X11
           )
dbl001 commented 9 years ago

Same thing. Is this what you meant?

CMakeLists.txt:

    if (NOT DLIB_NO_GUI_SUPPORT)
        find_library(xlib X11)
        # make sure X11 is in the include path
        find_path(xlib_path_hint X11/Xlocale.h )
        find_path(xlib_path Xlib.h
        HINTS ${xlib_path_hint}
           PATHS
           /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include
           PATH_SUFFIXES X11
           )
        if (xlib AND xlib_path)

David-Laxers-MacBook-Pro:dlib davidlaxer$ vi CMakeLists.txt David-Laxers-MacBook-Pro:dlib davidlaxer$ cd David-Laxers-MacBook-Pro:~ davidlaxer$ cd MITIE/mitielib/java/ David-Laxers-MacBook-Pro:java davidlaxer$ rm -rf build David-Laxers-MacBook-Pro:java davidlaxer$ mkdir build David-Laxers-MacBook-Pro:java davidlaxer$ cd build David-Laxers-MacBook-Pro:build davidlaxer$ cmake .. -- The C compiler identification is AppleClang 6.1.0.6020053 -- The CXX compiler identification is AppleClang 6.1.0.6020053 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- 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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for png_create_read_struct -- Looking for png_create_read_struct - found -- Looking for jpeg_read_header -- Looking for jpeg_read_header - found -- Searching for BLAS and LAPACK -- 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 void -- Check size of void\ - done -- Found OpenBLAS library -- Looking for sgetrf_single -- Looking for sgetrf_single - not found -- Found LAPACK library -- Looking for cblas_ddot -- Looking for cblas_ddot - found -- Check for STD namespace -- Check for STD namespace - found -- Looking for C++ include iostream -- Looking for C++ include iostream - found -- Found SWIG: /usr/local/bin/swig (found version "2.0.1") -- Found Java: /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java (found version "1.8.0.05") -- Found JNI: /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libjawt.dylib
-- Configuring done -- Generating done -- Build files have been written to: /Users/davidlaxer/MITIE/mitielib/java/build David-Laxers-MacBook-Pro:build davidlaxer$ cmake --build . --config Release --target install Scanning dependencies of target dlib [ 0%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.o [ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.o [ 2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_2.o [ 3%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.o [ 4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.o [ 5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.o [ 6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.o [ 7%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.o [ 8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/md5/md5_kernel_1.o [ 9%] Building CXX object dlib_build/CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.o [ 10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/unicode/unicode.o [ 11%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/image_dataset_metadata.o [ 12%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_1.o [ 13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bsp/bsp.o [ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.o [ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.o [ 15%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.o [ 16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/linker/linker_kernel_1.o [ 17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.o [ 18%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_kernel_1.o [ 19%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_config_file.o [ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.o [ 21%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.o [ 22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_extensions.o [ 23%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_2.o [ 24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.o [ 25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.o [ 26%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_kernel.o [ 27%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_iostream.o [ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_http.o [ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.o [ 29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threaded_object_extension.o [ 30%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_1.o [ 31%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_2.o [ 32%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_shared.o [ 33%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/thread_pool_extension.o [ 34%] Building CXX object dlib_build/CMakeFiles/dlib.dir/timer/timer.o [ 35%] Building CXX object dlib_build/CMakeFiles/dlib.dir/stack_trace.o [ 36%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o In file included from /Users/davidlaxer/MITIE/dlib/dlib/gui_widgets/fonts.cpp:14: /Users/davidlaxer/MITIE/dlib/dlib/gui_widgets/nativefont.h:29:10: fatal error: 'X11/Xlocale.h' file not found

include <X11/Xlocale.h>

     ^

1 error generated. dlib_build/CMakeFiles/dlib.dir/build.make:974: recipe for target 'dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o' failed gmake[2]: * [dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.o] Error 1 CMakeFiles/Makefile2:122: recipe for target 'dlib_build/CMakeFiles/dlib.dir/all' failed gmake[1]: * [dlib_build/CMakeFiles/dlib.dir/all] Error 2 Makefile:127: recipe for target 'all' failed gmake: *\ [all] Error 2 David-Laxers-MacBook-Pro:build davidlaxer$

On Aug 25, 2015, at 2:07 PM, Davis E. King notifications@github.com wrote:

Hmm, try replacing that find_path statement with this:

find_path(xlib_path_hint X11/Xlocale.h ) find_path(xlib_path Xlib.h HINTS ${xlib_path_hint} PATHS /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include PATH_SUFFIXES X11 ) — Reply to this email directly or view it on GitHub https://github.com/mit-nlp/MITIE/issues/22#issuecomment-134742384.

#

This is a CMake makefile. You can find the cmake utility and

information about it at http://www.cmake.org

#

setting this makes CMake allow normal looking if else statements

SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)

cmake_minimum_required(VERSION 2.4)

set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required

Suppress cmake warnings about changes in new versions.

if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) if (POLICY CMP0054) cmake_policy(SET CMP0054 NEW) endif() endif()

make macros that can add #define directives to the entire project. Not just

to the dlib library itself. I.e. to dlib and to any projects that depend

on dlib.

macro ( add_global_define def_name ) if (NOT CMAKE_CXX_FLAGS MATCHES "-D${def_name}") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D${def_name}" CACHE STRING "Flags used by the compiler during all C++ builds." FORCE) endif () endmacro() macro ( remove_global_define def_name ) if (CMAKE_CXX_FLAGS MATCHES " -D${def_name}") string (REGEX REPLACE " -D${def_name}" "" temp_var ${CMAKE_CXX_FLAGS}) set (CMAKE_CXX_FLAGS "${temp_var}" CACHE STRING "Flags used by the compiler during all C++ builds." FORCE) endif () endmacro()

Make sure ENABLE_ASSERTS is defined for debug builds

if (NOT CMAKE_CXX_FLAGS_DEBUG MATCHES "-DENABLE_ASSERTS") set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DENABLE_ASSERTS" CACHE STRING "Flags used by the compiler during C++ debug builds." FORCE) endif ()

Don't try to call add_library(dlib) and setup dlib's stuff if it has already

been done by some other part of the current cmake project. We do this

because it avoids getting warnings/errors about cmake policy CMP0002. This

happens when a project tries to call add_subdirectory() on dlib more than

once. This most often happens when the top level of a project depends on two

or more other things which both depend on dlib.

if (NOT TARGET dlib)

set (DLIB_ISO_CPP_ONLY_STR "Enable this if you don't want to compile any non-ISO C++ code (i.e. you don't use any of the API Wrappers)" ) set (DLIB_NO_GUI_SUPPORT_STR "Enable this if you don't want to compile any of the dlib GUI code" ) set (DLIB_ENABLE_STACK_TRACE_STR "Enable this if you want to turn on the DLIB_STACK_TRACE macros" ) set (DLIB_ENABLE_ASSERTS_STR "Enable this if you want to turn on the DLIB_ASSERT macro" ) set (DLIB_USE_BLAS_STR "Disable this if you don't want to use a BLAS library" ) set (DLIB_USE_LAPACK_STR "Disable this if you don't want to use a LAPACK library" ) set (DLIB_LINK_WITH_LIBPNG_STR "Disable this if you don't want to link against libpng" ) set (DLIB_LINK_WITH_LIBJPEG_STR "Disable this if you don't want to link against libjpeg" ) set (DLIB_LINK_WITH_SQLITE3_STR "Disable this if you don't want to link against sqlite3" )

set (DLIB_LINK_WITH_FFTW_STR "Disable this if you don't want to link against fftw" )

option(DLIB_ISO_CPP_ONLY ${DLIB_ISO_CPP_ONLY_STR} OFF) option(DLIB_NO_GUI_SUPPORT ${DLIB_NO_GUI_SUPPORT_STR} OFF) option(DLIB_ENABLE_STACK_TRACE ${DLIB_ENABLE_STACK_TRACE_STR} OFF) option(DLIB_ENABLE_ASSERTS ${DLIB_ENABLE_ASSERTS_STR} OFF) option(DLIB_USE_BLAS ${DLIB_USE_BLAS_STR} ON) option(DLIB_USE_LAPACK ${DLIB_USE_LAPACK_STR} ON) option(DLIB_LINK_WITH_LIBPNG ${DLIB_LINK_WITH_LIBPNG_STR} ON) option(DLIB_LINK_WITH_LIBJPEG ${DLIB_LINK_WITH_LIBJPEG_STR} ON) option(DLIB_LINK_WITH_SQLITE3 ${DLIB_LINK_WITH_SQLITE3_STR} ON)

option(DLIB_LINK_WITH_FFTW ${DLIB_LINK_WITH_FFTW_STR} ON)

set(source_files base64/base64_kernel_1.cpp bigint/bigint_kernel_1.cpp bigint/bigint_kernel_2.cpp bit_stream/bit_stream_kernel_1.cpp entropy_decoder/entropy_decoder_kernel_1.cpp entropy_decoder/entropy_decoder_kernel_2.cpp entropy_encoder/entropy_encoder_kernel_1.cpp entropy_encoder/entropy_encoder_kernel_2.cpp md5/md5_kernel_1.cpp tokenizer/tokenizer_kernel_1.cpp unicode/unicode.cpp data_io/image_dataset_metadata.cpp)

if (DLIB_ISO_CPP_ONLY) add_library(dlib STATIC ${source_files} ) else()

  set(source_files ${source_files}
     sockets/sockets_kernel_1.cpp
     bsp/bsp.cpp
     dir_nav/dir_nav_kernel_1.cpp
     dir_nav/dir_nav_kernel_2.cpp
     dir_nav/dir_nav_extensions.cpp
     linker/linker_kernel_1.cpp
     logger/extra_logger_headers.cpp
     logger/logger_kernel_1.cpp
     logger/logger_config_file.cpp
     misc_api/misc_api_kernel_1.cpp
     misc_api/misc_api_kernel_2.cpp
     sockets/sockets_extensions.cpp
     sockets/sockets_kernel_2.cpp
     sockstreambuf/sockstreambuf.cpp
     sockstreambuf/sockstreambuf_unbuffered.cpp
     server/server_kernel.cpp
     server/server_iostream.cpp
     server/server_http.cpp
     threads/multithreaded_object_extension.cpp
     threads/threaded_object_extension.cpp
     threads/threads_kernel_1.cpp
     threads/threads_kernel_2.cpp
     threads/threads_kernel_shared.cpp
     threads/thread_pool_extension.cpp
     timer/timer.cpp
     stack_trace.cpp
     )

  # we want to link to the right stuff depending on our platform.  
  if (WIN32 AND NOT CYGWIN) ###############################################################################
     if (DLIB_NO_GUI_SUPPORT)
        set (dlib_needed_libraries ws2_32 winmm)
     else()
        set (dlib_needed_libraries ws2_32 winmm comctl32 gdi32 imm32)
     endif()
  elseif(APPLE) ############################################################################
     find_library(pthreadlib pthread)
     set (dlib_needed_libraries ${pthreadlib})

     if (NOT DLIB_NO_GUI_SUPPORT)
        find_library(xlib X11)
        # make sure X11 is in the include path
    find_path(xlib_path_hint X11/Xlocale.h )
    find_path(xlib_path Xlib.h
    HINTS ${xlib_path_hint}
           PATHS 
           /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include
           PATH_SUFFIXES X11
           )
        if (xlib AND xlib_path)
           get_filename_component(x11_path ${xlib_path} PATH CACHE)
           include_directories(${x11_path})
           set(dlib_needed_libraries ${dlib_needed_libraries} ${xlib} )
        else()
           message(" *****************************************************************************")
           message(" *** DLIB GUI SUPPORT DISABLED BECAUSE X11 DEVELOPMENT LIBRARIES NOT FOUND ***")
           message(" *** Make sure XQuartz is installed if you want GUI support.               ***")
           message(" *** You can download XQuartz from: http://xquartz.macosforge.org/landing/ ***")
           message(" *****************************************************************************")
           set(DLIB_NO_GUI_SUPPORT ON CACHE STRING ${DLIB_NO_GUI_SUPPORT_STR} FORCE )
        endif()
     endif()

     mark_as_advanced(pthreadlib xlib xlib_path x11_path)
  else () ##################################################################################
     find_library(pthreadlib pthread)
     set (dlib_needed_libraries ${pthreadlib})

     # link to the nsl library if it exists.  this is something you need sometimes 
     find_library(nsllib nsl)
     if (nsllib)
        set (dlib_needed_libraries ${dlib_needed_libraries} ${nsllib})
     endif ()

     # link to the socket library if it exists.  this is something you need on solaris
     find_library(socketlib socket)
     if (socketlib)
        set (dlib_needed_libraries ${dlib_needed_libraries} ${socketlib})
     endif ()

     if (NOT DLIB_NO_GUI_SUPPORT)
        include(FindX11)
        if (X11_FOUND)
           include_directories(${X11_INCLUDE_DIR})
           set (dlib_needed_libraries ${dlib_needed_libraries} ${X11_LIBRARIES})
        else()
           message(" *****************************************************************************")
           message(" *** DLIB GUI SUPPORT DISABLED BECAUSE X11 DEVELOPMENT LIBRARIES NOT FOUND ***")
           message(" *** Make sure libx11-dev is installed if you want GUI support.            ***")
           message(" *** On Ubuntu run: sudo apt-get install libx11-dev                        ***")
           message(" *****************************************************************************")
           set(DLIB_NO_GUI_SUPPORT ON CACHE STRING ${DLIB_NO_GUI_SUPPORT_STR} FORCE )
        endif()
     endif()

     mark_as_advanced(nsllib pthreadlib socketlib)
  endif () ##################################################################################

  if (NOT DLIB_NO_GUI_SUPPORT)
     set(source_files ${source_files}
        gui_widgets/fonts.cpp
        gui_widgets/widgets.cpp
        gui_widgets/drawable.cpp
        gui_widgets/canvas_drawing.cpp
        gui_widgets/style.cpp
        gui_widgets/base_widgets.cpp
        gui_core/gui_core_kernel_1.cpp
        gui_core/gui_core_kernel_2.cpp
        )
  endif()

  INCLUDE (CheckFunctionExists)

  if (DLIB_LINK_WITH_LIBPNG)
     # try to find libpng 
     find_package(PNG QUIET)
     # Make sure there isn't something wrong with the version of LIBPNG
     # installed on this system.  
     if (PNG_FOUND)
        set(CMAKE_REQUIRED_LIBRARIES ${PNG_LIBRARY})
        CHECK_FUNCTION_EXISTS(png_create_read_struct LIBPNG_IS_GOOD)
     endif()
     if (PNG_FOUND AND LIBPNG_IS_GOOD)
        include_directories(${PNG_INCLUDE_DIR})
        set (dlib_needed_libraries ${dlib_needed_libraries} ${PNG_LIBRARY})
     else()
        # If we can't find libpng then statically compile it in.
        include_directories(external/libpng external/zlib)
        set(source_files ${source_files}
           external/libpng/png.c
           external/libpng/pngerror.c
           external/libpng/pngget.c
           external/libpng/pngmem.c
           external/libpng/pngpread.c
           external/libpng/pngread.c
           external/libpng/pngrio.c
           external/libpng/pngrtran.c
           external/libpng/pngrutil.c
           external/libpng/pngset.c
           external/libpng/pngtrans.c
           external/libpng/pngwio.c
           external/libpng/pngwrite.c
           external/libpng/pngwtran.c
           external/libpng/pngwutil.c
           external/zlib/adler32.c
           external/zlib/compress.c
           external/zlib/crc32.c
           external/zlib/deflate.c
           external/zlib/gzclose.c
           external/zlib/gzlib.c
           external/zlib/gzread.c
           external/zlib/gzwrite.c
           external/zlib/infback.c
           external/zlib/inffast.c
           external/zlib/inflate.c
           external/zlib/inftrees.c
           external/zlib/trees.c
           external/zlib/uncompr.c
           external/zlib/zutil.c
           )
     endif()
     set(source_files ${source_files}
        image_loader/png_loader.cpp
        image_saver/save_png.cpp
        )
  endif()

  if (DLIB_LINK_WITH_LIBJPEG)
     # try to find libjpeg 
     find_package(JPEG QUIET)
     # Make sure there isn't something wrong with the version of libjpeg 
     # installed on this system.  Also don't use the installed libjpeg
     # if this is an APPLE system because apparently it's broken (as of 2015/01/01).
     if (JPEG_FOUND)
        set(CMAKE_REQUIRED_LIBRARIES ${JPEG_LIBRARY})
        CHECK_FUNCTION_EXISTS(jpeg_read_header LIBJPEG_IS_GOOD)
     endif()
     if (JPEG_FOUND AND LIBJPEG_IS_GOOD AND NOT APPLE)
        include_directories(${JPEG_INCLUDE_DIR})
        set (dlib_needed_libraries ${dlib_needed_libraries} ${JPEG_LIBRARY})
     else()
        # If we can't find libjpeg then statically compile it in.
        add_definitions(-DDLIB_JPEG_STATIC)
        set(source_files ${source_files}
              external/libjpeg/jcomapi.cpp
              external/libjpeg/jdapimin.cpp
              external/libjpeg/jdapistd.cpp
              external/libjpeg/jdatasrc.cpp
              external/libjpeg/jdcoefct.cpp
              external/libjpeg/jdcolor.cpp
              external/libjpeg/jddctmgr.cpp
              external/libjpeg/jdhuff.cpp
              external/libjpeg/jdinput.cpp
              external/libjpeg/jdmainct.cpp
              external/libjpeg/jdmarker.cpp
              external/libjpeg/jdmaster.cpp
              external/libjpeg/jdmerge.cpp
              external/libjpeg/jdphuff.cpp
              external/libjpeg/jdpostct.cpp
              external/libjpeg/jdsample.cpp
              external/libjpeg/jerror.cpp
              external/libjpeg/jidctflt.cpp
              external/libjpeg/jidctfst.cpp
              external/libjpeg/jidctint.cpp
              external/libjpeg/jidctred.cpp
              external/libjpeg/jmemmgr.cpp
              external/libjpeg/jmemnobs.cpp
              external/libjpeg/jquant1.cpp
              external/libjpeg/jquant2.cpp
              external/libjpeg/jutils.cpp  
              external/libjpeg/jcapimin.cpp
              external/libjpeg/jdatadst.cpp
              external/libjpeg/jcparam.cpp
              external/libjpeg/jcapistd.cpp
              external/libjpeg/jcmarker.cpp
              external/libjpeg/jcinit.cpp
              external/libjpeg/jcmaster.cpp
              external/libjpeg/jcdctmgr.cpp
              external/libjpeg/jccoefct.cpp  
              external/libjpeg/jccolor.cpp  
              external/libjpeg/jchuff.cpp  
              external/libjpeg/jcmainct.cpp  
              external/libjpeg/jcphuff.cpp  
              external/libjpeg/jcprepct.cpp  
              external/libjpeg/jcsample.cpp
              external/libjpeg/jfdctint.cpp
              external/libjpeg/jfdctflt.cpp
              external/libjpeg/jfdctfst.cpp
              )
     endif()
     set(source_files ${source_files}
        image_loader/jpeg_loader.cpp
        image_saver/save_jpeg.cpp
        )
  endif()

  if (DLIB_USE_BLAS OR DLIB_USE_LAPACK)
     # Try to find BLAS and LAPACK 
     include(cmake_find_blas.txt)

     if (DLIB_USE_BLAS)
        if (blas_found)
           set (dlib_needed_libraries ${dlib_needed_libraries} ${blas_libraries})
        else()
           set(DLIB_USE_BLAS OFF CACHE STRING ${DLIB_USE_BLAS_STR} FORCE )
        endif()
     endif()

     if (DLIB_USE_LAPACK)
        if (lapack_found)
           set (dlib_needed_libraries ${dlib_needed_libraries} ${lapack_libraries})
        else()
           set(DLIB_USE_LAPACK OFF CACHE STRING ${DLIB_USE_LAPACK_STR} FORCE )
        endif()
     endif()
  endif()

  if (DLIB_LINK_WITH_SQLITE3)
     find_library(sqlite sqlite3)
     # make sure sqlite3.h is in the include path
     find_path(sqlite_path sqlite3.h)
     if (sqlite AND sqlite_path)
        get_filename_component(sqlite_path2 ${sqlite_path} PATH CACHE)
        include_directories(${sqlite_path2})
        set(dlib_needed_libraries ${dlib_needed_libraries} ${sqlite} )
     else()
        set(DLIB_LINK_WITH_SQLITE3 OFF CACHE STRING ${DLIB_LINK_WITH_SQLITE3_STR} FORCE )
     endif()
     mark_as_advanced(sqlite sqlite_path sqlite_path2)
  endif()

  if (DLIB_LINK_WITH_FFTW)
     find_library(fftw fftw3)
     # make sure fftw3.h is in the include path
     find_path(fftw_path fftw3.h)
     if (fftw AND fftw_path)
        include_directories(${fftw_path})
        set(dlib_needed_libraries ${dlib_needed_libraries} ${fftw} )
     else()
        set(DLIB_LINK_WITH_FFTW OFF CACHE STRING ${DLIB_LINK_WITH_SQLITE3_STR} FORCE )
     endif()
     mark_as_advanced(fftw fftw_path)
  endif()

  add_library(dlib STATIC ${source_files} )
  target_link_libraries(dlib ${dlib_needed_libraries} )

endif () ##### end of if NOT DLIB_ISO_CPP_ONLY ##########################################################

test for some things that really should be true about the compiler

include(TestForSTDNamespace) include(TestForANSIStreamHeaders)

if (DLIB_LINK_WITH_LIBPNG AND NOT DLIB_ISO_CPP_ONLY) add_global_define(DLIB_PNG_SUPPORT) else() remove_global_define(DLIB_PNG_SUPPORT) endif()

if (DLIB_LINK_WITH_LIBJPEG AND NOT DLIB_ISO_CPP_ONLY) add_global_define(DLIB_JPEG_SUPPORT) else() remove_global_define(DLIB_JPEG_SUPPORT) endif()

if (DLIB_LINK_WITH_FFTW AND NOT DLIB_ISO_CPP_ONLY) add_global_define(DLIB_USE_FFTW) else() remove_global_define(DLIB_USE_FFTW) endif()

if (DLIB_USE_BLAS AND blas_found) add_global_define(DLIB_USE_BLAS) else() remove_global_define(DLIB_USE_BLAS) endif()

if (DLIB_USE_LAPACK AND lapack_found) add_global_define(DLIB_USE_LAPACK) else() remove_global_define(DLIB_USE_LAPACK) endif()

if (DLIB_ISO_CPP_ONLY) add_global_define(DLIB_ISO_CPP_ONLY) else() remove_global_define(DLIB_ISO_CPP_ONLY) endif()

if (DLIB_NO_GUI_SUPPORT) add_global_define(DLIB_NO_GUI_SUPPORT) else() remove_global_define(DLIB_NO_GUI_SUPPORT) endif()

if (DLIB_ENABLE_STACK_TRACE) add_global_define(DLIB_ENABLE_STACK_TRACE) else() remove_global_define(DLIB_ENABLE_STACK_TRACE) endif()

if (DLIB_ENABLE_ASSERTS) add_global_define(ENABLE_ASSERTS) else() remove_global_define(ENABLE_ASSERTS) endif()

endif()

davisking commented 9 years ago

Yeah, that's what I mean. What do you see when you grep your CMakeCache.txt file for xlib? What path does it find? Still the broken anaconda one?

dbl001 commented 9 years ago

David-Laxers-MacBook-Pro:build davidlaxer$ grep X11 CMakeCache.txt dlib_LIB_DEPENDS:STATIC=general;/usr/lib/libpthread.dylib;general;/opt/local/lib/libX11.dylib;general;/users/davidlaxer/anaconda/lib/libpng.dylib;general;/opt/local/lib/libopenblas.dylib;general;/usr/lib/liblapack.dylib;general;/users/davidlaxer/anaconda/lib/libsqlite3.dylib; xlib:FILEPATH=/opt/local/lib/libX11.dylib xlib_path:PATH=/users/davidlaxer/anaconda/include/X11

On Aug 25, 2015, at 2:53 PM, Davis E. King notifications@github.com wrote:

Yeah, that's what I mean. What do you see when you grep your CMakeCache.txt file for xlib? What path does it find? Still the broken anaconda one? — Reply to this email directly or view it on GitHub https://github.com/mit-nlp/MITIE/issues/22#issuecomment-134753122.

davisking commented 9 years ago

What about grep xlib CMakeCache.txt?

dbl001 commented 9 years ago

David-Laxers-MacBook-Pro:build davidlaxer$ grep xlib CMakeCache.txt xlib:FILEPATH=/opt/local/lib/libX11.dylib xlib_path:PATH=/users/davidlaxer/anaconda/include/X11 xlib_path_hint:PATH=/opt/local/include //ADVANCED property for variable: xlib xlib-ADVANCED:INTERNAL=1 //ADVANCED property for variable: xlib_path xlib_path-ADVANCED:INTERNAL=1

On Aug 25, 2015, at 3:23 PM, Davis E. King notifications@github.com wrote:

What about grep xlib CMakeCache.txt? — Reply to this email directly or view it on GitHub https://github.com/mit-nlp/MITIE/issues/22#issuecomment-134759151.

davisking commented 9 years ago

Seems like it should have worked. Is there a /opt/local/include/X11/Xlocale.h file on your machine?

dbl001 commented 9 years ago

David-Laxers-MacBook-Pro:build davidlaxer$ ls -l /opt/local/include/X11/Xlocale.h -rw-r--r-- 1 root admin 1297 Mar 20 08:17 /opt/local/include/X11/Xlocale.h David-Laxers-MacBook-Pro:build davidlaxer$

On Aug 25, 2015, at 4:06 PM, Davis E. King notifications@github.com wrote:

Seems like it should have worked. Is there a /opt/local/include/X11/Xlocale.h file on your machine? — Reply to this email directly or view it on GitHub https://github.com/mit-nlp/MITIE/issues/22#issuecomment-134766317.

davisking commented 9 years ago

Huh, well, you can change the CMakeLists.txt back to the way it was at the beginning but tell it to look for Xlocale.h instead of Xlib.h and it should work fine. It would be preferable to make cmake check that both those files are there, especially since Xlib.h is the main header for X11, but finding the folder based on the presence of Xlocale.h is probably robust enough.

dbl001 commented 9 years ago

:-)

[100%] Linking CXX shared module lib/libjavamitie.jnilib compiling Java files... Making jar file... added manifest adding: edu/(in = 0) (out= 0)(stored 0%) adding: edu/mit/(in = 0) (out= 0)(stored 0%) adding: edu/mit/ll/(in = 0) (out= 0)(stored 0%) adding: edu/mit/ll/mitie/(in = 0) (out= 0)(stored 0%) adding: edu/mit/ll/mitie/BinaryRelation.class(in = 1322) (out= 663)(deflated 49%) adding: edu/mit/ll/mitie/BinaryRelationDetector.class(in = 1569) (out= 703)(deflated 55%) adding: edu/mit/ll/mitie/EntityMention.class(in = 1959) (out= 864)(deflated 55%) adding: edu/mit/ll/mitie/EntityMentionVector.class(in = 2306) (out= 906)(deflated 60%) adding: edu/mit/ll/mitie/global.class(in = 734) (out= 370)(deflated 49%) adding: edu/mit/ll/mitie/globalJNI.class(in = 5531) (out= 1540)(deflated 72%) adding: edu/mit/ll/mitie/NamedEntityExtractor.class(in = 2591) (out= 948)(deflated 63%) adding: edu/mit/ll/mitie/StringVector.class(in = 1999) (out= 864)(deflated 56%) adding: edu/mit/ll/mitie/SWIGTYPE_p_mitie__binary_relation.class(in = 513) (out= 320)(deflated 37%) adding: edu/mit/ll/mitie/TokenIndexPair.class(in = 1428) (out= 689)(deflated 51%) adding: edu/mit/ll/mitie/TokenIndexVector.class(in = 2250) (out= 909)(deflated 59%) [100%] Built target javamitie Install the project... -- Install configuration: "Release" -- Installing: /Users/davidlaxer/MITIE/mitielib/java/cmake_swig_jni../libjavamitie.jnilib -- Installing: /Users/davidlaxer/MITIE/mitielib/java/cmake_swig_jni../javamitie.jar

sudo make test Password: /Applications/Xcode.app/Contents/Developer/usr/bin/make -C mitielib make[1]: Nothing to be done for all'. /Applications/Xcode.app/Contents/Developer/usr/bin/make -C tools/ner_stream make[2]: Nothing to be done forall'. Linking ner_stream with flags: ../../mitielib/libmitie.a Build Complete /Applications/Xcode.app/Contents/Developer/usr/bin/make -C examples/C/ner make[2]: Nothing to be done for all'. Linking ner_example with flags: ../../../mitielib/libmitie.a -lpthread Build Complete /Applications/Xcode.app/Contents/Developer/usr/bin/make -C examples/C/relation_extraction make[2]: Nothing to be done forall'. Linking relation_extraction_example with flags: ../../../mitielib/libmitie.a -lpthread Build Complete /Applications/Xcode.app/Contents/Developer/usr/bin/make -C examples/cpp/ner make[2]: Nothing to be done for all'. Linking ner_example with flags: ../../../mitielib/libmitie.a -lpthread Build Complete /Applications/Xcode.app/Contents/Developer/usr/bin/make -C examples/cpp/train_ner make[2]: Nothing to be done forall'. Linking train_ner_example with flags: ../../../mitielib/libmitie.a -lpthread Build Complete /Applications/Xcode.app/Contents/Developer/usr/bin/make -C examples/cpp/train_relation_extraction make[2]: Nothing to be done for all'. Linking train_relation_extraction_example with flags: ../../../mitielib/libmitie.a -lpthread Build Complete /Applications/Xcode.app/Contents/Developer/usr/bin/make -C examples/cpp/relation_extraction make[2]: Nothing to be done forall'. Linking relation_extraction_example with flags: ../../../mitielib/libmitie.a -lpthread Build Complete cp examples/C/ner/ner_example . cp examples/C/relation_extraction/relation_extraction_example . cp tools/ner_stream/ner_stream . tar -xjf MITIE-models-v0.2.tar.bz2 ./ner_stream MITIE-models/english/ner_model.dat < sample_text.txt > /tmp/MITIE_test.out Loading MITIE NER model file...

time: 14.08sec Now running NER tool... diff /tmp/MITIE_test.out sample_text.reference-output ./relation_extraction_example MITIE-models/english/ner_model.dat MITIE-models/english/binary_relations/rel_classifier_location.location.contains.svm sample_text.txt > /tmp/MITIE_test_rel.out diff /tmp/MITIE_test_rel.out sample_text.reference-output-relations Testing completed successfully David-Laxers-MacBook-Pro:MITIE davidlaxer$

On Aug 25, 2015, at 4:32 PM, Davis E. King notifications@github.com wrote:

Huh, well, you can change the CMakeLists.txt back to the way it was at the beginning but tell it to look for Xlocale.h instead of Xlib.h and it should work fine. It would be preferable to make cmake check that both those files are there, especially since Xlib.h is the main header for X11, but finding the folder based on the presence of Xlocale.h is probably robust enough. — Reply to this email directly or view it on GitHub https://github.com/mit-nlp/MITIE/issues/22#issuecomment-134770332.

davisking commented 9 years ago

Ha, sweet.

dbl001 commented 9 years ago

Are you on LinkedIn?

On Aug 25, 2015, at 3:44 AM, Davis E. King notifications@github.com wrote:

You don't have X11 installed correctly. Did you install XQuartz?

Also, where does cmake think X11 is? Run this command and post the output: grep X11 CMakeCache.txt — Reply to this email directly or view it on GitHub.

davisking commented 9 years ago

Yes, isn't everyone? :)