Sources von LaSat kompilierbar ?

Diskussion zur Übertragungs-Software zum PC

Moderator: LaSAT

Antworten
FreieLiebe
Beiträge: 3
Registriert: 13.03.2007, 10:47

Sources von LaSat kompilierbar ?

Beitrag von FreieLiebe »

hat schon jemand mal probiert die pc2box Sources zu kompilieren? Was braucht's dazu alles?

Switching to target: default
Compiling: ..\src4box\form1.cpp
In file included from ..\src4box\form1.cpp:9:
..\src4box\/vfs.h:16:1: warning: "_X86_" redefined
<built-in>:75:1: warning: this is the location of the previous definition
..\src4box\/vfs.h:209:1: warning: "DDD_RAW_TARGET_PATH" redefined
In file included from C:/Programme/CodeBlocks/include/ddk/ntapi.h:38,
from C:/Programme/CodeBlocks/include/ddk/ntifs.h:36,
from ..\src4box\/vfs.h:27,
from ..\src4box\form1.cpp:9:
C:/Programme/CodeBlocks/include/winbase.h:497:1: warning: this is the location of the previous definition
In file included from ..\src4box\form1.cpp:9:
..\src4box\/vfs.h:210:1: warning: "DDD_REMOVE_DEFINITION" redefined
In file included from C:/Programme/CodeBlocks/include/ddk/ntapi.h:38,
from C:/Programme/CodeBlocks/include/ddk/ntifs.h:36,
from ..\src4box\/vfs.h:27,
from ..\src4box\form1.cpp:9:
C:/Programme/CodeBlocks/include/winbase.h:498:1: warning: this is the location of the previous definition
In file included from ..\src4box\form1.cpp:9:
..\src4box\/vfs.h:211:1: warning: "DDD_EXACT_MATCH_ON_REMOVE" redefined
In file included from C:/Programme/CodeBlocks/include/ddk/ntapi.h:38,
from C:/Programme/CodeBlocks/include/ddk/ntifs.h:36,
from ..\src4box\/vfs.h:27,
from ..\src4box\form1.cpp:9:
C:/Programme/CodeBlocks/include/winbase.h:499:1: warning: this is the location of the previous definition
In file included from ..\src4box\form1.cpp:9:
..\src4box\/vfs.h:595:1: warning: "INVALID_HANDLE_VALUE" redefined
In file included from C:/Programme/CodeBlocks/include/ddk/ntapi.h:38,
from C:/Programme/CodeBlocks/include/ddk/ntifs.h:36,
from ..\src4box\/vfs.h:27,
from ..\src4box\form1.cpp:9:
C:/Programme/CodeBlocks/include/winbase.h:244:1: warning: this is the location of the previous definition
In file included from ..\src4box\form1.cpp:9:
..\src4box\/vfs.h:596:1: warning: "INVALID_FILE_SIZE" redefined
In file included from C:/Programme/CodeBlocks/include/ddk/ntapi.h:38,
from C:/Programme/CodeBlocks/include/ddk/ntifs.h:36,
from ..\src4box\/vfs.h:27,
from ..\src4box\form1.cpp:9:
C:/Programme/CodeBlocks/include/winbase.h:520:1: warning: this is the location of the previous definition
In file included from C:/qt/4.2.3/include/QtCore/qmap.h:1,
from C:/qt/4.2.3/include/Qt/../../src/corelib/kernel/qvariant.h:31,
from C:/qt/4.2.3/include/Qt/qvariant.h:1,
from ..\src4box\/form1.h:13,
from ..\src4box\form1.cpp:10:
C:/qt/4.2.3/include/QtCore/../../src/corelib/tools/qmap.h:910:1: warning: "Q_TYPENAME" redefined
In file included from C:/qt/4.2.3/include/QtCore/qglobal.h:1,
from C:/qt/4.2.3/include/QtCore/../../src/corelib/arch/qatomic_arch.h:27,
from C:/qt/4.2.3/include/QtCore/qatomic_arch.h:1,
from C:/qt/4.2.3/include/QtCore/../../src/corelib/thread/qatomic.h:30,
from C:/qt/4.2.3/include/QtCore/qatomic.h:1,
from C:/qt/4.2.3/include/Qt/../../src/corelib/kernel/qvariant.h:27,
from C:/qt/4.2.3/include/Qt/qvariant.h:1,
from ..\src4box\/form1.h:13,
from ..\src4box\form1.cpp:10:
C:/qt/4.2.3/include/QtCore/../../src/corelib/global/qglobal.h:215:1: warning: this is the location of the previous definition
In file included from C:/qt/4.2.3/include/QtCore/qhash.h:1,
from C:/qt/4.2.3/include/QtCore/../../src/corelib/tools/qset.h:27,
from C:/qt/4.2.3/include/QtCore/qset.h:1,
from C:/qt/4.2.3/include/QtGui/../../src/gui/itemviews/qitemselectionmodel.h:27,
from C:/qt/4.2.3/include/QtGui/qitemselectionmodel.h:1,
from C:/qt/4.2.3/include/QtGui/../../src/gui/itemviews/qabstractitemview.h:29,
from C:/qt/4.2.3/include/QtGui/qabstractitemview.h:1,
from C:/qt/4.2.3/include/Qt/../../src/gui/itemviews/qheaderview.h:27,
from C:/qt/4.2.3/include/Qt/qheaderview.h:1,
from ..\src4box\form1.cpp:19:
C:/qt/4.2.3/include/QtCore/../../src/corelib/tools/qhash.h: In member function `void QHash<Key, T>::deleteNode(QHashNode<Key, T>*)':
C:/qt/4.2.3/include/QtCore/../../src/corelib/tools/qhash.h:446: error: expected class-name before '(' token
In file included from ..\src4box\form1.cpp:28:
..\src4box\/ListViewItem.h: At global scope:
..\src4box\/ListViewItem.h:15: error: invalid use of undefined type `struct QListViewItem'
..\src4box\/form1.h:27: error: forward declaration of `struct QListViewItem'
..\src4box\form1.cpp: In constructor `Form1::Form1(QWidget*, const char*)':
..\src4box\form1.cpp:130: error: no matching function for call to `QWidget::QWidget(QWidget*&, const char*&)'
C:/qt/4.2.3/include/Qt/../../src/gui/kernel/qwidget.h:670: note: candidates are: QWidget::QWidget(const QWidget&)
C:/qt/4.2.3/include/Qt/../../src/gui/kernel/qwidget.h:626: note: QWidget::QWidget(QWidgetPrivate&, QWidget*, Qt::WindowFlags)
C:/qt/4.2.3/include/Qt/../../src/gui/kernel/qwidget.h:190: note: QWidget::QWidget(QWidget*, Qt::WindowFlags)
..\src4box\form1.cpp:135: error: `setName' undeclared (first use this function)
..\src4box\form1.cpp:135: error: (Each undeclared identifier is reported only once for each function it appears in.)
..\src4box\form1.cpp:136: error: `WindowOrigin' is not a member of `QWidget'
..\src4box\form1.cpp:136: error: `setBackgroundOrigin' undeclared (first use this function)
..\src4box\form1.cpp:140: error: call of overloaded `QCursor(int)' is ambiguous
C:/qt/4.2.3/include/QtGui/../../src/gui/kernel/qcursor.h:96: note: candidates are: QCursor::QCursor(HICON__*) <near match>
C:/qt/4.2.3/include/QtGui/../../src/gui/kernel/qcursor.h:70: note: QCursor::QCursor(const QCursor&) <near match>
C:/qt/4.2.3/include/QtGui/../../src/gui/kernel/qcursor.h:69: note: QCursor::QCursor(const QPixmap&, int, int) <near match>
C:/qt/4.2.3/include/QtGui/../../src/gui/kernel/qcursor.h:67: note: QCursor::QCursor(Qt::CursorShape) <near match>
..\src4box\form1.cpp:141: error: `setIcon' undeclared (first use this function)
..\src4box\form1.cpp:143: error: no matching function for call to `QGridLayout::QGridLayout(Form1* const, int, int, int, int, const char[12])'
C:/qt/4.2.3/include/QtGui/../../src/gui/kernel/qgridlayout.h:116: note: candidates are: QGridLayout::QGridLayout(const QGridLayout&)
C:/qt/4.2.3/include/QtGui/../../src/gui/kernel/qgridlayout.h:46: note: QGridLayout::QGridLayout()
C:/qt/4.2.3/include/QtGui/../../src/gui/kernel/qgridlayout.h:45: note: QGridLayout::QGridLayout(QWidget*)
..\src4box\form1.cpp:145: error: no matching function for call to `QPushButton::QPushButton(Form1* const, const char[12])'
C:/qt/4.2.3/include/Qt/../../src/gui/widgets/qpushbutton.h:89: note: candidates are: QPushButton::QPushButton(const QPushButton&)
C:/qt/4.2.3/include/Qt/../../src/gui/widgets/qpushbutton.h:47: note: QPushButton::QPushButton(const QIcon&, const QString&, QWidget*)
C:/qt/4.2.3/include/Qt/../../src/gui/widgets/qpushbutton.h:46: note: QPushButton::QPushButton(const QString&, QWidget*)
C:/qt/4.2.3/include/Qt/../../src/gui/widgets/qpushbutton.h:45: note: QPushButton::QPushButton(QWidget*)
..\src4box\form1.cpp:150: error: no matching function for call to `QTextBrowser::QTextBrowser(Form1* const, const char[13])'
C:/qt/4.2.3/include/Qt/../../src/gui/widgets/qtextbrowser.h:98: note: candidates are: QTextBrowser::QTextBrowser(const QTextBrowser&)
C:/qt/4.2.3/include/Qt/../../src/gui/widgets/qtextbrowser.h:50: note: QTextBrowser::QTextBrowser(QWidget*)
..\src4box\form1.cpp:151: error: 'class QTextBrowser' has no member named 'setPaletteForegroundColor'
..\src4box\form1.cpp:152: error: 'class QTextBrowser' has no member named 'setPaletteBackgroundColor'
..\src4box\form1.cpp:153: error: 'class QTextBrowser' has no member named 'setResizePolicy'
..\src4box\form1.cpp:153: error: `AutoOneFit' is not a member of `QTextBrowser'
..\src4box\form1.cpp:155: error: 'class QGridLayout' has no member named 'addMultiCellWidget'
..\src4box\form1.cpp:157: error: no matching function for call to `QLabel::QLabel(Form1* const, const char[11])'
C:/qt/4.2.3/include/Qt/../../src/gui/widgets/qlabel.h:138: note: candidates are: QLabel::QLabel(const QLabel&)
C:/qt/4.2.3/include/Qt/../../src/gui/widgets/qlabel.h:51: note: QLabel::QLabel(const QString&, QWidget*, Qt::WindowFlags)
C:/qt/4.2.3/include/Qt/../../src/gui/widgets/qlabel.h:50: note: QLabel::QLabel(QWidget*, Qt::WindowFlags)
..\src4box\form1.cpp:161: error: no matching function for call to `QPushButton::QPushButton(Form1* const, const char[12])'
C:/qt/4.2.3/include/Qt/../../src/gui/widgets/qpushbutton.h:89: note: candidates are: QPushButton::QPushButton(const QPushButton&)
C:/qt/4.2.3/include/Qt/../../src/gui/widgets/qpushbutton.h:47: note: QPushButton::QPushButton(const QIcon&, const QString&, QWidget*)
C:/qt/4.2.3/include/Qt/../../src/gui/widgets/qpushbutton.h:46: note: QPushButton::QPushButton(const QString&, QWidget*)
C:/qt/4.2.3/include/Qt/../../src/gui/widgets/qpushbutton.h:45: note: QPushButton::QPushButton(QWidget*)
..\src4box\form1.cpp:169: error: no matching function for call to `QListView::QListView(Form1* const, const char[9])'
C:/qt/4.2.3/include/Qt/../../src/gui/itemviews/qlistview.h:164: note: candidates are: QListView::QListView(const QListView&)
C:/qt/4.2.3/include/Qt/../../src/gui/itemviews/qlistview.h:117: note: QListView::QListView(QListViewPrivate&, QWidget*)
C:/qt/4.2.3/include/Qt/../../src/gui/itemviews/qlistview.h:61: note: QListView::QListView(QWidget*)
..\src4box\form1.cpp:170: error: 'class QListView' has no member named 'addColumn'
..\src4box\form1.cpp:171: error: 'class QListView' has no member named 'addColumn'
..\src4box\form1.cpp:172: error: 'class QListView' has no member named 'addColumn'
Process terminated with status 1 (0 minutes, 5 seconds)
52 errors, 14 warnings
Florian_Breu

Beitrag von Florian_Breu »

Frag mal Tibor, der hatte auch was für MinGW
tibor
LaSAT-Mitarbeiter
LaSAT-Mitarbeiter
Beiträge: 511
Registriert: 08.03.2007, 11:25
Wohnort: neunburg im wald

Beitrag von tibor »

geht mit Qt3 + MSVC++ + microsoft driver kid suite
Kosi2801
Beiträge: 35
Registriert: 14.03.2007, 10:16

Beitrag von Kosi2801 »

Wenn ich das richtig verstanden habe, müsste es also mit folgenden Tools funktionieren:

Microsoft Driver Development Kit: http://www.microsoft.com/whdc/devtools/ddk/default.mspx

Visual Studio 2005 C++ EE: http://msdn.microsoft.com/vstudio/expre ... fault.aspx

QT3:
? (http://qtwin.sourceforge.net/qt3-win32/ ... c-2005.php ???)

Für QT3 habe ich kein Package von Trolltec mehr gefunden, nur so einen Quasi-Port der aber zum Kompilieren das MS Platform SDK benötigt, ist dieses kompatibel?

MfG,
Kosi
tibor
LaSAT-Mitarbeiter
LaSAT-Mitarbeiter
Beiträge: 511
Registriert: 08.03.2007, 11:25
Wohnort: neunburg im wald

Beitrag von tibor »

ja, Qt3 hab ich auch selbst kompiliert. hatte einige stunden gedauert, aber hat ohne probleme funktioniert.
Qt3 und Qt4 sind nur auf dem papier kompatibel, aber in der praxis schaut das anders aus.
Kosi2801
Beiträge: 35
Registriert: 14.03.2007, 10:16

Beitrag von Kosi2801 »

Ok, habs nun geschafft, Pc2Box zu kompilieren.
Benötigt:
- MS Visual Studio C++ 2005 Express Edition
- MS Driver Development Kit
- MS Platform SDK
- Binary-Release einer alten QTWin (http://downloads.sourceforge.net/qtwin/ ... .3.4-3.exe), muss nicht kompiliert werden

Beim Installieren des DDKs und SDKs kann man alle Sachen, die nichts mit C++ oder Libraries der entsprechenden Platform zu tun haben beim Installieren abwählen (also alle x64-Plattform-Dingens, .NET-Zeugs, Web-Development-Zeug, ActiveX, und was weiß ich noch alles).

Beim Visual-Studio muss man danach nur noch eine größere Anzahl zum Kompilieren benötigten Dependencies (Include- und Library-Verzeichnisse des DDK, SDK und QT) in den entsprechenden Optionen hinzufügen und beim Ausführen der erstellten Applikation sicherstellen, dass sie die QT-DLL auch finden kann (ich hab einfach die .dll gesucht und ins bin-Verzeichnis kopiert, normal gehört es aber in den Path eingetragen).

LG,
Kosi
tibor
LaSAT-Mitarbeiter
LaSAT-Mitarbeiter
Beiträge: 511
Registriert: 08.03.2007, 11:25
Wohnort: neunburg im wald

Re: Sources von LaSat kompilierbar ?

Beitrag von tibor »

super
Maxxx7
Beiträge: 43
Registriert: 26.03.2007, 08:39

Re:

Beitrag von Maxxx7 »

Kosi2801 hat geschrieben:Ok, habs nun geschafft, Pc2Box zu kompilieren.
Hallo Kosi2801,

könntest Du vielleicht die Sourcen bitte mit der Option "+=CONSOLE" übersetzen, da tibor derzeit keine Zeit dazu hat und die Kommandozeilenoptionen echt super währen.
tibor hat geschrieben: ja sorry, muss mit +=CONSOLE uebersetzt werden. bin gerade dabei alles neu zu machen, nur fehlt meist zeit um weiter zu machen. wenn es zu lange dauert einfach selber machen, die sourcen liegen ja bei.
Antworten