Building HxCFloppyEmulator on Windows

Everything related to using the HxC Floppy Emulator hardware on your Atari.
Post Reply
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Building HxCFloppyEmulator on Windows

Post by DrCoolZic »

Not sure this is the right place to ask (HxC forum?) so let me know ...

I would like to build HxC on windows platform using Visual Studio. I am currently using version 2012
I have downloaded the project from sourcforge using TurtoiseSVN / VisualSVN (under VS).

I have tried to build and the project file have been converted to VS2012 but build fails...
The first question is that the FLTK source is missing. I can download this but I could benefit from information on how to organized the source tree. Seems like each "project" uses brach/tags/trunk sub-directories ...

Is there somewhere a small doc that explain how to build HxC on Windows with VS?
Jeff_HxC2001
Captain Atari
Captain Atari
Posts: 392
Joined: Fri Sep 21, 2007 7:35 pm
Location: Paris - France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by Jeff_HxC2001 »

DrCoolZic wrote:Not sure this is the right place to ask (HxC forum?) so let me know ...

I would like to build HxC on windows platform using Visual Studio. I am currently using version 2012
I have downloaded the project from sourcforge using TurtoiseSVN / VisualSVN (under VS).

I have tried to build and the project file have been converted to VS2012 but build fails...
The first question is that the FLTK source is missing. I can download this but I could benefit from information on how to organized the source tree. Seems like each "project" uses brach/tags/trunk sub-directories ...

Is there somewhere a small doc that explain how to build HxC on Windows with VS?
I currently use VS C 6.0 for compatibility reasons with older Windows machines.
For FLTK you have just to copy the FLTK 1.3.3 sources into the HxCFloppyEmulator_software\trunk\sources\thirdpartylibs\fltk\fltk-1.3.x folder.
Then open HxCFloppyEmulator_software\trunk\build\HxCFloppyEmulatorGUI.dsw and make a batch build in release of all subprojects.

Yesterday i tried it on VS Express 2013, and i have corrected some stuff to make it compile with this version.
Open HxCFloppyEmulatorGUI.dsw, convert all project to VS2013 (or VS2012). Since the project dependencies are not yet defined with this version of VS2013 you have to manually compile each project in this order:

expat_static (in release!) -> libhxcadaptor -> libhxcfe (the hxc fe core) -> libusbhxcfe (the usb hxc fe "driver") -> hxcfe
(command line version) -> fltk -> HxCFloppyEmulatorGUI.

Then you should have a working hxc fe tool.
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by DrCoolZic »

Thanks it works - What I did and few questions

Preparation:
  • Updated HxCFloopyEmulator source at revision 1226
  • Download latest fltk
  • Copy the content of the fltk-1.3.3 folder in the HxCFloppyEmulator\HxCFloppyEmulator_software\trunk\sources\thirdpartylibs\fltk\fltk-1.3.x folder
  • Goto HxCFloppyEmulator\HxCFloppyEmulator_software\trunk\build
Build:
  • Open HxCFloppyEmulatorGUI.dsw with VS CE 2013 accept the one way upgrade
  • In the hxcfebuil solution created dependencies for following projects
  • libhxcadaptor depends on expat_static
  • libhxcfe depends on expat_static + libhxcadaptor
  • libusbhxcfe depends on expat_static + libhxcadaptor + libhxcfe
  • hxcfe depends on expat_static + libhxcadaptor + libhxcfe + libusbhxcfe
  • HxCFloppyEmulatorGUI depends fltk + expat_static + libhxcadaptor + libhxcfe + libusbhxcfe + hxfe
  • Finaly build release: HxCFloppyEmulatorGUI and getting a working HxCFloppyEmulatorGUI.exe (v2.0.30.0)
I guess this is equivalent to HxCFloppyEmulator.exe released?
So all the above build correctly

However the following do not build
  • ADFOpus: error RC2104: undefined keyword or key name: IDC_STATIC
  • Gui: error : 0x2 trying to open file <vfdmsg> + error RC1015: cannot open include file 'vfdmsg.rc'.
  • lib: same error as above
The following build correctly but do not know if useful?
  • Staticlib, xDMS, Zlib
You do not have the required permissions to view the files attached to this post.
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by DrCoolZic »

Seems like some problem on building ...

Start from scratch (clean solution)
- Build debug gives 4 errors in the linker (sometimes 10???)

Building in release mode (that works) and after building in debug mode gives 20 errors???
seems like directories for debug/release might not be separated correctly?

Building debug then release also fails with 14 errors?
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by DrCoolZic »

I have updated to build 1283 and tried torebuild HxC but it fails with missing files linker error blablabla

Is there an easy way to get latest sources and build with Visual Studio 2013 Community Edition ?
Something that would work immediately in Release/Debug mode?

I have tried the procedure you describe above but could not make it work this time?
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by DrCoolZic »

as the build in GUI did not contain the other modules I have tried
the hxcfebuild.dsw in HxCFloppyEmulator\build now I can see all "subproject" but when icompile i am getting hundreds of errors?

GUI alone is 2132 errors?
Jeff_HxC2001
Captain Atari
Captain Atari
Posts: 392
Joined: Fri Sep 21, 2007 7:35 pm
Location: Paris - France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by Jeff_HxC2001 »

As i said you, I currently use Visual Studio C 6.0 for compatibility reasons with older Windows machines. I have a lot of customers with XP, Windows 2000 and even Windows 98 machines...

The VS2013 converter seems to mixup the compilation order while converting the VS 6.0 project.

Since i don't commit any VS2013 project file, you have to reconvert the VS 6.0 project present on SVN because i have added some files into the project.

Otherwise here is the latest snapshot build :
http://hxc2001.com/download/floppy_driv ... t_beta.zip
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by DrCoolZic »

Jeff_HxC2001 wrote:Since i don't commit any VS2013 project file, you have to reconvert the VS 6.0 project present on SVN because i have added some files into the project.
This is what I have done. I will retry and let you know :)
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by DrCoolZic »

using the HxCFloppyEmulatorGUI.dsw convertion definitively does not work anymore
Only the GUI project is found in solution and build fails with 2032 errors.

using hxcfebuild.dsw from HxCFloppyEmulator\build
Does find 13 project in the solution which seems more reasonable ..
However when I try to build expat_static in release mode it fails with 283 errors + 128 warnings
and same for almost all others except fltk that builds correctly ...

will still try to understand what is wrong?
but procedure given above definitively does not work anymore :(
Jeff_HxC2001
Captain Atari
Captain Atari
Posts: 392
Joined: Fri Sep 21, 2007 7:35 pm
Location: Paris - France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by Jeff_HxC2001 »

DrCoolZic wrote:using the HxCFloppyEmulatorGUI.dsw convertion definitively does not work anymore
Only the GUI project is found in solution and build fails with 2032 errors.

using hxcfebuild.dsw from HxCFloppyEmulator\build
Does find 13 project in the solution which seems more reasonable ..
However when I try to build expat_static in release mode it fails with 283 errors + 128 warnings
and same for almost all others except fltk that builds correctly ...

will still try to understand what is wrong?
but procedure given above definitively does not work anymore :(
Without the error it's hard to figure out why, but i suppose that VS 2013 is not C99 compliant...
When possible i will try this on the the only W7 machine i have here. ;)
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by DrCoolZic »

it was compiling on VS2013 with rev 1226 of HxC but it is broken with rev 1283
To get so many error it is probably a stupid mistake from my part that does not set correct #define somewhere?
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by DrCoolZic »

Any progress on making software build on VS2013 / VS 2015
Just downloaded revision 1316 and apart from fltk none of the subprojects build :(
Jeff_HxC2001
Captain Atari
Captain Atari
Posts: 392
Joined: Fri Sep 21, 2007 7:35 pm
Location: Paris - France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by Jeff_HxC2001 »

DrCoolZic wrote:Any progress on making software build on VS2013 / VS 2015
Just downloaded revision 1316 and apart from fltk none of the subprojects build :(
No sorry.
BTW VS2013/VS2015 builds are incompatible with older version of Windows (XP...), which is quite problematic.
Jeff_HxC2001
Captain Atari
Captain Atari
Posts: 392
Joined: Fri Sep 21, 2007 7:35 pm
Location: Paris - France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by Jeff_HxC2001 »

DrCoolZic wrote:Any progress on making software build on VS2013 / VS 2015
Just downloaded revision 1316 and apart from fltk none of the subprojects build :(
The build is now working.

-> Checkout the repository
-> Unpack this http://www.fltk.org/software.php?VERSIO ... rce.tar.gz to the HxCFloppyEmulator_software\trunk\sources\thirdpartylibs\fltk\fltk-1.3.x folder.
-> Open the build\hxcfebuild.dsw file with VS2015.
-> Let it convert all the subprojects.
-> Once done you can build HxCFloppyEmulatorGUI. All the dependencies are set so all others libs will be builded too.

Note : VS2015 seems to choose Windows 8.1 as target by default... So you have to change this setting in each subproject if you want to be able to run the software on Win XP / Win 7, otherwise you will get the missing CreateFile2 missing error...
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by DrCoolZic »

Jeff_HxC2001 wrote:
DrCoolZic wrote:Any progress on making software build on VS2013 / VS 2015
Just downloaded revision 1316 and apart from fltk none of the subprojects build :(
The build is now working.

-> Checkout the repository
-> Unpack this http://www.fltk.org/software.php?VERSIO ... rce.tar.gz to the HxCFloppyEmulator_software\trunk\sources\thirdpartylibs\fltk\fltk-1.3.x folder.
-> Open the build\hxcfebuild.dsw file with VS2015.
-> Let it convert all the subprojects.
-> Once done you can build HxCFloppyEmulatorGUI. All the dependencies are set so all others libs will be builded too.

Note : VS2015 seems to choose Windows 8.1 as target by default... So you have to change this setting in each subproject if you want to be able to run the software on Win XP / Win 7, otherwise you will get the missing CreateFile2 missing error...
Thanks very much
I am travelling today and wont be able to test before I return next week.
I will let you know :)
Thanks again
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by DrCoolZic »

I had time to test yesterday and ... it compiles perfectly.
So many thanks

For information ADFOpus, gui, and lib projects do not build but does not seems to hurt :)

Other question when I run HxCFloppyEmulatorGUI.exe a console window open and then the GUI appears. I can leave with that but is there a flag so the console does not show up as in the version you release?
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Post by DrCoolZic »

FYI exciting November update for visual C++
http://www.theregister.co.uk/2015/10/21 ... _c_update/ (english)
http://www.developpez.com/actu/91544/Mi ... mbre-2015/ (french)

MS is going to integrate the open source clang c++ c1 in visual studio
https://www.youtube.com/watch?v=TRgWJuQhkQo

This should bring an even better support of C / C++ across platform / architecture / OS
Post Reply

Return to “HxC Floppy Emulator”