Page 1 of 1

gtk errors on linux mint 20

Posted: Sun Aug 09, 2020 10:15 pm
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

Re: gtk errors on linux mint 20

Posted: Mon Aug 10, 2020 10:11 am
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)

Re: gtk errors on linux mint 20

Posted: Mon Aug 10, 2020 10:42 am
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".

Re: gtk errors on linux mint 20

Posted: Mon Aug 10, 2020 10:47 am
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.

Re: gtk errors on linux mint 20

Posted: Mon Aug 10, 2020 10:56 am
by mk-soft
And so that the IDE does not crash, replace this one.

Link: viewtopic.php?f=23&t=75367

Re: gtk errors on linux mint 20

Posted: Mon Aug 10, 2020 11:07 am
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.

Re: gtk errors on linux mint 20

Posted: Mon Aug 10, 2020 3:11 pm
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 :)