Seite 1 von 1

könnte mir einer mein programm unter windows kompillieren?

Verfasst: 13. Oktober 2006 17:29
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?

Verfasst: 13. Oktober 2006 18:12
von BartSimpson
Dann nimm doch XEN oder vmware(server) beides für 0¤:)

Verfasst: 13. Oktober 2006 18:19
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?

Verfasst: 13. Oktober 2006 18:29
von BartSimpson
in der theorie ja, aber gamcht habe ich es noch nie.

Verfasst: 13. Oktober 2006 19:31
von FlorianBecker

Verfasst: 13. Oktober 2006 22:40
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?

Verfasst: 13. Oktober 2006 23:41
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....

Verfasst: 15. Oktober 2006 09:47
von caligano
Hallo!

Ich habs dir mal kompiliert...

mfg cal

Verfasst: 15. Oktober 2006 18:08
von slash-ex
danke! ich habs immer noch nicht mit wine hinbekommen ): irgendwie schein ich dafür zu doof zu sein.

Verfasst: 28. Februar 2007 19:13
von slash-ex
ich kann nur sagen, dass es mit wine ganz gut klappt^^

Verfasst: 28. Februar 2007 19:15
von BartSimpson
Nimm doch einfach vmware und lasse ein virtuelles Windows laufen:)

Verfasst: 1. März 2007 16:12
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.

Verfasst: 3. März 2007 17:36
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!