Author Topic: Updtae AM on windows  (Read 3644 times)

qqplayer

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
Updtae AM on windows
« on: November 11, 2016, 08:13:06 AM »
I`ve updated my AM build on my rpi3 in less than 5 minutes.
So , why is so extremly complicated update it on windows or linux x86?
Lastest nightly builds for windows are datted on june 2016

I`m trying to do a Windows (cross-compile) without succes.

Quote
Follow the steps in the mxe tutorial to set up mxe on your system: http://mxe.cc/#tutorial

Make mxe's sfml, ffmpeg and libarchive packages:

   make ffmpeg sfml libarchive

So , what exactly I have to do , full mxe compilation or only "ffmpeg sfml libarchive"

I`m running ubuntu 16.04
Followed this steps:

Quote
To install Debian packages, add the location of our APT to your /etc/apt/sources:

# echo "deb http://pkg.mxe.cc/repos/apt/debian wheezy main" > \
   /etc/apt/sources.list.d/mxeapt.list

Then add our GPG key to APT:

# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB

Update APT cache:

# apt-get update

Install some MXE package:

# apt-get install mxe-i686-w64-mingw32.static-qt

But after donwload the git source and try to make the windows .exe gaves me an error.
Anyone can help me?Thanks.

raygun

  • Administrator
  • Sr. Member
  • *****
  • Posts: 393
    • View Profile
Re: Updtae AM on windows
« Reply #1 on: November 11, 2016, 01:08:03 PM »
Please post the error message that you are getting when you try to build the windows exe.

qqplayer

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
Re: Updtae AM on windows
« Reply #2 on: November 12, 2016, 05:15:36 AM »
I did the following:

Code: [Select]
make MXE_TARGETS='x86_64-w64-mingw32.static' ffmpeg sfml
git clone --depth 1 https://github.com/mickelson/attract attract
cd attract
make -j 3 CROSS=1 TOOLCHAIN=x86_64-w64-mingw32.static WINDOWS_STATIC=1

And gave me this error

Code: [Select]
/bin/sh: 1: x86_64-w64-mingw32.static-pkg-config: not found
/bin/sh: 1: x86_64-w64-mingw32.static-pkg-config: not found
/bin/sh: 1: x86_64-w64-mingw32.static-pkg-config: not found
/bin/sh: 1: x86_64-w64-mingw32.static-pkg-config: not found
/bin/sh: 1: x86_64-w64-mingw32.static-pkg-config: not found
/bin/sh: 1: x86_64-w64-mingw32.static-pkg-config: not found
make: x86_64-w64-mingw32.static-pkg-config: Command not found
/bin/sh: 1: x86_64-w64-mingw32.static-pkg-config: not found
make: x86_64-w64-mingw32.static-pkg-config: Command not found
flags: -DSFML_STATIC  -mconsole -O2 -DNDEBUG -Iextlibs/miniz -Iextlibs/audio/include -D__STDC_CONSTANT_MACROS  -Iextlibs/expat -Iextlibs/squirrel/include -Iextlibs/sqrat/include -Iextlibs/gameswf
fatal: No names found, cannot describe anything.
Compiling obj/fe_base.o...
Compiling obj/fe_util.o...
make: x86_64-w64-mingw32.static-g++: Command not found
make: x86_64-w64-mingw32.static-g++: Command not found
Compiling obj/fe_util_sq.o...
Makefile:412: recipe for target 'obj/fe_base.o' failed
make: *** [obj/fe_base.o] Error 127
make: *** Waiting for unfinished jobs....
Makefile:412: recipe for target 'obj/fe_util.o' failed
make: *** [obj/fe_util.o] Error 127
make: x86_64-w64-mingw32.static-g++: Command not found
Makefile:412: recipe for target 'obj/fe_util_sq.o' failed
make: *** [obj/fe_util_sq.o] Error 127



SomeoneElse

  • Jr. Member
  • **
  • Posts: 10
    • View Profile
Re: Updtae AM on windows
« Reply #3 on: November 15, 2017, 02:51:59 PM »
Ok i hope this helps someone, i got stuck for half hour my self on same problem
untill i figured out that u need to run mingw64 not mingw32 and Not msys2
then it will compile

only problem is that dll files are not included in exe .. .. had to copy tons of them manually

Thanks to people that put all the work put into attract its a lot of fun!
« Last Edit: November 15, 2017, 03:01:55 PM by SomeoneElse »