Open n8ur opened 4 months ago
Did you install the prerequisites and run the configure as per the README
?
(libglib2.0-dev libgtk-4-dev
)
$ ./autogen.sh
$ cd build/
$ ../configure
$ make all
$ sudo make install
If you did,
...look at the build/config.log
and make sure there are no problems highlighted. (other than trivial ones that don't have any consequences)
GtkFileDialog() should be no problem in GTK4 ... https://docs.gtk.org/gtk4/class.FileDialog.html (it's not even marked as deprecated ... (often a common occurrence over time 8-) )
Thanks for getting back to me, Michael. libglib2.0-dev and libgtk-4-dev are both installed. Interestingly, apt says the "run" dependencies libglib-2 and libgtk-4 are not available. I don't think those exist as separate packages (at least under that name) on Ubuntu systems. But the libraries are both in /usr/lib.
Sadly, linux-gpib has been dropped from recent Debian releases. It's a shame the package seems to have been orphaned; I first used it more than 20 years ago. I've built the latest version from the sourceforge repo and I think I have it installed correctly.
In case it helps, here are config.log, config.status, and the complete output of "make all". The system is Linux Mint 21.3, which is based on Ubuntu 22.04 LTS. n8ur_hpib_make_logs.zip
FWIU Ubuntu 22.04 (Jammy) has libgtk-4-dev (https://launchpad.net/ubuntu/jammy/+source/gtk4).
also libglib-2.0-dev (https://packages.ubuntu.com/jammy/libglib2.0-dev)
What happens if you run .. ?
sudo apt install libgtk-4-dev
"LTS" implies to me that this may be an older version of gtk4.
GtkFileDialog()
was introduced in gtk 4.10
What do you get when you run .. ?
$ gtk4-launch --version
libgtk-4-dev is already installed. gtk4-launch reports 4.6.9, so it's probably an older version issue. I'll see if there's a non-horrible way to install a newer version.
Ubuntu does two year cycles of long term support releases, and 24.04 LTS was just released a few days ago. Linux Mint 22 based on it is supposed to be out this summer.
On 4/27/24 16:59, Michael G. Katzmann wrote:
FWIU Ubuntu 22.04 (Jammy) has libgtk-4-dev (https://launchpad.net/ubuntu/jammy/+source/gtk4 https://launchpad.net/ubuntu/jammy/+source/gtk4). also libglib-2.0-dev (https://packages.ubuntu.com/jammy/libglib2.0-dev https://packages.ubuntu.com/jammy/libglib2.0-dev) What happens if you run .. ? |sudo apt install libgtk-4-dev|
"LTS" implies to me that this may be an older version of gtk4. |GtkFileDialog() |was introduced in gtk 4.10 What do you get when you run .. ? |$ gtk4-launch --version|
— Reply to this email directly, view it on GitHub https://github.com/VK2BEA/HPGL-Plotter/issues/2#issuecomment-2081181262, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADNCPP3RZCGGSZWZF6ENGOLY7QGTHAVCNFSM6AAAAABG3JKU22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBRGE4DCMRWGI. You are receiving this because you authored the thread.Message ID: @.***>
Yes John, that's a problem. You might be able to install the latest gtk-4 from sources to /usr/local/ and compile to that. It will be painful though 8-( I'll look to see if I can do a 'flatpak', but this also might be a problem with the gpib library.
Hi --
Trying to build HPGL-Plotter I get a lot of errors, most seeming to relate to gtk:
../../src/GTKcallbacks.c: In function ‘CB_HPGLsave’: ../../src/GTKcallbacks.c:70:9: error: unknown type name ‘GtkFileDialog’; did you mean ‘GtkNativeDialog’? 70 | GtkFileDialog dialog = GTK_FILE_DIALOG (source_object); | ^
~~~~ | GtkNativeDialog ../../src/GTKcallbacks.c:70:33: error: implicit declaration of function ‘GTK_FILE_DIALOG’; did you mean ‘GTK_IS_DIALOG’? [-Werror=implicit-function-declaration] 70 | GtkFileDialog dialog = GTK_FILE_DIALOG (source_object); | ^~~~~~~and a bunch more after that. I am guessing I need to have some gtk packages installed, but I don't know which ones are needed. This is a Linux Mint 21.3 system based on Ubuntu 22.04. I'd appreciate any pointers for getting past this.
Thanks!