fodev.net
FOnline Development => Share Your Work => Topic started by: adumbperson on April 15, 2019, 10:37:25 pm
-
"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/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://download.microsoft.com/download/7/5/0/75040801-126C-4591-BCE4-4CD1FD1499AA/VC-Compiler-KB2519277.exe)
https://git-scm.com/download/win (https://git-scm.com/download/win)
https://github.com/Kitware/CMake/releases/download/v3.14.2/cmake-3.14.2-win64-x64.msi (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
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
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 directory
You'll need to import an header file: ammintrin.h
https://www.mathworks.com/matlabcentral/answers/uploaded_files/735/ammintrin.m (https://www.mathworks.com/matlabcentral/answers/uploaded_files/735/ammintrin.m)
and move this last to
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
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...