Branch that works with latest OF
https://github.com/Jonathhhan/swig-openframeworks/tree/OF-master I am sure some things can be fixed (updated) in a better way, but this works for me...
Hi @Jonathhhan, thank for your effort. I'm still getting this on OF nightly branch
└[~/projects/ofxLua/scripts]> ./generate_bindings.sh
### Generating: openFrameworks desktop
swig -c++ -lua -O -small -I/home/a/projects/openFrameworks/libs/openFrameworks -DMODULE_NAME=of -DOF_SWIG_RENAME -o ../src/bindings/desktop/ofBindings.cpp openFrameworks.i
/home/a/projects/openFrameworks/libs/openFrameworks/utils/ofUtils.h:288: Warning 345: Unable to deduce auto return type for 'prepare()' (ignored).
/home/a/projects/openFrameworks/libs/openFrameworks/utils/ofUtils.h:363: Warning 345: Unable to deduce auto return type for 'set(Container &)' (ignored).
/home/a/projects/openFrameworks/libs/openFrameworks/utils/ofUtils.h:371: Warning 345: Unable to deduce auto return type for 'set(urn< T > &)' (ignored).
/home/a/projects/openFrameworks/libs/openFrameworks/utils/ofUtils.h:383: Warning 345: Unable to deduce auto return type for 'set' (ignored).
/home/a/projects/openFrameworks/libs/openFrameworks/utils/ofUtils.h:388: Warning 345: Unable to deduce auto return type for 'valid() const' (ignored).
/home/a/projects/openFrameworks/libs/openFrameworks/utils/ofUtils.h:393: Warning 345: Unable to deduce auto return type for 'depleted() const' (ignored).
/home/a/projects/openFrameworks/libs/openFrameworks/utils/ofUtils.h:398: Warning 345: Unable to deduce auto return type for 'capacity() const' (ignored).
/home/a/projects/openFrameworks/libs/openFrameworks/utils/ofUtils.h:403: Warning 345: Unable to deduce auto return type for 'remain() const' (ignored).
/home/a/projects/openFrameworks/libs/openFrameworks/utils/ofUtils.h:421: Warning 345: Unable to deduce auto return type for 'refill()' (ignored).
/home/a/projects/openFrameworks/libs/openFrameworks/utils/ofUtils.h:434: Warning 345: Unable to deduce auto return type for 'pull()' (ignored).
/home/a/projects/openFrameworks/libs/openFrameworks/utils/ofUtils.h:446: Warning 345: Unable to deduce auto return type for 'pull_or_empty()' (ignored).
/home/a/projects/openFrameworks/libs/openFrameworks/utils/ofUtils.h:450: Warning 345: Unable to deduce auto return type for 'get_values() const' (ignored).
/home/a/projects/openFrameworks/libs/openFrameworks/utils/ofUtils.h:451: Warning 345: Unable to deduce auto return type for 'get_phase() const' (ignored).
/home/a/projects/openFrameworks/libs/openFrameworks/utils/ofUtils.h:456: Error: Syntax error in input(1).
make: *** [Makefile:121: openFrameworks] Error 1
Most of which could be worked around by
// ofutils.h
%ignore prepare();
%ignore refill();
%ignore pull();
%ignore set(Container &);
%ignore set(urn< T > &);
%ignore set(Args &&...);
%ignore valid() const;
%ignore depleted() const;
%ignore capacity() const;
%ignore remain() const;
%ignore refill();
%ignore pull();
%ignore pull_or_empty();
%ignore get_values() const;
%ignore get_phase() const;
but not the last error line for https://github.com/openframeworks/openFrameworks/blob/87b286825bdec34ff879c47e9c8b9ceceb92afae/libs/openFrameworks/utils/ofUtils.h#L456
I remember that error, which was not there when I created the branch (ofUrn is quite new). Not sure, how I (not really) solved it. Maybe I just deleted the ofUrn code. Ignore ofUrn could work, too.