[opensource-dev] building a viewer: fails with some undefined variables
Henri Beauchamp
sldev at free.fr
Sat Mar 31 06:02:28 PDT 2018
On Sat, 31 Mar 2018 13:36:28 +0200, Lance Corrimal wrote:
> Hi guys,
>
> I'm trying to build a viewer on linux, and the build fails due to several
> undefined variables, which, given their names, should actually be defined
> somewhere in the source, or in the autobuild_variables_file:
>
> error: #error "LL_ALIGN_PREFIX and LL_ALIGN_POSTFIX undefined"
> error: 'LL_DEFAULT_HEAP_ALIGN' was not declared in this scope
>
> happens right after the actual build starts.
>
> Where do I get those variables?
$ grep -r LL_ALIGN_POSTFIX linden/indra/* | grep '#define'
linden/indra/llcommon/llmemory.h:#define LL_ALIGN_POSTFIX(x) __attribute__((aligned(x)))
linden/indra/llcommon/llmemory.h:#define LL_ALIGN_POSTFIX(x)
linden/indra/llcommon/llmemory.h:#define LL_ALIGN_16(var) LL_ALIGN_PREFIX(16) var LL_ALIGN_POSTFIX(16)
You probably failed to #include "llmemory.h" in the sources where this
error happens.
Henri.
More information about the opensource-dev
mailing list