Menu

#26 Header directory after install and namespace problems

v1.0 (example)
open
nobody
None
5
2017-03-14
2017-03-14
M D
No

Hi,

I updated my Swig generated Python wrappers to ArUco 2.0.19 (see: https://github.com/fehlfarbe/python-aruco )
But I had to patch some header files to generate the wrappers.

sudo make install copies all aruco-2.0.19/src header files to /usr/local/include/aruco/ but it copies the headers from aruco-2.0.19/src/markerlabelers directly to /usr/local/include/aruco and doesn't create the markerlabelers directory so the relative imports in dictionary_based.h

#include "../markerlabeler.h"
#include "../dictionary.h"

won't work.

Swig has some problems with the namespaces because it can't find some classes (maybe there is an option for it - I don't know). I added the aruco:: namespace to several variables and created an patchfile: https://github.com/fehlfarbe/python-aruco/blob/master/namespaces.patch

Maybe you can fix this problems for next release, so I don't have to apply the patchfile to generate the wrappers.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB