Trouble Compiling Emulator Software on Raspberry Pi Zero

General discussion forum - for all that doesn't fit in any other category.
Post Reply
Ttz0019
Posts: 10
Joined: Tue May 21, 2019 11:03 pm

Trouble Compiling Emulator Software on Raspberry Pi Zero

Post by Ttz0019 » Thu Jun 27, 2019 6:23 pm

Hey Y'all, I've tried my best to follow instructions on compiling the Floppy Emulator for raspberry pi, and have made progress with several dependencies and the like. But I keep running into a fatal error in which I am missing the 'libhxcfe.h' file. I've followed the filepath and found the 'hxcfe.c' file, but obviously that is different. I'll attach the console text below. Has anyone seen this and know how to fix it?

Thanks
------------------------

pi@raspberrypi:~/Downloads/HxC/slim/HxCFloppyEmulator/HxCFloppyEmulator_software/trunk/build $ make
g++ -o main.o -c ../sources/main.cxx -O3 -I ../sources -I ../../../libhxcfe/trunk/sources -I ../sources/ -I ../sources/gui -I ../sources/thirdpartylibs/fltk/fltk-1.3.x/ -I ../../../libusbhxcfe/trunk/sources -I ../../../libhxcadaptor/trunk/sources -I ../sources/gui/microintro/ -Wall
../sources/main.cxx:50:22: fatal error: libhxcfe.h: No such file or directory
#include "libhxcfe.h"
^
compilation terminated.
Makefile:69: recipe for target 'main.o' failed
make: *** [main.o] Error 1

Jeff
Site Admin
Posts: 6352
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Trouble Compiling Emulator Software on Raspberry Pi Zero

Post by Jeff » Mon Jul 01, 2019 7:48 am

Ttz0019 wrote:
Thu Jun 27, 2019 6:23 pm
Hey Y'all, I've tried my best to follow instructions on compiling the Floppy Emulator for raspberry pi, and have made progress with several dependencies and the like. But I keep running into a fatal error in which I am missing the 'libhxcfe.h' file. I've followed the filepath and found the 'hxcfe.c' file, but obviously that is different. I'll attach the console text below. Has anyone seen this and know how to fix it?

Thanks
------------------------

pi@raspberrypi:~/Downloads/HxC/slim/HxCFloppyEmulator/HxCFloppyEmulator_software/trunk/build $ make
g++ -o main.o -c ../sources/main.cxx -O3 -I ../sources -I ../../../libhxcfe/trunk/sources -I ../sources/ -I ../sources/gui -I ../sources/thirdpartylibs/fltk/fltk-1.3.x/ -I ../../../libusbhxcfe/trunk/sources -I ../../../libhxcadaptor/trunk/sources -I ../sources/gui/microintro/ -Wall
../sources/main.cxx:50:22: fatal error: libhxcfe.h: No such file or directory
#include "libhxcfe.h"
^
compilation terminated.
Makefile:69: recipe for target 'main.o' failed
make: *** [main.o] Error 1
go to the "/Downloads/HxC/slim/HxCFloppyEmulator/build" folder and launch a "make"

Ttz0019
Posts: 10
Joined: Tue May 21, 2019 11:03 pm

Re: Trouble Compiling Emulator Software on Raspberry Pi Zero

Post by Ttz0019 » Mon Jul 01, 2019 6:26 pm

Launching make from that directory results in the following error:

-----

pi@raspberrypi:~/Downloads/HxC/slim/HxCFloppyEmulator/HxCFloppyEmulator_software/trunk/build $ make
g++ -o main.o -c ../sources/main.cxx -O3 -I ../sources -I ../../../libhxcfe/trunk/sources -I ../sources/ -I ../sources/gui -I ../sources/thirdpartylibs/fltk/fltk-1.3.x/ -I ../../../libusbhxcfe/trunk/sources -I ../../../libhxcadaptor/trunk/sources -I ../sources/gui/microintro/ -Wall
../sources/main.cxx:50:22: fatal error: libhxcfe.h: No such file or directory
#include "libhxcfe.h"
^
compilation terminated.
Makefile:69: recipe for target 'main.o' failed
make: *** [main.o] Error 1

Ttz0019
Posts: 10
Joined: Tue May 21, 2019 11:03 pm

Re: Trouble Compiling Emulator Software on Raspberry Pi Zero

Post by Ttz0019 » Mon Jul 01, 2019 7:48 pm

I reread my reply and realized I had copied the wrong command and output. Here's the correct one.

------------------------

pi@raspberrypi:~/Downloads/HxC/slim/HxCFloppyEmulator/build $ make
make -C ../libhxcadaptor/trunk/build/
make[1]: Entering directory '/home/pi/Downloads/HxC/slim/HxCFloppyEmulator/libhxcadaptor/trunk/build'
gcc -o libhxcadaptor.o -c ../sources/libhxcadaptor.c -O3 -I../sources/ -I ../../../libhxcfe/trunk/sources -I ../../../libusbhxcfe/trunk/sources -Wall -fPIC -Wl,-Map,foo.map
../sources/libhxcadaptor.c:69:31: fatal error: internal_libhxcfe.h: No such file or directory
#include "internal_libhxcfe.h"
^
compilation terminated.
Makefile:38: recipe for target 'libhxcadaptor.o' failed
make[1]: *** [libhxcadaptor.o] Error 1
make[1]: Leaving directory '/home/pi/Downloads/HxC/slim/HxCFloppyEmulator/libhxcadaptor/trunk/build'
Makefile:4: recipe for target 'libhxcadaptor' failed
make: *** [libhxcadaptor] Error 2

Ttz0019
Posts: 10
Joined: Tue May 21, 2019 11:03 pm

Re: Trouble Compiling Emulator Software on Raspberry Pi Zero

Post by Ttz0019 » Mon Jul 01, 2019 10:19 pm

Well, I think I finally made a breakthrough. After struggling for far longer than I care to admit, I ended up deleting the files and starting from scratch. Maybe it had to do with how I downloaded my files on my laptop and transferred them on a flash drive, but this time I used the subversion checkout function and it seems to be compiling past the initial steps at least.

We can delete this thread or leave it up in case someone else has this issue. Thanks for your patience.

Ttz0019
Posts: 10
Joined: Tue May 21, 2019 11:03 pm

Re: Trouble Compiling Emulator Software on Raspberry Pi Zero

Post by Ttz0019 » Fri Jul 12, 2019 3:53 pm

Might as well tack this on here if you don't mind. Can I use the Linux command line to convert all the contents of an .hfe file? I'm pretty new to raspberry pi, linux, and python, but the wildcard "*" doesn't allow me to manipulate files like I can with a cp, mv, or rm command. Will I need to save the output of "./ hxcfe -list" into a string, manipulate out all of the file names, and run "-getfile" for each?

Jeff
Site Admin
Posts: 6352
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Trouble Compiling Emulator Software on Raspberry Pi Zero

Post by Jeff » Thu Jul 18, 2019 1:09 pm

Ttz0019 wrote:
Fri Jul 12, 2019 3:53 pm
Might as well tack this on here if you don't mind. Can I use the Linux command line to convert all the contents of an .hfe file? I'm pretty new to raspberry pi, linux, and python, but the wildcard "*" doesn't allow me to manipulate files like I can with a cp, mv, or rm command. Will I need to save the output of "./ hxcfe -list" into a string, manipulate out all of the file names, and run "-getfile" for each?
What do you want to do exactly ?

Post Reply