Coder Social home page Coder Social logo

fparser's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fparser's Issues

fparser's install name is not set correctly on macOS

On macOS, running a build of openEMS installed to a custom location will fail. The RPATH for the custom location is not set correctly, only system directories are searched, as a result, fparser cannot be found.

gentoo@users-iMac-Pro ~/code/openEMS-Project/fparser $ ~/opt/bin/openEMS
dyld[90539]: Library not loaded: libfparser.4.dylib
  Referenced from: <1DD80732-F311-3B6A-B169-99DB48DE349B> /Users/gentoo/opt/bin/openEMS
  Reason: tried: 'libfparser.4.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibfparser.4.dylib' (no such file), 'libfparser.4.dylib' (no such file), '/usr/local/lib/libfparser.4.dylib' (no such file), '/usr/lib/libfparser.4.dylib' (no such file, not in dyld cache), '/Users/gentoo/code/openEMS-Project/fparser/libfparser.4.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/gentoo/code/openEMS-Project/fparser/libfparser.4.dylib' (no such file), '/Users/gentoo/code/openEMS-Project/fparser/libfparser.4.dylib' (no such file), '/usr/local/lib/libfparser.4.dylib' (no such file), '/usr/lib/libfparser.4.dylib' (no such file, not in dyld cache)
Abort trap: 6

Curiously, only fparser is affected, other libraries such as CSXCAD is not.

After some investigation, I found the root cause is that the "install name" of libfparser does not contain a full path, but CSXCAD's "install name" is an absolute path. Thus, CSXCAD can be found correctly using the absolute install path, but libfparser cannot. After CSXCAD and openEMS are built, this incomplete install name will propagate upwards, so all binaries will have a wrong search path for libfparser.

gentoo@users-iMac-Pro ~/code/openEMS-Project/CSXCAD/build $ otool -D ~/opt/lib/libCSXCAD.dylib
/Users/gentoo/opt/lib/libCSXCAD.dylib:
/Users/gentoo/opt/lib/libCSXCAD.0.dylib

gentoo@users-iMac-Pro ~/code/openEMS-Project/CSXCAD/build $ otool -D ~/opt/lib/libfparser.4.5.1.dylib
/Users/gentoo/opt/lib/libfparser.4.5.1.dylib:
libfparser.4.dylib

I'll submit a Pull Request to fix this problem.

Operator &

Your logical operators are & and |
Which is not usual, this can be easily modified
by hacking the code, but you really should put usual operators.

Apart from that, your lib is for me the best solution for c++
math and boolean expression parser !!!

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.