Linux linking errors on Ubuntu Mate

Hi, I’m having linking errors on Ubuntu MATE arm version. Originally I had my program compiling on Raspbian, but I want armv7 support, so I’ve switched to Ubuntu MATE. I’ve installed all the required packages. The Projucer built fine. Then when I go to build my project I get:

Linking Foo
/usr/bin/ld: build/intermediate/Debug/juce_gui_basics_8a6da59c.o: undefined reference to symbol 'XShmGetEventBase'
//usr/lib/arm-linux-gnueabihf/ error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:162: recipe for target 'build/Foo' failed
make: *** [build/Foo] Error 1

XShmGetEventBase seems to be part of libXext and I have libxext-dev installed, so I’m not sure what the issue is.

Any idea what the issue could be?

Try to check if the package _libxext-de_v is installed. Add the flag -lXext to the section LDFLAGS of your Makefile.

I resaved my jucer projects and now it works, odd.