laumaya / GLC_Player

13 stars 11 forks source link

next: GLC_Shader::setVertexAndFragmentShader Failed to link program #7

Open alon opened 4 years ago

alon commented 4 years ago

Hi,

I'm trying to use GLC_Player under linux. On a side note the windows executables run but produce no visible output for me, so I'm trying to build from source.

So far I managed to use the next branch with the develop banch of GLC_lib (with a minor fix to remove the inline keyword from GLC_Camera::setDefaultUpVector and add a missing cmath include for isnan in glc_boundingbox.cpp).

But when I run them I get the following error:

❯ ./glc_player QApplication: invalid style override passed, ignoring it. QOpenGLFunctions created with non-current context QOpenGLFunctions created with non-current context GLC_Shader::createAndCompileProgrammShader() "---------------------------------------------------------------------" "GLC_Shader::setVertexAndFragmentShader Failed to link program " terminate called after throwing an instance of 'GLC_Exception' what(): GLC_Exception : GLC_Shader::setVertexAndFragmentShader Failed to link program Aborted (core dumped)

I am running under Mint 18.3 (old - based on ubuntu 16.04) with Xorg .

Any clues will be accepted with gratitude!

Alon p.s. Thanks for the only open source implementation of 3dxml I could find!

laumaya commented 4 years ago

Hi, I Just push a GLC_PLayer commit into next branch.

It’s been a long time since I did a test under Linux. On Mac OS X 10.14.16 and Qt 5.12.5 it’s work.

I’m not sure but perhaps your Linux System doesn’t have OpenGL support.

Try to compile and run a QT5 Hello GL2 example. Which version of Qt5 do you have ?

Laurent.

Le 2 déc. 2019 à 18:23, alon notifications@github.com a écrit :

Hi,

I'm trying to use GLC_Player under linux. On a side note the windows executables run but produce no visible output for me, so I'm trying to build from source.

So far I managed to use the next branch with the develop banch of GLC_lib (with a minor fix to remove the inline keyword from GLC_Camera::setDefaultUpVector and add a missing cmath include for isnan in glc_boundingbox.cpp).

But when I run them I get the following error:

❯ ./glc_player QApplication: invalid style override passed, ignoring it. QOpenGLFunctions created with non-current context QOpenGLFunctions created with non-current context GLC_Shader::createAndCompileProgrammShader() "---------------------------------------------------------------------" "GLC_Shader::setVertexAndFragmentShader Failed to link program " terminate called after throwing an instance of 'GLC_Exception' what(): GLC_Exception : GLC_Shader::setVertexAndFragmentShader Failed to link program Aborted (core dumped)

I am running under Mint 18.3 (old - based on ubuntu 16.04) with Xorg .

Any clues will be accepted with gratitude!

Alon p.s. Thanks for the only open source implementation of 3dxml I could find!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/laumaya/GLC_Player/issues/7?email_source=notifications&email_token=AALVBREINOSJGAVDTTTPNFTQWVABVA5CNFSM4JTZGF6KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H5LKE4A, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALVBRG6LISCN3JIJYF6DC3QWVABVANCNFSM4JTZGF6A.

alon commented 4 years ago

Your patches fixed it for me! Thank you very much for the fast and helpful solution!

Just one additional patch that I needed to link with the next: (inlined, I can attach if it is easier, or do a pull request):

commit e34ce06c24b263791440b4ebf9fa63fbd5378831 Author: Alon Levy alon.levy@bladeranger.com Date: Mon Dec 2 16:17:16 2019 +0200

linke with GLC_lib, not GLC_lib.3

diff --git a/glc_player.pro b/glc_player.pro index b6916e8..de3da82 100644 --- a/glc_player.pro +++ b/glc_player.pro @@ -21,7 +21,7 @@ win32 { }

unix {

On Mon, Dec 2, 2019, at 8:12 PM, Laurent Ribon wrote:

Hi, I Just push a GLC_PLayer commit into next branch.

It’s been a long time since I did a test under Linux. On Mac OS X 10.14.16 and Qt 5.12.5 it’s work.

I’m not sure but perhaps your Linux System doesn’t have OpenGL support.

Try to compile and run a QT5 Hello GL2 example. Which version of Qt5 do you have ?

Laurent.

Le 2 déc. 2019 à 18:23, alon notifications@github.com a écrit :

Hi,

I'm trying to use GLC_Player under linux. On a side note the windows executables run but produce no visible output for me, so I'm trying to build from source.

So far I managed to use the next branch with the develop banch of GLC_lib (with a minor fix to remove the inline keyword from GLC_Camera::setDefaultUpVector and add a missing cmath include for isnan in glc_boundingbox.cpp).

But when I run them I get the following error:

❯ ./glc_player QApplication: invalid style override passed, ignoring it. QOpenGLFunctions created with non-current context QOpenGLFunctions created with non-current context GLC_Shader::createAndCompileProgrammShader() "---------------------------------------------------------------------" "GLC_Shader::setVertexAndFragmentShader Failed to link program " terminate called after throwing an instance of 'GLC_Exception' what(): GLC_Exception : GLC_Shader::setVertexAndFragmentShader Failed to link program Aborted (core dumped)

I am running under Mint 18.3 (old - based on ubuntu 16.04) with Xorg .

Any clues will be accepted with gratitude!

Alon p.s. Thanks for the only open source implementation of 3dxml I could find!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/laumaya/GLC_Player/issues/7?email_source=notifications&email_token=AALVBREINOSJGAVDTTTPNFTQWVABVA5CNFSM4JTZGF6KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H5LKE4A, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALVBRG6LISCN3JIJYF6DC3QWVABVANCNFSM4JTZGF6A.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/laumaya/GLC_Player/issues/7?email_source=notifications&email_token=AAANP6TLXBFQQWM6G425TDLQWVFYBA5CNFSM4JTZGF6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFUMGXA#issuecomment-560513884, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAANP6UKP5RSX2TYWHZB5MTQWVFYBANCNFSM4JTZGF6A.