You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
Hi, please see my fork, branch "fix_compilation". It only adds 6 minimalistic commits from the official master, and fixes compilation issues.
The issue you're talking about here is fixed by this commit: Ace17@5667c72
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 :
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!
The text was updated successfully, but these errors were encountered: