LINUX.ORG.RU

кросскомпиляция - как это делать?


0

0

в прошедшем семестре писал лабы по ООП на qt, потом компилировал в vmware под mingw, бинарники относил в универ и сдавал.

возможно ли как-то скомпилить эти виндовые бинарники прямо под линухом, без vmware?

мне кажется что невозможно, но так ли это на самом деле?


Ответ на: комментарий от Motiv_studenta

а нельзя ли немного раскрыть тему?

под виндой я mingw'ом собирал... а тут то как это делать? и оно прям exe выдаст?

stigger
() автор топика
Ответ на: комментарий от Pi

не пошло. скачал mingw32-linux-x86-glibc-2.2.tar.gz. поставил. пытаюсь скомпилить простенький qt4 проект. сделал qmake, делаю cross-make. получаю огромное число ошибок. вот начало:

g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include -I. -I. -o oop_lab2.o oop_lab2.cpp In file included from /usr/local/cross-tools/include/c++/3.2.3/i386-mingw32msvc/bits/c++io.h:35, from /usr/local/cross-tools/include/c++/3.2.3/bits/fpos.h:44, from /usr/local/cross-tools/include/c++/3.2.3/bits/char_traits.h:46, from /usr/local/cross-tools/include/c++/3.2.3/string:47, from /usr/include/QtCore/qstring.h:42, from /usr/include/QtCore/qobject.h:30, from /usr/include/QtCore/qcoreapplication.h:27, from /usr/include/QtGui/qapplication.h:27, from /usr/include/QtGui/QApplication:1, from oop_lab2.cpp:24: /usr/local/cross-tools/include/c++/3.2.3/cstdio:156: `vfscanf' not declared /usr/local/cross-tools/include/c++/3.2.3/cstdio:157: `vscanf' not declared /usr/local/cross-tools/include/c++/3.2.3/cstdio:159: `vsscanf' not declared /usr/local/cross-tools/include/c++/3.2.3/cstdio:165: `vfscanf' not declared /usr/local/cross-tools/include/c++/3.2.3/cstdio:166: `vscanf' not declared /usr/local/cross-tools/include/c++/3.2.3/cstdio:168: `vsscanf' not declared

stigger
() автор топика
Ответ на: комментарий от stigger

чёрт.
g++ -c -pipe -O2 -Wall -W -D_REENTRANT  -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include -I. -I. -o oop_lab2.o oop_lab2.cpp
In file included from /usr/local/cross-tools/include/c++/3.2.3/i386-mingw32msvc/bits/c++io.h:35,
                 from /usr/local/cross-tools/include/c++/3.2.3/bits/fpos.h:44,
                 from /usr/local/cross-tools/include/c++/3.2.3/bits/char_traits.h:46,
                 from /usr/local/cross-tools/include/c++/3.2.3/string:47,
                 from /usr/include/QtCore/qstring.h:42,
                 from /usr/include/QtCore/qobject.h:30,
                 from /usr/include/QtCore/qcoreapplication.h:27,
                 from /usr/include/QtGui/qapplication.h:27,
                 from /usr/include/QtGui/QApplication:1,
                 from oop_lab2.cpp:24:
/usr/local/cross-tools/include/c++/3.2.3/cstdio:156: `vfscanf' not declared
/usr/local/cross-tools/include/c++/3.2.3/cstdio:157: `vscanf' not declared
/usr/local/cross-tools/include/c++/3.2.3/cstdio:159: `vsscanf' not declared
/usr/local/cross-tools/include/c++/3.2.3/cstdio:165: `vfscanf' not declared
/usr/local/cross-tools/include/c++/3.2.3/cstdio:166: `vscanf' not declared
/usr/local/cross-tools/include/c++/3.2.3/cstdio:168: `vsscanf' not declared

stigger
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.