JTippetts / accidental-noise-library

Automatically exported from code.google.com/p/accidental-noise-library
Other
80 stars 25 forks source link

Build errors on Mac OS X 10.13 High Sierra #8

Open bgulanowski opened 6 years ago

bgulanowski commented 6 years ago

I used cmake 3.11.1 to generate both Xcode and Unix makefiles. I get the same errors (same clang compiler, I assume).

Here are the errors.

/Users/Shared/Code/github/accidental-noise-library/Framework/../Imaging/imaging.inl:1112:27: error: no matching
      constructor for initialization of 'std::thread'
        threads.push_back(std::thread(mapRGBA2DChunk, chunk));
                          ^           ~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Imaging/imaging.inl:1158:27: error: no matching
      constructor for initialization of 'std::thread'
        threads.push_back(std::thread(mapRGBA2DChunkNoZ, chunk));
                          ^           ~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:27:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {-1,-1},
        ^~~~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:28:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {0,-1},
        ^~~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:29:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {1,-1},
        ^~~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:30:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {-1,0},
        ^~~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:31:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {1,0},
        ^~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:32:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {-1,1},
        ^~~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:33:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {0,1},
        ^~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:34:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {1,1}
        ^~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Expression/expressionbuilder.inl:11:18: error: no member
      named 'emplace' in 'std::__1::map<std::__1::basic_string<char>, anl::CInstructionIndex,
      std::__1::less<std::__1::basic_string<char> >, std::__1::allocator<std::__1::pair<const
      std::__1::basic_string<char>, anl::CInstructionIndex> > >'
        return c.emplace(k, std::forward<V>(v));
               ~ ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:1529:36: error: 
      calling a private constructor of class 'std::__1::thread'
                ::new ((void*)__p) _Tp(__a0);
                                   ^
ruohki commented 6 years ago

i think this has to do with the gcc that xcode uses for example emplace is not included in gcc < 4.8

bgulanowski commented 6 years ago

Xcode uses clang, not gcc. On 10.13, gcc maps to clang:

$gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.39.1)
Target: x86_64-apple-darwin17.4.0
ruohki commented 6 years ago

i was able to build it. i generated a simple makefile and used make to compile it

bgulanowski commented 6 years ago

@ruohki Not sure how that helps me. 😕