Tried testing on arch with nim head and 1.4.4. Getting an error from gcc/clang 
about missing webview.h.

I see webview.h in ~/.nimble/pkgs/neel-0.4.0 but looks like the generated -I in 
webview.nim is generating the incorrect path of 
`-I/home/sage/.nimble/pkgs/neel-0.4.0/neel/webview`. If I make that directory 
and copy webview.h there from /home/sage/.nimble/pkgs/neel-0.4.0/ then it 
compiles but when I run filePicker I get another error.

Maybe I'm trying to run the example incorrectly?

Compiled with `nim c -d:release --gc:orc --threads:on -d:webview -f 
examples/filePicker.nim` from Neel repo root dir.

Compiler error: 
    
    
    
/home/sage/.cache/nim/filePicker_r/@m..@s..@s..@s.nimble@spkgs@sneel-0....@sneel.nim.c:8:10:
 fatal error: webview.h: No such file or directory
        8 | #include "webview.h"
          |          ^~~~~~~~~~~
    compilation terminated.
    Error: execution of an external compiler program 'gcc -c  -w -fmax-errors=3 
-pthread -DWEBVIEW_STATIC -DWEBVIEW_IMPLEMENTATION 
-I/home/sage/.nimble/pkgs/neel-0.4.0/neel/webview -DWEBVIEW_GTK=1 
-I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 
-I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid 
-I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo 
-I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 
-I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders 
-I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 
-I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 
-I/usr/include/webkitgtk-4.0 -I/usr/include/libsoup-2.4 -pthread 
-I/usr/include/libxml2 -O3 -fno-strict-aliasing -fno-ident   
-I'/home/sage/.choosenim/toolchains/nim-#devel/lib' 
-I/home/sage/build/Neel/examples -o 
/home/sage/.cache/nim/filePicker_r/@m..@s..@s..@s.nimble@spkgs@sneel-0....@sneel.nim.c.o
 
/home/sage/.cache/nim/filePicker_r/@m..@s..@s..@s.nimble@spkgs@sneel-0....@sneel.nim.c'
 failed with exit code: 1
    
    
    Run

App error: 
    
    
    An error has occured in one of your routes.
    
    Detail: io.nim(861) readFile
    asyncfutures.nim(373) read
    asyncfutures.nim(373) read
    cannot open: /home/sage/.nimble/pkgs/neel-0.4.0/web/index.html
    
    
    Run

Reply via email to