October 19, 2018, 11:07:22 AM

Author Topic: Error building modules on Ubuntu 18.04  (Read 241 times)

Offline wombats

  • Jr. Member
  • **
  • Posts: 25
Error building modules on Ubuntu 18.04
« on: July 19, 2018, 04:40:40 PM »
I downloaded the "BlitzMax Linux.x64 v0.93.3.21" release. When I try to build modules, I get the following error:

Code: [Select]
/.../BlitzMax_linux_x64_0.93.3.21/mod/gtk.mod/gtk3maxgui.mod/gtkglue.c: In function ‘bmx_gtk3_gtkdesktop_gethertz’:
/.../Downloads/BlitzMax_linux_x64_0.93.3.21/mod/gtk.mod/gtk3maxgui.mod/gtkglue.c:30:2: error: unknown type name ‘Return’
  Return rate / 1000;
  ^~~~~~
/.../Downloads/BlitzMax_linux_x64_0.93.3.21/mod/gtk.mod/gtk3maxgui.mod/gtkglue.c:30:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘/’ token
  Return rate / 1000;
              ^
Build Error: failed to compile (256) /.../Downloads/BlitzMax_linux_x64_0.93.3.21/mod/gtk.mod/gtk3maxgui.mod/gtkglue.c
Process complete

How do I fix this? I ran the command to install the necessary dependencies.

Offline markcwm

  • Sr. Member
  • ****
  • Posts: 292
Re: Error building modules on Ubuntu 18.04
« Reply #1 on: July 20, 2018, 10:59:43 AM »
Try installing libgtk-3-dev

Offline wombats

  • Jr. Member
  • **
  • Posts: 25
Re: Error building modules on Ubuntu 18.04
« Reply #2 on: July 20, 2018, 07:03:11 PM »
I have that installed.

It compiles in release mode, but not debug. What could cause that?

Offline markcwm

  • Sr. Member
  • ****
  • Posts: 292
Re: Error building modules on Ubuntu 18.04
« Reply #3 on: July 21, 2018, 12:41:07 AM »
It sounds like a bug in the gtk module, you could post an issue on Github if Brucey doesn't respond soon.