Building HxCFloppyEmulator on Windows
- DrCoolZic
- Fuji Shaped Bastard
- Posts: 2270
- Joined: Mon Oct 03, 2005 7:03 pm
- Location: France
- Contact:
Building HxCFloppyEmulator on Windows
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 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?
Visit *** http://info-coach.fr/atari ***
-
- Captain Atari
- Posts: 392
- Joined: Fri Sep 21, 2007 7:35 pm
- Location: Paris - France
- Contact:
Re: Building HxCFloppyEmulator on Windows
I currently use VS C 6.0 for compatibility reasons with older Windows machines.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?
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.
- DrCoolZic
- Fuji Shaped Bastard
- Posts: 2270
- Joined: Mon Oct 03, 2005 7:03 pm
- Location: France
- Contact:
Re: Building HxCFloppyEmulator on Windows
Thanks it works - What I did and few questions
Preparation:
So all the above build correctly
However the following do not build
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
- 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)
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
- Staticlib, xDMS, Zlib
You do not have the required permissions to view the files attached to this post.
Visit *** http://info-coach.fr/atari ***
- DrCoolZic
- Fuji Shaped Bastard
- Posts: 2270
- Joined: Mon Oct 03, 2005 7:03 pm
- Location: France
- Contact:
Re: Building HxCFloppyEmulator on Windows
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?
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?
Visit *** http://info-coach.fr/atari ***
- DrCoolZic
- Fuji Shaped Bastard
- Posts: 2270
- Joined: Mon Oct 03, 2005 7:03 pm
- Location: France
- Contact:
Re: Building HxCFloppyEmulator on Windows
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?
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?
Visit *** http://info-coach.fr/atari ***
- DrCoolZic
- Fuji Shaped Bastard
- Posts: 2270
- Joined: Mon Oct 03, 2005 7:03 pm
- Location: France
- Contact:
Re: Building HxCFloppyEmulator on Windows
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?
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?
Visit *** http://info-coach.fr/atari ***
-
- Captain Atari
- Posts: 392
- Joined: Fri Sep 21, 2007 7:35 pm
- Location: Paris - France
- Contact:
Re: Building HxCFloppyEmulator on Windows
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
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
- DrCoolZic
- Fuji Shaped Bastard
- Posts: 2270
- Joined: Mon Oct 03, 2005 7:03 pm
- Location: France
- Contact:
Re: Building HxCFloppyEmulator on Windows
This is what I have done. I will retry and let you knowJeff_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.

Visit *** http://info-coach.fr/atari ***
- DrCoolZic
- Fuji Shaped Bastard
- Posts: 2270
- Joined: Mon Oct 03, 2005 7:03 pm
- Location: France
- Contact:
Re: Building HxCFloppyEmulator on Windows
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
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

Visit *** http://info-coach.fr/atari ***
-
- Captain Atari
- Posts: 392
- Joined: Fri Sep 21, 2007 7:35 pm
- Location: Paris - France
- Contact:
Re: Building HxCFloppyEmulator on Windows
Without the error it's hard to figure out why, but i suppose that VS 2013 is not C99 compliant...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
When possible i will try this on the the only W7 machine i have here.

- DrCoolZic
- Fuji Shaped Bastard
- Posts: 2270
- Joined: Mon Oct 03, 2005 7:03 pm
- Location: France
- Contact:
Re: Building HxCFloppyEmulator on Windows
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?
To get so many error it is probably a stupid mistake from my part that does not set correct #define somewhere?
Visit *** http://info-coach.fr/atari ***
- DrCoolZic
- Fuji Shaped Bastard
- Posts: 2270
- Joined: Mon Oct 03, 2005 7:03 pm
- Location: France
- Contact:
Re: Building HxCFloppyEmulator on Windows
Any progress on making software build on VS2013 / VS 2015
Just downloaded revision 1316 and apart from fltk none of the subprojects build
Just downloaded revision 1316 and apart from fltk none of the subprojects build

Visit *** http://info-coach.fr/atari ***
-
- Captain Atari
- Posts: 392
- Joined: Fri Sep 21, 2007 7:35 pm
- Location: Paris - France
- Contact:
Re: Building HxCFloppyEmulator on Windows
No sorry.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
BTW VS2013/VS2015 builds are incompatible with older version of Windows (XP...), which is quite problematic.
-
- Captain Atari
- Posts: 392
- Joined: Fri Sep 21, 2007 7:35 pm
- Location: Paris - France
- Contact:
Re: Building HxCFloppyEmulator on Windows
The build is now working.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
-> 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...
- DrCoolZic
- Fuji Shaped Bastard
- Posts: 2270
- Joined: Mon Oct 03, 2005 7:03 pm
- Location: France
- Contact:
Re: Building HxCFloppyEmulator on Windows
Thanks very muchJeff_HxC2001 wrote:The build is now working.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
-> 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...
I am travelling today and wont be able to test before I return next week.
I will let you know

Thanks again
Visit *** http://info-coach.fr/atari ***
- DrCoolZic
- Fuji Shaped Bastard
- Posts: 2270
- Joined: Mon Oct 03, 2005 7:03 pm
- Location: France
- Contact:
Re: Building HxCFloppyEmulator on Windows
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?
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?
Visit *** http://info-coach.fr/atari ***
- DrCoolZic
- Fuji Shaped Bastard
- Posts: 2270
- Joined: Mon Oct 03, 2005 7:03 pm
- Location: France
- Contact:
Re: Building HxCFloppyEmulator on Windows
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
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
Visit *** http://info-coach.fr/atari ***