Coder Social home page Coder Social logo

cturtle's People

Contributors

melgi avatar rubenverborgh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

hamadalikhan022

cturtle's Issues

Make file error.

I am installing cturtle to use EYE.
using mac, I executed makefile command "make"
but I get this error

lex --warn -o src/TurtleLexer.cc src/Turtle.l
src/Turtle.l:75: unrecognized rule
src/Turtle.l:75: unrecognized rule
src/Turtle.l:75: unrecognized rule
src/Turtle.l:75: unrecognized rule
src/Turtle.l:75: unrecognized rule
src/Turtle.l:75: unrecognized rule
src/Turtle.l:75: unrecognized rule
src/Turtle.l:75: unrecognized rule
src/Turtle.l:75: unrecognized rule
src/Turtle.l:75: unrecognized rule
src/Turtle.l:75: unrecognized rule
src/Turtle.l:76: unrecognized rule
src/Turtle.l:76: unrecognized rule
src/Turtle.l:76: unrecognized rule
src/Turtle.l:76: unrecognized rule
src/Turtle.l:76: unrecognized rule
src/Turtle.l:76: unrecognized rule
src/Turtle.l:76: unrecognized rule
src/Turtle.l:76: unrecognized rule
src/Turtle.l:76: unrecognized rule
make: *** [src/TurtleLexer.cc] Error 1

how I avoid this error?

Build fails on OSX 10.12.6

This was the error

c++ -c  -O2 -Wall -march=native -std=c++11 -o obj/Utf8.o src/Utf8.cc
In file included from src/Utf8.cc:18:
src/Utf8.hh:27:8: error: no type named 'size_t' in namespace 'std'
                std::size_t encode(char32_t c, OutputIterator i)
                ~~~~~^
src/Utf8.hh:29:9: error: no type named 'size_t' in namespace 'std'
                        std::size_t size = 0;
                        ~~~~~^
src/Utf8.hh:108:49: error: no type named 'size_t' in namespace 'std'
                        template<typename InputIterator> friend std::size_t decode(char32_t *c32, InputIterator begin, InputIterator end, State *state);
                                                                ~~~~~^
src/Utf8.hh:112:8: error: no type named 'size_t' in namespace 'std'
                std::size_t decode(char32_t *c32, InputIterator begin, InputIterator end, State *state)
                ~~~~~^
4 errors generated.
make: *** [obj/Utf8.o] Error 1

I fixed up this error adding this #include <cstddef> line in src/Utf8.hh file as explained in this stackoverflow answer. I hope it helps.

Build fails on OS X 10.9.5

The errors are as follows:

src/TurtleLexer.cc:1177:8: error: member reference type 'std::istream *' (aka 'basic_istream<char> *') is a pointer; maybe you meant to use '->'?
                        yyin.rdbuf(std::cin.rdbuf());
                        ~~~~^
                            ->
src/TurtleLexer.cc:1180:9: error: member reference type 'std::ostream *' (aka 'basic_ostream<char> *') is a pointer; maybe you meant to use '->'?
                        yyout.rdbuf(std::cout.rdbuf());
                        ~~~~~^
                             ->
src/TurtleLexer.cc:1401:50: error: member reference type 'std::istream *' (aka 'basic_istream<char> *') is a pointer; maybe you meant to use '->'?
                        YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin.rdbuf();
                                                                  ~~~~^
                                                                      ->
src/TurtleLexer.cc:1516:2: error: cannot initialize a member subobject of type 'std::istream *' (aka 'basic_istream<char> *') with an rvalue of type
      'basic_streambuf<char_type, traits_type> *'
        yyin(arg_yyin ? arg_yyin->rdbuf() : std::cin.rdbuf()),
        ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/TurtleLexer.cc:1517:2: error: cannot initialize a member subobject of type 'std::ostream *' (aka 'basic_ostream<char> *') with an rvalue of type
      'basic_streambuf<char_type, traits_type> *'
        yyout(arg_yyout ? arg_yyout->rdbuf() : std::cout.rdbuf())
        ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/TurtleLexer.cc:1519:2: error: use of undeclared identifier 'ctor_common'
        ctor_common();
        ^
src/TurtleLexer.cc:1524:14: error: out-of-line definition of 'yyFlexLexer' does not match any declaration in 'yyFlexLexer'
yyFlexLexer::yyFlexLexer( std::istream& arg_yyin, std::ostream& arg_yyout ):
             ^~~~~~~~~~~
src/TurtleLexer.cc:29:25: note: expanded from macro 'yyFlexLexer'
    #define yyFlexLexer yyFlexLexer
                        ^~~~~~~~~~~
src/TurtleLexer.cc:1515:27: note: type of 1st parameter of member declaration does not match definition ('std::istream *'
      (aka 'basic_istream<char> *') vs 'std::istream &' (aka 'basic_istream<char> &'))
yyFlexLexer::yyFlexLexer( FLEX_STD istream* arg_yyin, FLEX_STD ostream* arg_yyout ):
                          ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/FlexLexer.h:53:22: note: expanded from macro 'FLEX_STD'
#    define FLEX_STD std::
                     ^
src/TurtleLexer.cc:1525:2: error: cannot initialize a member subobject of type 'std::istream *' (aka 'basic_istream<char> *') with an rvalue of type
      'basic_streambuf<char_type, traits_type> *'
        yyin(arg_yyin.rdbuf()),
        ^    ~~~~~~~~~~~~~~~~
src/TurtleLexer.cc:1526:2: error: cannot initialize a member subobject of type 'std::ostream *' (aka 'basic_ostream<char> *') with an rvalue of type
      'basic_streambuf<char_type, traits_type> *'
        yyout(arg_yyout.rdbuf())
        ^     ~~~~~~~~~~~~~~~~~
src/TurtleLexer.cc:1528:2: error: use of undeclared identifier 'ctor_common'
        ctor_common();
        ^
src/TurtleLexer.cc:1533:19: error: out-of-line definition of 'ctor_common' does not match any declaration in 'yyFlexLexer'
void yyFlexLexer::ctor_common()
                  ^~~~~~~~~~~
src/TurtleLexer.cc:1571:19: error: out-of-line definition of 'switch_streams' does not match any declaration in 'yyFlexLexer'
void yyFlexLexer::switch_streams( std::istream& new_in, std::ostream& new_out )
                  ^~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/FlexLexer.h:129:31: note: type of 1st parameter of member
      declaration does not match definition ('std::istream *' (aka 'basic_istream<char> *') vs 'std::istream &' (aka 'basic_istream<char> &'))
        virtual void switch_streams( FLEX_STD istream* new_in, FLEX_STD ostream* new_out = 0 );
                                     ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/FlexLexer.h:53:22: note: expanded from macro 'FLEX_STD'
#    define FLEX_STD std::
                     ^
src/TurtleLexer.cc:1575:41: error: no viable conversion from 'std::istream' (aka 'basic_istream<char>') to 'std::istream *'
      (aka 'basic_istream<char> *')
        yy_switch_to_buffer( yy_create_buffer( new_in, YY_BUF_SIZE  ) );
                                               ^~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/FlexLexer.h:121:62: note: passing argument to parameter 's'
      here
        struct yy_buffer_state* yy_create_buffer( FLEX_STD istream* s, int size );
                                                                    ^
src/TurtleLexer.cc:1578:7: error: member reference type 'std::ostream *' (aka 'basic_ostream<char> *') is a pointer; maybe you meant to use '->'?
        yyout.rdbuf(new_out.rdbuf());
        ~~~~~^
             ->
src/TurtleLexer.cc:1586:10: error: assigning to 'std::istream *' (aka 'basic_istream<char> *') from incompatible type 'std::istream **'
      (aka 'basic_istream<char> **'); remove &
                new_in = &yyin;
                       ^ ~~~~~
src/TurtleLexer.cc:1590:11: error: assigning to 'std::ostream *' (aka 'basic_ostream<char> *') from incompatible type 'std::ostream **'
      (aka 'basic_ostream<char> **'); remove &
                new_out = &yyout;
                        ^ ~~~~~~
src/TurtleLexer.cc:1599:18: error: out-of-line definition of 'LexerInput' does not match any declaration in 'yyFlexLexer'
int yyFlexLexer::LexerInput( char* buf, int max_size )
                 ^~~~~~~~~~
src/TurtleLexer.cc:1602:11: error: member reference type 'std::istream *' (aka 'basic_istream<char> *') is a pointer; maybe you meant to use '->'?
        if ( yyin.eof() || yyin.fail() )
             ~~~~^
                 ->
src/TurtleLexer.cc:1602:25: error: member reference type 'std::istream *' (aka 'basic_istream<char> *') is a pointer; maybe you meant to use '->'?
        if ( yyin.eof() || yyin.fail() )
                           ~~~~^
                               ->
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [obj/TurtleLexer.o] Error 1

Are there certain versions of certain tools needed?

make error

Installing with makes exits with error:

with the current master branch

g++ -c  -O2 -Wall -march=native -std=c++11 -o obj/Utf8.o src/Utf8.cc
src/Utf8.cc:26:10: error: expected constructor, destructor, or type conversion before ‘(’ token
src/Utf8.cc:39:10: error: expected constructor, destructor, or type conversion before ‘(’ token
make: *** [obj/Utf8.o] Errors 1

and with the 1.0.5 release:

g++ -c  -O2 -Wall -march=native -std=c++11 -o obj/Main.o src/Main.cc
In file included from src/Parser.hh:27:0,
                  from src/Main.cc:25:
src/Model.hh:189:3: error: looser throw specifier for ‘virtual turtle::RDFList::~RDFList()’
src/Model.hh:75:9: error:   overriding ‘virtual turtle::Resource::~Resource() noexcept (true)’
make: *** [obj/Main.o] Errors 1

I want to install cturtle for usage wit EYE on debian. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.