johhnsmmith198
johhnsmmith198
A very simple way to fix it is to change the generated code in dist from: ``` if (document.currentScript) { scriptDirectory = document.currentScript.src; } ``` to ``` if (ENVIRONMENT_IS_WEB) {...
Thanks for your help I gave it a try by changing this on the Cargo.toml ``` h3ron = { git = "https://github.com/nmandery/h3ron.git"} ``` I get this error now ``` Compiling...
Just so you know this is what the npm command that I am running is doing (`cargo build-bpf`): ``` npm run build:program-rust > [email protected] build:program-rust /home/pc/Documents/funspace/crypto-world/lab/solanaworkspace/example-helloworld > cargo build-bpf --manifest-path=./src/program-rust/Cargo.toml...
@nmandery I think I am getting onto something. I was trying to step back and build and run the original h3 C library. I was getting into some issues while...
Also I am seeing that I `sudo make install` the library called `h3` but it seems h3ron is calling it `libh3` (that I didn't install actually).
I have switch to use 1.9.4 I hope its ok. I double checked the paths ``` => ls /home/pc/.local/share/solana/install/releases/1.9.4/solana-release/bin/sdk/bpf/dependencies/bpf-tools/llvm/bin clang clang++ clang-13 clang-cl clang-cpp ld64.lld ld.lld llc lld lld-link llvm-ar...
Thanks all good I am cleaning each time with `npm run clean` I see it's clean because it restart downloading everything from scratch ``` > cargo build-bpf --manifest-path=./src/program-rust/Cargo.toml --bpf-out-dir=dist/program BPF...
well back to the beginning I think. Thanks for your help, really appreciate it ``` Run Build Command(s):/usr/bin/make -f Makefile cmTC_b4485/fast && /usr/bin/make -f CMakeFiles/cmTC_b4485.dir/build.make CMakeFiles/cmTC_b4485.dir/build make[1]: Entering directory '/home/pc/Documents/funspace/crypto-world/lab/solanaworkspace/example-helloworld/src/program-rust/target/bpfel-unknown-unknown/release/build/h3ron-h3-sys-df478ba73015eab9/out/build/CMakeFiles/CMakeTmp'...
Solana allows you to build C program or Rust program. This would be for the C program. https://github.com/solana-labs/example-helloworld/blob/master/src/program-c/makefile When I say `program` I mean the solana smart contract
@nmandery I decided to step back a little. I cloned h3ron and then ran those commands ``` export PATH="/home/pc/.local/share/solana/install/releases/1.9.4/solana-release/bin/sdk/bpf/dependencies/bpf-tools/llvm/bin/:$PATH" ➜ funspace cd h3ron ➜ h3ron git:(master) ls Cargo.toml CHANGES.md CONTRIBUTING.md...