mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] cross compile Qt-based project for windows fr


From: Mark Brand
Subject: Re: [Mingw-cross-env-list] cross compile Qt-based project for windows from ubuntu
Date: Mon, 08 Oct 2012 21:35:29 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120904 Firefox/15.0.1 SeaMonkey/2.12.1

Harry Kunz wrote:
hi.

i'm a newby to cross compiling..

Welcome.

i hope someone can help me

i have my project athttp://sourceforge.net/p/createswf/wiki/Home/ <mailto:address@hidden> that usese Qt. I'm trying to cross-compile this project for windows. I'm compiling on Ubuntu environment. i followed the steps in http://mxe.cc/#tutorial but can't get to compile... :(

i have unpacked mxe in my home dir (~/mxe)

"Unpacked" sounds like you're using a tarball, but unfortunately I see that word is also used in the tutorial. I hope you are using a clone of the stable or master branch rather than an old tarball.

and did a make and successfully did a "make qt"

If you did a "make" everything would have been built, including Qt. If that was successful, then "make qt" should have said something like "Nothing to be done for `qt'".


then in ~/.bashrc i added "~/mxe/usr/bin" to my $PATH and added
export PKG_CONFIG_PATH_i686_pc_mingw32="~/mxe/usr/i686-pc-mingw32/qt/lib/pkgconfig:~/mxe/usr/i686-pc-mingw32/lib/pkgconfig"

You didn't have to do that. The pkg-config in MXE already knows about that directory. Where the tutorial talks about this, it's about *custom" additional directories you might need.


Since i'm using Qt i supposedly only have to execute the following:
i686-pc-mingw32-qmake
make

when i compile using make, i get the below error
even when "i686-pc-mingw32-g++" really exists in
~/mxe/usr/bin/ which is in $PATH

make[1]: i686-pc-mingw32-g++: Command not found
make[1]: *** [.obj/CoreApplication.o] Error 127

hoping for someone to help me :)


It's difficult to account for this. Surely if i686-pc-mingw32-qmake is executed from ~/mxe/usr/bin then i686-pc-mingw32-g++ is there too. Have you tried "which i686-pc-mingw32-g++"? Also try "which i686-pc-mingw32-qmake" to make sure you're running the one you think you are running.

Mark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]