GithubHelp home page GithubHelp logo

Comments (16)

vzh avatar vzh commented on May 27, 2024

Are you building from a tarball or git repo? If the former, the source code should have version.h in the root directory in which you extract the tarball contents. If the latter, try doing first autoreconf -ifv && ./configure. Please let us know if this helps or does not help.

from lepton-eda.

RGT1995 avatar RGT1995 commented on May 27, 2024

the make command ran, but make install command showed error
mkdir: cannot create directory ‘/usr/local/share/icons’: Permission denied
mkdir: cannot create directory ‘/usr/local/share/icons’: Permission denied
Failed to create directory /usr/local/share/icons/hicolor/16x16/mimetypes
make[4]: *** [Makefile:692: install-data-local] Error 1
make[4]: Leaving directory '/mnt/d/lepton-eda/lepton-eda/liblepton/data'
make[3]: *** [Makefile:572: install-am] Error 2
make[3]: Leaving directory '/mnt/d/lepton-eda/lepton-eda/liblepton/data'
make[2]: *** [Makefile:544: install-recursive] Error 1
make[2]: Leaving directory '/mnt/d/lepton-eda/lepton-eda/liblepton'
make[1]: *** [Makefile:815: install-recursive] Error 1
make[1]: Leaving directory '/mnt/d/lepton-eda/lepton-eda'
make: *** [Makefile:1269: install] Error 2

from lepton-eda.

vzh avatar vzh commented on May 27, 2024

Usually on Linux, you need superuser permissions to install anything into a directory under /usr. So instead of plain make install you have to use something like sudo make install if sudo is properly configured on your system. Another option is to log in as the root user and do make install. BTW, please first ensure the directory /usr/local/share exists on your system (I'm not sure what ubuntu app provides on windows).

from lepton-eda.

RGT1995 avatar RGT1995 commented on May 27, 2024

I think the sudo make install worked, but when i try to run lepton-schematic, this happens
(guile-2.2:8863): Gtk-WARNING **: 13:47:06.686: cannot open display:

from lepton-eda.

vzh avatar vzh commented on May 27, 2024

It may be due to running the program under the user that does not access to the current X server display. E.g., if I log in as vzh and run sudo lepton-schematic in terminal under root, I get the same error cannot open display: :0. Of course, it can be somehow solved using X utilities such as xhost and xauth though in my case I'd better run the program without sudo :-) Please check if the user you're running the program under has appropriate permissions to access the X server display reported. Googling for the issue may help in this case, I believe.

from lepton-eda.

RGT1995 avatar RGT1995 commented on May 27, 2024

First of all, I really appreciate your help and thank you for bearing with a newb.
I think I solved the problem (guile-2.2:8863): Gtk-WARNING **: 13:47:06.686: cannot open display: by the following command
export DISPLAY="$(grep nameserver /etc/resolv.conf | sed 's/nameserver //'):0"
But now when I enter lepton-schematic no GUI opens up and the terminal goes blank.

from lepton-eda.

graahnul-grom avatar graahnul-grom commented on May 27, 2024

@RGT1995 You could try the following command:

DISPLAY=:0 lepton-schematic

/etc/resolv.conf contains the address of your name server,
but you want to run the app on your local machine.

from lepton-eda.

vzh avatar vzh commented on May 27, 2024

@RGT1995, do you have any other GTK app installed on your system? Maybe running it would provide you with some new hints in solving the issue.

from lepton-eda.

RGT1995 avatar RGT1995 commented on May 27, 2024

@graahnul-grom I tried that but it did not work.

from lepton-eda.

RGT1995 avatar RGT1995 commented on May 27, 2024

@vzh I tried to run gnome-calculator it showed

Unable to init server: Could not connect: Connection refused

(gnome-calculator:2601): Gtk-WARNING **: 16:41:13.866: cannot open display: localhost:0.0

from lepton-eda.

vzh avatar vzh commented on May 27, 2024

@RGT1995, it's obviously not an issue with Lepton then. I doubt I would be of much help here. Just never used such a configuration. You have to learn how to connect to the X server on your machine. First, I would try ps ax|grep X or ps ax|grep xorg to find out the X process which runs on your machine and learn what args it runs with. Then maybe use top or some similar program to find the process owner, it may be root or your local user account. Probably, that information could provide you with some farther hints. And... maybe some forums dedicated to ubuntu-app exist? You could try to ask about the issue there or search for issues mentioned there before. Anyways, if you resolve your issue, please let us know. I'd be glad to add such info to our wiki.

from lepton-eda.

graahnul-grom avatar graahnul-grom commented on May 27, 2024

I've found a relevant documentation at
https://wiki.ubuntu.com/WSL, especially this chapter:
https://wiki.ubuntu.com/WSL#Running_Graphical_Applications

It seems that you have to install the X server separately
and run it before starting any GUI apps.

Another possibility to run Lepton EDA under Windows
is to use Cygwin.
We have a wiki page describing the installation process:
https://github.com/lepton-eda/lepton-eda/wiki/Cygwin

from lepton-eda.

RGT1995 avatar RGT1995 commented on May 27, 2024

@vzh @graahnul-grom
Lepton-schematic is running on my windows.
Thanks for the support.

from lepton-eda.

vzh avatar vzh commented on May 27, 2024

Hooray!
Could you please share with us the way you solved your last issue with connection to X?

from lepton-eda.

RGT1995 avatar RGT1995 commented on May 27, 2024

I started with dowloading WSL and ubuntu.
Then using sudo apt install most of the dependencies could be installed.
After installing lepton, I downloaded Xming and launched Xlaunch with no access control.
In the ubuntu terminal I ran
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0

from lepton-eda.

vzh avatar vzh commented on May 27, 2024

@RGT1995, @graahnul-grom , thank you! I've added the page on installation under Windows referring to this issue and some links above.

from lepton-eda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.