Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: iOtero on June 03, 2018, 04:09:53 AM

Title: Help to compile attract-mode in windows 10 64bits
Post by: iOtero on June 03, 2018, 04:09:53 AM
I have followed these steps of compile.md without error messages:

Install MSYS2 https://msys2.github.io/

In the MSYS2 console:

Code: [Select]

pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime

pacman -S git mingw-w64-x86_64-toolchain msys/make mingw64/mingw-w64-x86_64-sfml mingw64/mingw-w64-x86_64-ffmpeg mingw64/mingw-w64-x86_64-libarchive

git clone https://github.com/mickelson/attract attract

cd attract


And when I run make, it gives me these errors (my system is Spanish):

Code: [Select]
$ make
/bin/sh: pkg-config: no se encontró la orden
/bin/sh: pkg-config: no se encontró la orden
/bin/sh: pkg-config: no se encontró la orden
make: pkg-config: No se encontró el programa
make: pkg-config: No se encontró el programa
flags: -Wl,--subsystem,windows -O2 -DNDEBUG -Iextlibs/miniz -Iextlibs/audio/include -D__STDC_CONSTANT_MACROS  -Iextlibs/expat -Iextlibs/squirrel/include -Iextlibs/sqrat/include -Iextlibs/gameswf
mkdir -p obj
Compiling obj/fe_base.o...
make: g++: No se encontró el programa
make: *** [Makefile:457: obj/fe_base.o] Error 127

TRANS:

no se encontró la orden --> the order was not found

No se encontró el programa --> The program was not found

I need help, please.
Title: Re: Help compiling attract-mode in windows 10 64bits
Post by: iOtero on June 05, 2018, 10:52:04 AM
Nobody can help me?  :'(
Title: Re: Help to compile attract-mode in windows 10 64bits
Post by: progets on June 06, 2018, 10:13:28 PM
Compiling AttractMode on Windows requires the use of many .dll files once complete. Because of this I don't think many people do it. The recommend method is to cross compile using Linux since it a cleaner build that doesn't require outside dependencies.

https://github.com/mickelson/attract/blob/v2.3.0/Compile.md (https://github.com/mickelson/attract/blob/v2.3.0/Compile.md)

I know this doesn't answer your question but can explain the lack of response. I think I've seen currently compiled Windows versions of AttractMode on Discord which might be a better option if you can't compile in Linux.
Title: Re: Help to compile attract-mode in windows 10 64bits
Post by: Oomek on June 07, 2018, 07:04:50 AM
Two weeks ago I asked myself, is it possible to compile AM natively using the Visual Studio compiler ( not just by using VS IDE as a wrapper for make from msys) so I opened the project and started squishing those tons of errors. I gave up after 3 days.
It’s way over my single head, but what If I posted it on github so anyone can contribute? Maybe it’s doable?
Title: Re: Help to compile attract-mode in windows 10 64bits
Post by: qqplayer on June 07, 2018, 07:56:14 AM
Compiling AttractMode on Windows requires the use of many .dll files once complete. Because of this I don't think many people do it. The recommend method is to cross compile using Linux since it a cleaner build that doesn't require outside dependencies.

https://github.com/mickelson/attract/blob/v2.3.0/Compile.md (https://github.com/mickelson/attract/blob/v2.3.0/Compile.md)

I know this doesn't answer your question but can explain the lack of response. I think I've seen currently compiled Windows versions of AttractMode on Discord which might be a better option if you can't compile in Linux.



So... any step by step "for dummies" on linux?
I mean I´ve tried cross-compile too but set an mxe enviroment is not like "sudo apt-get install..."

http://forum.attractmode.org/index.php?topic=1061.msg7821#msg7821
Title: Re: Help to compile attract-mode in windows 10 64bits
Post by: iOtero on June 07, 2018, 10:07:45 AM
What Mickelson could do - or another person who knows, can and wants to do it - is to make a "nightly" version and upload it to the server. That has not had any version for a long time.

More than anything because having the "per_playlist" option is very important. And to know when the next version of attract-mode will be available...

Sorry for my very bad english.  :-[
Title: Re: Help to compile attract-mode in windows 10 64bits
Post by: IceLancer on June 17, 2018, 12:12:19 PM
Two weeks ago I asked myself, is it possible to compile AM natively using the Visual Studio compiler ( not just by using VS IDE as a wrapper for make from msys) so I opened the project and started squishing those tons of errors. I gave up after 3 days.
It’s way over my single head, but what If I posted it on github so anyone can contribute? Maybe it’s doable?

I don't think it could be done easily, i also spent couple days in attempt to compile "natively" with only one result a massive headache and i gave up at the end
Title: Re: Help to compile attract-mode in windows 10 64bits
Post by: progets on June 17, 2018, 12:47:15 PM
I haven't compiled on Windows for over a year. I don't remember it being that difficult. I do remember that you had to deal with dozens of .dll files which I didn't like. You had two choices, copy all of the .dll files to the AttractMode directory or set a "path" in the OS to point to all of the .dll files.

Are you guys taking these .dll files into account? A Windows compiled build will not work without them.
Title: Re: Help to compile attract-mode in windows 10 64bits
Post by: Oomek on June 17, 2018, 01:13:46 PM
I’m pretty sure you are refering to building with mingw. I’m talking about native VS compiler.
Title: Re: Help to compile attract-mode in windows 10 64bits
Post by: progets on June 17, 2018, 06:45:32 PM
I’m pretty sure you are refering to building with mingw. I’m talking about native VS compiler.

Yes, that's correct but it's what is mentioned in the original post.
Title: Re: Help to compile attract-mode in windows 10 64bits
Post by: Oomek on June 17, 2018, 07:01:08 PM
I’m pretty sure you are refering to building with mingw. I’m talking about native VS compiler.

Yes, that's correct but it's what is mentioned in the original post.

Well, that's embarrassing , I indeed forgot what the first post was about :)
Title: Re: Help to compile attract-mode in windows 10 64bits
Post by: dabone on July 10, 2018, 03:53:24 PM
Daily compile.

See here.


http://forum.attractmode.org/index.php?topic=2324.0 (http://forum.attractmode.org/index.php?topic=2324.0)

Title: Re: Help to compile attract-mode in windows 10 64bits
Post by: scooter1974 on July 10, 2018, 06:41:16 PM
Daily compile.

See here.


http://forum.attractmode.org/index.php?topic=2324.0 (http://forum.attractmode.org/index.php?topic=2324.0)

Thank you very much!