Hello,
>> Thank you for your help and support.

You really should never run make as root. Brltty happens to have a safe make 
file, but you should never trust that. Only the make install needs to be run as 
root.

>> if I don't use sudo I get permissions errors, changed folder rights with 
>> chmod 777, can run now without sudo, is this the right way to do it?



I get messages: all to to with BRLAPI_KEY_FLG_MOTION_xxx

./cmd_brlapi.c:202:21: error: BRLAPIKEY_KEY_FLG_MOTION_ROUTE undeclared (first 
use in function); did you mean BRL_FLG_MOTION_SCALED?

|(code & BRLAPI_KEY_FLG_MOTION_SCALED ? BRL_FLG_MOTION_SCALED : 0)

>BRL_FLG_MOTION_SCALED



It looks like you may have tried to copy the error message by hand. Please 
capture the actual error mesage and post it.

Also, please post a copy of your brlapi_constants.h file.



>> see attached files with messages_make.txt from make and the header file. 
>> brlapi_constants.h


Regards,Eric de Quartel
Bartiméus Onderwijs

/*
 * libbrlapi - A library providing access to braille terminals for applications.
 *
 * Copyright (C) 2002-2019 by
 *   Samuel Thibault <[email protected]>
 *   Sébastien Hinderer <[email protected]>
 *
 * libbrlapi comes with ABSOLUTELY NO WARRANTY.
 *
 * This is free software, placed under the terms of the
 * GNU Lesser General Public License, as published by the Free Software
 * Foundation; either version 2.1 of the License, or (at your option) any
 * later version. Please see the file LICENSE-LGPL for details.
 *
 * Web Page: http://brltty.app/
 *
 * This software is maintained by Dave Mielke <[email protected]>.
 */

#ifndef BRLAPI_INCLUDED_CONSTANTS
#define BRLAPI_INCLUDED_CONSTANTS

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/** \file
 */

/** \ingroup brlapi_keycodes
 * @{ */


/** Helper macro to easily produce braille patterns */
#define BRLAPI_DOTS(dot1, dot2, dot3, dot4, dot5, dot6, dot7, dot8) (\
  ((dot1)? BRLAPI_DOT1: 0) | \
  ((dot2)? BRLAPI_DOT2: 0) | \
  ((dot3)? BRLAPI_DOT3: 0) | \
  ((dot4)? BRLAPI_DOT4: 0) | \
  ((dot5)? BRLAPI_DOT5: 0) | \
  ((dot6)? BRLAPI_DOT6: 0) | \
  ((dot7)? BRLAPI_DOT7: 0) | \
  ((dot8)? BRLAPI_DOT8: 0) \
)

/** space key */
#define BRLAPI_DOT_CHORD 0
/** @} */


#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* BRLAPI_INCLUDED_CONSTANTS */
cd Programs && make all
make[1]: Entering directory '/home/pi/Documents/braille/brltty/Programs'
../getrevid -s -f revision_identifier.h -d unknown ../
gcc -I. -I. -I./../Programs -I../Programs -I../Headers -I./.. -I..   
-D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 
-D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DHAVE_CONFIG_H -g -O2 -std=gnu99 -Wall 
-Werror=format-security -fPIC -c ./revision.c
gcc -I. -I. -I./../Programs -I../Programs -I../Headers -I./.. -I..   
-D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 
-D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DHAVE_CONFIG_H -g -O2 -std=gnu99 -Wall 
-Werror=format-security -fPIC -c ./cmd_brlapi.c
./cmd_brlapi.c: In function ‘cmdBrlttyToBrlapi’:
./cmd_brlapi.c:90:50: error: ‘BRLAPI_KEY_FLG_SHIFT’ undeclared (first use 
in this function); did you mean ‘BRLAPI_KEY_FLAGS_SHIFT’?
             | (command & BRL_FLG_INPUT_SHIFT   ? BRLAPI_KEY_FLG_SHIFT   : 0)
                                                  ^~~~~~~~~~~~~~~~~~~~
                                                  BRLAPI_KEY_FLAGS_SHIFT
./cmd_brlapi.c:90:50: note: each undeclared identifier is reported only once 
for each function it appears in
./cmd_brlapi.c:91:50: error: ‘BRLAPI_KEY_FLG_UPPER’ undeclared (first use 
in this function); did you mean ‘BRLAPI_KEY_FLG_MOD2’?
             | (command & BRL_FLG_INPUT_UPPER   ? BRLAPI_KEY_FLG_UPPER   : 0)
                                                  ^~~~~~~~~~~~~~~~~~~~
                                                  BRLAPI_KEY_FLG_MOD2
./cmd_brlapi.c:92:50: error: ‘BRLAPI_KEY_FLG_CONTROL’ undeclared (first use 
in this function); did you mean ‘BRLAPI_KEY_FLG_MOD2’?
             | (command & BRL_FLG_INPUT_CONTROL ? BRLAPI_KEY_FLG_CONTROL : 0)
                                                  ^~~~~~~~~~~~~~~~~~~~~~
                                                  BRLAPI_KEY_FLG_MOD2
./cmd_brlapi.c:93:50: error: ‘BRLAPI_KEY_FLG_META’ undeclared (first use in 
this function); did you mean ‘BRLAPI_KEY_FLG_MOD2’?
             | (command & BRL_FLG_INPUT_META    ? BRLAPI_KEY_FLG_META    : 0)
                                                  ^~~~~~~~~~~~~~~~~~~
                                                  BRLAPI_KEY_FLG_MOD2
./cmd_brlapi.c:94:50: error: ‘BRLAPI_KEY_FLG_ALTGR’ undeclared (first use 
in this function); did you mean ‘BRLAPI_KEY_FLG_MOD2’?
             | (command & BRL_FLG_INPUT_ALTGR   ? BRLAPI_KEY_FLG_ALTGR   : 0)
                                                  ^~~~~~~~~~~~~~~~~~~~
                                                  BRLAPI_KEY_FLG_MOD2
./cmd_brlapi.c:95:50: error: ‘BRLAPI_KEY_FLG_GUI’ undeclared (first use in 
this function); did you mean ‘BRLAPI_KEY_FLG_MOD2’?
             | (command & BRL_FLG_INPUT_GUI     ? BRLAPI_KEY_FLG_GUI     : 0)
                                                  ^~~~~~~~~~~~~~~~~~
                                                  BRLAPI_KEY_FLG_MOD2
./cmd_brlapi.c:103:48: error: ‘BRLAPI_KEY_FLG_KBD_RELEASE’ undeclared 
(first use in this function); did you mean ‘BRL_FLG_KBD_RELEASE’?
             | (command & BRL_FLG_KBD_RELEASE ? BRLAPI_KEY_FLG_KBD_RELEASE : 0)
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                                BRL_FLG_KBD_RELEASE
./cmd_brlapi.c:104:48: error: ‘BRLAPI_KEY_FLG_KBD_EMUL0’ undeclared (first 
use in this function); did you mean ‘BRL_FLG_KBD_EMUL0’?
             | (command & BRL_FLG_KBD_EMUL0   ? BRLAPI_KEY_FLG_KBD_EMUL0   : 0)
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
                                                BRL_FLG_KBD_EMUL0
./cmd_brlapi.c:105:48: error: ‘BRLAPI_KEY_FLG_KBD_EMUL1’ undeclared (first 
use in this function); did you mean ‘BRL_FLG_KBD_EMUL1’?
             | (command & BRL_FLG_KBD_EMUL1   ? BRLAPI_KEY_FLG_KBD_EMUL1   : 0)
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
                                                BRL_FLG_KBD_EMUL1
./cmd_brlapi.c:111:50: error: ‘BRLAPI_KEY_FLG_TOGGLE_ON’ undeclared (first 
use in this function); did you mean ‘BRL_FLG_TOGGLE_ON’?
             | (command & BRL_FLG_TOGGLE_ON     ? BRLAPI_KEY_FLG_TOGGLE_ON     
: 0)
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~
                                                  BRL_FLG_TOGGLE_ON
./cmd_brlapi.c:112:50: error: ‘BRLAPI_KEY_FLG_TOGGLE_OFF’ undeclared (first 
use in this function); did you mean ‘BRL_FLG_TOGGLE_OFF’?
             | (command & BRL_FLG_TOGGLE_OFF    ? BRLAPI_KEY_FLG_TOGGLE_OFF    
: 0)
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~
                                                  BRL_FLG_TOGGLE_OFF
./cmd_brlapi.c:113:50: error: ‘BRLAPI_KEY_FLG_MOTION_ROUTE’ undeclared 
(first use in this function); did you mean ‘BRL_FLG_MOTION_ROUTE’?
             | (command & BRL_FLG_MOTION_ROUTE  ? BRLAPI_KEY_FLG_MOTION_ROUTE  
: 0)
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                  BRL_FLG_MOTION_ROUTE
./cmd_brlapi.c:114:50: error: ‘BRLAPI_KEY_FLG_MOTION_SCALED’ undeclared 
(first use in this function); did you mean ‘BRL_FLG_MOTION_SCALED’?
             | (command & BRL_FLG_MOTION_SCALED ? BRLAPI_KEY_FLG_MOTION_SCALED 
: 0)
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                  BRL_FLG_MOTION_SCALED
./cmd_brlapi.c:115:50: error: ‘BRLAPI_KEY_FLG_MOTION_TOLEFT’ undeclared 
(first use in this function); did you mean ‘BRL_FLG_MOTION_TOLEFT’?
             | (command & BRL_FLG_MOTION_TOLEFT ? BRLAPI_KEY_FLG_MOTION_TOLEFT 
: 0)
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                  BRL_FLG_MOTION_TOLEFT
./cmd_brlapi.c: In function ‘cmdBrlapiToBrltty’:
./cmd_brlapi.c:178:21: error: ‘BRLAPI_KEY_FLG_SHIFT’ undeclared (first use 
in this function); did you mean ‘BRLAPI_KEY_FLAGS_SHIFT’?
           | (code & BRLAPI_KEY_FLG_SHIFT   ? BRL_FLG_INPUT_SHIFT   : 0)
                     ^~~~~~~~~~~~~~~~~~~~
                     BRLAPI_KEY_FLAGS_SHIFT
./cmd_brlapi.c:179:21: error: ‘BRLAPI_KEY_FLG_UPPER’ undeclared (first use 
in this function); did you mean ‘BRLAPI_KEY_FLG_MOD2’?
           | (code & BRLAPI_KEY_FLG_UPPER   ? BRL_FLG_INPUT_UPPER   : 0)
                     ^~~~~~~~~~~~~~~~~~~~
                     BRLAPI_KEY_FLG_MOD2
./cmd_brlapi.c:180:21: error: ‘BRLAPI_KEY_FLG_CONTROL’ undeclared (first 
use in this function); did you mean ‘BRLAPI_KEY_FLG_MOD2’?
           | (code & BRLAPI_KEY_FLG_CONTROL ? BRL_FLG_INPUT_CONTROL : 0)
                     ^~~~~~~~~~~~~~~~~~~~~~
                     BRLAPI_KEY_FLG_MOD2
./cmd_brlapi.c:181:21: error: ‘BRLAPI_KEY_FLG_META’ undeclared (first use 
in this function); did you mean ‘BRLAPI_KEY_FLG_MOD2’?
           | (code & BRLAPI_KEY_FLG_META    ? BRL_FLG_INPUT_META    : 0)
                     ^~~~~~~~~~~~~~~~~~~
                     BRLAPI_KEY_FLG_MOD2
./cmd_brlapi.c:182:21: error: ‘BRLAPI_KEY_FLG_ALTGR’ undeclared (first use 
in this function); did you mean ‘BRLAPI_KEY_FLG_MOD2’?
           | (code & BRLAPI_KEY_FLG_ALTGR   ? BRL_FLG_INPUT_ALTGR   : 0)
                     ^~~~~~~~~~~~~~~~~~~~
                     BRLAPI_KEY_FLG_MOD2
./cmd_brlapi.c:183:21: error: ‘BRLAPI_KEY_FLG_GUI’ undeclared (first use in 
this function); did you mean ‘BRLAPI_KEY_FLG_MOD2’?
           | (code & BRLAPI_KEY_FLG_GUI     ? BRL_FLG_INPUT_GUI     : 0)
                     ^~~~~~~~~~~~~~~~~~
                     BRLAPI_KEY_FLG_MOD2
./cmd_brlapi.c:191:21: error: ‘BRLAPI_KEY_FLG_KBD_RELEASE’ undeclared 
(first use in this function); did you mean ‘BRL_FLG_KBD_RELEASE’?
           | (code & BRLAPI_KEY_FLG_KBD_RELEASE ? BRL_FLG_KBD_RELEASE : 0)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
                     BRL_FLG_KBD_RELEASE
./cmd_brlapi.c:192:21: error: ‘BRLAPI_KEY_FLG_KBD_EMUL0’ undeclared (first 
use in this function); did you mean ‘BRL_FLG_KBD_EMUL0’?
           | (code & BRLAPI_KEY_FLG_KBD_EMUL0   ? BRL_FLG_KBD_EMUL0   : 0)
                     ^~~~~~~~~~~~~~~~~~~~~~~~
                     BRL_FLG_KBD_EMUL0
./cmd_brlapi.c:193:21: error: ‘BRLAPI_KEY_FLG_KBD_EMUL1’ undeclared (first 
use in this function); did you mean ‘BRL_FLG_KBD_EMUL1’?
           | (code & BRLAPI_KEY_FLG_KBD_EMUL1   ? BRL_FLG_KBD_EMUL1   : 0)
                     ^~~~~~~~~~~~~~~~~~~~~~~~
                     BRL_FLG_KBD_EMUL1
./cmd_brlapi.c:199:21: error: ‘BRLAPI_KEY_FLG_TOGGLE_ON’ undeclared (first 
use in this function); did you mean ‘BRL_FLG_TOGGLE_ON’?
           | (code & BRLAPI_KEY_FLG_TOGGLE_ON     ? BRL_FLG_TOGGLE_ON     : 0)
                     ^~~~~~~~~~~~~~~~~~~~~~~~
                     BRL_FLG_TOGGLE_ON
./cmd_brlapi.c:200:21: error: ‘BRLAPI_KEY_FLG_TOGGLE_OFF’ undeclared (first 
use in this function); did you mean ‘BRL_FLG_TOGGLE_OFF’?
           | (code & BRLAPI_KEY_FLG_TOGGLE_OFF    ? BRL_FLG_TOGGLE_OFF    : 0)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~
                     BRL_FLG_TOGGLE_OFF
./cmd_brlapi.c:201:21: error: ‘BRLAPI_KEY_FLG_MOTION_ROUTE’ undeclared 
(first use in this function); did you mean ‘BRL_FLG_MOTION_ROUTE’?
           | (code & BRLAPI_KEY_FLG_MOTION_ROUTE  ? BRL_FLG_MOTION_ROUTE  : 0)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                     BRL_FLG_MOTION_ROUTE
./cmd_brlapi.c:202:21: error: ‘BRLAPI_KEY_FLG_MOTION_SCALED’ undeclared 
(first use in this function); did you mean ‘BRL_FLG_MOTION_SCALED’?
           | (code & BRLAPI_KEY_FLG_MOTION_SCALED ? BRL_FLG_MOTION_SCALED : 0)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     BRL_FLG_MOTION_SCALED
./cmd_brlapi.c:203:21: error: ‘BRLAPI_KEY_FLG_MOTION_TOLEFT’ undeclared 
(first use in this function); did you mean ‘BRL_FLG_MOTION_TOLEFT’?
           | (code & BRLAPI_KEY_FLG_MOTION_TOLEFT ? BRL_FLG_MOTION_TOLEFT : 0)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     BRL_FLG_MOTION_TOLEFT
make[1]: *** [Makefile:769: cmd_brlapi.o] Error 1
make[1]: Leaving directory '/home/pi/Documents/braille/brltty/Programs'
make: *** [Makefile:48: all] Error 2
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://brltty.app/mailman/listinfo/brltty

Reply via email to