iup examples - errors

Linux specific questions.
Post Reply
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

iup examples - errors

Post by demosthenesk »

I can compile iup examples but when i run it i get these errors:
user@ubuntu-mate-laptop:~/Bin/FreeBASIC-1.08.1-ubuntu-20.04-x86_64/examples/GUI/IUP$ ./buttons

(buttons:56158): Gtk-ERROR **: 00:12:56.188: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
Trace/breakpoint trap (core dumped)
why?
i have installed iup-3.30_Linux54_64_lib
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: iup examples - errors

Post by demosthenesk »

i found the solution.....
i had to unistall manually by rm-f iup* files of 3.30 release
and i had to install 3.15 release of iup

now it compiles without an error

consider to update iup.bi files for 3.30 release please...
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: iup examples - errors

Post by Kuan Hsu »

I restart a clean Ubuntu mate 20.04.2 in VM
(1)Install freeBASIC (FreeBASIC-1.08.1-ubuntu-20.04-x86_64.tar.xz)( sudo ./install.sh -i )
(2)Install the need package( sudo apt-get install libncurses5-dev libffi-dev libgl1-mesa-dev libx11-dev libxext-dev libxrender-dev libxrandr-dev libxpm-dev libtinfo5 libgpm-dev )
(3)Install IUP3.30( iup-3.30_Linux54_64_lib.tar.gz )( sudo ./install ), the files will install at /usr/lib64, move them to /usr/lib
(4)Edit /usr/local/include/freebasic/IUP/iup.bi, commit line 42~49( GTK2 static libraries )
(5)Compile the example - buttons.bas
(6)Run it
Image
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: iup examples - errors

Post by demosthenesk »

iup of freebasic needs an update to 3.30 release
demosthenesk
Posts: 237
Joined: Jul 15, 2021 7:23
Location: Greece
Contact:

Re: iup examples - errors

Post by demosthenesk »

Kuan Hsu wrote:I restart a clean Ubuntu mate 20.04.2 in VM
(1)Install freeBASIC (FreeBASIC-1.08.1-ubuntu-20.04-x86_64.tar.xz)( sudo ./install.sh -i )
(2)Install the need package( sudo apt-get install libncurses5-dev libffi-dev libgl1-mesa-dev libx11-dev libxext-dev libxrender-dev libxrandr-dev libxpm-dev libtinfo5 libgpm-dev )
(3)Install IUP3.30( iup-3.30_Linux54_64_lib.tar.gz )( sudo ./install ), the files will install at /usr/lib64, move them to /usr/lib
(4)Edit /usr/local/include/freebasic/IUP/iup.bi, commit line 42~49( GTK2 static libraries )
(5)Compile the example - buttons.bas
(6)Run it
Image
Lines 42-49 are:
#inclib "gtk-x11-2.0"
#inclib "gdk-x11-2.0"
#inclib "pangox-1.0"
#inclib "gdk_pixbuf-2.0"
#inclib "pango-1.0"
#inclib "gobject-2.0"
#inclib "gmodule-2.0"
#inclib "glib-2.0"
what is your edit?
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: iup examples - errors

Post by Kuan Hsu »

https://www.tecgraf.puc-rio.br/iup/en/guide.html#apl
The libs are gtk2, comment them line42-49
Post Reply