Note that there are some explanatory texts on larger screens.

plurals
  1. POCompiling google test framework with Mingw compiler
    primarykey
    data
    text
    <p>I have a Qt project and i wanted to use google tests framework <a href="http://code.google.com/p/googletest/" rel="nofollow noreferrer">GoogleTestFramework</a> in order to do google test. The framework compiled fine on Linux.</p> <p>I have managed to compile the libraries on windows, using tips provided in the following link: <a href="http://code.google.com/p/tonatiuh/wiki/InstallingGoogleTestForWindows" rel="nofollow noreferrer">Installing Gtest without pthreads</a></p> <p>The following advice do not let me compile the libraries, because of errors due to pthreads: <a href="https://stackoverflow.com/questions/5248237/how-to-compile-googletest-on-windows-using-mingw-with-msys">Sackoverflow compiling with MSYS</a></p> <p>I have :</p> <ul> <li>GNU Make 3.81 for make.exe</li> <li>GNU Make 3.82 for mingw32-make </li> <li>CMake 2.8.7</li> <li>QT 4.7.4</li> <li>Qt MingW gcc v 4.4.0</li> </ul> <p>When i try to compile my test projet, i get an error saying: undefined reference to '__chkstk_ms' File not found: gtest-all.cc</p> <p>Here is my qmake project code (I have semplified the code).</p> <pre><code>QT += core gui DEPENDPATH += . headers src ../FastTrans/headers ../FastTrans/src ../FastTrans/forms C:/MinGW/msys/1.0/home/zakharan/gtest-1.6.0/include INCLUDEPATH += . headers src ../FastTrans/headers ../FastTrans/src ../FastTrans/forms C:/MinGW/msys/1.0/home/zakharan/gtest-1.6.0/include TARGET = tstall #CONFIG += console #CONFIG -= app_bundle TEMPLATE = app HEADERS += ../FastTrans/headers/shortcutsactionsitem.h \ ../FastTrans/headers/shortcutsactionsmodel.h \ ../FastTrans/headers/isavesettings.h SOURCES += ../FastTrans/src/shortcutsactionsitem.cpp \ ../FastTrans/src/shortcutsactionsmodel.cpp \ ../FastTrans/src/isavesettings.cpp \ src/tstshortcutsactionsitem.cpp \ src/tstshortcutsactionmodel.cpp INCLUDEPATH += $$PWD/ DEPENDPATH += $$PWD/ win32: LIBS += C:/MinGW/msys/1.0/home/zakharan/gtest-1.6.0/mybuid/libgtest.a win32: LIBS += C:/MinGW/msys/1.0/home/zakharan/gtest-1.6.0/mybuid/libgtest_main.a </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload