Author Topic: How to build FOClassic using Windows 7 64bit  (Read 3588 times)

Offline adumbperson

  • Turn around in orbit!
How to build FOClassic using Windows 7 64bit
« on: April 15, 2019, 10:37:25 pm »
Quote
"Whatever you do will be insignificant, but it is very important that you do it." - Mahatma Gandhi

Using VS2010 you'll need to refresh your installation...

First download microsoft's 7.1 sdk for windows

https://download.microsoft.com/download/A/6/A/A6AC035D-DA3F-4F0C-ADA4-37C8E5D34E3D/winsdk_web.exe

https://download.microsoft.com/download/7/5/0/75040801-126C-4591-BCE4-4CD1FD1499AA/VC-Compiler-KB2519277.exe

https://git-scm.com/download/win

https://github.com/Kitware/CMake/releases/download/v3.14.2/cmake-3.14.2-win64-x64.msi

Follow instruction and install these...

after rebooting you shud be rdy...

Fire up a git shell

Code: [Select]
git clone https://github.com/rotators/foclassic
cd foclassic/
git submodule update --init --recursive
mkdir ../SDK.VS2010
cd ../SDK.VS2010
cmake -G "Visual Studio 10" ../foclassic

From there you shud have all solutions and project files generated in the current directory.

You can now develop, compile & debug stuff using VS2010 apps

## Workaround fatal error C1083: missing header include : 'ammintrin.h'
If you get this error while generating binaries
Code: [Select]
Microsoft Visual Studio 10.0\VC\include\intrin.h(26): fatal error C1083: Impossible d'ouvrir le fichier include : 'ammintrin.h' : No such file or directoryYou'll need to import an header file: ammintrin.h
https://www.mathworks.com/matlabcentral/answers/uploaded_files/735/ammintrin.m
and move this last to
Code: [Select]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ammintrin.h
You can also clone foc from wipe's git repo, it includes automated building scipts and default file assets
Code: [Select]
git clone https://github.com/wipe2238/foc
cd foc/Upstream
git clone https://github.com/rotators/foclassic FOClassic
cd FOClassic
git submodule update --init --recursive
cd ../..
Build.cmd

Enjoy working with working stuffs...
« Last Edit: April 17, 2019, 06:09:16 am by adumbperson »
The Death After Life.
About me. I hate people generally I still may have respectful talk and recognize the good persons. Careful to what you say, I'm not a kid. My experiences defines me.
[Awaxx] -2024/10/17-