I am trying to run the
https://code.qt.io/cgit/qt/qtbase.git/tree/examples/opengl/cube?h=5.13
example. It builds fine, starts up, then gives the message
QOpenGLShader: Unable to open file ":/vshader.glsl"
QOpenGLShader: Unable to open file ":/fshader.glsl"
QOpenGLTexture::setData() tried to set a null image
The files are there, the .qrc file found (I think from the message),
What can be the problem? (the error message is not helpful in locating he reason) The files are there, readable (by the other applications),
already moved all files in the same subdirectory.
I just tried to run the example on Qt5.13 windows 10 MSVC2017 64 bit without a problem so there must be something else going on here.
the same example is already installed in Your Qt installation directory. Can you try it from there? Should work.
Do you have Read write rights? Are all files in the same folder as the pro file?
Can you open the qrc file in Qt Creator and see if you have missing links?
Related
Im build an c++ application, and this app use VTK, I generate exe file and its work nice in my local computer, but If I try to share this exe file to other user I got an error like vtk*.dll not found.
Note: My VTK-build is located in other directory, if its most be move with my exe, how I can configure it.
VTK ver: 8.1.1
Visual Studio: 17
Thanks
Note: I found a none optimal solution but its work, I put all dll file
in current exe file location, and this resolve issue!
I'm trying to make an online game using ENet and Cocos2d.
I defined the include folder and the libs as well everything is good for the server side and it compiled and working 100%. But when I tried to do the same for client side it gave me this really strange error:
LNK1104: cannot open file 'enet.lib'
Things I have already tried:
checked if the lib and the include files really exist
deleted the libs and the include folder and tried again
restart VS2017 / Windows / Windows File explorer
Checked the .lib file permission
etc...
Please Help me with this error its driving me crazy since yesterday..
I have setup eclipse as per this tutorial:
https://www.youtube.com/watch?v=KfKvDIrabUw
I have intalled java and GCC on my windows 10 laptop. It cannot build my c project, because I get the error "fatal error: stdio.h -std=gnu99: No such file or directory".
I assume this file exists on my computer somewhere, if not by default then with thte GCC that I downloaded and installed. I just need to find, in the hundreds of option menus, the place where I locate the directory. Maybe I'm blind but I can't find it, and if I do, where to I link it to? (Getting a little frustrated if you couldn't tell...)
Many many thanks,
Andy.
I solved it. If anyone else is experiencing this problem, open up the project explorer, right click on your project and open up the properties. Make sure Text file encoding and New text file line delimiter are both set to UTF-8.
It is now working.
I am trying to open a jar file I downloaded from here which is supposed to be an application that tests a sensorML code I wrote. I am expecting an application with an interface where I| would put my code and get some kind of output... I am unable to open the jar file. I tried the command window, I get could not find or load main class. I tried opening it with eclipse, I get some kind of library with a lot of errors. There is no documentation about this library or application so I am kind of lost on what to expect and how to get it... Anyone can help me open this file in a correct way?
Thanks
The only jar available near the URL you like isn't an executable jar. It is a library to write programs. To open it you can rename it as .zip and uncompress it.
You can also download the .tar.gz version of this library so you can get the full source with all comments.
So I'm pretty new to Qt, and I've just inherited a project from someone else who is also new to Qt. He isn't around this week btw. We are using Visual Studio 2008, and have the latest version of Qt installed(4.6.2).
The project builds on my coworker's machine fine, and I can get the project from svn and build it directly. But under any other circumstances it refuses to build on my machine, and it doesn't give me much of an explanation why. Even if I just do a 'build clean' and then a 'build' it doesn't work. Any slight modification will make it fail.
When I try to build the entire project I get the error message:
1>Moc'ing MatrixTypeInterface.h...
1>moc: Cannot create
.\GeneratedFiles\Debug\moc_MatrixTypeInterface.cpp;.\GeneratedFiles\Debug\moc_matrixtypeinterface.cpp
1>Project : error PRJ0019: A tool
returned an error code from "Moc'ing
MatrixTypeInterface.h..."
The moc tool doesn't give any sort of error message as to why it isn't working, and I wasted most of yesterday trying to figure out why. I got the command that VS was using to call moc, and I entered in the command line myself. It didn't write anything to the screen.
Any ideas?
I finally found the answer. my coworker was back in the office today, and I used the build log off his machine to get his full moc command(about 4 lines long). Our moc commands were basically the same except at the very end. His command ended in:
-o ".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp"
My command ended with:
-o ".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp;.\GeneratedFiles\Debug\moc_matrixtypeinterface.cpp"
I checked the custom build step for that file, and removed the excess bit. After that the file compiled fine. I don't know how or why qt decided to add in this extra tidbit, but it did.
Thanks for your help guys. A couple of you suspected that it was a filesystem issue, and indeed a semicolon is not allowed in a windows filename. But I feel the root cause was Qt creating the wrong build string.
I'm accepting my own answer in the hope that it will help someone else.
It's most likely a filesystem error, you probably don't have a "GeneratedFiles" folder or don't have the correct permissions on it.
I have had issues where different versions of the moc and the add-in use "Generated" or "Generated Files" or "GeneratedFiles" for the folder. Check the settings on all the build steps.
Its possible that your .vcproj file is corrupted. I've had this issue before which resulted from having different versions of Qt and the Qt VS add-on ended up corrupting my .vcproj files. For a while, I had to manually fix the .vcproj file (My AdditionalDependencies="..." line was being swapped around and cut off for various header files that needed to be mocced, I was manually fixing these for every new header that needed to be mocced).
A clean reinstall of Visual Studios + Qt + Qt add-on ended up fixing this. Check your .vcproj file and see if its making sense.
Are you sure your file paths are correct and existing before moc runs? Since it appears that relative paths are provided to moc, I'd find out what moc's working directory is when it runs.
How was your .vcproj file generated? Was qmake used? Or cmake? Or was it by scratch?