könnte mir einer mein programm unter windows kompillieren?

Hier können eigene Projekte, die mit Qt in Beziehung stehen vorgestellt werden.
Antworten
slash-ex
Beiträge: 239
Registriert: 30. März 2005 21:40

könnte mir einer mein programm unter windows kompillieren?

Beitrag von slash-ex »

sorry wenn ich nerve, aber ich habe nur noch linux am laufen, weil mir mein windows nicht mehr starten will ): (ohne vorwarnung, ohne meldung...der bildschirm bleibt schwarz)

aber ich habe einem freund versprochen ein programm zu basteln. also bitte ich drum, das ganze zu übersetzen und wieder online zustellen, wenn nicht zuviel verlangt... sind nur 3.7kb an code!

ansonsten, würde ich gerne wissen ob man unter linux auch win-binaries machen kann?! wenn ja, wie?
Dateianhänge
klimadingsbums.zip
(3.7 KiB) 298-mal heruntergeladen
BartSimpson
Beiträge: 1379
Registriert: 6. November 2004 12:03
Kontaktdaten:

Beitrag von BartSimpson »

Dann nimm doch XEN oder vmware(server) beides für 0¤:)
slash-ex
Beiträge: 239
Registriert: 30. März 2005 21:40

Beitrag von slash-ex »

fürn virtuellen desktop, müsste ich doch erst windows dort hineinnstallieren... ich habe irgendwie gar keine lust mehr auf windows.
das os stürzt absolut ohne vorwarnung ab, ohne linux könnte man nichtmal daten retten.

kann man nicht sowas wie crosscompilen mit gcc?
BartSimpson
Beiträge: 1379
Registriert: 6. November 2004 12:03
Kontaktdaten:

Beitrag von BartSimpson »

in der theorie ja, aber gamcht habe ich es noch nie.
FlorianBecker
Beiträge: 1213
Registriert: 2. Dezember 2004 10:54
Kontaktdaten:

Beitrag von FlorianBecker »

slash-ex
Beiträge: 239
Registriert: 30. März 2005 21:40

Beitrag von slash-ex »

da ich das wine-projekt sehr gerne mag habe ich einfach mal qt dort hin installiert^^

ich bekomme aber das hier...:

EDIT:

Code: Alles auswählen

madingsbums> wine make
make -f Makefile.Release
make[1]: Entering directory `C:/klimadingsbums'
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"C:/Qt/4.2.0/include/QtCore" -I"C:/Qt/4.2.0/include/QtCore" -I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/include" -I"C:/Qt/4.2.0/include/ActiveQt" -I"release" -I"." -I"..\Qt\4.2.0\mkspecs\default" -o release\main.o main.cpp
fixme:msvcrt:_spawnve only trying .exe when no extension given
g++: installation problem, cannot exec `cc1plus': No such file or directory
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"C:/Qt/4.2.0/include/QtCore" -I"C:/Qt/4.2.0/include/QtCore" -I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/include" -I"C:/Qt/4.2.0/include/ActiveQt" -I"release" -I"." -I"..\Qt\4.2.0\mkspecs\default" -o release\QJule.o QJule.cpp
fixme:msvcrt:_spawnve only trying .exe when no extension given
g++: installation problem, cannot exec `cc1plus': No such file or directory
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"C:/Qt/4.2.0/include/QtCore" -I"C:/Qt/4.2.0/include/QtCore" -I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/include" -I"C:/Qt/4.2.0/include/ActiveQt" -I"release" -I"." -I"..\Qt\4.2.0\mkspecs\default" -o release\txt_parse.o txt_parse.cpp
fixme:msvcrt:_spawnve only trying .exe when no extension given
g++: installation problem, cannot exec `cc1plus': No such file or directory
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"C:/Qt/4.2.0/include/QtCore" -I"C:/Qt/4.2.0/include/QtCore" -I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/include" -I"C:/Qt/4.2.0/include/ActiveQt" -I"release" -I"." -I"..\Qt\4.2.0\mkspecs\default" -o release\moc_QJule.o release\moc_QJule.cpp
fixme:msvcrt:_spawnve only trying .exe when no extension given
g++: installation problem, cannot exec `cc1plus': No such file or directory
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-s -Wl,-subsystem,windows -o "release\QKlimaJule.exe" release\main.o release\QJule.o release\txt_parse.o release\moc_QJule.o  -L"c:\Qt\4.2.0\lib" -lmingw32 -lqtmain -lQtGui4 -lQtCore4
g++: release\main.o: No such file or directory
g++: release\QJule.o: No such file or directory
g++: release\txt_parse.o: No such file or directory
g++: release\moc_QJule.o: No such file or directory
make[1]: Leaving directory `C:/klimadingsbums'
eigentlich super, dass er qmake und den ganzen scheiß so genial annimmt. qmake funzt auch wunderbar, aber beim make gibts ärger. er kann cc1plus nicht finden!!! weiß einer wo das scheißding immer vermutet wird?
slash-ex
Beiträge: 239
Registriert: 30. März 2005 21:40

Beitrag von slash-ex »

hmm, ok jetzt siehts anders aus, ich habe den fehler gefunden (oh man, wenn ich fertig bin schreibe ich ein howto) aber jetzt habe ich mit den libs probleme.


Code: Alles auswählen

...
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h: In member function `void QVector<T>::realloc(int, int) [with T = QPainterPath::Element]':
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:268:   instantiated from `void QVector<T>::detach_helper() [with T = QPainterPath::Element]'
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:91:   instantiated from `void QVector<T>::detach() [with T = QPainterPath::Element]'
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:190:   instantiated from `T* QVector<T>::begin() [with T = QPainterPath::Element]'
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:203:   instantiated from `T& QVector<T>::first() [with T = QPainterPath::Element]'
C:/Qt/4.2.0/include/QtGui/../../src/gui/painting/qpainterpath.h:260:   instantiated from here
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:396: error: no matching function for call to `operator new(unsigned int, QPainterPath::Element*&)'
<internal>:0: note: candidates are: void* operator new(unsigned int)
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:268:   instantiated from `void QVector<T>::detach_helper() [with T = QPainterPath::Element]'
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:91:   instantiated from `void QVector<T>::detach() [with T = QPainterPath::Element]'
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:190:   instantiated from `T* QVector<T>::begin() [with T = QPainterPath::Element]'
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:203:   instantiated from `T& QVector<T>::first() [with T = QPainterPath::Element]'
C:/Qt/4.2.0/include/QtGui/../../src/gui/painting/qpainterpath.h:260:   instantiated from here
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:435: error: no matching function for call to `operator new(unsigned int, QPainterPath::Element*&)'
<internal>:0: note: candidates are: void* operator new(unsigned int)
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:442: error: no matching function for call to `operator new(unsigned int, QPainterPath::Element*&)'
<internal>:0: note: candidates are: void* operator new(unsigned int)
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qlist.h: In member function `void QList<T>::node_copy(QList<T>::Node*, QList<T>::Node*, QList<T>::Node*) [with T = QStandardItem*]':
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qlist.h:501:   instantiated from `void QList<T>::detach_helper() [with T = QStandardItem*]'
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qlist.h:98:   instantiated from `void QList<T>::detach() [with T = QStandardItem*]'
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qlist.h:399:   instantiated from `void QList<T>::append(const T&) [with T = QStandardItem*]'
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qlist.h:278:   instantiated from `QList<T>& QList<T>::operator<<(const T&) [with T = QStandardItem*]'
C:/Qt/4.2.0/include/QtGui/../../src/gui/itemviews/qstandarditemmodel.h:282:   instantiated from here
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qlist.h:334: error: no matching function for call to `operator new(unsigned int, QList<QStandardItem*>::Node*)'
<internal>:0: note: candidates are: void* operator new(unsigned int)
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h: In member function `QVectorData* QVector<T>::malloc(int) [with T = QPainterPath::Element]':
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:405:   instantiated from `void QVector<T>::realloc(int, int) [with T = QPainterPath::Element]'
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:268:   instantiated from `void QVector<T>::detach_helper() [with T = QPainterPath::Element]'
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:91:   instantiated from `void QVector<T>::detach() [with T = QPainterPath::Element]'
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:190:   instantiated from `T* QVector<T>::begin() [with T = QPainterPath::Element]'
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:203:   instantiated from `T& QVector<T>::first() [with T = QPainterPath::Element]'
C:/Qt/4.2.0/include/QtGui/../../src/gui/painting/qpainterpath.h:260:   instantiated from here
C:/Qt/4.2.0/include/QtCore/../../src/corelib/tools/qvector.h:336: error: `qMalloc' cannot be used as a function
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-s -Wl,-subsystem,windows -o "release\QKlimaJule.exe" release\main.o release\QJule.o release\txt_parse.o release\moc_QJule.o  -L"c:\Qt\4.2.0\lib" -lmingw32 -lqtmain -lQtGui4 -lQtCore4
g++: release\main.o: No such file or directory
g++: release\QJule.o: No such file or directory
g++: release\txt_parse.o: No such file or directory
g++: release\moc_QJule.o: No such file or directory
make[1]: Leaving directory `C:/klimadingsbums'
ich werde mal weiter suchen um den fehler zu finden....
caligano
Beiträge: 126
Registriert: 19. August 2006 15:33

Beitrag von caligano »

Hallo!

Ich habs dir mal kompiliert...

mfg cal
Dateianhänge
QKlimaJule.zip
(99.77 KiB) 288-mal heruntergeladen
slash-ex
Beiträge: 239
Registriert: 30. März 2005 21:40

Beitrag von slash-ex »

danke! ich habs immer noch nicht mit wine hinbekommen ): irgendwie schein ich dafür zu doof zu sein.
slash-ex
Beiträge: 239
Registriert: 30. März 2005 21:40

Beitrag von slash-ex »

ich kann nur sagen, dass es mit wine ganz gut klappt^^
BartSimpson
Beiträge: 1379
Registriert: 6. November 2004 12:03
Kontaktdaten:

Beitrag von BartSimpson »

Nimm doch einfach vmware und lasse ein virtuelles Windows laufen:)
Burgpflanze
Beiträge: 89
Registriert: 24. Februar 2006 16:41
Wohnort: Dresden

Beitrag von Burgpflanze »

Zumal VMware Server mittlerweile kostenlos ist.
Allerdings musst du dich bei VMware registrieren,
weil du auch für VMware Server einen Lizenz-Key brauchst.
Gruß, Peter
slash-ex
Beiträge: 239
Registriert: 30. März 2005 21:40

Beitrag von slash-ex »

ich versteh immer noch nicht was euch an wine nicht so gefällt?! qt und compiler funzen doch damit. außerdem ist es nahezu so performant wie unter windows!
Antworten