How to install NAOqi controller for simulated NAO robots in Webots - sdk

I was following this guide: https://github.com/omichel/naoqisim/blob/master/README.md
I installed msys64 and Vistual Studio. In msys I proceeded with the pacman commands as stated in the installation guide, which in turn donwloaded a bunch of stuff.
Now the next step in the Github guide proceeds with the Build.
I executed the commands:
$ WEBOTS_HOME='/c/Program Files/Webots'
$ cd /c/Users/Pawel/Desktop/NAOqi/naoqisim-master
$ make
After it finished downloading I got this:
simulator-sdk-2.1.4 100%[===================>] 379.16M 346KB/s in 31m 31s
2019-02-07 23:11:10 (205 KB/s) - ‘simulator-sdk-2.1.4.1-win32-vs2010.zip’ saved [397574953/397574953]
# extracting simulator-sdk-2.1.4.1-win32-vs2010.zip
make[1]: unzip: Command not found
make[1]: *** [Makefile:63: simulator-sdk] Error 127
make: *** [Makefile:7: default] Error 2

It looks like you need to install unzip.

I don't know if this is resolved. But for whoever else may have the same problem. I have had similar problem installing naoqi and stuff. This Github was actually quite helpful (and now it finally works on webots, i mean naoqi is found at least).
https://github.com/sunzhida/COMP4461_2017Fall_Lab4

Related

mingw32-make install "multiple target patterns" error when installing opencv

I've been trying to build OpenCV-4.5.1 from source with CMake 3.20.0-rc3. I could run mingw32-make after configuring and generating the files from cmake, but this error always pops up when I try to run mingw32-make install.
D:\build1>mingw32-make install
3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/compiler_depend.make:4: *** multiple target patterns. Stop.
mingw32-make[1]: *** [CMakeFiles\Makefile2:3433: 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/all] Error 2
mingw32-make: *** [makefile:165: all] Error 2
I tried looking through the makefiles shown in the cmd but its really long and I have really no idea what to look into. From the google searches I've done it seems like it's to do with syntax error in the makefiles. Can you guys help me out with this?
Edit: first 5 lines of 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/compiler_depend.make
# CMAKE generated file: DO NOT EDIT!
# Generated by "MinGW Makefiles" Generator, CMake Version 3.20
3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/bio.c.obj: C:/Users/XXXX/Downloads/opencv-4.5.1/3rdparty/openjpeg/openjp2/bio.c \
C\\:\\Users\\XXXX\\Downloads\\opencv-4.5.1\\3rdparty\\openjpeg\\openjp2\\bio.c \

ImageMagick 7.0.7-34 installation gives "undefined reference to `PNGSetExifProfile'"

I'm trying to install ImageMagick 7.0.7-34 on a ubuntu 16.04,
I'm using wget to download the latest version (7.0.7-34) from here http://www.imagemagick.org/download/ImageMagick.tar.gz, then after extracting the tar, I'm running the following inside the extracted folder:
sudo ./configure --with-pango
sudo make
which gives the following error:
make all-am
make[1]: Entering directory '/usr/local/sources/ImageMagick-7.0.7-34'
CCLD utilities/magick
MagickCore/.libs/libMagickCore-7.Q16HDRI.so: undefined reference to `PNGSetExifProfile'
collect2: error: ld returned 1 exit status
Makefile:7042: recipe for target 'utilities/magick' failed
make[1]: *** [utilities/magick] Error 1
make[1]: Leaving directory '/usr/local/sources/ImageMagick-7.0.7-34'
Makefile:5178: recipe for target 'all' failed
make: *** [all] Error 2
I've searched but found nothing concerning this error!, anyone knows how to fix this?
--Update--
A similar issue was opened on ImageMagick's github repo, just an hour ago
This was a mistake we made when adding support for the PNG eXIf chunk. This will be resolved in ImageMagick 7.0.7-35. If you upgrade your libpng library you can also fix the build. You will need a version of libpng that has PNG_READ_eXIf_SUPPORTED defined.
p.s. Next time it will be better to create an issue here: https://github.com/ImageMagick/ImageMagick/issues. You will get a much faster response.

compile vlc for android

I am trying to compile vlc for android in RHEL 6.4 (Santiago). I am following the instructions given in this page https://wiki.videolan.org/AndroidCompile. I am getting some errors.
First is when I build this, I get error in git.
error: unknown switch `B'. refer http://txt.do/6tjh for log
I changed the git checkout -B android ${TESTED_HASH} to git checkout -b android ${TESTED_HASH}. Then this error does not come
Then when I run sh compile.sh, I get following errors (refer http://tny.cz/bb552912 I have removed some part of log which had code to download packages like automake, protobuf, ragel etc)
rmdir: failed to remove /root/Documents/android/android/vlc/contrib/arm-linux-androideabi/include/freetype2/freetype/config': No such file or directory
make[1]: [install] Error 1 (ignored)
rmdir: failed to remove `/root/Documents/android/android/vlc/contrib/arm-linux-androideabi/include/freetype2/freetype': No such file or directory
make[1]: [install] Error 1 (ignored)
Then if I again run sh compile.sh, weird things happen. I don't get this error again, but it builds some library and then stops.
First it build libdvdcss and then stops (refer http://tny.cz/5f3ab58f)
It ends like
Libraries have been installed in:
/root/Documents/android/android/vlc/contrib/arm-linux-androideabi/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following:
add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution
add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
use the `-Wl,-rpath -Wl,LIBDIR' linker flag
have your system administrator add LIBDIR to `/etc/ld.so.conf'
make[2]: Leaving directory `/root/Documents/android/android/vlc/contrib/contrib-android-arm-linux-androideabi/dvdcss'
make[1]: Leaving directory `/root/Documents/android/android/vlc/contrib/contrib-android-arm-linux-androideabi/dvdcss'
touch .dvdcss
Then each time I run "sh compile.sh" it build one more library and then stops.
it has build following libraries
libopenjpeg (http://tny.cz/86236e8b)
libgpg-error http://tny.cz/26c5626b)
ffmpeg (http://tny.cz/1f05aa0f)
gmp
libgcrypt
iconv
nettle
libjpeg
Finally I get an following error and I am not able to do any after that (http://tny.cz/ed7798ea)
autopoint: * The AM_GNU_GETTEXT_VERSION declaration in your configure.ac file requires the infrastructure from gettext-0.18 but this version is older. Please upgrade to gettext-0.18 or newer.
autopoint: * Stop.
autoreconf: autopoint failed with exit status: 1
configure.in:20: error: possibly undefined macro: AM_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /root/Documents/android/android/vlc/extras/tools/build/bin/autoconf failed with exit status: 1
make: *[.ogg] Error 1
I am not able to find gettext package with version > .18 for RHEL 6.4. Maximum available is .17 which is installed
Is not this weird. Should not doing "sh compile.sh" build all libraries and I should not have to do this again and again.
Also Is RHEL 6.4 (Santiago) compatible for building vlc android
Any help for these errors

OpenCV installation issue on mac mavericks

So yesterday CleanMyMac destroyed some system files of mavericks, I repaired (reinstalled) mavericks and after that I got an error from Xcode that "assert.h" cannot be found. So I figured I install command line tools with "xcode-select --install" which I have no idea if it has solved my issue or not, and then I noticed all opencv libraries can not be found too.
I uninstalled OpenCV with "brew unisntall opencv"
I have been trying to reinstall it ever since but I had No luck.
Running "brew install opencv" tells me :
==> make
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.o] Error 1
1 error generated.
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/array.cpp.o] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2
Unfortunately I don't know what to do with this error,
I used cmake -j8 and I got:
[ 6%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/transupp.c.o
Linking C static library ../lib/liblibjpeg.a
[ 6%] Built target libjpeg
make: *** [all] Error 2
I tried what was my last hope, "sudo port install opencv" and I get :
Computing dependencies for opencvError: Unable to execute port: can't read "configure.cxx_stdlib": no such variable
I tried selfupdate for macports but it doesnt work either.
so now Im stuck does anybody have any idea? it would be much appreciated.
ps I have assigned my user as the owner of /usr/local just in case: "sudo chown -R $User /usr/local"
I finally fixed it,
my Xcode was 5.1 and I was trying to avoid the upgrade, but as I ran out of options, I updated to Xcode 6 and after that "brew update" found few updates and then "brew install opencv" worked like it should have done in the first place.

Linphone IOS Build Issue

I am trying to compile linphone-iphone module on Mac Mountain Lion. Xcode version 4.5.
I followed the steps given in the following link http://shallwelearn.com/blog/?p=6.
I successfully crossed upto step4.
In Step5, I executed the command
“make -f builder-iphone-simulator.mk all && make -f builder-iphone-os.mk all
&&make -f builder-iphone-os.mk delivery-sdk”
I got the following Error:
checking whether res_ndestroy is declared… yes
checking for antlr3… no
configure: error: Could not find antlr.jar. Please install antlr3
make[1]: *** [/Hub/SIP_Implementation/IOS/workspace/linphone-iphone/submodules/build/../build-i386-apple-darwin/belle-sip/Makefile] Error 1
make: *** [build] Error 2
So I downloaded the antlr.jar(version-3.5) and added classpath. But Still I am getting the same error.
Can anybody help me to fix this?
Finally I fixed the issue by executing “sudo port install antlr3″ command.
After executing this command, I execute the "make all". It is building without error

Resources