Discussion:
msvc compile error
Evgeny Dontsov
2017-09-15 12:28:12 UTC
Permalink
Hello!

I try to build ftdi1-static project in MSVC 2013.

There is an error:
Error 295 error C1083: Cannot open include file: 'sys/time.h': No such file or directory d:\code\adapters\var\tmp\env-build\win32_vs2012\libftdi1-1.3.tar.bz2\libftdi1-1.3\src\ftdi.h 21 1 ftdi1-static There is no sys/time.h header in Windows. 


Cmake defines:
api.cmake('CMakeLists.txt', '-Bbuild-debug',
'-DCMAKE_INSTALL_PREFIX=' + ap,
'-DCMAKE_BUILD_TYPE=Debug',
'-DBUILD_TESTS=OFF',
'-DDOCUMENTATION=OFF',
'-DCMAKE_TOOLCHAIN_FILE=toolchain.cmake',
'-DLIBUSB_LIBRARIES='+os.path.join(ENV_ROOT, 'lib', 'Debub', 'libusb-1.0.lib'))
Evgeny Dontsov
software engineer
Alphaopen, LLC
Tel: +7 916 385-39-09
www.alphaopen.com



--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Thomas Jarosch
2017-09-15 12:35:28 UTC
Permalink
Hi Evgeny,
Post by Evgeny Dontsov
Hello!
I try to build ftdi1-static project in MSVC 2013.
Error 295 error C1083: Cannot open include file: 'sys/time.h': No such file
or directory
d:\code\adapters\var\tmp\env-build\win32_vs2012\libftdi1-1.3.tar.bz2\libftd
i1-1.3\src\ftdi.h 21 1 ftdi1-static There is no sys/time.h header in
Windows.
please update to libftdi 1.4, it's already fixed.

Cheers,
Thomas


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Evgeny Dontsov
2017-09-15 13:39:56 UTC
Permalink
Hi, Tomas!

Thanks for rapid answer.

I update libftdi to 1.4 and got the same error in ftdi_stream.c:

D:\CODE\adapters\var\tmp\env-build\win32_vs2012\libftdi1-1.4.tar.bz2\libftdi1-1.4\src\ftdi_strea
m.c(44): fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory [D:\
CODE\adapters\var\tmp\env-build\win32_vs2012\libftdi1-1.4.tar.bz2\libftdi1-1.4\build-debug\src\ftd
i1-static.vcxproj]
Evgeny
Post by Thomas Jarosch
Hi Evgeny,
Post by Evgeny Dontsov
Hello!
I try to build ftdi1-static project in MSVC 2013.
Error 295 error C1083: Cannot open include file: 'sys/time.h': No such file
or directory
d:\code\adapters\var\tmp\env-build\win32_vs2012\libftdi1-1.3.tar.bz2\libftd
i1-1.3\src\ftdi.h 21 1 ftdi1-static There is no sys/time.h header in
Windows.
please update to libftdi 1.4, it's already fixed.
Cheers,
Thomas
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
Evgeny Dontsov
software engineer
Alphaopen, LLC
Tel: +7 916 385-39-09
www.alphaopen.com


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Thomas Jarosch
2017-09-15 16:31:35 UTC
Permalink
Hi Evgeny,
Post by Evgeny Dontsov
D:\CODE\adapters\var\tmp\env-build\win32_vs2012\libftdi1-1.4.tar.bz2\libftdi
'sys/time.h': No such file or directory [D:\
CODE\adapters\var\tmp\env-build\win32_vs2012\libftdi1-1.4.tar.bz2\libftdi1-
1.4\build-debug\src\ftd i1-static.vcxproj]
Evgeny
please try if the same #ifdef around sys/time.h as in ftdi.h
works for ftdi_stream.c, too:

--------------------
#ifndef _WIN32
#include <sys/time.h>
#endif
--------------------

Cheers,
Thomas


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Loading...