python - Conda and Macports X11 conflicts when installing dlib -


i on mac 10.9.5, , trying install dlib python here

http://dlib.net/files/dlib-18.16.tar.bz2

my python installation made long time ago, conda:

current conda install:           platform : osx-64     conda version : 3.16.0  conda-build version : 1.3.5    python version : 2.7.10.final.0  requests version : 2.7.0  root environment : //anaconda  (writable) default environment : //anaconda  envs directories : //anaconda/envs     package cache : //anaconda/pkgs      channel urls : https://repo.continuum.io/pkgs/free/osx-64/                     https://repo.continuum.io/pkgs/free/noarch/                     https://repo.continuum.io/pkgs/pro/osx-64/                     https://repo.continuum.io/pkgs/pro/noarch/       config file : none foreign system : false 

to install dlib followed following routine:

$ tar xvjf dlib-18.16.tar.bz2 $ cd dlib-18.16/python_examples/     $ mkdir build $ cd build $ cmake ../../tools/python $ cmake --build . --config release --target install 

as specified in compile_dlib_python_module.bat file @ /users/javier/dlib-18.16/python_examples

i first got errors related xlocale.h , xosdefs.h.

these files found @ /opt/local/include/x11 , /opt/x11/include/x11. copied files /anaconda/include/x11 think solved problem, since not getting error messages related these two.

i run:

$ cmake --build . --config release --target install 

and a lot of error messages like:

 [  1%] building cxx object dlib_build/cmakefiles/dlib.dir/gui_widgets/fonts.o  /users/javier/dlib-18.16/dlib/gui_widgets/nativefont.h:313:21: error: use of undeclared identifier 'xalloccolor'                 xalloccolor(d, cmap, &xcol); /users/javier/dlib-18.16/dlib/gui_widgets/nativefont.h:319:36: error: use of undeclared identifier 'xmbtextextents'; did mean 'xtextextents'?                         return xmbtextextents(fs, str, len, ink, logical);                                ^~~~~~~~~~~~~~                                xtextextents /users/javier/dlib-18.16/dlib/gui_widgets/nativefont.h:318:43: note: 'xtextextents' declared here                     inline static int xtextextents (xfontset fs, char *str, int len, xrectangle *ink, xrectangle *logical){ 

all related files, xmbtextextents in /opt/x11/share/man/man3 , zipped versions (xmbtextextents.3.gz) here /opt/local/share/man/man3.

the error raises fact dlib installation looks @ /anaconda/include/x11/ while should @ /opt/x11/include/x11 (i guess). have tried edit relevant keys in cmakecache.txt file as:

x11_path:filepath=/opt/x11/include  //path file. xlib_path:path=/opt/x11/include/x11 

but not work. have been advised start "fresh" homebrew (i.e. removing trace conda , macports , re-do whole installation homebrew), looks rather drastic "solution" me, given fact have a lot of stuff installed already.

just in case of use, relevant lines in .profile file this:

setenv path /opt/local/bin:/opt/local/sbin:$path # anaconda path takes priority setenv path /anaconda/bin:$path 

thanks in advance time.

i deleted /anaconda/include/x11/ folder entirely , did trick. dlib builds no problem.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -