Mehrdad201
Mehrdad201

Reputation: 123

QT Creator IDE unexpectedly close immediately when I press on "Open Project" Button

I installed Qt Creator 3.1.2 on my cent os system.

It is Based on Qt 5.3.1 (GCC 4.6.1, 32 bit)

every thing works fine except "open project"

When I run the program via terminal I see this warning message at first:

(:10415): Gtk-WARNING **: Attempt to load unknown IM context type 'gtk-im-context-none'

meanwhile the program starts and I can create new project or etc.

BUT when I press on "Open Project" button the IDE is closed unexpectedly.

I checked the terminal and I saw system shows me this error message:

/opt/Qt5.3.1/Tools/QtCreator/bin/qtcreator: symbol lookup error: /opt/Qt5.3.1/Tools/QtCreator/bin/plugins/platformthemes/libqgtk2.so: undefined symbol: gtk_dialog_get_widget_for_response

what is your solution to repair this problem?

Thanks a lot

Upvotes: 0

Views: 1790

Answers (1)

hyde
hyde

Reputation: 62838

The problem seems to be, your CentOS is too old, it has too old version of GTK compared to the machine where the Qt Creator was built.

One thing you could try, is simply remove the GTK plugin /opt/Qt5.3.1/Tools/QtCreator/bin/plugins/platformthemes/libqgtk2.so. With luck, then Qt Creator will just not have have GTK/Gnome desktop integration, but will otherwise work.

Otherwise, if you can't upgrade your OS, and above "solution" is not satisfactory, you need to build Qt and/or Qt Creator yourself, so it will be correctly configured for your system. This bug report (since fixed) seems to indicate, that issue is with the Qt libraries (Creator binary bundles the Qt libs it was built against), so you I think you have to start by building Qt yourself.

Upvotes: 3

Related Questions