Building HxCFloppyEmulator on Windows

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

Moderators: DrCoolZic, mr.vince, Moderator Team

User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Building HxCFloppyEmulator on Windows

Postby DrCoolZic » Fri Nov 14, 2014 9:44 am

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: 300
Joined: Fri Sep 21, 2007 7:35 pm
Location: Paris - France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby Jeff_HxC2001 » Mon Nov 17, 2014 7:01 am

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: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby DrCoolZic » Mon Nov 17, 2014 12:53 pm

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: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby DrCoolZic » Mon Nov 17, 2014 1:50 pm

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: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby DrCoolZic » Tue Dec 30, 2014 5:56 pm

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: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby DrCoolZic » Tue Dec 30, 2014 6:07 pm

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: 300
Joined: Fri Sep 21, 2007 7:35 pm
Location: Paris - France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby Jeff_HxC2001 » Wed Dec 31, 2014 5:34 pm

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: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby DrCoolZic » Wed Dec 31, 2014 5:37 pm

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: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby DrCoolZic » Wed Dec 31, 2014 6:09 pm

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: 300
Joined: Fri Sep 21, 2007 7:35 pm
Location: Paris - France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby Jeff_HxC2001 » Wed Dec 31, 2014 6:58 pm

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: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby DrCoolZic » Wed Dec 31, 2014 8:11 pm

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: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby DrCoolZic » Thu Aug 13, 2015 2:47 pm

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: 300
Joined: Fri Sep 21, 2007 7:35 pm
Location: Paris - France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby Jeff_HxC2001 » Sat Aug 15, 2015 8:54 pm

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: 300
Joined: Fri Sep 21, 2007 7:35 pm
Location: Paris - France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby Jeff_HxC2001 » Sat Sep 05, 2015 11:17 pm

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: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby DrCoolZic » Sun Sep 06, 2015 8:03 am

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: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby DrCoolZic » Wed Sep 16, 2015 8:02 am

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: 2144
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Re: Building HxCFloppyEmulator on Windows

Postby DrCoolZic » Fri Oct 23, 2015 9:16 am

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


Social Media

     

Return to “HxC Floppy Emulator”

Who is online

Users browsing this forum: No registered users and 1 guest