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

(QGroundControl.exe:5684): GLib-GObject-CRITICAL **: 13:21:59.584: g_object_set: assertion 'G_IS_OBJECT (object)' failed #12189

Open
jorgitinlugo opened this issue Dec 10, 2024 · 10 comments
Labels

Comments

@jorgitinlugo
Copy link

jorgitinlugo commented Dec 10, 2024

I am trying to compile my own version of QGroundControl. To do this, I followed the official QGroundControl tutorial and installed Qt 6.6.3. The thing is, when I try to build the code, I get the following error:

image

I have correctly selected the Qt 6.6.3 MSVC2019 64-bit kit.

image

@HTRamsey
Copy link
Collaborator

rebase and try again now

@jorgitinlugo
Copy link
Author

jorgitinlugo commented Dec 10, 2024

@HTRamsey Could you please explain what you mean by rebase? I'm feeling a bit lost with all of this, and I’d really appreciate your help!

@HTRamsey
Copy link
Collaborator

HTRamsey commented Dec 10, 2024

Actually sorry first make sure you have at least GStreamer 1.22 development and runtime installed. Then you can try to pull the latest change I just committed to this repo, but I think that's not your problem. It mostly just looks like gstreamer isn't installed.

So that would be from:
https://gstreamer.freedesktop.org/data/pkg/windows/1.24.10/msvc/gstreamer-1.0-msvc-x86_64-1.24.10.msi
https://gstreamer.freedesktop.org/data/pkg/windows/1.24.10/msvc/gstreamer-1.0-devel-msvc-x86_64-1.24.10.msi

@jorgitinlugo
Copy link
Author

@HTRamsey Should i use master branch or Stable 4.0?

@HTRamsey
Copy link
Collaborator

Up to you. If you are using an old stable you should use QMake instead of CMake & gstreamer 1.18.6 instead of 1.22+.

@jorgitinlugo
Copy link
Author

jorgitinlugo commented Dec 11, 2024

@HTRamsey I tried to add an image, for this i edited the qgcimages.qrc and when i run the code i get this error:

image
image

i reverted the changes and now i still have the same problem, do you know what could be?

@jorgitinlugo
Copy link
Author

I decided to reinstall the qground repository, when i tried to upload a new photo to qgcimages.qrc i get this error:

(QGroundControl.exe:5684): GLib-GObject-CRITICAL **: 13:21:59.584: g_object_set: assertion 'G_IS_OBJECT (object)' failed

Qground works but i dont see the new photo in my gui

@jorgitinlugo jorgitinlugo changed the title I cant build Qgroundcontrol on Qt creator (QGroundControl.exe:5684): GLib-GObject-CRITICAL **: 13:21:59.584: g_object_set: assertion 'G_IS_OBJECT (object)' failed Dec 11, 2024
@HTRamsey
Copy link
Collaborator

You can ignore the WaylandClient warning. did you look at the custom build stuff for more info on how to correctly add images?

@jorgitinlugo
Copy link
Author

@HTRamsey Thank you for your help. The issue I had was related to the compilation process. It seems that making changes requiring compilation would cause it to fail, which is odd since the compilation should be dynamic, right? The process I followed was to delete the build folder and, instead of using Ninja to compile, I used Visual Studio with the following command in the terminal:

cmake -B build -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Debug

@HTRamsey
Copy link
Collaborator

Oh okay gotcha. Qt also provides a cmake script called qt-cmake that you can probably use instead of calling cmake directly, which is what I use in the CI workflows. Are you still having any issues now?

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

No branches or pull requests

2 participants