Giter Site home page Giter Site logo

bthelper's People

Contributors

thomashabets avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bthelper's Issues

Error: src/buffer.h:71:15: error: ‘uint32_t’ has not been declared

When bthelper was compiled at Fedora 39, error occurred as ‘uint32_t’ has not been declared. Following this stack overflow, I include stdint.h in buffer.h and it does work.

 ~/B/bthelper   *  ./configure                                3386ms  Sun 25 Feb 2024 10:38:53 AM CST
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking dependency style of g++... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for forkpty in -lutil... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

  bthelper version 0.01
  Prefix.........: /usr/local
  Debug Build....: 
  C++ Compiler...: g++ -g -O2 -std=c++17 
  Linker.........: /usr/bin/ld -m elf_x86_64  -lutil 

 ~/B/bthelper   *  make                                                Sun 25 Feb 2024 10:40:02 AM CST
depbase=`echo src/bt-connecter.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I./src  -I.   -g -O2 -std=c++17 -MT src/bt-connecter.o -MD -MP -MF $depbase.Tpo -c -o src/bt-connecter.o src/bt-connecter.cc &&\
mv -f $depbase.Tpo $depbase.Po
In file included from src/common.h:16,
                 from src/bt-connecter.cc:16:
src/buffer.h:71:15: error: ‘uint32_t’ has not been declared
   71 |     void ping(uint32_t cookie);
      |               ^~~~~~~~
src/buffer.h:72:15: error: ‘uint32_t’ has not been declared
   72 |     void pong(uint32_t cookie);
      |               ^~~~~~~~
src/buffer.h:73:22: error: ‘uint16_t’ has not been declared
   73 |     void window_size(uint16_t rows, uint16_t cols);
      |                      ^~~~~~~~
src/buffer.h:73:37: error: ‘uint16_t’ has not been declared
   73 |     void window_size(uint16_t rows, uint16_t cols);
      |                                     ^~~~~~~~
src/buffer.h:82:47: error: ‘uint32_t’ was not declared in this scope
   82 |     using ping_handler_t = std::function<void(uint32_t)>;
      |                                               ^~~~~~~~
src/buffer.h:20:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   19 | #include <functional>
  +++ |+#include <cstdint>
   20 | #include <vector>
src/buffer.h:82:56: error: template argument 1 is invalid
   82 |     using ping_handler_t = std::function<void(uint32_t)>;
      |                                                        ^
src/buffer.h:83:54: error: ‘uint16_t’ was not declared in this scope
   83 |     using window_size_handler_t = std::function<void(uint16_t, uint16_t)>;
      |                                                      ^~~~~~~~
src/buffer.h:83:54: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
src/buffer.h:83:64: error: ‘uint16_t’ was not declared in this scope
   83 |     using window_size_handler_t = std::function<void(uint16_t, uint16_t)>;
      |                                                                ^~~~~~~~
src/buffer.h:83:64: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
src/buffer.h:83:72: error: expression list treated as compound expression in functional cast [-fpermissive]
   83 |     using window_size_handler_t = std::function<void(uint16_t, uint16_t)>;
      |                                                                        ^
src/buffer.h:83:73: error: template argument 1 is invalid
   83 |     using window_size_handler_t = std::function<void(uint16_t, uint16_t)>;
      |                                                                         ^
src/buffer.h:84:46: error: expected ‘)’ before ‘winch’
   84 |     TelnetDecoderBuffer(window_size_handler_t winch,
      |                        ~                     ^~~~~~
      |                                              )
src/buffer.h:96:5: error: ‘ping_handler_t’ does not name a type
   96 |     ping_handler_t ping_;
      |     ^~~~~~~~~~~~~~
src/buffer.h:97:5: error: ‘ping_handler_t’ does not name a type
   97 |     ping_handler_t pong_;
      |     ^~~~~~~~~~~~~~
src/buffer.h:98:5: error: ‘window_size_handler_t’ does not name a type
   98 |     window_size_handler_t winch_;
      |     ^~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:505: src/bt-connecter.o] Error 1
 !  ~/B/bthelper   *  cat /etc/os-release                    540ms  Sun 25 Feb 2024 10:40:08 AM CST
NAME="Fedora Linux"
VERSION="39 (KDE Plasma)"
ID=fedora
VERSION_ID=39
VERSION_CODENAME=""
PLATFORM_ID="platform:f39"
PRETTY_NAME="Fedora Linux 39 (KDE Plasma)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:39"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f39/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=39
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=39
SUPPORT_END=2024-11-12
VARIANT="KDE Plasma"
VARIANT_ID=kde

Connection issue

Hi,
I found your project and wanted to try it out. I have used rfcomm method earlier for emergency bluetooth connection and wanted to give your software a try. I have paired both devices but I clearly have some issue with connection. While bt-listener has configurable port, there is no way to set connection port for bt-connecter. And I am kinda confused how it does know target port.

I managed to get such an error message:

connect(): Connection refused
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535

I can see in bluetoothctl that both devices connect and pair.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.