KingLir
1st March 2017, 10:28
I am getting the following errors when building on macOS, after autogen and configure. Anyone can assist ?
$ g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ make
TCanny/TCanny.cpp:579:27: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "malloc failure (buffer)" };
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:586:27: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "malloc failure (blur)" };
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:594:31: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "malloc failure (gradient)" };
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:605:31: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "malloc failure (direction)" };
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:616:31: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "malloc failure (label)" };
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:622:38: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
} catch (const std::string & error) {
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:681:19: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "only constant format 8-16 bits integer ...
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:684:19: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "the clip's height must be greater than ...
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:688:19: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "more sigma given than the number of planes" };
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:728:23: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "sigma must be greater than or equa...
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:732:19: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "t_h must be greater than t_l" };
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:735:19: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "mode must be -1, 0, 1, 2 or 3" };
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:738:19: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "op must be 0, 1, 2 or 3" };
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:741:19: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "gmmax must be greater than or equal to 1.0" };
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:744:19: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "opt must be 0, 1, 2, 3 or 4" };
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:755:23: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "plane index out of range" };
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:758:23: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "plane specified twice" };
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:792:27: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
throw std::string { "malloc failure (weights)" };
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
TCanny/TCanny.cpp:808:34: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >'
} catch (const std::string & error) {
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:193:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
19 errors generated.
KingLir
3rd March 2017, 07:32
Try the latest commit. Somehow clang is somewhat stricter than gcc.
Thanks. It's seems to fix the previous issues. Now getting:
CXXLD libtcanny.la
Undefined symbols for architecture x86_64:
"binarizeCE<float>", referenced from:
tcannyCreate(VSMap const*, VSMap*, void*, VSCore*, VSAPI const*) in TCanny.o
tcannyGetFrame(int, int, void**, void**, VSFrameContext*, VSCore*, VSAPI const*) in TCanny.o
"binarizeCE<unsigned char>", referenced from:
tcannyCreate(VSMap const*, VSMap*, void*, VSCore*, VSAPI const*) in TCanny.o
tcannyGetFrame(int, int, void**, void**, VSFrameContext*, VSCore*, VSAPI const*) in TCanny.o
"binarizeCE<unsigned short>", referenced from:
tcannyCreate(VSMap const*, VSMap*, void*, VSCore*, VSAPI const*) in TCanny.o
tcannyGetFrame(int, int, void**, void**, VSFrameContext*, VSCore*, VSAPI const*) in TCanny.o
"discretizeGM<float>", referenced from:
tcannyCreate(VSMap const*, VSMap*, void*, VSCore*, VSAPI const*) in TCanny.o
tcannyGetFrame(int, int, void**, void**, VSFrameContext*, VSCore*, VSAPI const*) in TCanny.o
"discretizeGM<unsigned char>", referenced from:
tcannyCreate(VSMap const*, VSMap*, void*, VSCore*, VSAPI const*) in TCanny.o
tcannyGetFrame(int, int, void**, void**, VSFrameContext*, VSCore*, VSAPI const*) in TCanny.o
"discretizeGM<unsigned short>", referenced from:
tcannyCreate(VSMap const*, VSMap*, void*, VSCore*, VSAPI const*) in TCanny.o
tcannyGetFrame(int, int, void**, void**, VSFrameContext*, VSCore*, VSAPI const*) in TCanny.o
"gaussianBlurVertical<float>", referenced from:
tcannyCreate(VSMap const*, VSMap*, void*, VSCore*, VSAPI const*) in TCanny.o
tcannyGetFrame(int, int, void**, void**, VSFrameContext*, VSCore*, VSAPI const*) in TCanny.o
"gaussianBlurVertical<unsigned char>", referenced from:
tcannyCreate(VSMap const*, VSMap*, void*, VSCore*, VSAPI const*) in TCanny.o
tcannyGetFrame(int, int, void**, void**, VSFrameContext*, VSCore*, VSAPI const*) in TCanny.o
"gaussianBlurVertical<unsigned short>", referenced from:
tcannyCreate(VSMap const*, VSMap*, void*, VSCore*, VSAPI const*) in TCanny.o
tcannyGetFrame(int, int, void**, void**, VSFrameContext*, VSCore*, VSAPI const*) in TCanny.o
"copyData<float>", referenced from:
tcannyCreate(VSMap const*, VSMap*, void*, VSCore*, VSAPI const*) in TCanny.o
tcannyGetFrame(int, int, void**, void**, VSFrameContext*, VSCore*, VSAPI const*) in TCanny.o
"copyData<unsigned char>", referenced from:
tcannyCreate(VSMap const*, VSMap*, void*, VSCore*, VSAPI const*) in TCanny.o
tcannyGetFrame(int, int, void**, void**, VSFrameContext*, VSCore*, VSAPI const*) in TCanny.o
"copyData<unsigned short>", referenced from:
tcannyCreate(VSMap const*, VSMap*, void*, VSCore*, VSAPI const*) in TCanny.o
tcannyGetFrame(int, int, void**, void**, VSFrameContext*, VSCore*, VSAPI const*) in TCanny.o
"outputGB<float>", referenced from:
tcannyCreate(VSMap const*, VSMap*, void*, VSCore*, VSAPI const*) in TCanny.o
tcannyGetFrame(int, int, void**, void**, VSFrameContext*, VSCore*, VSAPI const*) in TCanny.o
"outputGB<unsigned char>", referenced from:
tcannyCreate(VSMap const*, VSMap*, void*, VSCore*, VSAPI const*) in TCanny.o
tcannyGetFrame(int, int, void**, void**, VSFrameContext*, VSCore*, VSAPI const*) in TCanny.o
"outputGB<unsigned short>", referenced from:
tcannyCreate(VSMap const*, VSMap*, void*, VSCore*, VSAPI const*) in TCanny.o
tcannyGetFrame(int, int, void**, void**, VSFrameContext*, VSCore*, VSAPI const*) in TCanny.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.