gtk errors on linux mint 20

Linux specific forum
User avatar
scanfff
User
User
Posts: 18
Joined: Thu May 30, 2019 10:02 am
Location: Seattle
Contact:

gtk errors on linux mint 20

Post by scanfff »

I did a search here but could not see anything, forgive me if this is a duplicate. I've never had this problem before and can not find on here what is need to fix it.

Every example I run ends up with gtk errors, see below:

Requester.a(MessageRequester.o): In function `PB_MessageRequester2':
MessageRequester.c:(.text+0x3e): undefined reference to `gtk_dialog_get_type'
MessageRequester.c:(.text+0x72): undefined reference to `gtk_message_dialog_new'
MessageRequester.c:(.text+0x80): undefined reference to `g_type_check_instance_cast'
MessageRequester.c:(.text+0x94): undefined reference to `gtk_dialog_add_button'
MessageRequester.c:(.text+0xb2): undefined reference to `gtk_message_dialog_new'
MessageRequester.c:(.text+0xba): undefined reference to `gtk_window_get_type'
...
collect2: error: ld returned 1 exit status

aaron@aaron-System-Product-Name:~$ purebasic
Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-3.0' found
Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-3.0' found
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: gtk errors on linux mint 20

Post by mk-soft »

Have you installed all required developer packages?

Link: viewtopic.php?f=15&t=74875

I have installed Mint Linux 20 (Mate) for testing.
No error (except that you cannot use the webgadget)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
deeproot
Enthusiast
Enthusiast
Posts: 269
Joined: Thu Dec 17, 2009 12:00 pm
Location: Llangadog, Wales, UK
Contact:

Re: gtk errors on linux mint 20

Post by deeproot »

mk-soft was faster with the reply :lol:

I have a recent fresh install of Mint 20 x64 Cinnamon as a testing system (MX is my main). PureBasic 5.72 all works fine - gtk2, gtk3 and qt subsystems.

Required packages installed exactly as in mk-soft's post linked above. I've used this 'Simple install' guide for several installs and with different distros. If any forum admins are reading this - IMHO I think it should be made a "sticky".
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: gtk errors on linux mint 20

Post by Saki »

At the same, i use Mate 20, without problems.
He has not the needed packets installed !

In the 5.72 but there are some heavy bugs.
地球上の平和
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: gtk errors on linux mint 20

Post by mk-soft »

And so that the IDE does not crash, replace this one.

Link: viewtopic.php?f=23&t=75367
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: gtk errors on linux mint 20

Post by Saki »

I just stuffed the 5.72 in the garbage can.
After several hours of troubleshooting and error localization is enough for me.

Simply no longer in the mood.
地球上の平和
User avatar
scanfff
User
User
Posts: 18
Joined: Thu May 30, 2019 10:02 am
Location: Seattle
Contact:

Re: gtk errors on linux mint 20

Post by scanfff »

mk-soft wrote:And so that the IDE does not crash, replace this one.

Link: viewtopic.php?f=23&t=75367
Cheers that fixed it. Strange I updated from 19.4 and it must have trashed those libs.

Thank You :)
Post Reply