{"issue":{"milestone":null,"title":"boost type error in Sketchpad Example","created_at":"2011-11-15T04:00:40Z","user":{"login":"reakinator","id":346683,"url":"https://api.github.com/users/reakinator","avatar_url":"https://secure.gravatar.com/avatar/d049f3d954d3fc38c27b83e5cfaa3f7c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d049f3d954d3fc38c27b83e5cfaa3f7c"},"labels":[],"updated_at":"2011-12-30T19:49:17Z","state":"closed","id":2239989,"closed_at":"2011-12-30T19:49:17Z","html_url":"https://github.com/field/FieldKit.cpp/issues/6","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"I managed to compile FieldKit and ScriptKit.\r\n\r\nWith boost 1.44 and the latest Cinder checkout, I'm getting a template type error in boost::filesystem3::path, which seems to stem from Cinder.h.  I'm not sure what dependencies I haven't met, or if I have non matching static libs, but here is the full error message from Xcode:\r\n\r\nCompileC build/SketchPad.build/Debug/SketchPad.build/Objects-normal/i386/SketchPad.o ../src/SketchPad.cpp normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler\r\n    cd /Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode\r\n    setenv LANG en_US.US-ASCII\r\n    /Developer/usr/bin/clang -x c++ -arch i386 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -Wc++0x-extensions -isysroot /Developer/SDKs/MacOSX10.6.sdk -fasm-blocks -mmacosx-version-min=10.6 -gdwarf-2 -Wno-sign-conversion -iquote /Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/SketchPad-generated-files.hmap -I/Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/SketchPad-own-target-headers.hmap -I/Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/SketchPad-all-target-headers.hmap -iquote /Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/SketchPad-project-headers.hmap -iquote../../../../cinder/include -iquote../../../include -iquote../include -iquote../src -I/Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/Debug/include -I../../../../v8/include -I../../../../cinder/boost -I../../../../../boost_1_44_0 -I/Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/DerivedSources/i386 -I/Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/DerivedSources -F/Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/Debug -include /var/folders/l1/243crs0x32zgbllfh0ckbnmh0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/prefix-gmgtjocculkorhfniuzzbhwpsudm/prefix.pch -MMD -MT dependencies -MF /Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/Objects-normal/i386/SketchPad.d -c /Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/../src/SketchPad.cpp -o /Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/build/SketchPad.build/Debug/SketchPad.build/Objects-normal/i386/SketchPad.o\r\n\r\nIn file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/tr1/../memory:52:\r\nIn file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/tr1/memory:38:\r\nIn file included from ../../../../cinder/include/cinder/Cinder.h:65:\r\nIn file included from ../../../../cinder/include/cinder/app/App.h:25:\r\nIn file included from ../../../../cinder/include/cinder/app/AppBasic.h:25:\r\nIn file included from ../src/SketchPad.h:12:\r\nIn file included from /Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/../src/SketchPad.cpp:10:\r\n/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h:268:16:{268:18-268:26}: error: assigning to 'char' from incompatible type 'const boost::filesystem3::path' [3]\r\n             *__result = *__first;\r\n                       ^ ~~~~~~~~\r\n/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h:315:14: note: in instantiation of function template specialization 'std::__copy<false, std::bidirectional_iterator_tag>::copy<boost::filesystem3::path::iterator, std::_Deque_iterator<char, char &, char *> >' requested here [3]\r\n       return std::__copy<__simple, _Category>::copy(__first, __last, __result);\r\n              ^\r\n/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h:340:18: note: in instantiation of function template specialization 'std::__copy_aux<boost::filesystem3::path::iterator, std::_Deque_iterator<char, char &, char *> >' requested here [3]\r\n         { return std::__copy_aux(__first, __last, __result); }\r\n                  ^\r\n/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h:400:15: note: in instantiation of function template specialization 'std::__copy_normal<false, false>::__copy_n<boost::filesystem3::path::iterator, std::_Deque_iterator<char, char &, char *> >' requested here [3]\r\n        return std::__copy_normal<__in, __out>::__copy_n(__first, __last,\r\n               ^\r\n/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_uninitialized.h:75:14: note: in instantiation of function template specialization 'std::copy<boost::filesystem3::path::iterator, std::_Deque_iterator<char, char &, char *> >' requested here [3]\r\n     { return std::copy(__first, __last, __result); }\r\n              ^\r\n/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_uninitialized.h:113:14: note: in instantiation of function template specialization 'std::__uninitialized_copy_aux<boost::filesystem3::path::iterator, std::_Deque_iterator<char, char &, char *> >' requested here [3]\r\n       return std::__uninitialized_copy_aux(__first, __last, __result,\r\n              ^\r\n/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_uninitialized.h:254:14: note: (skipping 5 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) [3]\r\n     { return std::uninitialized_copy(__first, __last, __result); }\r\n              ^\r\n../../../../cinder/boost/boost/algorithm/string/detail/find_format_all.hpp:222:21: note: in instantiation of function template specialization 'boost::algorithm::detail::copy_to_storage<std::deque<char, std::allocator<char> >, boost::iterator_range<boost::filesystem3::path::iterator> >' requested here [3]\r\n                     ::boost::algorithm::detail::copy_to_storage( Storage, M.format_result() );\r\n                     ^\r\n../../../../cinder/boost/boost/algorithm/string/detail/find_format_all.hpp:260:17: note: in instantiation of function template specialization 'boost::algorithm::detail::find_format_all_impl2<std::basic_string<char>, boost::algorithm::detail::first_finderF<const char *, boost::algorithm::is_equal>, boost::algorithm::detail::const_formatF<boost::iterator_range<boost::filesystem3::path::iterator> >, boost::iterator_range<__gnu_cxx::__normal_iterator<char *, std::basic_string<char> > >, boost::iterator_range<boost::filesystem3::path::iterator> >' requested here [3]\r\n                 ::boost::algorithm::detail::find_format_all_impl2(\r\n                 ^\r\n../../../../cinder/boost/boost/algorithm/string/find_format.hpp:268:13: note: in instantiation of function template specialization 'boost::algorithm::detail::find_format_all_impl<std::basic_string<char>, boost::algorithm::detail::first_finderF<const char *, boost::algorithm::is_equal>, boost::algorithm::detail::const_formatF<boost::iterator_range<boost::filesystem3::path::iterator> >, boost::iterator_range<__gnu_cxx::__normal_iterator<char *, std::basic_string<char> > > >' requested here [3]\r\n             detail::find_format_all_impl(\r\n             ^\r\n../../../../cinder/boost/boost/algorithm/string/replace.hpp:654:13: note: in instantiation of function template specialization 'boost::algorithm::find_format_all<std::basic_string<char>, boost::algorithm::detail::first_finderF<const char *, boost::algorithm::is_equal>, boost::algorithm::detail::const_formatF<boost::iterator_range<boost::filesystem3::path::iterator> > >' requested here [3]\r\n             ::boost::algorithm::find_format_all( \r\n             ^\r\n/Users/r/code/cinder/FieldKit/Libraries/FieldKit.cpp/samples/SketchPad/xcode/../src/SketchPad.cpp:89:5: note: in instantiation of function template specialization 'boost::algorithm::replace_all<std::basic_string<char>, char [5], boost::filesystem3::path>' requested here [3]\r\n     boost::algorithm::replace_all(script, \"$APP\", cinder::app::getAppPath());\r\n     ^\r\n1 error generated.","number":6,"url":"https://api.github.com/repos/field/FieldKit.cpp/issues/6","comments":1,"assignee":null},"action":"closed"}