Giter Club home page Giter Club logo

antlr-cpp's Introduction

antlr-cpp's People

Contributors

4silvertooth avatar gabriele-tomassetti avatar randomcad avatar unosviluppatore avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

antlr-cpp's Issues

Broken Makefile

After a clean clone, following the README's installation instructions provide the following build output:

-- Output libraries to /home/charlesaverill/CLionProjects/antlr-cpp/build/antlr4_runtime/src/antlr4_runtime/runtime/Cpp/dist
-- Configuring done
-- Generating done
-- Build files have been written to: /home/charlesaverill/CLionProjects/antlr-cpp/build/antlr4_runtime/src/antlr4_runtime/runtime/Cpp
[ 16%] No build step for 'antlr4_runtime'
[ 22%] No install step for 'antlr4_runtime'
[ 27%] Completed 'antlr4_runtime'
make[2]: Leaving directory '/home/charlesaverill/CLionProjects/antlr-cpp/build'
[ 44%] Built target antlr4_runtime
make[2]: Entering directory '/home/charlesaverill/CLionProjects/antlr-cpp/build'
make[2]: Leaving directory '/home/charlesaverill/CLionProjects/antlr-cpp/build'
[ 50%] Built target antlr4_runtime-build_static
make[2]: Entering directory '/home/charlesaverill/CLionProjects/antlr-cpp/build'
make[2]: Leaving directory '/home/charlesaverill/CLionProjects/antlr-cpp/build'
make[2]: Entering directory '/home/charlesaverill/CLionProjects/antlr-cpp/build'
[ 55%] Linking CXX executable antlr4-tutorial
/usr/bin/ld: cannot find -lXrandr
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/antlr4-tutorial.dir/build.make:236: antlr4-tutorial] Error 1
make[2]: Leaving directory '/home/charlesaverill/CLionProjects/antlr-cpp/build'
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/antlr4-tutorial.dir/all] Error 2
make[1]: Leaving directory '/home/charlesaverill/CLionProjects/antlr-cpp/build'
make: *** [Makefile:84: all] Error 2

I'm not sure what lXrandr is but it doesn't seem to be a package I can install from anywhere. Am I doing something wrong?

error after running make

Hello, this is the error after running make:
CMakeFiles/antlr4-tutorial.dir/antlr4-runtime/SceneLexer.cpp.o:(.data.rel.ro._ZTV10SceneLexer[_ZTV10SceneLexer]+0x210): undefined reference to "non-virtual thunk to antlr4::Lexer::getSourceName()"

I am using this gcc version:
gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)

error: conversion from ‘antlrcpp::Any’ to non-scalar type ‘Scene’ requested

Hi, I've just built the repo from a clean clone and I am getting a compilation error in antlr.cpp. Cmake .. completes without issue but upon calling make I get the following error:

/usr/bin/c++  -DANTLR4CPP_STATIC -I/home/dev/antlr-cpp/build/antlr4_runtime/src/antlr4_runtime/runtime/Cpp/runtime/src -I/usr/include/OpenEXR -I/usr/include/x86_64-linux-gnu/ImageMagick-6 -I/usr/include/ImageMagick-6 -I/home/dev/antlr-cpp -I/home/dev/antlr-cpp/libs -isystem /usr/include/opencv4  -Wdeprecated -Wno-attributes   -std=gnu++11 -o CMakeFiles/antlr4-tutorial.dir/antlr.cpp.o -c /home/dev/antlr-cpp/antlr.cpp
/home/dev/antlr-cpp/antlr.cpp: In function ‘int main(int, const char**)’:
/home/dev/antlr-cpp/antlr.cpp:23:36: error: conversion from ‘antlrcpp::Any’ to non-scalar type ‘Scene’ requested
   23 |     Scene scene = visitor.visitFile(tree);
      |                   ~~~~~~~~~~~~~~~~~^~~~~~
make[2]: *** [CMakeFiles/antlr4-tutorial.dir/build.make:97: CMakeFiles/antlr4-tutorial.dir/antlr.cpp.o] Error 1
make[2]: Leaving directory '/home/dev/antlr-cpp/build'
make[1]: *** [CMakeFiles/Makefile2:82: CMakeFiles/antlr4-tutorial.dir/all] Error 2
make[1]: Leaving directory '/home/dev/antlr-cpp/build'
make: *** [Makefile:87: all] Error 2

I'm using cmake 3.16.3, on ubuntu 20.04.2, and /usr/bin/c++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0. Please let me know if I'm doing something wrong or if there's some versioning issue? I have only the ANTLR installed by cmake which is 4.9.1.

Thank you very much for the very helpful tutorial :)

Error in CMake (Could NOT find XXXX)

Hello! Thank you for the wonderful guide. I feel that I have a good grasp on how to write antlr grammars. However, I am having a really tough time getting started. When I run try to run cmake
on my machine in this repository, I get the following error log.

I am still very new to Software Development, so please excuse me if this is a novice question. It looks like I have not installed certain necessary packages, but I am not sure where to begin. I tried following some of the links in the CMakeLists.txt file comments but was not able to discovery anything on my own. 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.