GithubHelp home page GithubHelp logo

Boost path issues about seshat HOT 9 OPEN

falvaro avatar falvaro commented on June 24, 2024
Boost path issues

from seshat.

Comments (9)

Narsil avatar Narsil commented on June 24, 2024 1

You're missing libxerces
If on Ubuntu. Sudo apt install libxerces-dev or something like that...

from seshat.

Narsil avatar Narsil commented on June 24, 2024 1

Yes, well you don't feed png/jpeg images to this algorithm, but SCG_INK format.

You can have the spec with a little google: https://www.scg.uwaterloo.ca/mathbrush/publications/corpus.pdf
And you have an example right in the repo (if you read the README the command should have hinted it): https://github.com/falvaro/seshat/blob/master/SampleMathExps/exp.scgink

It's important because strokes contain more information than raw picture (a vertical line can be either an upward stroke or a downward stroke, and that can change an algorithm's decision for maths). If you have only images at hand, then you can use other algorithms to get back a stroke path, but that's another problem that is not contained is this repo's code.

from seshat.

ayushkothari27 avatar ayushkothari27 commented on June 24, 2024

Using "FLAGS = -O3 -Wno-unused-result -I/boost_1_73_0/" also gave the same errors.

from seshat.

Narsil avatar Narsil commented on June 24, 2024

This repo is 6 years old, boost was update quite a bit, event C++11 will make this code not compile.

You can check out my fork I updated it with more recent library compat. https://github.com/Narsil/seshat

Cheers.

from seshat.

ayushkothari27 avatar ayushkothari27 commented on June 24, 2024

@Narsil Hey thanks. I will check out your fork and let you know. Thanks.

from seshat.

ayushkothari27 avatar ayushkothari27 commented on June 24, 2024

Hey @Narsil
Tried your code got this error

g++ -c online.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c featureson.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c symfeatures.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c symrec.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c production.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c gparser.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c grammar.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c hypothesis.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c cellcyk.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c tablecyk.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c stroke.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
g++ -c sample.cc -O3 -Wno-unused-result -fpermissive -I/boost_1_73_0/boost/
sample.cc:31:10: fatal error: xercesc/util/PlatformUtils.hpp: No such file or directory
 #include <xercesc/util/PlatformUtils.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:32: recipe for target 'sample.o' failed
make: *** [sample.o] Error 1

from seshat.

ayushkothari27 avatar ayushkothari27 commented on June 24, 2024

Hey @Narsil
Thanks that worked, I was able to build.

Now when I try running on a jpg/png image it gives me an Error: input file format is not SCG_INK

Tried #10 but it gave the same error.

The following issue has also been tagged in #17 and #25

from seshat.

ayushkothari27 avatar ayushkothari27 commented on June 24, 2024

Thanks @Narsil

Appreciate your help.

from seshat.

FireCubeStudios avatar FireCubeStudios commented on June 24, 2024

does this work for windows?

from seshat.

Related Issues (20)

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.