Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue to build scopehal with MSYS2/MINGW64 #255

Closed
bvernoux opened this issue Sep 19, 2020 · 0 comments
Closed

Issue to build scopehal with MSYS2/MINGW64 #255

bvernoux opened this issue Sep 19, 2020 · 0 comments

Comments

@bvernoux
Copy link
Contributor

bvernoux commented Sep 19, 2020

Issue to build the actual code with MSYS2 / MINGW64 related to UART.cpp code
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
Error on PARITY_NONE (probably a conflict with same define specific to windows files ...)

[  9%] Building CXX object lib/scopehal/CMakeFiles/scopehal.dir/scopehal.cpp.obj
In file included from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\SCPIUARTTransport.h:39,
                 from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.h:61,
                 from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.cpp:35:
C:/msys64/home/Ben/scopehal-apps/lib/xptools/UART.h: In member function 'bool UART::IsValid() const':
C:/msys64/home/Ben/scopehal-apps/lib/xptools/UART.h:75:16: warning: ordered comparison of pointer with integer zero [-Wextra]
   75 |   return (m_fd >= 0);
      |           ~~~~~^~~~
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:70,
                 from C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock2.h:23,
                 from C:/msys64/mingw64/x86_64-w64-mingw32/include/ws2tcpip.h:17,
                 from C:/msys64/home/Ben/scopehal-apps/lib/xptools/Socket.h:42,
                 from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\SCPISocketTransport.h:39,
                 from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.h:57,
                 from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.cpp:35:
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h: At global scope:
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h:51:3: error: expected identifier before '(' token
   51 |   PARITY_NONE,
      |   ^~~~~~~~~~~
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h:51:3: error: expected '}' before '(' token
In file included from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.cpp:54:
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h:50:2: note: to match this '{'
   50 |  {
      |  ^
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:70,
                 from C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock2.h:23,
                 from C:/msys64/mingw64/x86_64-w64-mingw32/include/ws2tcpip.h:17,
                 from C:/msys64/home/Ben/scopehal-apps/lib/xptools/Socket.h:42,
                 from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\SCPISocketTransport.h:39,
                 from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.h:57,
                 from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.cpp:35:
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h:51:3: error: expected ')' before numeric constant
   51 |   PARITY_NONE,
      |   ^~~~~~~~~~~
In file included from C:\msys64\home\Ben\scopehal-apps\lib\scopehal\scopehal.cpp:54:
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h:56:7: error: variable or field 'SetParityType' declared void
   56 |  void SetParityType(ParityType type)
      |       ^~~~~~~~~~~~~
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h:56:21: error: 'ParityType' was not declared in this scope
   56 |  void SetParityType(ParityType type)
      |                     ^~~~~~~~~~
C:\msys64\home\Ben\scopehal-apps\lib\scopehal\UartTrigger.h:59:2: error: 'ParityType' does not name a type
   59 |  ParityType GetParityType()
      |  ^~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant