Linking problem in Live Building


#1

I need to link to an .so file and export to Xcode.
I specify a -L and a directory path in the Extra linker flags section for Xcode in Projucer.
I list the lib file name in External libraries to link. I omit the opening ‘lib’ and trailing .so
I can then export to an xcode project and compile and run successfuly.

My problem is, that Live Build does not work and gets errors trying satisfy the missing routines. The Live Build Settings does not have an Extra linker flag section but is has an Extra dynamic library section and Extra compiler flags section. I’ve not been able to make these work.

I’m now fiddling with the -Wl option and adding it to the Extra compiler flags. This should pass the options to the linker.

I’ve tried:
-Wl,-L,/usr/local/lib,-lxscope_endpoint13

Am I on the right track?


#2

The Projucer does not allow linking in external libraries in the live build system. Sorry :frowning:


#3

Thanks, that’s very odd. There must be a good reason for this.