-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile Errors -- Linux Mint #2
Comments
Did you install the prerequisites and run the configure as per the
If you did, GtkFileDialog() should be no problem in GTK4 ... https://docs.gtk.org/gtk4/class.FileDialog.html |
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. |
FWIU Ubuntu 22.04 (Jammy) has libgtk-4-dev (https://launchpad.net/ubuntu/jammy/+source/gtk4). "LTS" implies to me that this may be an older version of gtk4. |
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.
73,
John
----
…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
<#2 (comment)>, 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. |
Hi, did you manage to generate a flatpak ? |
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!
The text was updated successfully, but these errors were encountered: