Skip to content

Difficulties on linux compilation #10

@Xobtah

Description

@Xobtah

Hi!

I'm having trouble with linux compilation, I downloaded AngelScript and modified the path in include/system/Script.h accordingly, but I'm stuck at 25% of the compilation with the file sources/graphics/Renderer2D.cpp, the error :

/home/xobtah/FG/HPL1Engine/sources/graphics/Renderer2D.cpp: In member function ‘int hpl::cRenderer2D::CreateVertexes(hpl::cVector2f, hpl::cRect2f, float, bool, hpl::cVector2f, hpl::tVertexVec*, hpl::cColor, int, float)’:
/home/xobtah/FG/HPL1Engine/sources/graphics/Renderer2D.cpp:898:74: error: taking address of temporary [-fpermissive]
mpLowLevelGraphics->AddVertexToBatch(&cVertex(vPointPos[0],ShadowColor));
^
/home/xobtah/FG/HPL1Engine/sources/graphics/Renderer2D.cpp:899:74: error: taking address of temporary [-fpermissive]
mpLowLevelGraphics->AddVertexToBatch(&cVertex(vPointPos[1],ShadowColor));
^
/home/xobtah/FG/HPL1Engine/sources/graphics/Renderer2D.cpp:903:72: error: taking address of temporary [-fpermissive]
mpLowLevelGraphics->AddVertexToBatch(&cVertex(vEndPos[0],ShadowColor));
^
/home/xobtah/FG/HPL1Engine/sources/graphics/Renderer2D.cpp:904:72: error: taking address of temporary [-fpermissive]
mpLowLevelGraphics->AddVertexToBatch(&cVertex(vEndPos[1],ShadowColor));
^
/home/xobtah/FG/HPL1Engine/sources/graphics/Renderer2D.cpp:923:72: error: taking address of temporary [-fpermissive]
mpLowLevelGraphics->AddVertexToBatch(&cVertex(vExtraPos,ShadowColor));

I tried to comment this section of the code, but I have another error after this one, so if someone can help me with this one, I'd be glad if he can help me with the next one =)

Thanks for your attention, and thank you FrictionalGames for the sources!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions