KJ7LNW / xnec2c

Xnec2c is a high-performance multi-threaded electromagnetic simulation package to model antenna near- and far-field radiation patterns for Linux and UNIX operating systems.
https://www.xnec2c.org/
GNU General Public License v3.0
79 stars 18 forks source link

Build failing on Linux Mint/Ubuntu 18.04 #6

Closed m-anish closed 2 years ago

m-anish commented 2 years ago
checking for PACKAGE... no
configure: error: Package requirements (gtk+-3.0 >= 3.18.0) were not met:

No package 'gtk+-3.0' found

dpkg -l output : https://termbin.com/hlrq

Build failing at ./configure step.

m-anish commented 2 years ago

Relevant line from dpkg output

ii libgtk-3-0:amd64 3.22.30-1ubuntu4 amd64 GTK+ graphical user interface library

m-anish commented 2 years ago

Fixed: in ubuntu 18.04 libgtk-3-dev needs to be installed too. Perhaps a note in documentation.

m-anish commented 2 years ago

However, upon running I get this error:

image

KJ7LNW commented 2 years ago

Thanks of the note, I'll add libgtk-3-dev to the package list for Ubuntu/Debian!

As for xnec2c.conf, please check a few things:

KJ7LNW commented 2 years ago

I just pushed v4.4.2 with the change above, it might provide a better error and indicate the actutal problem. There are other stability updates in 4.4.2, so please update!

KJ7LNW commented 2 years ago

Also, fyi: https://github.com/KJ7LNW/xnec2c/commit/0f35bc08e8757e3ffc606765974451f81508debb

m-anish commented 2 years ago

Thanks of the note, I'll add libgtk-3-dev to the package list for Ubuntu/Debian!

As for xnec2c.conf, please check a few things:

* Do you already have a /home/anish/.xnec2c directory?

  * If so, is it writable by your user?

* Do you have an existing /home/anish/.xnec2c/xnec2c.conf file?

  * If so, is it writable by your user?
  * If you rename the file, does it generate a new one?

* Try changing changing Open_File in src/utils.c to report the actual error:

  * On this line: https://github.com/KJ7LNW/xnec2c/blob/master/src/utils.c#L286
  * Change it as follows and try again so it reports the error provided by the OS:
    ```c
    snprintf( mesg, sizeof(mesg), _("xnec2c[%d]: %s: Failed to open file: %s\n"), getpid(), fname, strerror(errno) );
    ```

Thanks. I'll update the version. I don't remember exactly what I did, but now it is running!

KJ7LNW commented 2 years ago

Glad its working!

If you do antenna design you might check out https://github.com/KJ7LNW/xnec2c-optimize .