error running make for bluez 5.49 on ubuntu 14.04 - bluez

I am trying to install bluez 5.49 on ubuntu 14.04 but I get the following error:
make: *** [all] Error 2
mivascu#ubuntu:~/bluez-5.49$ make
make --no-print-directory all-am
CC lib/bluetooth.lo
./libtool: 1552: ./libtool: preserve_args+= --silent: not found
./libtool: 1564: ./libtool: preserve_args+= --tag CC: not found
./libtool: 1: eval: base_compile+= gcc: not found
./libtool: 1: eval: base_compile+= -DHAVE_CONFIG_H: not found
./libtool: 1: eval: base_compile+= -I.: not found
./libtool: 1: eval: base_compile+= -I./lib: not found
./libtool: 1: eval: base_compile+= -I/usr/include/dbus-1.0: not found
./libtool: 1: eval: base_compile+= -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include: not found
./libtool: 1: eval: base_compile+= -I/usr/include/glib-2.0: not found
./libtool: 1: eval: base_compile+= -I/usr/lib/x86_64-linux-gnu/glib-2.0/include: not found
./libtool: 1: eval: base_compile+= -g: not found
./libtool: 1: eval: base_compile+= -O2: not found
./libtool: 1: eval: base_compile+= -MT: not found
./libtool: 1: eval: base_compile+= lib/bluetooth.lo: not found
./libtool: 1: eval: base_compile+= -MD: not found
./libtool: 1: eval: base_compile+= -MP: not found
./libtool: 1: eval: base_compile+= -MF: not found
./libtool: 1: eval: base_compile+= lib/.deps/bluetooth.Tpo: not found
./libtool: 1: eval: base_compile+= -c: not found
libtool: compile: you must specify a compilation command
libtool: compile: Try `libtool --help --mode=compile' for more information.
make[1]: *** [lib/bluetooth.lo] Error 1
I do have build-essential installed and gcc.
What could be the issue?
I have came across this https://trac.osgeo.org/gdal/ticket/4102
but did not understood what is the solution.
Thanks,
Mihaita

Related

How do I use message() in CMake?

I have a CMakeLists with this code:
macro(set_up_additional_targets)
add_custom_target(generate_things
message("Generating stuff")
COMMAND python3 generator.py --outfile ${CMAKE_CURRENT_SOURCE_DIR}/sources/stuff
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tools/generator/
)
endmacro(set_up_additional_targets)
I get this error:
/bin/sh: -c: line 0: syntax error near unexpected token `Generating\ stuff'
/bin/sh: -c: line 0: `cd /home/me/workspaces/foo/tools/generator && message ( Generating\ stuff )'
make[3]: *** [CMakeFiles/generate_things.dir/build.make:70: CMakeFiles/generate_things] Error 1
make[2]: *** [CMakeFiles/Makefile2:699: CMakeFiles/generate_things.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:706: CMakeFiles/generate_things.dir/rule] Error 2
make: *** [Makefile:439: generate_things] Error 2
I changed from COMMAND echo "Generating stuff" to message("Generating stuff") to become more platform independent, but it obviously doesn't work. It is not clear from the CMake manual how this could be wrong, though, as usual with CMake, there are no examples in the manual.
What is my mistake?
COMMENT should serve your purpose here, see.
MESSAGE is evaluated at CMake parsing step, see.

Botium scripting memory: Expected bot response not matched

I am getting the following error when using Botium:
TranscriptError: Error: GetNewGetDeleteGet/Line 27: Expected bot
response (on Line 20: #me - getID ) "99 | This is a test" to match
one of "$id | This is a test"
at async.waterfall (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:160:25)
Convo File:
#me: getID
#bot: $id | This is a test
To start Botium I do: sudo botium-cli run mochawesome
I already fired up this command: export BOTIUM_ENABLE_MEMORY=true
Any ideas?
Botium should accept the answer of the bot and save the 99 into the variable $id, shouldn't it?
Edit: After adding SCRIPTING_ENABLE_MEMORY=true to the config file
convo.txt:
#me
get
#bot default
*Hier sind deine Erinnerungen:*
Keine Notizen, oder alles erledigt.
Error:
TranscriptError: Error: GetNewGetDeleteGet/Line 11: error waiting for bot SyntaxError: Invalid regular expression: /*Hier sind deine Erinnerungen:* Keine Notizen, oder alles erledigt./: Nothing to repeat at String.match (native) at utterances.forEach.expected (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:359:38) at Array.forEach (<anonymous>) at Convo._fillScriptingMemory (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:353:18) at scriptingEvents.onBotStart.then.then (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:256:22) at <anonymous>
Dialogflow shows the answer like this
My Code sends it out like that:
{'fulfillmentText': '*Hier sind deine Erinnerungen:*\n\nKeine Notizen, oder alles erledigt.'}
Edit 2:
After removing the *
Convo.txt
Edit 3:
Error Full error log
Edit 4:
Verbose Log
There are two problems:
The environment variable to set is BOTIUM_SCRIPTING_ENABLE_MEMORY
Usually, when running a command with sudo you will loose the environment variables. You can add the capability SCRIPTING_ENABLE_MEMORY to the botium.json file instead.

rabbitmq source code compilation in windows

I require to compile the rabbitmq source code in windows. I have downloaded the code from path and installed cygwin.
As per the link, while performing make command, it is throwing below error:
$ make
erlang.mk:4847: warning: overriding recipe for target '/cygdrive/d/Softwares/OSSSourceCode/rabbitmq-server-master/deps/syslog'
erlang.mk:4847: warning: ignoring old recipe for target '/cygdrive/d/Softwares/OSSSourceCode/rabbitmq-server-master/deps/syslog'
DEP rabbit_common
/bin/sh: git: command not found
/bin/sh: git: command not found
/bin/sh: line 0: cd: /cygdrive/d/Softwares/OSSSourceCode/rabbitmq-server-master/deps/rabbit_common:
No such file or directory
DEP rabbitmq_cli
/bin/sh: git: command not found
/bin/sh: git: command not found
/bin/sh: line 0: cd: /cygdrive/d/Softwares/OSSSourceCode/rabbitmq-server-master/deps/rabbitmq_cli:
No such file or directory
make: *** [erlang.mk:4851: /cygdrive/d/Softwares/OSSSourceCode/rabbitmq-server-master/deps/rabbitmq_cli]
Error 1
Please help me with this.
Compiling RabbitMQ on Windows is not recommended due to the complex steps required. If you must, here is a link to a guide to doing it:
https://gist.github.com/lukebakken/f0323f90291b5e5e7bbbe0287c411171
If you have further questions, please follow up on the mailing list.
NOTE: the RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow.

CMake-generated semicolons between compiler flags cause errors

In the Vc project, OptimizeForArchitecture.cmake is used to optimize compilation for specific architectures.
In my project, I used the old version of the above file. After I update it to the newest version, the compilation flags in flags.make files have the following flags seperated by semicolons:
-march=broadwell;-msse2;-msse3;-mssse3;-msse4.1;-msse4.2;-mavx;-mfma;-mbmi2;-mavx2
which accouts for the following errors when compiling:
/bin/sh: 1: -msse2: not found
/bin/sh: 1: -msse3: not found
/bin/sh: 1: -mssse3: not found
/bin/sh: 1: -msse4.1: not found
/bin/sh: 1: -msse4.2: not found
/bin/sh: 1: -mavx: not found
/bin/sh: 1: -mfma: not found
/bin/sh: 1: -mbmi2: not found
/bin/sh: 1: -mavx2: not found
While when compiling the Vc project, there are no semicolons between the flags.
What's the possible reason of this problem?
A flags.make file example: build/release/CMakeFiles/tungsten.dir/flags.make
CXX_FLAGS = -std=c++0x -march=broadwell;-msse2;-msse3;-mssse3;-msse4.1;-msse4.2;-mavx;-mfma;-mbmi2;-mavx2 -mno-sse4a -mno-xop -mno-fma4 -mno-avx512f -mno-avx512vl -mno-avx512pf -mno-avx512er -mno-avx512cd -mno-avx512dq -mno-avx512bw -mno-avx512ifma -mno-avx512vbmi -Wall -Wextra -Wpointer-arith -Wcast-align -fstrict-aliasing -Wno-unused-local-typedefs -Wno-misleading-indentation -Wno-maybe-uninitialized -Wno-int-in-bool-context -Wno-implicit-fallthrough -fvisibility-inlines-hidden -O3 -DNDEBUG

Why windres cannot find "wx/msw/wx.rc"?

CodeLit 5.2, Windows 7, wxWidget 2.9.4
C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 4 -e -f Makefile"
----------Building project:[ CL2a - Debug ]----------
mingw32-make[1]: Entering directory `D:/Exaos/Workspace/ms-win/CL2a'
windres -i "D:/Exaos/Workspace/ms-win/CL2a/win_resources.rc" --use-temp-file --define __WXMSW__ --define _UNICODE --include-dir C:\Apps\wxWidgets-2.9.5\lib\gcc_dll\mswu --include-dir C:\Apps\wxWidgets-2.9.5\include --define WXUSINGDLL -o ./Debug/win_resources.rc.o
D:/Exaos/Workspace/ms-win/CL2a/win_resources.rc:1:24: fatal error: wx/msw/wx.rc: No such file or directory
compilation terminated.
c:\Apps\MinGW-4.7.1\bin\windres.exe: c:\Apps\MinGW-4.7.1\bin\gcc exited with status 1
mingw32-make[1]: *** [Debug/win_resources.rc.o] Error 1
mingw32-make.exe: *** [All] Error 2
CL2a.mk:124: recipe for target `Debug/win_resources.rc.o' failed
mingw32-make[1]: Leaving directory `D:/Exaos/Workspace/ms-win/CL2a'
Makefile:4: recipe for target `All' failed
1 errors, 0 warnings
I'm sure that the wx.rc is there.
First a small correction: why can't windres find wx/msw/wx.rc
Now, at the top you wrote that you are using wx294, however winders is searching for the file under C:\Apps\wxWidgets-2.9.5 - is this path exists?
To control the search path generated by codelite you should edit the WXWIN environment variable to point to the correct wxWidgets installation folder, this can be done from:
Settings -> environment variables
(Codelite is using wx-config.exe tool to generate the flags for windres )
Eran