Skip to content

Commit

Permalink
Sorry for my mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroAir committed Aug 14, 2023
1 parent 7f1c6e1 commit 65ea27a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,35 @@ sudo apt-get install -y \
libtheora-dev
```

On Windows

Download https://github.com/msys2/msys2-installer/releases/download/2023-07-18/msys2-x86_64-20230718.exe

```
pacman -Syu # Update all of the packages
pacman -S mingw-w64-x86_64-toolchain # Install g++ toolchain
pacman -S mingw-w64-x86_64-cmake # Install Cmake
pacman -S mingw-w64-x86_64-zlib
pacman -S mingw-w64-x86_64-cfitsio
pacman -S mingw-w64-x86_64-libnova
pacman -S mingw-w64-x86_64-libusb
pacman -S mingw-w64-x86_64-fftw
pacman -S mingw-w64-x86_64-libxisf
pacman -S mingw-w64-x86_64-rtl-sdr
# Install Libev
# Download sources from http://dist.schmorp.de/libev/Attic/
pacman -S autoconf
pacman -S automake
pacman -S libtool
pacman -S make
sh autogen.sh
./configure
make
make -j4
make install
```

## XISF Support

To enable [XISF format](https://pixinsight.com/xisf/) support in INDI, you need to build or install [libxisf](https://gitea.nouspiro.space/nou/libXISF) package.
Expand Down
3 changes: 2 additions & 1 deletion tools/getINDIproperty.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,15 @@ static void getprops()
fprintf(stderr, "Queried properties from %s\n", onedev ? onedev : "*");
}

#ifdef _WIN32
#define TIMEOUT_MS 5000

static void CALLBACK onTimer(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
{
printf("Timer expired!\n");
exit(0);
}

#endif

/* listen for INDI traffic on svrrfp.
* print matching srchs[] and return when see all.
Expand Down
2 changes: 2 additions & 0 deletions tools/setINDIproperty.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,13 +358,15 @@ static void openINDIServer(FILE **rfpp, FILE **wfpp)
*wfpp = fdopen(sockfd, "w");
}

#ifdef _WIN32
#define TIMEOUT_MS 5000

static void CALLBACK onTimer(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
{
printf("Timer expired!\n");
exit(0);
}
#endif

/* listen for property reports, send new sets if match */
static void listenINDI(FILE *rfp, FILE *wfp)
Expand Down

0 comments on commit 65ea27a

Please sign in to comment.