Seite 1 von 1

Arbeiten mit Openmpi

Verfasst: 16. Mai 2013 13:01
von deliaophelia
Hallo,
das einbinden von Openmpi führt bei mir immer zu einem Fehler. Openmpi ist installiert. Die mpi.h ist eingebunden und auch in der .pro sind QMAKES drin.
Hier mal die .pro Datei.

Code: Alles auswählen

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = Conways
TEMPLATE = app


SOURCES += main.cpp\
        mainwindow.cpp \
    gamewidget.cpp

HEADERS  += mainwindow.h \
    gamewidget.h \
    omp.h

FORMS    += mainwindow.ui

QMAKE_CXXFLAGS += -fopenmp
QMAKE_LFLAGS += -fopenmp


QMAKE_CC = mpicc
QMAKE_CXX = mpic++

QMAKE_CC = $$system(mpicc --showme:compile)
QMAKE_CXX = $$system(mpic++ --showme:compile)
QMAKE_LFLAGS = $$system(mpic++ --showme:link)
Als Fehler bekomme ich:
no such file or directory für main.o etc.

die Kompilierung gibt folgende Fehler aus:
sh: mpicc: command not found
sh: mpic++: command not found
sh: mpic++: command not found

Wisst ihr was noch fehlen könnte?

Re: Arbeiten mit Openmpi

Verfasst: 16. Mai 2013 17:34
von Christian81
Es steht doch da was fehlt:

Code: Alles auswählen

sh: mpicc: command not found
sh: mpic++: command not found