Kicad souce build wont open eeschema / pcbnew from the right directory from project manager:

I build kicad from source using the following:

sudo cmake -DKICAD_USE_CMAKE_FINDPROTOBUF=ON ../../

sudo make
sudo make install

sudo ldconfig

and when running kicad from:
'/usr/local/kicad/build/release/kicad/kicad`
and trying to open an eeschema file i get the following:

Failed to load shared library '/usr/local/kicad/build/release/kicad/_eeschema.kiface': /usr/local/kicad/build/release/kicad/_eeschema.kiface: cannot open shared object file: No such file or directory

but _eeschema.kiface is located in: “/usr/local/kicad/build/release/eeschema/_eeschema.kiface”
thus it is looking for it in the wrong directory same story with pcbnew,
but i am able to open eechema with bash command:
/usr/local/kicad/build/release/eeschema/eeschema
so individually this was built correctly.

Any idea how to rectify that?

You are trying to start from the build directory, while on linux it’s installed under /usr/local/ by default.

Set the KICAD_RUN_FROM_BUILD_DIR env var if you want to test it without installing

Since you ran make install you should run the installed copy as eelik says.

Adding export KICAD_RUN_FROM_BUILD_DIR to “~/.bashrc” fixed the problem thanks!
Unfortunately it’s hard to comeby from google even with the term KICAD_RUN_FROM_BUILD_DIR.
Luckily there are great good guys on the forum :smiley:

If you insist running from the build dir, you don’t have to use make install. Just plain make is enough and saves some seconds and some megabytes of hard disk. :slight_smile:

But installing is simple on *nix, running from build folder is more useful on Windows.