Skip to content

Commit

Permalink
Get to compile on linux
Browse files Browse the repository at this point in the history
Getting the following error messages in node-gyp:

node_modules/mitie/build'
  CXX(target) Release/obj.target/mitie/src/mitie.o
In file included from ../mitie/dlib/dlib/serialize.h:157,
                 from
/usr/local/include/mitie/approximate_substring_set.h:9,
                 from
/usr/local/include/mitie/word_morphology_feature_extractor.h:7,
                 from
/usr/local/include/mitie/total_word_feature_extractor.h:8,
                 from
/usr/local/include/mitie/named_entity_extractor.h:7,
                 from ../src/entity_extractor.h:5,
                 from ../src/mitie.cc:2:
../mitie/dlib/dlib/smart_pointers/shared_ptr.h: In member function
‘void* dlib::shared_ptr<T>::deleter_template<D>::get_deleter_void(const
std::type_info&) const’:
../mitie/dlib/dlib/smart_pointers/shared_ptr.h:112: error: cannot use
typeid with -fno-rtti
../mitie/dlib/dlib/smart_pointers/shared_ptr.h: In member function ‘D*
dlib::shared_ptr<T>::_get_deleter() const’:
../mitie/dlib/dlib/smart_pointers/shared_ptr.h:432: error: cannot use
typeid with -fno-rtti
make: *** [Release/obj.target/mitie/src/mitie.o] Error 1
  • Loading branch information
herbyme committed Sep 17, 2015
1 parent f429074 commit e829290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"src/entity_extractor.cc",
"src/relation_extractor.cc",
],
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"cflags!": [ "-fno-exceptions", "-fno-rtti" ],
"cflags_cc!": [ "-fno-exceptions", "-fno-rtti" ],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"/usr/local/include/mitie/",
Expand Down

1 comment on commit e829290

@pedsm
Copy link

@pedsm pedsm commented on e829290 Nov 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey man you probably forgot about this but you really should make a pull request it would be very helpful to have in the official repo if this doesn't break the mac installation.

Please sign in to comment.