Author Topic: Linux Compiling of AttractMode  (Read 13852 times)

kleber

  • Guest
Linux Compiling of AttractMode
« on: October 18, 2018, 05:56:07 PM »
Here's the script I have running currently. if anyone is wondering.

Code: [Select]
#!/bin/bash
export PATH=$PATH:/home/user/mxe/usr/bin
now=$(date +"%m_%d_%Y")
x64="attract-64_$now.exe"
x86="attract-86_$now.exe"
x64c="attract-64console_$now.exe"
x86c="attract-86console_$now.exe"
git clone https://github.com/mickelson/attract attract-daily
cd attract-daily
make clean
make -j 6 CROSS=1 TOOLCHAIN=i686-w64-mingw32.static WINDOWS_STATIC=1
mv attract.exe $x86
make clean
make -j 6 CROSS=1 TOOLCHAIN=i686-w64-mingw32.static WINDOWS_STATIC=1 WINDOWS_CONSOLE=1
mv attract.exe $x86c
make clean
make -j 6 CROSS=1 TOOLCHAIN=x86_64-w64-mingw32.static WINDOWS_STATIC=1
mv attract.exe $x64
make clean
make -j 6 CROSS=1 TOOLCHAIN=x86_64-w64-mingw32.static WINDOWS_STATIC=1 WINDOWS_CONSOLE=1
mv attract.exe $x64c
zip attract-daily.zip $x64 $x86 $x64c $x86c
cp attract-daily.zip /media/web/SVFDTN/attract/attract-daily.zip
cd  ..
rm -rf attract-daily

Later,
dabone
hello good night could someone help me copying heim 32 bits because I can only heim 64 bits thank you from ja.


andrego536

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Linux Compiling of AttractMode
« Reply #1 on: November 08, 2018, 05:32:16 AM »
Estou tentando compilar no modo crossfire usando uma imagem vmware do ubuntu 32bits  já segui todas as instruções e não consigo gerar o excultavel
 
Por favor se alguém puder me ajudar eu ficaria muito agradecido 

dabone

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Linux Compiling of AttractMode
« Reply #2 on: November 09, 2018, 07:03:13 AM »
You private messaged me 3 times, but No, I'm not posting a copy of my vm, it has other things on it.

I just followed the instructions from here.

http://attractmode.org/docs/Compile.html

I do recommend a 64bit version of linux.

I'm running Ubuntu Server 16.04.4, cli only, no gui.

The first thing is the install and update the os.

sudo apt-get update

sudo apt-get upgrade


Then install build-essential

sudo apt-get install build-essential.

and make sure git is installed

sudo apt-get install git

Then install mxe package.

https://mxe.cc/#tutorial


This is the hardest part, and probably what you are stuck on.
Also, compiling MXE takes a long time.

sudo apt-get install autoconf automake autopoint bison flex gperf intltool libtool libtool-bin libgtk2.0-dev

git clone https://github.com/mxe/mxe.git
sudo mv mxe /opt/mxe
cd /opt/mxe

make cc
make ffmpeg sfml libarchive

and for 64bit also do

make MXE_TARGETS='x86_64-w64-mingw32.static' ffmpeg sfml

And don't forget to add the path (Step 4) into your .bashrc file (it's in your home directory)


cd ~
nano .bashrc

now find the export path line and add the mxe path to it.
mine looks like this

export PATH=/opt/mxe/usr/bin:$PATHg


Press control x to exit and save .bashrc

now grab attractmode

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

cd attract

for 32 bit compile using this command

make -j 3 CROSS=1 TOOLCHAIN=i686-w64-mingw32.static WINDOWS_STATIC=1

for 64 bit use this command.

make -j 3 CROSS=1 TOOLCHAIN=x86_64-w64-mingw32.static WINDOWS_STATIC=1




This guide may have errors in it, It's been a while since I set this up myself.
« Last Edit: November 11, 2018, 07:01:49 AM by dabone »

andrego536

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Linux Compiling of AttractMode
« Reply #3 on: November 09, 2018, 07:37:55 AM »

Thanks for the tutorial I'll see if I can do it.
I apologize for having sent the same information three times without meaning to