Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reporting an error because I was asked to. #72

Open
wmealing opened this issue Jun 21, 2022 · 0 comments
Open

Reporting an error because I was asked to. #72

wmealing opened this issue Jun 21, 2022 · 0 comments

Comments

@wmealing
Copy link

wmealing commented Jun 21, 2022

I'm looking at getting termbox2 (https://github.com/termbox/termbox2 ) working, and trying to run nifty against its configuration.

I've had to slightly modify nifty to run on my my configuration.

  1. I build nifty:

    [wmealing@localhost nifty]$ make
    ./rebar3 get-deps
    ===> Verifying dependencies...
    travis/fix_exports.sh
    Supress export_all warning in ec_semver_parser.erl
    NIFTY_ROOT=/home/wmealing/Projects/nifty NIFTY_LLVM_CONFIG=llvm-config ./rebar3 compile
    ===> Verifying dependencies...
    make[1]: Entering directory '/home/wmealing/Projects/nifty/c_src'
    make[1]: Nothing to be done for 'all'.
    make[1]: Leaving directory '/home/wmealing/Projects/nifty/c_src'
    ===> Analyzing applications...
    ===> Compiling nifty
    ===> Running erlydtl...

I compiled the sample project, I had to make some changes for it to work. (I can share these if required).

Setup the code paths at runtime.

code:add_paths(["/home/wmealing/Projects/nifty/_build/default/lib/ssl_verify_fun/ebi$
                   "/home/wmealing/Projects/nifty/_build/default/lib/relx/ebin",         
                   "/home/wmealing/Projects/nifty/_build/default/lib/rebar3/ebin",     
<snip>

nifty:compile("termbox.h",
termbox,
{"termbox.h", "$NIF", [],
[{env,[{"CFLAGS", "$CFLAGS -I/usr/lib64/clang/11.0.0/include/"},
{"LDFLAGS", "$LDFLAGS /home/wmealing/Projects/regards/libtermbox.so"}]}]}]}]).

( See https://gist.github.com/wmealing/c561dd82be23404421ecadc281f40002 )

Please report the error                                                                       
** exception throw: nifty_render_error

This error may be entirely mine, the paths in the nifty:compile() exist, I could make this entire project available on github if required.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant