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

Build AwesomeBump on Windows #72

Closed
lexxmark opened this issue Jan 19, 2016 · 12 comments
Closed

Build AwesomeBump on Windows #72

lexxmark opened this issue Jan 19, 2016 · 12 comments

Comments

@lexxmark
Copy link
Contributor

Are you supporting AwesomeBump on Windows?
I've successfully build AwesomeBump but it crashes at startup.
Log file:

Debugging starts
bool __cdecl qtnRegisterDefaultMetaPropertyFactory(void)
Application dir: "C:/github/ppiecuch/AwesomeBump/workdir/win32-msvc2013-dgb-gl4/bin"
Data dir: ""
Starting application:
"Running the AwesomeBump 4.0 Beta (2015)"
Checking OpenGL version...
Widget OpenGL: "4.3"
Context valid: true
OpenGL information:
VENDOR: Intel
RENDERER: Intel(R) HD Graphics 5500
VERSION: 4.3.0 - Build 10.18.14.4062
GLSL VERSION: 4.30 - Build 10.18.14.4062
"Version: 4.3"
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
QObject::connect: No such signal QtnPropertySetFormImageProp::propertyDidFinishEditing() in ..\Sources\formimageprop.cpp:19
QObject::connect:  (sender name:   'FormImageProp')
QObject::connect:  (receiver name: 'FormImageProp')
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
QObject::connect: No such signal QtnPropertySetFormImageProp::propertyDidFinishEditing() in ..\Sources\formimageprop.cpp:19
QObject::connect:  (sender name:   'FormImageProp')
QObject::connect:  (receiver name: 'FormImageProp')
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
QObject::connect: No such signal QtnPropertySetFormImageProp::propertyDidFinishEditing() in ..\Sources\formimageprop.cpp:19
QObject::connect:  (sender name:   'FormImageProp')
QObject::connect:  (receiver name: 'FormImageProp')
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
QObject::connect: No such signal QtnPropertySetFormImageProp::propertyDidFinishEditing() in ..\Sources\formimageprop.cpp:19
QObject::connect:  (sender name:   'FormImageProp')
QObject::connect:  (receiver name: 'FormImageProp')
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
QObject::connect: No such signal QtnPropertySetFormImageProp::propertyDidFinishEditing() in ..\Sources\formimageprop.cpp:19
QObject::connect:  (sender name:   'FormImageProp')
QObject::connect:  (receiver name: 'FormImageProp')
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
QObject::connect: No such signal QtnPropertySetFormImageProp::propertyDidFinishEditing() in ..\Sources\formimageprop.cpp:19
QObject::connect:  (sender name:   'FormImageProp')
QObject::connect:  (receiver name: 'FormImageProp')
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
QObject::connect: No such signal QtnPropertySetFormImageProp::propertyDidFinishEditing() in ..\Sources\formimageprop.cpp:19
QObject::connect:  (sender name:   'FormImageProp')
QObject::connect:  (receiver name: 'FormImageProp')
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
QObject::connect: No such signal QtnPropertySetFormImageProp::propertyDidFinishEditing() in ..\Sources\formimageprop.cpp:19
QObject::connect:  (sender name:   'FormImageProp')
QObject::connect:  (receiver name: 'FormImageProp')
libpng warning: iCCP: known incorrect sRGB profile
Loading cubemaps folders:
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Reading the list of available configs settings:
Loading cubemaps folders:
Looking for enviromental maps in Core/2D/skyboxes:
Reading new cube map: ("./Core/2D/skyboxes//posx.jpg", "./Core/2D/skyboxes//negx.jpg", "./Core/2D/skyboxes//posy.jpg", "./Core/2D/skyboxes//negy.jpg", "./Core/2D/skyboxes//posz.jpg", "./Core/2D/skyboxes//negz.jpg")
Generated number of mipmaps: 10
Cannot load cube map: check if images listed above exist.
Skipping glWidget repainting during first Env. maps. load.
Parsing shaders in Render folder:
Looking for shaders in Core/Render directory
ASSERT failure in QVector<T>::operator[]: "index out of range", file C:\Qt\5.5\msvc2013_64\include\QtCore/qvector.h, line 401
Debug Error!

Program: C:\Qt\5.5\msvc2013_64\bin\Qt5Cored.dll
Module: 5.5.1
File: global\qglobal.cpp
Line: 2974

ASSERT failure in QVector<T>::operator[]: "index out of range", file C:\Qt\5.5\msvc2013_64\include\QtCore/qvector.h, line 401

(Press Retry to debug the application)
calling  void __cdecl GLImage::initializeGL(void)
Loading filters (fragment shader)
done
Loading filters (vertex shader)
done
FBOImages::creating new FBO( 256 , 256 ) with id= 2
FBOImages::creating new FBO( 1024 , 1024 ) with id= 3
FBOImages::creating new FBO( 1024 , 1024 ) with id= 4
void __cdecl GLImage::resizeGL(int,int)
  activeImage is null
Initializing 3D widget: detected openGL version: "4.1"
Loading quad (geometry shader)
done
Loading quad (vertex shader)
done
Loading quad (tessellation control shader)
done
Loading quad (tessellation evaluation shader)
done

Stack:

1   QVector<UniformData>::size  qvector.h   82  0x7ff711eb76da  
2   Dialog3DGeneralSettings::updateParsedShaders    Dialog3DGeneralSettings.cpp 114 0x7ff711eb1a2a  
3   GLWidget::initializeGL  glwidget.cpp    301 0x7ff711cca3dc  
4   QGLWidget::glInit   qgl.cpp 4526    0x604bc288  
5   QGLWidget::resizeEvent  qgl.cpp 4413    0x604bc168  
6   QWidget::event  qwidget.cpp 8840    0x5fb0986f  
7   QGLWidget::event    qgl.cpp 4375    0x604bbf67  
8   QApplicationPrivate::notify_helper  qapplication.cpp    3716    0x5faa1fb6  
9   QApplication::notify    qapplication.cpp    3681    0x5fa9f773  
10  QCoreApplication::notifyInternal    qcoreapplication.cpp    965 0x609ac9a4  
11  QCoreApplication::sendSpontaneousEvent  qcoreapplication.h  227 0x60b0e4ec  
12  QWidgetWindow::handleResizeEvent    qwidgetwindow.cpp   696 0x5fb4fb72  
13  QWidgetWindow::event    qwidgetwindow.cpp   233 0x5fb4e3ba  
14  QApplicationPrivate::notify_helper  qapplication.cpp    3716    0x5faa1fb6  
15  QApplication::notify    qapplication.cpp    3160    0x5fa9ccdb  
16  QCoreApplication::notifyInternal    qcoreapplication.cpp    965 0x609ac9a4  
17  QCoreApplication::sendSpontaneousEvent  qcoreapplication.h  227 0x60b0e4ec  
18  QGuiApplicationPrivate::processGeometryChangeEvent  qguiapplication.cpp 2069    0x7ffeca9a02c3  
19  QGuiApplicationPrivate::processWindowSystemEvent    qguiapplication.cpp 1594    0x7ffeca9a0c0b  
20  QWindowSystemInterface::sendWindowSystemEvents  qwindowsysteminterface.cpp  626 0x7ffeca9662fc  
... <More>              

Code:

    GLSLShaderParser* parsedShader = currentRenderShader;
    int maxParams      = settings3D->ParsedShader.MaxParams;
    int noParsedParams = parsedShader->uniforms.size(); <<<<<<<<<<<< parsedShader == nullptr >>>>>>>>
    // Check if parsed number uniform is greater than supported number of params
    // if YES display warning message.
    if(noParsedParams > maxParams){
@kmkolasinski
Copy link
Owner

Hi, there are few reasons why it may not work:

  • Intel Graphics are unpredictable with AB, sometimes they work sometimes not, I could not find the rule. Thats maybe a problem, however you can try (if you have) to run AB on different GPU, not Intel. You can also force the GL330 build, see AwesomeBump.pro file or our wiki.
RENDERER: Intel(R) HD Graphics 5500
  • Binary of AwesomeBump has to be put or run from Bin folder, since in that folder all the necessary resources are located. This leads to errors like that:
Cannot load cube map: check if images listed above exist.
  • or when it tries to find shaders in Render folder:
Looking for shaders in Core/Render directory
ASSERT failure in QVector<T>::operator[]: "index out of range", file C:\Qt\5.5\msvc2013_64\include\QtCore/qvector.h, line 401
Debug Error!

@ppiecuch
Copy link
Collaborator

I think you are compiling my repo: C:/github/ppiecuch/AwesomeBump - it
its rather dead, I am using for some quick&dirty testing. Try official one
kmkolasinski.

Regards
Pawel

On Tue, Jan 19, 2016 at 9:53 AM, Krzysztof Kolasinski <
notifications@github.com> wrote:

Hi, there are few reasons why it may not work:

  • Intel Graphics are unpredictable with AB, sometimes they work
    sometimes not, I could not find the rule. Thats maybe a problem, however
    you can try (if you have) to run AB on different GPU, not Intel. You can
    also force the GL330 build, see AwesomeBump.pro file or our wiki.

RENDERER: Intel(R) HD Graphics 5500

  • Binary of AwesomeBump has to be put or run from Bin folder, since in
    that folder all the necessary resources are located. This leads to errors
    like that:

Cannot load cube map: check if images listed above exist.

  • or when it tries to find shaders in Render folder:

Looking for shaders in Core/Render directory
ASSERT failure in QVector::operator[]: "index out of range", file C:\Qt\5.5\msvc2013_64\include\QtCore/qvector.h, line 401
Debug Error!


Reply to this email directly or view it on GitHub
#72 (comment)
.

More:

(http://komsoft.ath.cx/ http://komsoft.ath.cx/spider.html)
(http://pawelp.ath.cx/ http://komsoft.ath.cx/spider.html)

@lexxmark
Copy link
Contributor Author

No it's original repo, I just put it next to your fork of QtnProperty.
I was lazy :o)

@razvanab
Copy link

razvanab commented Feb 2, 2016

'QtnPEG' is not recognized as an internal or external command
I can't build on windows. I tried with qt5.4-msvc2013-64-opengl and qt5.5-msvc2013-64.

@kmkolasinski
Copy link
Owner

Do you use cmake or with QtCreator? I think cmake is still not prepare to work with QtnProperty

@razvanab
Copy link

razvanab commented Feb 2, 2016

QtCreator
I can't setup the cmake with qt.

@kmkolasinski
Copy link
Owner

I still did not try to build AB on windows since few last commits, so maybe there are problems.
Did you try to build AB with mingw compiler ?

@lexxmark
Copy link
Contributor Author

lexxmark commented Feb 2, 2016

there is typo in config file for windows:

Now:

else:win:PEG_TOOL = $$PWD/bin-win/QtnPEG

Should be:

else:win32:PEG_TOOL = $$PWD/bin-win/QtnPEG

@kmkolasinski
Copy link
Owner

Nice, thanks. @ppiecuch will fix it if he find some time.

@razvanab
Copy link

razvanab commented Feb 4, 2016

With what QT kid do you recommend to compile ? QT5.4 Opengl or QT5.5 ?

@kmkolasinski
Copy link
Owner

I use 5.4 version, however I don't think so there will be a visible difference between them. Answering your question: choose that which works fine for you.

@kmkolasinski
Copy link
Owner

Closing this issue because of no feedback for long time.

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

4 participants