Author Topic: Unable to compile UE4.19 Linux  (Read 579 times)

Hey Allegorithmic team !

lately I've been trying to compile the Substance plugin for Linux Platform and it always fails.

Doesn't matter if I compile it from using Pre-Compiled Engine or Self compiled Engine.

While it works just fine for Win64 Platform I get following error's if I choose Linux compile.

I'd appreciate any suggestions.

Quote
Plugins/Runtime/Substance/Include\substance/framework/memory.h(67,4): error : expression result unused [-Werror,-Wunused-value]
2>                (p);
2>                 ^
2>ThirdParty/Linux/LibCxx/include/c++/v1\memory(1670,18):  note: in instantiation of function template specialization 'SubstanceAir::aligned_allocator<std::__1::pair<unsigned int, unsigned int>, 16>::destroy<std::__1::pair<unsigned int, unsigned int> >' requested here
2>            {__a.destroy(__p);}
2>                 ^
2>ThirdParty/Linux/LibCxx/include/c++/v1\memory(1538,14):  note: in instantiation of function template specialization 'std::__1::allocator_traits<SubstanceAir::aligned_allocator<std::__1::pair<unsigned int, unsigned int>, 16> >::__destroy<std::__1::pair<unsigned int, unsigned int> >' requested here
2>            {__destroy(__has_destroy<allocator_type, _Tp*>(), __a, __p);}
2>             ^
2>ThirdParty/Linux/LibCxx/include/c++/v1\vector(425,25):  note: in instantiation of function template specialization 'std::__1::allocator_traits<SubstanceAir::aligned_allocator<std::__1::pair<unsigned int, unsigned int>, 16> >::destroy<std::__1::pair<unsigned int, unsigned int> >' requested here
2>        __alloc_traits::destroy(__alloc(), _VSTD::__to_raw_pointer(--__end_));
2>                        ^
2>ThirdParty/Linux/LibCxx/include/c++/v1\vector(369,29):  note: in instantiation of member function 'std::__1::__vector_base<std::__1::pair<unsigned int, unsigned int>, SubstanceAir::aligned_allocator<std::__1::pair<unsigned int, unsigned int>, 16> >::__destruct_at_end' requested here
2>    void clear() _NOEXCEPT {__destruct_at_end(__begin_);}
2>                            ^
2>ThirdParty/Linux/LibCxx/include/c++/v1\vector(452,9):  note: in instantiation of member function 'std::__1::__vector_base<std::__1::pair<unsigned int, unsigned int>, SubstanceAir::aligned_allocator<std::__1::pair<unsigned int, unsigned int>, 16> >::clear' requested here
2>        clear();
2>        ^
2>ThirdParty/Linux/LibCxx/include/c++/v1\vector(458,29):  note: in instantiation of member function 'std::__1::__vector_base<std::__1::pair<unsigned int, unsigned int>, SubstanceAir::aligned_allocator<std::__1::pair<unsigned int, unsigned int>, 16> >::~__vector_base' requested here
2>class _LIBCPP_TYPE_VIS_ONLY vector
2>                            ^
2>4 errors generated.
2>[7/11] Link (ld) libUE4Editor-SubstanceLiveLink.so
2>UnrealBuildTool : error : UBT ERROR: Failed to produce item: C:\ProjectName\Plugins\Runtime\Substance\Binaries\Linux\libUE4Editor-SubstanceCore.so


Best Regards