Open pepedocs opened 5 years ago
Thanks for reporting. I'll look into this.
@pepedocs Hi, I have made Etaler buildable on OS X again
Please install tbb, cmake, gcc, cereal, catch2 from homebrew
Then by using the commands
git clone https://github.com/etaler/Etaler --recursive
cd Etaler
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=g++9 ..
make -j4
Somehow compiling using clang causes linker errors. I'm still investigating that. But you should now able to have Etaler running.
Ok thanks @marty1885 - I will try these changes.
First error I've encountered by the way, I don't think this will affect Etaler core functionality though.
Submodule 'Easy3D' (git@github.com:LiangliangNan/Easy3D.git) registered for path 'examples/visualize/LayersVisualizer/Easy3D'
Cloning into '/Users/admin/mlearn/Etaler/examples/visualize/LayersVisualizer/Easy3D'...
Warning: Permanently added the RSA host key for IP address '52.64.108.95' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:LiangliangNan/Easy3D.git' into submodule path '/Users/admin/mlearn/Etaler/examples/visualize/LayersVisualizer/Easy3D' failed
Failed to clone 'Easy3D'. Retry scheduled
Ok I was able to build even with the errors above. There was a typo in the CMakeLists.txt file line:24. After this I tried building stackedsp.cpp but I got more errors.
n file included from /usr/local/include/Etaler/Etaler.hpp:4:
In file included from /usr/local/include/Etaler/Core/Shape.hpp:7:
/usr/local/include/Etaler/Core/SmallVector.hpp:93:25: error: no type named 'aligned_union' in namespace 'std'
typedef typename std::aligned_union<1, T>::type U;
~~~~~~~~~~~~~~^~~~~~~~~~~~~
/usr/local/include/Etaler/Core/SmallVector.hpp:93:38: error: expected member name or ';' after declaration specifiers
typedef typename std::aligned_union<1, T>::type U;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/local/include/Etaler/Core/SmallVector.hpp:94:3: error: unknown type name 'U'
U FirstEl;
^
/usr/local/include/Etaler/Core/SmallVector.hpp:235:20: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(T &&Elt) {
^
/usr/local/include/Etaler/Core/SmallVector.hpp:341:45: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
SmallVectorImpl(const SmallVectorImpl&) = delete;
^
/usr/local/include/Etaler/Core/SmallVector.hpp:431:20: error: no template named 'initializer_list' in namespace 'std'
void append(std::initializer_list<T> IL) {
~~~~~^
/usr/local/include/Etaler/Core/SmallVector.hpp:443:20: error: no template named 'initializer_list' in namespace 'std'
void assign(std::initializer_list<T> IL) {
~~~~~^
/usr/local/include/Etaler/Core/SmallVector.hpp:481:33: warning: rvalue references are a C++11 extension [-Wc++11-extensions]```
I'm replying on the move. Pardon the quick explanation.
Seems your compiler is working in C++98/03 mode. May you provide your compiler version? Also the error message looks like one generated by clang, may you try GCC 9?
Jose Cueto notifications@github.com 於 2019年8月8日 週四 10:54 寫道:
Ok I was able to build even with the errors above. There was a typo in the CMakeLists.txt file line:24. After this I tried building stackedsp.cpp but I got more errors.
n file included from /usr/local/include/Etaler/Etaler.hpp:4: In file included from /usr/local/include/Etaler/Core/Shape.hpp:7: /usr/local/include/Etaler/Core/SmallVector.hpp:93:25: error: no type named 'aligned_union' in namespace 'std' typedef typename std::aligned_union<1, T>::type U;
/usr/local/include/Etaler/Core/SmallVector.hpp:93:38: error: expected member name or ';' after declaration specifiers typedef typename std::aligned_union<1, T>::type U; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ /usr/local/include/Etaler/Core/SmallVector.hpp:94:3: error: unknown type name 'U' U FirstEl; ^ /usr/local/include/Etaler/Core/SmallVector.hpp:235:20: warning: rvalue references are a C++11 extension [-Wc++11-extensions] void push_back(T &&Elt) { ^ /usr/local/include/Etaler/Core/SmallVector.hpp:341:45: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions] SmallVectorImpl(const SmallVectorImpl&) = delete; ^ /usr/local/include/Etaler/Core/SmallVector.hpp:431:20: error: no template named 'initializer_list' in namespace 'std' void append(std::initializer_list<T> IL) { ~~~~~^ /usr/local/include/Etaler/Core/SmallVector.hpp:443:20: error: no template named 'initializer_list' in namespace 'std' void assign(std::initializer_list<T> IL) { ~~~~~^ /usr/local/include/Etaler/Core/SmallVector.hpp:481:33: warning: rvalue references are a C++11 extension [-Wc++11-extensions]``` — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/etaler/Etaler/issues/62?email_source=notifications&email_token=ACDCSSJ5NNFHHBRQQYXE4LTQDODH7A5CNFSM4IJ3PT2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD32IWVQ#issuecomment-519342934>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ACDCSSPAOYEOBY473ERX7I3QDODH7ANCNFSM4IJ3PT2A> .
Replicate: Build by following the instructions in building from source.
Expected: Build should pass.
Observed: Build failed.
Environment