Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficulties on linux compilation #10

Open
Xobtah opened this issue Jan 25, 2017 · 2 comments
Open

Difficulties on linux compilation #10

Xobtah opened this issue Jan 25, 2017 · 2 comments

Comments

@Xobtah
Copy link

Xobtah commented Jan 25, 2017

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!

@Ace17
Copy link

Ace17 commented Dec 24, 2017

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

@tuxillo
Copy link

tuxillo commented Feb 18, 2020

@Ace17 what about nvidia's cg toolkit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants