Skip to content

npm run tauri dev can't find libTrajoptLib.so #89

@calcmogul

Description

@calcmogul

I followed these steps:

  1. Delete the target folder and any left over .so files in the src-tauri folder.
  2. Run npm install from the repo root
  3. Run npm run tauri dev from the repo root
    Finished dev [unoptimized + debuginfo] target(s) in 2m 30s
/home/tav/git/Choreo/src-tauri/target/debug/choreo: error while loading shared libraries: libTrajoptLib.so: cannot open shared object file: No such file or directory

Here's what's in my folders:

[tav@myriad Choreo]$ ls
icon        node_modules       public     spec       tsconfig.json
index.html  package-lock.json  README.md  src        tsconfig.node.json
LICENSE     package.json       scripts    src-tauri  vite.config.ts
[tav@myriad src-tauri]$ pwd
/home/tav/git/Choreo/src-tauri
[tav@myriad src-tauri]$ ls
build.rs                    libcasadi_nlpsol_ipopt.so      libTrajoptLib.so
Cargo.lock                  libcoinmetis.so.2              src
Cargo.toml                  libcoinmumps.so.3              target
icons                       libgfortran-040039e1.so.5.0.0  tauri.conf.in.json
libcasadi-tp-openblas.so.0  libipopt.so.3                  tauri.conf.json
libcasadi.so.3.7            libquadmath-96973f99.so.0.0.0
[tav@myriad debug]$ pwd
/home/tav/git/Choreo/src-tauri/target/debug
[tav@myriad debug]$ ls
build  choreo  choreo.d  deps  examples  incremental

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions