Building HxCFloppyEmulator on Linux

Everything related to using the HxC Floppy Emulator hardware on your Atari.

Moderators: mr.vince, DrCoolZic, Moderator Team

Gunstick
Captain Atari
Captain Atari
Posts: 245
Joined: Thu Jun 20, 2002 6:49 pm
Location: Luxembourg
Contact:

Building HxCFloppyEmulator on Linux

Postby Gunstick » Thu Mar 17, 2016 9:40 am

Hi

this is initially tested on a debian based, linux 64bit system. Based on this http://torlus.com/floppy/forum/viewtopic.php?f=2&t=1390 with quite some additions by me.

Code: Select all

# prepare your linux
sudo apt-get install build-essential linux-headers-$(uname -r) libncurses5-dev libx11-dev subversion

# get HxC
svn checkout svn://svn.code.sf.net/p/hxcfloppyemu/code/ hxcfloppyemu-code
# patch the source code
sed -i 's/-lX11/-lX11 -lXext -lXfixes/' hxcfloppyemu-code/HxCFloppyEmulator/HxCFloppyEmulator_software/trunk/build/Makefile

# get FLT
svn --no-auth-cache --username="" --password="" \
   checkout http://seriss.com/public/fltk/fltk/branches/branch-1.3/ fltk-1.3   # http://www.fltk.org/software.php#SVN
cp -pr fltk-1.3/* hxcfloppyemu-code/HxCFloppyEmulator/HxCFloppyEmulator_software/trunk/sources/thirdpartylibs/fltk/fltk-1.3.x/

# build
cd hxcfloppyemu-code/HxCFloppyEmulator/build/
make 

# create usable callers
cat > hxcfe.sh <<"EOF"
#!/bin/bash
cd "$(dirname "$0")"
exec ./hxcfe "$@"
EOF
chmod 755 hxcfe.sh

cat > hxcfloppyemulator.sh <<"EOF"
#!/bin/bash
cd "$(dirname "$0")"
exec ./hxcfloppyemulator "$@"
EOF
chmod 755 hxcfloppyemulator.sh



You can now call hxcfe.sh and hxcfloppyemulator.sh from anywhere without changing to the build directory first.

Gunstick
Captain Atari
Captain Atari
Posts: 245
Joined: Thu Jun 20, 2002 6:49 pm
Location: Luxembourg
Contact:

Re: Building HxCFloppyEmulator on Linux

Postby Gunstick » Thu Mar 17, 2016 9:51 am

Usage Gui:

Usual problem besides converting an MSA or ST to HXC is to quickly get a program to the ST

call hxcfloppyemulator.sh

click on "Disk Browser"

in new window, click on Create Disk

surprise, "get files" does not let you chose files. But drag/drop works.
so open a file browser. I used nautilus (gnome default) and dragged my *.TOS files over.

when floppy image is as you like, click on "save/export" (you can directly write to the SD card if you insert it before)

User avatar
Eero Tamminen
Atari God
Atari God
Posts: 1455
Joined: Sun Jul 31, 2011 1:11 pm

Re: Building HxCFloppyEmulator on Linux

Postby Eero Tamminen » Thu Mar 17, 2016 11:27 pm

You don't need Bash, if you use standard Posix shell string operations. This (untested) script can be used both as hxcfe.sh & hxcfloppyemulator.sh:

Code: Select all

#!/bin/sh
cd "${0%/*}"
exec "${0%.sh}" "$@"

Jeff_HxC2001
Captain Atari
Captain Atari
Posts: 289
Joined: Fri Sep 21, 2007 7:35 pm
Location: Paris - France
Contact:

Re: Building HxCFloppyEmulator on Linux

Postby Jeff_HxC2001 » Fri Mar 18, 2016 6:33 am

Gunstick wrote:surprise, "get files" does not let you chose files. But drag/drop works.
so open a file browser. I used nautilus (gnome default) and dragged my *.TOS files over.

when floppy image is as you like, click on "save/export" (you can directly write to the SD card if you insert it before)


Not a surprise : Get files is used to extract files from the image, not to add files to the image :wink:.

BTW On Linux Mint i don't have to modify the Makefile. Why do you need to do this ?

Gunstick
Captain Atari
Captain Atari
Posts: 245
Joined: Thu Jun 20, 2002 6:49 pm
Location: Luxembourg
Contact:

Re: Building HxCFloppyEmulator on Linux

Postby Gunstick » Sat Mar 19, 2016 2:54 pm

Jeff_HxC2001 wrote:
BTW On Linux Mint i don't have to modify the Makefile. Why do you need to do this ?


Because else it's not compiling the GUI.
When linking, I get errors like
undefined reference to `XFixesQueryExtension' -
undefined reference to `XdbeQueryExtension'

And google says that those are defined in separate libraries :-)
I also use linux mint, but it's LMDE1 and bloody updates don't work anymore. I will go to xubuntu.

Code: Select all

$ lsb_release -a
No LSB modules are available.
Distributor ID:   LinuxMint
Description:   LMDE Cinnamon Edition
Release:   1
Codename:   debian

Gunstick
Captain Atari
Captain Atari
Posts: 245
Joined: Thu Jun 20, 2002 6:49 pm
Location: Luxembourg
Contact:

Re: Building HxCFloppyEmulator on Linux

Postby Gunstick » Sat Mar 19, 2016 2:56 pm

Eero Tamminen wrote:You don't need Bash, if you use standard Posix shell string operations. This (untested) script can be used both as hxcfe.sh & hxcfloppyemulator.sh:

Code: Select all

#!/bin/sh
cd "${0%/*}"
exec "${0%.sh}" "$@"


Yeah I know, I was just too lazy to make it generic. Falling back to 1980 mode. In that sense it's compatible with old school Atari spirit, haha.

Gunstick
Captain Atari
Captain Atari
Posts: 245
Joined: Thu Jun 20, 2002 6:49 pm
Location: Luxembourg
Contact:

Re: Building HxCFloppyEmulator on Linux

Postby Gunstick » Fri Feb 24, 2017 6:52 pm

This thread should feature a command line example how to convert an ST or MSA file to HFE.

I searched for this info here and only found my own thead how to build the software, but not how to use the command line.
The moment I know again, I will put that here.


Social Media

     

Return to “HxC Floppy Emulator”

Who is online

Users browsing this forum: No registered users and 2 guests