LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-14-2016, 09:39 PM   #1
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Smile No idea what I am doing - Trying to compile ZSnes on x64


Been googling around trying to find a way to get zsnes compiled for x64, since SNES9X keeps crashing when playing any RPG ( :), I found a possible solution but clearly I am not doing it right.

I added this to the slackbuild:
Code:
export CFLAGS=-m32
export CXXFLAGS=-m32
Code:
#!/bin/sh

# Slackware build script for zsnes

# Copyright (c) 2008, Antonio Hernández Blas <hba.nihilismus@gmail.com>
# Copyright (c) 2010, 2012, Carlos Corbacho <carlos@strangeworlds.co.uk>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1.- Redistributions of source code must retain the above copyright
#     notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=zsnes
VERSION=${VERSION:-1.51b}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}

ZSNESSRC="$(echo $VERSION | tr -d .)src"
ZSNESDIR="_$(echo $VERSION | tr . _)"

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then

export CFLAGS=-m32
export CXXFLAGS=-m32

#  printf "\n  Error: $PRGNAM won't compile on $ARCH \n \n"
#  exit 1
#fi

#set -e

rm -rf $PKG
mkdir -p $TMP $PKG/usr $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM$ZSNESSRC.tar.bz2
# Fix the directory tree in zsnes:
mv $PRGNAM$ZSNESDIR $PRGNAM-$VERSION
mv $PRGNAM-$VERSION/src/* $PRGNAM-$VERSION
cd $PRGNAM-$VERSION

# GCC 4.7 fixes from Debian
cat $CWD/0012-Fix-build-with-gcc-4.7.patch | patch -p2 --verbose

chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
force_arch="$ARCH" \
./configure \
  --prefix=/usr \
  --enable-release \
  --disable-cpucheck \
  --disable-debugger

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
force_arch="$ARCH" \
make
make install DESTDIR=$PKG

find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

( cd $PKG/usr/man || exit 1
  find . -type f -exec gzip -9 {} \;
  for i in $(find . -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)

# Add a .desktop file and icon for good menu integration
mkdir -p $PKG/usr/share/{applications,pixmaps}
install -m 0644 $CWD/zsnes.desktop $PKG/usr/share/applications/zsnes.desktop
install -m 0644 $CWD/zsnes.png $PKG/usr/share/pixmaps/zsnes.png

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
Commented out:
Code:
#  printf "\n  Error: $PRGNAM won't compile on $ARCH \n \n"
#  exit 1
#fi

#set -e
But, obviously won't work:
Code:
root@slackmachine:/home/slackuser/zsnes# sh zsnes.SlackBuild 
zsnes.SlackBuild: line 119: syntax error: unexpected end of file
Any clues?
 
Old 04-14-2016, 10:50 PM   #2
Gerardo Zamudio
Member
 
Registered: Jan 2011
Distribution: Slackware
Posts: 128

Rep: Reputation: 112Reputation: 112
The clue is right in the error message: syntax error. The block you have commented out is commenting out line 57, fi. This is the end of the if statement that begins at line 46. The script is waiting for the end of that if statement but it never comes. Just uncomment line 57 and you should be good.
 
Old 04-14-2016, 11:04 PM   #3
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Original Poster
Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Quote:
Originally Posted by Gerardo Zamudio View Post
The clue is right in the error message: syntax error. The block you have commented out is commenting out line 57, fi. This is the end of the if statement that begins at line 46. The script is waiting for the end of that if statement but it never comes. Just uncomment line 57 and you should be good.
Not quite

Code:
root@slackmachine:/home/slackuser/zsnes# sh zsnes.SlackBuild 

  Error: zsnes won't compile on x86_64 
 
root@slackmachine:/home/slackuser/zsnes#
Which has to be because of this:
Code:
elif [ "$ARCH" = "x86_64" ]; then
Should I comment that out? Also any other particular area I should put the export CFLAGS and CXXFLAGS?

Last edited by Jeebizz; 04-14-2016 at 11:06 PM.
 
Old 04-14-2016, 11:07 PM   #4
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Original Poster
Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
I answered my own question, derp

Commended out
Code:
elif [ "$ARCH" = "x86_64" ]; then
And now it is compiling as we speak, whether or not it will actually run though... And yes I am using multilib.
 
Old 04-14-2016, 11:11 PM   #5
Gerardo Zamudio
Member
 
Registered: Jan 2011
Distribution: Slackware
Posts: 128

Rep: Reputation: 112Reputation: 112
Go back and read my post again. Specifically, the last sentence.
 
Old 04-14-2016, 11:11 PM   #6
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Original Poster
Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Nope.....

Well it was a long shot but....

Code:
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libSDL.so when searching for -lSDL
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libpng.a when searching for -lpng
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libstdc++.so when searching for -lstdc++
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libstdc++.a when searching for -lstdc++
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libgcc_s.so when searching for -lgcc_s
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `endmem.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `init.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `vcache.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `ztime.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/c4proc.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/dsp1proc.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/dsp2proc.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/dsp3proc.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/dsp4proc.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/fxemu2.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/fxemu2b.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/fxemu2c.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/fxtable.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/obc1proc.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/sa1proc.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/sa1regs.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/sfxproc.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/st10proc.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/7110proc.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `chips/st11proc.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `cpu/dma.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `cpu/dsp.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `cpu/dspproc.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `cpu/execute.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `cpu/irq.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `cpu/memory.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `cpu/spc700.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `cpu/stable.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `cpu/table.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `cpu/tablec.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `gui/gui.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `gui/menu.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/makev16b.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/makev16t.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/makevid.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/mode716.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/mode716b.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/mode716d.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/mode716e.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/mode716t.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/mode7.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/mode7ext.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/mv16tms.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/m716text.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/newg162.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/newgfx.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/newgfx16.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/newgfx2.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/procvid.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/sw_draw.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/2xsaiw.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/hq2x16.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/hq2x32.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/hq3x16.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/hq3x32.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/hq4x16.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/hq4x32.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `video/copyvwin.o' is incompatible with i386:x86-64 output
/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: i386 architecture of input file `linux/sdlintrf.o' is incompatible with i386:x86-64 output
collect2: error: ld returned 1 exit status
make: *** [main] Error 1
root@slackmachine:/home/slackuser/zsnes#
I've already been searching around the forums at zsnes, supposedly there are 64-bit binaries , but they do not run, and I have not been able to successfully compile any of the other experimental 64-bit code... *sigh*
 
Old 04-15-2016, 01:49 AM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
1. If you're on 14.1 or later then I have something waaay better than ZSNES. And I mean, waaay better:

https://github.com/duganchen/slackware-libretro

2. I'd recommend building 32-bit software (like ZSNES) in a 32-bit CHROOT. There's a fairly good guide here:

http://docs.slackware.com/howtos:gen...ackware_chroot

After the package is built, you run convertpkg-compat32 on it and install it. It should run well then.

Last edited by dugan; 04-15-2016 at 01:59 AM.
 
1 members found this post helpful.
Old 04-15-2016, 01:58 AM   #8
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
ZSnes was only designed to build for IA32 (x86) as most of the project is x86-asm based code. The project is no longer public in development either. Snes9x, Higan, MESS, and RetroArch are still developed an are x64 friendly.

Compat32 should work, but if any changes to NASM or YASM as well as GCC will raise issues and there may not be patches for it either.
 
Old 04-15-2016, 02:02 AM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
Quote:
Originally Posted by ReaperX7 View Post
Snes9x, Higan, MESS, and RetroArch are still developed an are x64 friendly.
The only thing I'd add to that list is mednafen.
 
Old 04-15-2016, 02:08 AM   #10
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Original Poster
Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Higan is useless, it sees the roms, but thats it. It won't open anything, guess I'll try libretro. I liked ZSnes' features, particularly the ability to FF and REW during the game, Snes9x doesn't really do that, or it least I have yet to see the feature actually work. I have had limited success with some roms, but they are all not very complex, but any RPG I play it immediately crashes when there is about to be a battle.

ZSnes was solid, but it is a shame that it is pretty much dead.

This is the only thing I'm missing, besides a good SNES emulator, is a Genesis/SegaCD emulator (Gens but again no longer being worked on), Playstation, Epsxe is great, but can't get it to work in Linux, so there is psxcr but it doesn't actually work with my controller, even though it 'sees' it. I am using a PS2 controller with a usb adapter, works fine in Snes9x. As for NES, FCEUX works just fine, but still no real solid SNES emulator. *sigh*

Last edited by Jeebizz; 04-15-2016 at 02:10 AM.
 
1 members found this post helpful.
Old 04-15-2016, 02:30 AM   #11
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Quote:
Originally Posted by Jeebizz View Post
Higan is useless, it sees the roms, but thats it. It won't open anything, guess I'll try libretro. I liked ZSnes' features, particularly the ability to FF and REW during the game, Snes9x doesn't really do that, or it least I have yet to see the feature actually work. I have had limited success with some roms, but they are all not very complex, but any RPG I play it immediately crashes when there is about to be a battle.

ZSnes was solid, but it is a shame that it is pretty much dead.

This is the only thing I'm missing, besides a good SNES emulator, is a Genesis/SegaCD emulator (Gens but again no longer being worked on), Playstation, Epsxe is great, but can't get it to work in Linux, so there is psxcr but it doesn't actually work with my controller, even though it 'sees' it. I am using a PS2 controller with a usb adapter, works fine in Snes9x. As for NES, FCEUX works just fine, but still no real solid SNES emulator. *sigh*
Why don't you just buy the real "things"? It is so much more fun and nostalgic and no more emulators needed!
 
Old 04-15-2016, 02:37 AM   #12
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Original Poster
Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Quote:
Originally Posted by Bindestreck View Post
Why don't you just buy the real "things"? It is so much more fun and nostalgic and no more emulators needed!
Because reasons, also main problem is since I don't have anymore CRTs I can look forward to a poorly scaled image and no scanlines. Yea sure I am also emulating on a PC with a flatscreen too, but emulators offer scanlines to offset detail. The only physical console I have, is my beloved 3DO, but its practically dead, and when it did work, it was poor quality on my tv (flatscreen). There are upscaling devices and such out there, but again, seems just as much trouble anyways.

Last edited by Jeebizz; 04-15-2016 at 02:38 AM.
 
Old 04-15-2016, 03:09 AM   #13
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Quote:
Originally Posted by Jeebizz View Post
Because reasons, also main problem is since I don't have anymore CRTs I can look forward to a poorly scaled image and no scanlines. Yea sure I am also emulating on a PC with a flatscreen too, but emulators offer scanlines to offset detail. The only physical console I have, is my beloved 3DO, but its practically dead, and when it did work, it was poor quality on my tv (flatscreen). There are upscaling devices and such out there, but again, seems just as much trouble anyways.
Where do you live? I haven't yet found any problem to get any CRT, I think it is easier than to find a good emulator. Super Scope or Zapper, two reasons to get an CRT
 
Old 04-15-2016, 03:40 AM   #14
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Quote:
Originally Posted by Jeebizz View Post
Higan is useless, it sees the roms, but thats it. It won't open anything, guess I'll try libretro. I liked ZSnes' features, particularly the ability to FF and REW during the game, Snes9x doesn't really do that, or it least I have yet to see the feature actually work. I have had limited success with some roms, but they are all not very complex, but any RPG I play it immediately crashes when there is about to be a battle.

ZSnes was solid, but it is a shame that it is pretty much dead.

This is the only thing I'm missing, besides a good SNES emulator, is a Genesis/SegaCD emulator (Gens but again no longer being worked on), Playstation, Epsxe is great, but can't get it to work in Linux, so there is psxcr but it doesn't actually work with my controller, even though it 'sees' it. I am using a PS2 controller with a usb adapter, works fine in Snes9x. As for NES, FCEUX works just fine, but still no real solid SNES emulator. *sigh*
Higan works just fine. Did you use the tool they provide to import the ROMs into the system properly?
 
Old 04-15-2016, 05:15 AM   #15
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
see pcsxr for playstation
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] slackware 14.1 x64 xulrunner wont compile dumdadum Slackware 15 09-06-2014 09:13 PM
FFMPEG for APACHE 2.4.6 (x64), PHP 5.5 (x64), MYSQL 5.6 (x64) on WINDOWS 8 (x64) Punctual Programming 3 08-07-2013 05:20 PM
Can't compile in Slackware 13.1 x64 chaoschief Slackware 2 12-15-2010 07:01 PM
12.1 + ZSnes = Compile Errors Daedra Slackware 3 05-04-2008 01:18 PM
kernel 2.6.11 smp x64 compile not working meangene72 Fedora 0 11-26-2005 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration