Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Installation, Compiling and Running of theide » Compilation error
Re: Compilation error [message #48679 is a reply to message #48678] Thu, 24 August 2017 08:25 Go to previous messageGo to previous message
amrein is currently offline  amrein
Messages: 278
Registered: August 2008
Location: France
Experienced Member
Note: You can run 'make LDFLAGS=-lgthread-2.0' to force the use of gthread-2.0 at link time. It will work without having to edit files or use Ctrl-c.

Here what I found : U++ uses 'g_thread_init(NULL);' in uppsrc/CtrlCore/GtkApp.cpp (line 65).
g_thread_init(); and g_thread_supported(); are deprecated, according to https:// developer.gnome.org/glib/stable/glib-Deprecated-Thread-APIs. html#g-thread-init

There's already a work around in the source code:

#ifdef _MULTITHREADED
#if !GLIB_CHECK_VERSION(2, 32, 0)
    if(!g_thread_supported())
        g_thread_init(NULL);
#endif
        gdk_threads_set_lock_functions(EnterGuiMutex, LeaveGuiMutex);
        gdk_threads_init();
        EnterGuiMutex();
#endif


So, my question is, why does it still compile those lines if your library is greater than 2.32.0?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Error in Ultimate++ installation on Ubuntu 17.04
Next Topic: TheIDE failed to run with xlib
Goto Forum:
  


Current Time: Tue May 07 20:08:32 CEST 2024

Total time taken to generate the page: 0.01811 seconds