[Public] Hilfe für QT dringend gesucht

Thomas Darimont thomas.darimont at googlemail.com
So Jun 30 21:57:17 CEST 2013


... ach ja, das Programm kann ich übrigens dann auch laufen lassen :)


Am 30. Juni 2013 21:22 schrieb Thomas Darimont <
thomas.darimont at googlemail.com>:

> Hallo Jochen,
>
> welchen Compile-Fehler bekommst du denn?
>
> Ich hab mal deine Includes etwas "aufgeräumt" (siehe diff). Damit kann ich
> mit make ohne Probleme kompilieren...
>  tom at leibniz  ~/dev/cpp/projects/nodaveGuiTest   master ●  make clean
> rm -f moc_mainwindow.cpp
> rm -f ui_mainwindow.h
> rm -f main.o mainwindow.o s7conn.o moc_mainwindow.o
> rm -f *~ core *.core
>  tom at leibniz  ~/dev/cpp/projects/nodaveGuiTest   master ●  make
> /usr/bin/uic-qt4 mainwindow.ui -o ui_mainwindow.h
> g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DLINUX
> -DDAVE_LITTLE_ENDIAN -DDONT_USE_GETHOSTBYNAME -DQT_NO_DEBUG -DQT_GUI_LIB
> -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I.
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I.
> -I. -I. -o main.o main.cpp
> g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DLINUX
> -DDAVE_LITTLE_ENDIAN -DDONT_USE_GETHOSTBYNAME -DQT_NO_DEBUG -DQT_GUI_LIB
> -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I.
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I.
> -I. -I. -o mainwindow.o mainwindow.cpp
> g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DLINUX
> -DDAVE_LITTLE_ENDIAN -DDONT_USE_GETHOSTBYNAME -DQT_NO_DEBUG -DQT_GUI_LIB
> -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I.
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I.
> -I. -I. -o s7conn.o s7conn.cpp
> s7conn.cpp: In member function ‘bool s7conn::startConnection()’:
> s7conn.cpp:32:19: warning: converting to non-pointer type ‘int’ from NULL
> [-Wconversion-null]
> s7conn.cpp:38:99: warning: deprecated conversion from string constant to
> ‘char*’ [-Wwrite-strings]
> /usr/bin/moc-qt4 -DQT_WEBKIT -DLINUX -DDAVE_LITTLE_ENDIAN
> -DDONT_USE_GETHOSTBYNAME -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB
> -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I.
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I.
> -I. -I. mainwindow.h -o moc_mainwindow.cpp
> g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DLINUX
> -DDAVE_LITTLE_ENDIAN -DDONT_USE_GETHOSTBYNAME -DQT_NO_DEBUG -DQT_GUI_LIB
> -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I.
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I.
> -I. -I. -o moc_mainwindow.o moc_mainwindow.cpp
> g++ -m64 -Wl,-O1 -o NodaveGuiTest main.o mainwindow.o s7conn.o
> moc_mainwindow.o    -L/usr/lib/x86_64-linux-gnu
> -L/home/tom/dev/cpp/projects/nodaveGuiTest/lib/ -lnodave64 -lQtGui -lQtCore
> -lpthread
>  tom at leibniz  ~/dev/cpp/projects/nodaveGuiTest   master ● 
>
>
> Hier das diff:
>
> diff --git a/main.cpp b/main.cpp
> index d951345..2017d81 100644
> --- a/main.cpp
> +++ b/main.cpp
> @@ -1,4 +1,4 @@
> -#include <QtGui/QApplication>
> +//#include <QtGui/QApplication>
>  #include "mainwindow.h"
>
>  int main(int argc, char *argv[])
> diff --git a/mainwindow.cpp b/mainwindow.cpp
> index 16ee595..5e82684 100644
> --- a/mainwindow.cpp
> +++ b/mainwindow.cpp
> @@ -1,5 +1,5 @@
>  #include "mainwindow.h"
> -#include "ui_mainwindow.h"
> +//#include "ui_mainwindow.h"
>
>  MainWindow::MainWindow(QWidget *parent) :
>      QMainWindow(parent),
> diff --git a/mainwindow.h b/mainwindow.h
> index 7ce9c0f..197f59c 100644
> --- a/mainwindow.h
> +++ b/mainwindow.h
> @@ -1,6 +1,8 @@
>  #ifndef MAINWINDOW_H
>  #define MAINWINDOW_H
>
> +#include "ui_mainwindow.h"
> +
>  #include "s7conn.h"
>  #include <QMainWindow>
>
> diff --git a/s7conn.h b/s7conn.h
> index 0caee7a..72a7aee 100644
> --- a/s7conn.h
> +++ b/s7conn.h
> @@ -5,8 +5,8 @@
>
>  #include <QString>
>  #include <QMessageBox>
> -#include <nodave.h>
> -#include <openSocket.h>
> +#include "lib/nodave.h"
> +#include "lib/openSocket.h"
>
>
>  // Connection Settings
>
>
>
> Gruß Thomas
>
>
> Am 30. Juni 2013 20:15 schrieb Jochen Bauer <tks at jochenbauer.net>:
>
> Hi,
>>
>> kann jemand gut QT und könnte mal über ein Programm drüber schauen? Habe
>> das Problem, dass es unter Windows problemlos kompiliert, unter Linux habe
>> ich für mich nicht nachvollziebare Kompilerfehler.
>>
>> QT4.8.2
>>
>>  git clone https://github.com/devjb/**nodaveGuiTest.git<https://github.com/devjb/nodaveGuiTest.git>
>>>
>>
>> Die libs sind vorkompiliert sowie nackt im /lib-Verzeichnis. Für
>> Linux/Windows muss in der *.pro-Datei CONFIG von LINUX nach BCCWIN geändert
>> werden.
>>
>> Wäre grandios wenn da jemand mal reinschnausen könnte.
>>
>> P.S.: der Fehler tritt unter Linux erst auf, sobald in der Datei
>> "mainwindow.h" die Datei "s7conn.h" inkludiert wird.
>> Lässt man die an dieser Stelle raus, kompilierts auch unter Linux.
>>
>> P.P.S.: Von Codequalität und Kommentaren hier bitte erstmal nicht
>> meckern, das Ding muss nur beweisen, dass es unter Linux kompilierbar ist.
>>
>> Gruß
>>
>> und Danke im Voraus
>>
>>
>>
>>
>>
>> ______________________________**_________________
>> Public mailing list
>> Public at lists.hacksaar.de
>> http://lists.hacksaar.de/cgi-**bin/mailman/listinfo/public<http://lists.hacksaar.de/cgi-bin/mailman/listinfo/public>
>>
>
>
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.hacksaar.de/pipermail/public/attachments/20130630/be5dfb41/attachment-0001.html>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : ubuntu_linux_jochen_NodaveGuiTest.PNG
Dateityp    : image/png
Dateigröße  : 225351 bytes
Beschreibung: nicht verfügbar
URL         : <http://lists.hacksaar.de/pipermail/public/attachments/20130630/be5dfb41/attachment-0001.png>


More information about the Public mailing list