Closed jessekirbs closed 9 years ago
try to replace libusb.h
with libusb-1.0/libusb.h
did you download and compile the dependencies? one error message indicates that libusb is not present in the depends folder
Thank you both for your responses.
@danielelic Where exactly should I be replacing libusb.h with libusb-1.0/libusb.h?
I followed the instructions for the Mac install on GitHub and ran into quite a few errors during the 'make && make install" step. The first of which was it was having trouble located 'libusb.h'. I 'fixed' this by copying 'libusb.h' into each directory it was searching. Then it told me to change the < > brackets to quotes, which I did, and it seemed to get a little further. It then couldn't locate 'turbojpeg.h' so I tried copying that into each folder it was looking. Gave the quotes error again. Changed the quotes and kept going. Did this a few times and it seemed to get further, but the final error I reached was:
ld: library not found for -lturbojpeg
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libfreenect2.dylib] Error 1
make[1]: *** [CMakeFiles/freenect2.dir/all] Error 2
make: *** [all] Error 2'
I am completely stumped on this one.
@christiankerl I installed the dependencies according to the GitHub instructions. libusb.h is in the folders but not where the code is searching. Seems like the problem is during the Git clone process:
Jesses-iMac:documents jessekirberger$ git clone git@github.com:OpenKinect/libfreenect2.git
Cloning into 'libfreenect2'...
remote: Counting objects: 1143, done.
remote: Total 1143 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (1143/1143), 1.71 MiB | 828.00 KiB/s, done.
Resolving deltas: 100% (684/684), done.
Checking connectivity... done.
Jesses-iMac:documents jessekirberger$ cd ./libfreenect2
Jesses-iMac:libfreenect2 jessekirberger$ sh ./depends/install_mac.sh
Cloning into '/Users/jessekirberger/documents/libfreenect2/depends/libusb_src'...
remote: Counting objects: 10359, done.
remote: Total 10359 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (10359/10359), 2.24 MiB | 1.03 MiB/s, done.
Resolving deltas: 100% (7665/7665), done.
Checking connectivity... done.
Note: checking out 'v1.0.19'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at e11525c... libusb 1.0.19
libtoolize or glibtoolize was not found! Please install libtool.
./install_deps.sh: line 17: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
Cloning into '/Users/jessekirberger/documents/libfreenect2/depends/glfw_src'...
remote: Counting objects: 14078, done.
remote: Total 14078 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (14078/14078), 6.93 MiB | 502.00 KiB/s, done.
Resolving deltas: 100% (8765/8765), done.
Checking connectivity... done.
Note: checking out '3.0.4'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at eab31f2... Added description of 3.0.4 release.
./install_deps.sh: line 33: cmake: command not found
make: *** No targets specified and no makefile found. Stop.
Cloning into '/Users/jessekirberger/documents/libfreenect2/depends/glew_src'...
remote: Counting objects: 5381, done.
remote: Total 5381 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (5381/5381), 1.60 MiB | 891.00 KiB/s, done.
Resolving deltas: 100% (3365/3365), done.
Checking connectivity... done.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C auto
--------------------------------------------------------------------
Downloading registry
--------------------------------------------------------------------
git clone --branch glew https://github.com/nigels-com/glfixes.git registry
Cloning into 'registry'...
remote: Counting objects: 10370, done.
remote: Total 10370 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (10370/10370), 11.75 MiB | 1.37 MiB/s, done.
Resolving deltas: 100% (8510/8510), done.
Checking connectivity... done.
touch registry/gl/specs/.dummy
--------------------------------------------------------------------
Creating descriptors
--------------------------------------------------------------------
rm -rf extensions/gl
bin/update_ext.sh extensions/gl registry/gl/specs blacklist
Hexadecimal number > 0xffffffff non-portable at bin/parse_spec.pl line 353.
Hexadecimal number > 0xffffffff non-portable at bin/parse_spec.pl line 357.
Hexadecimal number > 0xffffffff non-portable at bin/parse_spec.pl line 353.
Hexadecimal number > 0xffffffff non-portable at bin/parse_spec.pl line 357.
Hexadecimal number > 0xffffffff non-portable at bin/parse_spec.pl line 353.
Hexadecimal number > 0xffffffff non-portable at bin/parse_spec.pl line 357.
Hexadecimal number > 0xffffffff non-portable at bin/parse_spec.pl line 353.
Hexadecimal number > 0xffffffff non-portable at bin/parse_spec.pl line 357.
Hexadecimal number > 0xffffffff non-portable at bin/parse_spec.pl line 353.
Hexadecimal number > 0xffffffff non-portable at bin/parse_spec.pl line 357.
bin/filter_gl_ext.sh extensions/gl
find core/gl -maxdepth 1 -type f | grep -v VERSION | grep -v "~" | \
xargs -J % cp % extensions/gl
touch extensions/gl/.dummy
--------------------------------------------------------------------
Creating glew.h
--------------------------------------------------------------------
test -d ../include/GL || mkdir -p ../include/GL
cp -f src/glew_license.h ../include/GL/glew.h
cat src/mesa_license.h >> ../include/GL/glew.h
cat src/khronos_license.h >> ../include/GL/glew.h
cat src/glew_head.h >> ../include/GL/glew.h
bin/make_header.pl GLAPIENTRY GL core/gl/GL_VERSION* >> ../include/GL/glew.h
no keys in table!
no keys in table!
no keys in table!
bin/make_header.pl GLAPIENTRY GL extensions/gl/GL_* >> ../include/GL/glew.h
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
echo -e "/* ------------------------------------------------------------------------- */\n\n#if defined(GLEW_MX) && defined(_WIN32)\n#define GLEW_FUN_EXPORT\n#else\n#define GLEW_FUN_EXPORT GLEWAPI\n#endif /* GLEW_MX */\n" >> ../include/GL/glew.h
echo -e "#if defined(GLEW_MX)\n#define GLEW_VAR_EXPORT\n#else\n#define GLEW_VAR_EXPORT GLEWAPI\n#endif /* GLEW_MX */\n" >> ../include/GL/glew.h
echo -e "#if defined(GLEW_MX) && defined(_WIN32)\nstruct GLEWContextStruct\n{\n#endif /* GLEW_MX */" >> ../include/GL/glew.h
bin/make_struct_fun.pl GLEW_FUN_EXPORT core/gl/GL_VERSION* extensions/gl/GL_* >> ../include/GL/glew.h
echo -e "\n#if defined(GLEW_MX) && !defined(_WIN32)\nstruct GLEWContextStruct\n{\n#endif /* GLEW_MX */\n" >> ../include/GL/glew.h
bin/make_struct_var.pl GLEW_VAR_EXPORT core/gl/GL_VERSION* extensions/gl/GL_* >> ../include/GL/glew.h
echo -e "\n#ifdef GLEW_MX\n}; /* GLEWContextStruct */\n#endif /* GLEW_MX */\n" >> ../include/GL/glew.h
perl -e "s/GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_2;/GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_1;\nGLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_2;/" -pi ../include/GL/glew.h
rm -f ../include/GL/glew.h.bak
cat src/glew_tail.h >> ../include/GL/glew.h
--------------------------------------------------------------------
Creating wglew.h
--------------------------------------------------------------------
cp -f src/glew_license.h ../include/GL/wglew.h
cat src/khronos_license.h >> ../include/GL/wglew.h
cat src/wglew_head.h >> ../include/GL/wglew.h
bin/make_header.pl WINAPI WGL extensions/gl/WGL_* >> ../include/GL/wglew.h
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
cat src/wglew_mid.h >> ../include/GL/wglew.h
echo -e "\n#ifdef GLEW_MX\nstruct WGLEWContextStruct\n{\n#endif /* GLEW_MX */" >> ../include/GL/wglew.h
bin/make_struct_fun.pl WGLEW_FUN_EXPORT extensions/gl/WGL_* >> ../include/GL/wglew.h
bin/make_struct_var.pl WGLEW_VAR_EXPORT extensions/gl/WGL_* >> ../include/GL/wglew.h
echo -e "\n#ifdef GLEW_MX\n}; /* WGLEWContextStruct */\n#endif /* GLEW_MX */\n" >> ../include/GL/wglew.h
cat src/wglew_tail.h >> ../include/GL/wglew.h
--------------------------------------------------------------------
Creating glxew.h
--------------------------------------------------------------------
cp -f src/glew_license.h ../include/GL/glxew.h
cat src/mesa_license.h >> ../include/GL/glxew.h
cat src/khronos_license.h >> ../include/GL/glxew.h
cat src/glxew_head.h >> ../include/GL/glxew.h
bin/make_header.pl "" GLX core/gl/GLX_VERSION* >> ../include/GL/glxew.h
no keys in table!
bin/make_header.pl "" GLX extensions/gl/GLX_* >> ../include/GL/glxew.h
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
no keys in table!
cat src/glxew_mid.h >> ../include/GL/glxew.h
bin/make_struct_fun.pl GLXEW_FUN_EXPORT core/gl/GLX_VERSION* extensions/gl/GLX_* >> ../include/GL/glxew.h
echo -e "\n#if defined(GLEW_MX)\nstruct GLXEWContextStruct\n{\n#endif /* GLEW_MX */\n" >> ../include/GL/glxew.h
bin/make_struct_var.pl GLXEW_VAR_EXPORT core/gl/GLX_VERSION* extensions/gl/GLX_* >> ../include/GL/glxew.h
echo -e "\n#ifdef GLEW_MX\n}; /* GLXEWContextStruct */\n#endif /* GLEW_MX */\n" >> ../include/GL/glxew.h
perl -e "s/GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_2;/GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_0;\nGLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_1;\nGLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_2;/" -pi ../include/GL/glxew.h
cat src/glxew_tail.h >> ../include/GL/glxew.h
--------------------------------------------------------------------
Creating glew.c
--------------------------------------------------------------------
cp -f src/glew_license.h ../src/glew.c
cat src/glew_head.c >> ../src/glew.c
echo -e "\n#if !defined(_WIN32) || !defined(GLEW_MX)" >> ../src/glew.c
bin/make_def_fun.pl GL core/gl/GL_VERSION* >> ../src/glew.c
bin/make_def_fun.pl GL extensions/gl/GL_* >> ../src/glew.c
echo -e "\n#endif /* !WIN32 || !GLEW_MX */" >> ../src/glew.c
echo -e "\n#if !defined(GLEW_MX)" >> ../src/glew.c;
echo -e "\nGLboolean __GLEW_VERSION_1_1 = GL_FALSE;" >> ../src/glew.c
bin/make_def_var.pl GL core/gl/GL_VERSION* >> ../src/glew.c
bin/make_def_var.pl GL extensions/gl/GL_* >> ../src/glew.c
echo -e "\n#endif /* !GLEW_MX */\n" >> ../src/glew.c;
bin/make_init.pl GL core/gl/GL_VERSION* >> ../src/glew.c
bin/make_init.pl GL extensions/gl/GL_* >> ../src/glew.c
cat src/glew_init_gl.c >> ../src/glew.c
bin/make_list.pl core/gl/GL_VERSION* | grep -v '\"GL_VERSION' >> ../src/glew.c
bin/make_list.pl extensions/gl/GL_* >> ../src/glew.c
echo -e "\n return GLEW_OK;\n}\n" >> ../src/glew.c
echo -e "\n#if defined(_WIN32)" >> ../src/glew.c
echo -e "\n#if !defined(GLEW_MX)" >> ../src/glew.c
bin/make_def_fun.pl WGL extensions/gl/WGL_* >> ../src/glew.c
bin/make_def_var.pl WGL extensions/gl/WGL_* >> ../src/glew.c
echo -e "\n#endif /* !GLEW_MX */\n" >> ../src/glew.c;
bin/make_init.pl WGL extensions/gl/WGL_* >> ../src/glew.c
cat src/glew_init_wgl.c >> ../src/glew.c
bin/make_list.pl extensions/gl/WGL_* >> ../src/glew.c
echo -e "\n return GLEW_OK;\n}" >> ../src/glew.c;
echo -e "\n#elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))" >> ../src/glew.c
bin/make_def_fun.pl GLX core/gl/GLX_VERSION* >> ../src/glew.c
bin/make_def_fun.pl GLX extensions/gl/GLX_* >> ../src/glew.c
echo -e "\n#if !defined(GLEW_MX)" >> ../src/glew.c;
echo -e "\nGLboolean __GLXEW_VERSION_1_0 = GL_FALSE;" >> ../src/glew.c
echo -e "GLboolean __GLXEW_VERSION_1_1 = GL_FALSE;" >> ../src/glew.c
bin/make_def_var.pl GLX core/gl/GLX_VERSION* >> ../src/glew.c
bin/make_def_var.pl GLX extensions/gl/GLX_* >> ../src/glew.c
echo -e "\n#endif /* !GLEW_MX */\n" >> ../src/glew.c;
bin/make_init.pl GLX core/gl/GLX_VERSION* >> ../src/glew.c
bin/make_init.pl GLX extensions/gl/GLX_* >> ../src/glew.c
cat src/glew_init_glx.c >> ../src/glew.c
bin/make_list.pl core/gl/GLX_VERSION_1_3 | grep -v '\"GLX_VERSION' >> ../src/glew.c
bin/make_list.pl extensions/gl/GLX_* >> ../src/glew.c
echo -e "\n return GLEW_OK;\n}" >> ../src/glew.c
echo -e "\n#endif /* !defined(__ANDROID__) && !defined(__native_client__) && !defined(__HAIKU__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX)) */\n" >> ../src/glew.c;
cat src/glew_init_tail.c >> ../src/glew.c
cat src/glew_str_head.c >> ../src/glew.c
bin/make_str.pl core/gl/GL_VERSION* extensions/gl/GL_* >> ../src/glew.c
cat src/glew_str_wgl.c >> ../src/glew.c
bin/make_str.pl extensions/gl/WGL_* >> ../src/glew.c
cat src/glew_str_glx.c >> ../src/glew.c
bin/make_str.pl core/gl/GLX_VERSION* extensions/gl/GLX_* >> ../src/glew.c
cat src/glew_str_tail.c >> ../src/glew.c
perl -e "s/GLEW_VERSION_STRING/1.11.0/g" -pi ../src/glew.c
perl -e "s/GLEW_VERSION_MAJOR_STRING/1/g" -pi ../src/glew.c
perl -e "s/GLEW_VERSION_MINOR_STRING/11/g" -pi ../src/glew.c
perl -e "s/GLEW_VERSION_MICRO_STRING/0/g" -pi ../src/glew.c
perl -e "s/GLEW_ARB_vertex_shader = !_glewInit_GL_ARB_vertex_shader\(GLEW_CONTEXT_ARG_VAR_INIT\);/{ GLEW_ARB_vertex_shader = !_glewInit_GL_ARB_vertex_shader(GLEW_CONTEXT_ARG_VAR_INIT); _glewInit_GL_ARB_vertex_program(GLEW_CONTEXT_ARG_VAR_INIT); }/g" -pi ../src/glew.c
perl -e "s/\(\(glColorSubTable = /((glBlendEquation = (PFNGLBLENDEQUATIONPROC)glewGetProcAddress((const GLubyte*)\"glBlendEquation\")) == NULL) || r;\n r = ((glColorSubTable = /g" -pi ../src/glew.c
rm -f ../src/glew.c.bak
--------------------------------------------------------------------
Creating glewinfo.c
--------------------------------------------------------------------
cp -f src/glew_license.h ../src/glewinfo.c
cat src/glewinfo_head.c >> ../src/glewinfo.c
bin/make_info.pl core/gl/GL_VERSION* >> ../src/glewinfo.c
bin/make_info.pl extensions/gl/GL_* >> ../src/glewinfo.c
echo -e "#ifdef _WIN32\n" >> ../src/glewinfo.c
bin/make_info.pl extensions/gl/WGL_* >> ../src/glewinfo.c
echo -e "#else /* _UNIX */\n" >> ../src/glewinfo.c
bin/make_info.pl core/gl/GLX_VERSION* >> ../src/glewinfo.c
bin/make_info.pl extensions/gl/GLX_* >> ../src/glewinfo.c
echo -e "#endif /* _WIN32 */\n" >> ../src/glewinfo.c
cat src/glewinfo_gl.c >> ../src/glewinfo.c
bin/make_info_list.pl core/gl/GL_VERSION* >> ../src/glewinfo.c
bin/make_info_list.pl extensions/gl/GL_* >> ../src/glewinfo.c
cat src/glewinfo_wgl.c >> ../src/glewinfo.c
bin/make_info_list.pl extensions/gl/WGL_* >> ../src/glewinfo.c
cat src/glewinfo_glx.c >> ../src/glewinfo.c
bin/make_info_list.pl core/gl/GLX_VERSION* >> ../src/glewinfo.c
bin/make_info_list.pl extensions/gl/GLX_* >> ../src/glewinfo.c
cat src/glewinfo_tail.c >> ../src/glewinfo.c
perl -e 's/"glColorSubTable"/"glBlendEquation", glBlendEquation == NULL);\n glewInfoFunc("glColorSubTable"/g' -pi ../src/glewinfo.c
rm -f ../src/glewinfo.c.bak
--------------------------------------------------------------------
Creating glew.html
--------------------------------------------------------------------
cp -f src/header.html ../doc/glew.html
echo -e "<h2>Supported OpenGL Extensions</h2>\n" >> ../doc/glew.html
bin/make_html.pl extensions/gl/GL_* >> ../doc/glew.html
cat src/footer.html >> ../doc/glew.html
perl -i -pe 's#<a href="glew.html">(.*)</a>#\1#' ../doc/glew.html
--------------------------------------------------------------------
Creating wglew.html
--------------------------------------------------------------------
cp -f src/header.html ../doc/wglew.html
echo -e "<h2>Supported WGL Extensions</h2>\n" >> ../doc/wglew.html
bin/make_html.pl extensions/gl/WGL_* >> ../doc/wglew.html
cat src/footer.html >> ../doc/wglew.html
perl -i -pe 's#<a href="wglew.html">(.*)</a>#\1#' ../doc/wglew.html
--------------------------------------------------------------------
Creating glxew.html
--------------------------------------------------------------------
cp -f src/header.html ../doc/glxew.html
echo -e "<h2>Supported GLX Extensions</h2>\n" >> ../doc/glxew.html
bin/make_html.pl extensions/gl/GLX_* >> ../doc/glxew.html
cat src/footer.html >> ../doc/glxew.html
perl -i -pe 's#<a href="glxew.html">(.*)</a>#\1#' ../doc/glxew.html
perl -e "s/GLEW_MAJOR/1/g;s/GLEW_MINOR/11/g;s/GLEW_MICRO/0/g;" -p src/glew.rc > ../build/glew.rc
perl -e "s/GLEW_MAJOR/1/g;s/GLEW_MINOR/11/g;s/GLEW_MICRO/0/g;" -p src/glewinfo.rc > ../build/glewinfo.rc
perl -e "s/GLEW_MAJOR/1/g;s/GLEW_MINOR/11/g;s/GLEW_MICRO/0/g;" -p src/visualinfo.rc > ../build/visualinfo.rc
mkdir lib
cc -DGLEW_NO_GLU -DGLEW_BUILD -O2 -Wall -W -Iinclude -dynamic -fno-common -fPIC -o tmp/darwin/default/shared/glew.o -c src/glew.c
cc -dynamiclib -install_name /Users/jessekirberger/documents/libfreenect2/depends/glew/lib/libGLEW.1.11.0.dylib -current_version 1.11.0 -compatibility_version 1.11 -o lib/libGLEW.1.11.0.dylib tmp/darwin/default/shared/glew.o -framework AGL -framework OpenGL
ln -sf libGLEW.1.11.0.dylib lib/libGLEW.1.11.dylib
ln -sf libGLEW.1.11.0.dylib lib/libGLEW.dylib
strip -x lib/libGLEW.1.11.0.dylib
cc -DGLEW_NO_GLU -DGLEW_STATIC -O2 -Wall -W -Iinclude -dynamic -fno-common -fPIC -o tmp/darwin/default/static/glew.o -c src/glew.c
ar cr lib/libGLEW.a tmp/darwin/default/static/glew.o
strip -x lib/libGLEW.a
sed \
-e "s|@prefix@|/usr|g" \
-e "s|@libdir@|/Users/jessekirberger/documents/libfreenect2/depends/glew/lib|g" \
-e "s|@exec_prefix@|/Users/jessekirberger/documents/libfreenect2/depends/glew/bin|g" \
-e "s|@includedir@|/Users/jessekirberger/documents/libfreenect2/depends/glew/include/GL|g" \
-e "s|@version@|1.11.0|g" \
-e "s|@cflags@||g" \
-e "s|@libname@|GLEW|g" \
-e "s|@requireslib@|glu|g" \
< glew.pc.in > glew.pc
cc -DGLEW_NO_GLU -DGLEW_MX -DGLEW_BUILD -O2 -Wall -W -Iinclude -dynamic -fno-common -fPIC -o tmp/darwin/mx/shared/glew.o -c src/glew.c
cc -dynamiclib -install_name /Users/jessekirberger/documents/libfreenect2/depends/glew/lib/libGLEWmx.1.11.0.dylib -current_version 1.11.0 -compatibility_version 1.11 -o lib/libGLEWmx.1.11.0.dylib tmp/darwin/mx/shared/glew.o -framework AGL -framework OpenGL
ln -sf libGLEWmx.1.11.0.dylib lib/libGLEWmx.1.11.dylib
ln -sf libGLEWmx.1.11.0.dylib lib/libGLEWmx.dylib
strip -x lib/libGLEWmx.1.11.0.dylib
cc -DGLEW_NO_GLU -DGLEW_MX -DGLEW_STATIC -O2 -Wall -W -Iinclude -dynamic -fno-common -fPIC -o tmp/darwin/mx/static/glew.o -c src/glew.c
ar cr lib/libGLEWmx.a tmp/darwin/mx/static/glew.o
sed \
-e "s|@prefix@|/usr|g" \
-e "s|@libdir@|/Users/jessekirberger/documents/libfreenect2/depends/glew/lib|g" \
-e "s|@exec_prefix@|/Users/jessekirberger/documents/libfreenect2/depends/glew/bin|g" \
-e "s|@includedir@|/Users/jessekirberger/documents/libfreenect2/depends/glew/include/GL|g" \
-e "s|@version@|1.11.0|g" \
-e "s|@cflags@|-DGLEW_MX|g" \
-e "s|@libname@|GLEWmx|g" \
-e "s|@requireslib@|glu|g" \
< glew.pc.in > glewmx.pc
mkdir bin
cc -DGLEW_NO_GLU -O2 -Wall -W -Iinclude -dynamic -fno-common -fPIC -o tmp/darwin/default/shared/glewinfo.o -c src/glewinfo.c
src/glewinfo.c:11484:1: warning: 'AGLContext' is deprecated: first deprecated in
OS X 10.9 [-Wdeprecated-declarations]
AGLContext ctx, octx;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:54:39: note:
'AGLContext' has been explicitly marked deprecated here
typedef struct __AGLContextRec *AGLContext OPENGL_DEPRECATED(10_0, 10_9);
^
src/glewinfo.c:11489:3: warning: 'AGLPixelFormat' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
AGLPixelFormat pf;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:53:39: note:
'AGLPixelFormat' has been explicitly marked deprecated here
typedef struct __AGLPixelFormatRec *AGLPixelFormat OPENGL_DEPRECATED(1...
^
src/glewinfo.c:11494:8: warning: 'aglChoosePixelFormat' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
pf = aglChoosePixelFormat(NULL, 0, attrib);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:271:23: note:
'aglChoosePixelFormat' has been explicitly marked deprecated here
extern AGLPixelFormat aglChoosePixelFormat(const void *gdevs, GLint ndev...
^
src/glewinfo.c:11496:9: warning: 'aglCreateContext' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
ctx = aglCreateContext(pf, NULL);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:295:19: note:
'aglCreateContext' has been explicitly marked deprecated here
extern AGLContext aglCreateContext(AGLPixelFormat pix, AGLContext share...
^
src/glewinfo.c:11497:38: warning: 'aglGetError' is deprecated: first deprecated
in OS X 10.9 [-Wdeprecated-declarations]
if (NULL == ctx || AGL_NO_ERROR != aglGetError()) return GL_TRUE;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:378:15: note:
'aglGetError' has been explicitly marked deprecated here
extern GLenum aglGetError(void) OPENGL_DEPRECATED(10_0, 10_9);
^
src/glewinfo.c:11498:3: warning: 'aglDestroyPixelFormat' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
aglDestroyPixelFormat(pf);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:273:13: note:
'aglDestroyPixelFormat' has been explicitly marked deprecated here
extern void aglDestroyPixelFormat(AGLPixelFormat pix) OPENGL_DEPRECATED(...
^
src/glewinfo.c:11500:10: warning: 'aglGetCurrentContext' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
octx = aglGetCurrentContext();
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:304:19: note:
'aglGetCurrentContext' has been explicitly marked deprecated here
extern AGLContext aglGetCurrentContext(void) OPENGL_DEPRECATED(10_0, 10_9);
^
src/glewinfo.c:11501:19: warning: 'aglSetCurrentContext' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
if (GL_FALSE == aglSetCurrentContext(ctx)) return GL_TRUE;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:303:18: note:
'aglSetCurrentContext' has been explicitly marked deprecated here
extern GLboolean aglSetCurrentContext(AGLContext ctx) OPENGL_DEPRECATED(...
^
src/glewinfo.c:11511:3: warning: 'aglSetCurrentContext' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
aglSetCurrentContext(octx);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:303:18: note:
'aglSetCurrentContext' has been explicitly marked deprecated here
extern GLboolean aglSetCurrentContext(AGLContext ctx) OPENGL_DEPRECATED(...
^
src/glewinfo.c:11512:20: warning: 'aglDestroyContext' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
if (NULL != ctx) aglDestroyContext(ctx);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:296:18: note:
'aglDestroyContext' has been explicitly marked deprecated here
extern GLboolean aglDestroyContext(AGLContext ctx) OPENGL_DEPRECATED(10_...
^
10 warnings generated.
cc -O2 -Wall -W -Iinclude -dynamic -fno-common -fPIC -o bin/glewinfo tmp/darwin/default/shared/glewinfo.o -Llib -lGLEW -framework AGL -framework OpenGL
strip -x bin/glewinfo
cc -DGLEW_NO_GLU -O2 -Wall -W -Iinclude -dynamic -fno-common -fPIC -o tmp/darwin/default/shared/visualinfo.o -c src/visualinfo.c
src/visualinfo.c:64:3: warning: 'AGLContext' is deprecated: first deprecated in
OS X 10.9 [-Wdeprecated-declarations]
AGLContext ctx, octx;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:54:39: note:
'AGLContext' has been explicitly marked deprecated here
typedef struct __AGLContextRec *AGLContext OPENGL_DEPRECATED(10_0, 10_9);
^
src/visualinfo.c:1076:3: warning: 'AGLPixelFormat' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
AGLPixelFormat pf;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:53:39: note:
'AGLPixelFormat' has been explicitly marked deprecated here
typedef struct __AGLPixelFormatRec *AGLPixelFormat OPENGL_DEPRECATED(1...
^
src/visualinfo.c:1083:8: warning: 'aglChoosePixelFormat' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
pf = aglChoosePixelFormat(NULL, 0, attrib);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:271:23: note:
'aglChoosePixelFormat' has been explicitly marked deprecated here
extern AGLPixelFormat aglChoosePixelFormat(const void *gdevs, GLint ndev...
^
src/visualinfo.c:1085:14: warning: 'aglCreateContext' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
ctx->ctx = aglCreateContext(pf, NULL);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:295:19: note:
'aglCreateContext' has been explicitly marked deprecated here
extern AGLContext aglCreateContext(AGLPixelFormat pix, AGLContext share...
^
src/visualinfo.c:1086:43: warning: 'aglGetError' is deprecated: first deprecated
in OS X 10.9 [-Wdeprecated-declarations]
if (NULL == ctx->ctx || AGL_NO_ERROR != aglGetError()) return GL_TRUE;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:378:15: note:
'aglGetError' has been explicitly marked deprecated here
extern GLenum aglGetError(void) OPENGL_DEPRECATED(10_0, 10_9);
^
src/visualinfo.c:1087:3: warning: 'aglDestroyPixelFormat' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
aglDestroyPixelFormat(pf);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:273:13: note:
'aglDestroyPixelFormat' has been explicitly marked deprecated here
extern void aglDestroyPixelFormat(AGLPixelFormat pix) OPENGL_DEPRECATED(...
^
src/visualinfo.c:1089:15: warning: 'aglGetCurrentContext' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
ctx->octx = aglGetCurrentContext();
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:304:19: note:
'aglGetCurrentContext' has been explicitly marked deprecated here
extern AGLContext aglGetCurrentContext(void) OPENGL_DEPRECATED(10_0, 10_9);
^
src/visualinfo.c:1090:19: warning: 'aglSetCurrentContext' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
if (GL_FALSE == aglSetCurrentContext(ctx->ctx)) return GL_TRUE;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:303:18: note:
'aglSetCurrentContext' has been explicitly marked deprecated here
extern GLboolean aglSetCurrentContext(AGLContext ctx) OPENGL_DEPRECATED(...
^
src/visualinfo.c:1097:3: warning: 'aglSetCurrentContext' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
aglSetCurrentContext(ctx->octx);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:303:18: note:
'aglSetCurrentContext' has been explicitly marked deprecated here
extern GLboolean aglSetCurrentContext(AGLContext ctx) OPENGL_DEPRECATED(...
^
src/visualinfo.c:1098:25: warning: 'aglDestroyContext' is deprecated: first
deprecated in OS X 10.9 [-Wdeprecated-declarations]
if (NULL != ctx->ctx) aglDestroyContext(ctx->ctx);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers/agl.h:296:18: note:
'aglDestroyContext' has been explicitly marked deprecated here
extern GLboolean aglDestroyContext(AGLContext ctx) OPENGL_DEPRECATED(10_...
^
10 warnings generated.
cc -O2 -Wall -W -Iinclude -dynamic -fno-common -fPIC -o bin/visualinfo tmp/darwin/default/shared/visualinfo.o -Llib -lGLEW -framework AGL -framework OpenGL
strip -x bin/visualinfo
install -d -m 0755 "/Users/jessekirberger/documents/libfreenect2/depends/glew/include/GL"
install -m 0644 include/GL/wglew.h "/Users/jessekirberger/documents/libfreenect2/depends/glew/include/GL/"
install -m 0644 include/GL/glew.h "/Users/jessekirberger/documents/libfreenect2/depends/glew/include/GL/"
install -m 0644 include/GL/glxew.h "/Users/jessekirberger/documents/libfreenect2/depends/glew/include/GL/"
ar cr lib/libGLEW.a tmp/darwin/default/static/glew.o
strip -x lib/libGLEW.a
sed \
-e "s|@prefix@|/usr|g" \
-e "s|@libdir@|/Users/jessekirberger/documents/libfreenect2/depends/glew/lib|g" \
-e "s|@exec_prefix@|/Users/jessekirberger/documents/libfreenect2/depends/glew/bin|g" \
-e "s|@includedir@|/Users/jessekirberger/documents/libfreenect2/depends/glew/include/GL|g" \
-e "s|@version@|1.11.0|g" \
-e "s|@cflags@||g" \
-e "s|@libname@|GLEW|g" \
-e "s|@requireslib@|glu|g" \
< glew.pc.in > glew.pc
install -d -m 0755 "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib"
install -m 0644 lib/libGLEW.1.11.0.dylib "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib/"
ln -sf libGLEW.1.11.0.dylib "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib/libGLEW.1.11.dylib"
ln -sf libGLEW.1.11.0.dylib "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib/libGLEW.dylib"
install -m 0644 lib/libGLEW.a "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib/"
install -d -m 0755 "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib"
install -d -m 0755 "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib/pkgconfig"
install -m 0644 glew.pc "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib/pkgconfig/"
sed \
-e "s|@prefix@|/usr|g" \
-e "s|@libdir@|/Users/jessekirberger/documents/libfreenect2/depends/glew/lib|g" \
-e "s|@exec_prefix@|/Users/jessekirberger/documents/libfreenect2/depends/glew/bin|g" \
-e "s|@includedir@|/Users/jessekirberger/documents/libfreenect2/depends/glew/include/GL|g" \
-e "s|@version@|1.11.0|g" \
-e "s|@cflags@|-DGLEW_MX|g" \
-e "s|@libname@|GLEWmx|g" \
-e "s|@requireslib@|glu|g" \
< glew.pc.in > glewmx.pc
install -d -m 0755 "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib"
install -m 0644 lib/libGLEWmx.1.11.0.dylib "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib/"
ln -sf libGLEWmx.1.11.0.dylib "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib/libGLEWmx.1.11.dylib"
ln -sf libGLEWmx.1.11.0.dylib "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib/libGLEWmx.dylib"
install -m 0644 lib/libGLEWmx.a "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib/"
install -d -m 0755 "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib"
install -d -m 0755 "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib/pkgconfig"
install -m 0644 glewmx.pc "/Users/jessekirberger/documents/libfreenect2/depends/glew/lib/pkgconfig/"
install -d -m 0755 "/Users/jessekirberger/documents/libfreenect2/depends/glew/bin"
install -s -m 0755 bin/glewinfo bin/visualinfo "/Users/jessekirberger/documents/libfreenect2/depends/glew/bin/"
./depends/install_mac.sh: line 14: wget: command not found
tar: Error opening archive: Failed to open 'libjpeg-turbo-1.3.1.tar.gz'
mv: rename libjpeg-turbo-1.3.1 to /Users/jessekirberger/documents/libfreenect2/depends/libjpeg_turbo_src: No such file or directory
./depends/install_mac.sh: line 17: cd: /Users/jessekirberger/documents/libfreenect2/depends/libjpeg_turbo_src: No such file or directory
cp: /config.guess: No such file or directory
cp: /config.sub: No such file or directory
./depends/install_mac.sh: line 22: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
Jesses-iMac:libfreenect2 jessekirberger$
Seems like the errors are at the end there. Sorry for the long code, but I thought it would help show the whole picture. Thanks for your help, guys.
libusb wasn't build correctly because libtool wasn't found. the error message from your log is: libtoolize or glibtoolize was not found! Please install libtool
turbojpeg wasn't build because you are missing wget. your error: ./depends/install_mac.sh: line 14: wget: command not found
you are also missing cmake
@christiankerl Any idea why they wouldn't be installing properly? I used:
brew install opencv git nasm wget
When I try to install again it says they are already installed:
JesseiMac:~ jesse$ brew install wget
Warning: wget-1.16 already installed
JesseiMac:~ jesse$ brew install cmake
Warning: cmake-3.0.2 already installed
And when I tried to re-install lib tools, I get this:
JesseiMac:~ jesse$ brew install libtool
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libtool-2.4
######################################################################## 100.0%
==> Pouring libtool-2.4.2.mavericks.bottle.3.tar.gz
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
🍺 /usr/local/Cellar/libtool/2.4.2: 69 files, 2.5M
So it seems like it was already installed from Apple, but now it made a copy? Does this provide any more clues or does it just make it more confusing? Thanks for your continued help, I really want to get this working.
You could try to run the commands in install_mac.sh manually.
I opened up install_mac.sh but I'm not sure which commands I should be trying to run. I tried to decode it as best I could, but it seems like all the things in there are not where the errors are. It seems like libusb and turbo_jpeg ARE installing, but it seems like the problem is that they're not installing to the right directory, or at least rest of the code is not looking in the right directory.
Linking CXX shared library lib/libfreenect2.dylib
ld: warning: directory not found for option '-L/Users/jesse/libfreenect2/examples/protonect/../../depends/libusb/lib'
ld: library not found for -lturbojpeg
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libfreenect2.dylib] Error 1
make[1]: *** [CMakeFiles/freenect2.dir/all] Error 2
make: *** [all] Error 2
I think the error is in the line:
L/Users/jesse/libfreenect2/examples/protonect/../../depends/libusb/lib'
I looked in the depends folder and there is no 'libusb' folder. Only 'libusb_src'. Is there a way for me to manually place this folder and whatever the code is looking for within it? Thanks for your continued help.
@jessekirbs did you ever figure this out? I'm running into the same issues as you did on a clean install of Yosemite. Any other ideas?
ok, so I had the same issue as the OP, that libusb wasn't found. I started tracing everything back and found that the libusb bootstrap.sh script was failing on the following line:
aclocal || exit 1
I didn't have that. Had to do:
brew install autoconf automake libtool
to pass that hurdle. I'm stuck at another point, though, so I'll open up a new issue.
@ptterb Never figured out. Got frustrated and put it aside for now. Let me know if you can figure it out, I'd love to know.
Has anyone solved this problem? I'm in the same situations. I tried to install libfreenect2 on my Mac and I clode to the end. I have the same string:
Can Anyone help Us? I tried to write : brew install autoconf automake libtool
but it told me that is already installed. The problem I think is before because when I wrote this command:
cmake CMakeLists.txt
I had and Error in thi string:
Can anyone help me?
Is this still an issue? Did you run install_mac.sh before cmake?
@floe Yes, unfortunately. Still an issue. I did run install_mac.sh before cmake (posted results below). I tried reinstalling libusb, but still no luck. Any help would be greatly appreciated. I'd love to get this working.
JesseMBP:libfreenect2 jessekirberger$ sh ./depends/install_mac.sh
Cloning into '/Users/jessekirberger/libfreenect2/depends/libusb_src'...
remote: Counting objects: 10611, done.
remote: Total 10611 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (10611/10611), 2.38 MiB | 1.41 MiB/s, done.
Resolving deltas: 100% (7839/7839), done.
Checking connectivity... done.
Note: checking out 'v1.0.19'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at e11525c... libusb 1.0.19
glibtoolize: putting auxiliary files in '.'.
glibtoolize: copying file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
./bootstrap.sh: line 16: aclocal: command not found
./install_deps.sh: line 17: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
Cloning into '/Users/jessekirberger/libfreenect2/depends/glfw_src'...
remote: Counting objects: 14494, done.
remote: Total 14494 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (14494/14494), 7.27 MiB | 2.53 MiB/s, done.
Resolving deltas: 100% (9075/9075), done.
Checking connectivity... done.
Note: checking out '3.0.4'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at eab31f2... Added description of 3.0.4 release.
./install_deps.sh: line 33: cmake: command not found
make: *** No targets specified and no makefile found. Stop.
./depends/install_mac.sh: line 14: wget: command not found
tar: Error opening archive: Failed to open 'libjpeg-turbo-1.3.1.tar.gz'
mv: rename libjpeg-turbo-1.3.1 to /Users/jessekirberger/libfreenect2/depends/libjpeg_turbo_src: No such file or directory
./depends/install_mac.sh: line 17: cd: /Users/jessekirberger/libfreenect2/depends/libjpeg_turbo_src: No such file or directory
cp: /config.guess: No such file or directory
cp: /config.sub: No such file or directory
./depends/install_mac.sh: line 22: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
./depends/install_mac.sh: line 26: cd: /System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/: No such file or directory
Password:
sudo: wget: command not found
Your environment appears to be missing some crucial commands, notably aclocal, cmake and wget. I'm no Mac expert, so I don't exactly know how to install them, but you definitely need those first before you can actually compile the rest.
@floe I don't believe these things were missing, but just to be safe I reinstalled autoconf, automake, cake, wget, nasm, and git. Still getting errors (posted below).
These errors after 'install_mac.sh'
cp: /config.guess: No such file or directory
cp: /config.sub: No such file or directory
./depends/install_mac.sh: line 26: cd: /System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/: No such file or directory
These errors after cmake CMakeLists.txt:
CMake Warning (dev) in /Users/jessekirberger/libfreenect2/depends/glfw_src/src/CMakeLists.txt:
Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
interface. Run "cmake --help-policy CMP0022" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Hm, OK, I think I've noticed a minor bug: in install_mac.sh, there are two references to LIBUSBX_SOURCE_DIR which should actually be LIBUSB_SOURCE_DIR That doesn't explain the cd /System/... error, but maybe it fixes part of your issues.
@floe I think we're getting closer. Not sure if it's the change you made or that I added a folder called 'Headers' in /System/Library/Frameworks/OpenCL.framework/Versions/A and put the cl.hpp file in there. The install_mac.sh seemed like it ran smoothly without any error this time, however when I run 'make && make install' I get the following error:
/Users/jessekirberger/Documents/Kinect/libfreenect2/examples/protonect/src/opencl_depth_packet_processor.cpp:43:10: fatal error:
'OpenCL/cl.hpp' file not found
#include <OpenCL/cl.hpp>
^
1 warning and 1 error generated.
make[2]: *** [CMakeFiles/freenect2.dir/src/opencl_depth_packet_processor.cpp.o] Error 1
make[1]: *** [CMakeFiles/freenect2.dir/all] Error 2
make: *** [all] Error 2
I think you can close this issue, as I believe the original posted problem has been solved (not being able to locate libusb) but I will open another for this latest error about OpenCL.
EDIT: Nevermind, tried doing this on my other computer (iMac running Yosemite) and it is giving me the old libusb.h not found again. This seems to be solved by 'brew install autoconf' and 'brew install automaker'. Not sure why.
sorry to bring this one up again. i also get issue at the
/System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/: No such file or directory
I'm reinstalling xcode to right now to see if that brings the headers back into play. seems though that the framework doesn't come with headers in that location (some suggestions are that there is a version inside Xcode.app which does have headers. it may be necessary to point there somehow)
apologies to post on an old issue.
Hello,
When I'm trying to install the drivers, I get close to completion and then receive a couple error messages which I've attached. Any help would be very helpful. I'm trying to get the Kinect v2 running on my iMac (Mavericks).