Results 1 to 2 of 2

Thread: Qt + OpenMP missing pthreadGC2.dll

  1. #1
    Join Date
    Jan 2010
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Qt + OpenMP missing pthreadGC2.dll

    I'm trying to get an OpenMP application to compile using Qt Creator (SDK 2010.01) in Windows and after getting everything to compile, when I try to run the application I get an error message: "The program can't start because pthreadGC2.dll is missing from your computer. Try reinstalling the program to fix this problem." I figured this might just be a path issue so I did a search in the Qt installation folder for the missing dll and unfortunately it doesn't seem to be present. I was wondering if this is something that I need to compile independently and doesn't come packaged in Qt's mingw by default?

    FYI, the pro file I'm using is:

    Qt Code:
    1. #-------------------------------------------------
    2. #
    3. # Project created by QtCreator 2010-01-29T09:32:03
    4. #
    5. #-------------------------------------------------
    6.  
    7. QT -= gui
    8.  
    9. TARGET = OmpTest
    10. CONFIG += console
    11. CONFIG -= app_bundle
    12.  
    13. QMAKE_CXXFLAGS += -fopenmp
    14.  
    15. TEMPLATE = app
    16.  
    17. SOURCES += main.cpp
    18.  
    19. LIBS += -lgomp
    To copy to clipboard, switch view to plain text mode 

    and the only source file is:

    Qt Code:
    1. #include <omp.h>
    2. #include <stdio.h>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. #pragma omp parallel
    7. printf("Hello from thread %d, nthreads %d\n", omp_get_thread_num(), omp_get_num_threads());
    8. }
    To copy to clipboard, switch view to plain text mode 

    Thanks in advance.

  2. #2
    Join Date
    Jan 2010
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt + OpenMP missing pthreadGC2.dll

    In case anyone is also having this problem, I found this website which gave me a clue where to look for the pthreads library. Once I downloaded the source code for the latest version (2.8.0) from ftp://sourceware.org/pub/pthreads-wi...release.tar.gz, I compiled using Msys with the command "make clean CG". That produced the pthreadGC2.dll that I was missing, and once I copied the dll into the release folder of my Qt Project (where the executable was running from) everything worked fine.

Similar Threads

  1. QtTest - Am I missing the point
    By hubbobubbo in forum Qt Programming
    Replies: 3
    Last Post: 30th January 2010, 14:18
  2. Missing tileVertically()
    By zarkzervo in forum Qt Programming
    Replies: 2
    Last Post: 3rd November 2009, 07:01
  3. QThread and OpenMP on Mac problem
    By Debilski in forum Qt Programming
    Replies: 0
    Last Post: 7th April 2009, 17:41
  4. libQtGui_debug.so.4 missing
    By fwohlfert in forum Installation and Deployment
    Replies: 2
    Last Post: 5th October 2006, 19:07
  5. Missing slots
    By Mariane in forum Newbie
    Replies: 1
    Last Post: 5th February 2006, 01:50

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.