Author Topic: Help to compile attract-mode in windows 10 64bits  (Read 8009 times)

iOtero

  • Sr. Member
  • ****
  • Posts: 414
    • View Profile
Help to compile attract-mode in windows 10 64bits
« 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.
« Last Edit: June 05, 2018, 11:24:12 AM by zlagos »
Nacer a los 15 años Una novela de iOtero

iOtero

  • Sr. Member
  • ****
  • Posts: 414
    • View Profile
Re: Help compiling attract-mode in windows 10 64bits
« Reply #1 on: June 05, 2018, 10:52:04 AM »
Nobody can help me?  :'(
Nacer a los 15 años Una novela de iOtero

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Help to compile attract-mode in windows 10 64bits
« Reply #2 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

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.

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: Help to compile attract-mode in windows 10 64bits
« Reply #3 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?
« Last Edit: June 07, 2018, 07:07:35 AM by Oomek »

qqplayer

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
Re: Help to compile attract-mode in windows 10 64bits
« Reply #4 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

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
« Last Edit: June 07, 2018, 07:59:35 AM by qqplayer »

iOtero

  • Sr. Member
  • ****
  • Posts: 414
    • View Profile
Re: Help to compile attract-mode in windows 10 64bits
« Reply #5 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.  :-[
« Last Edit: June 08, 2018, 04:34:58 AM by zlagos »
Nacer a los 15 años Una novela de iOtero

IceLancer

  • Full Member
  • ***
  • Posts: 44
    • View Profile
Re: Help to compile attract-mode in windows 10 64bits
« Reply #6 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

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Help to compile attract-mode in windows 10 64bits
« Reply #7 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.
« Last Edit: June 18, 2018, 01:10:15 AM by progets »

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: Help to compile attract-mode in windows 10 64bits
« Reply #8 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.

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Help to compile attract-mode in windows 10 64bits
« Reply #9 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.

Oomek

  • Administrator
  • Sr. Member
  • *****
  • Posts: 311
  • Radek Dutkiewicz
    • View Profile
    • github.com/oomek
Re: Help to compile attract-mode in windows 10 64bits
« Reply #10 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 :)

dabone

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Help to compile attract-mode in windows 10 64bits
« Reply #11 on: July 10, 2018, 03:53:24 PM »

scooter1974

  • Jr. Member
  • **
  • Posts: 15
    • View Profile