Archive

Archive for the ‘Mac OS X’ Category

ROS Kinetic build errors on Mac OS X

08.03.2017 Leave a comment

Recently I’ve tried to install the latest ROS Kinetic on my Max OS X 10.11.6. And I had 3 errors which I’ve fixed.

  1. Building package “Geometric shapes” fails with error “ld: library not found for -lassimp”. Fix: 
    1. If you use official instruction from the ROS website, go to ~/ros_catkin_ws/build_isolated/geometric_shapes/CMakeFiles/geometric_shapes.dir/link.txt and replace -lassimp with /usr/local/lib/libassimp.dylib (use your location).
    2. If you use ros-install-osx script, go to folder where the source code is stored, e.g. kinetic_desktop_ws/src/geometric_shapes/ and open CMakeLists.txt. Make the line 70 look like this target_link_libraries(${PROJECT_NAME} /usr/local/lib/libassimp.dylib ${QHULL_LIBRARIES}
  2. A lot of errors while compiling nodelet_tutorial_math package. Fix:
    1. Try this solution.
    2. In the install file add -DCMAKE_FIND_FRAMEWORK=LAST to the catkin config command call (line 156).
  3. rosrun rviz rviz fails with SEGFAUL error. FIX:
    add to kinetic_desktop_ws/src/rviz/src/rviz/ogre_helpers/render_system.cpp right before #include this #define QT_MAC_USE_COCOA to make Qt use proper libraries

Enjoy!

Categories: Mac OS X Tags: , , , ,

Orange Pi Zero remote debugging with Eclipse CDT on Mac OS X

14.01.2017 Leave a comment
  1. Download ARM toolchain from this blog — http://www.welzels.de/blog/en/arm-cross-compiling-with-mac-os-x/
  2. Create your C++ project, do not forget to select 'Cross GCC' and specify cross compiler path and prefix.01.png
  3. Build project to verify that it is buildable.
  4. Read more…

Categories: ARM, Mac OS X, orange pi, Software, zero

How to use sprintf function in stm32f4xx firmware

02.12.2013 1 comment

Sometimes you need to implement pretty output to USART. This task can be solved in two ways:

  • Write your own converters from int or double to char*
  • Use sprintf and printf

Second way is better. I will use sprintf(str, ...) and write simple loop that will send str byte-by-byte to USART.

I use mac os x + eclipse + arm-none-eabi + openocd + stm32f4discovery.
Let’s start implementing this.
Read more…

Error with “kpathsea: Running mktexmf”

14.11.2013 Leave a comment

I installed BasicTex.pkg on Mac Os X, and tried to make PDF from IPython Notebook. But suddenly received an error:

kpathsea: Running mktexmf $NAME$
! I can't find file `$NAME$'.

This can be fixed with installing font packages from TeX Live Utility. This packages are included neither in BasicTeX.pkg nor in mactex-additions.pkg. But they are required for generating pdf.
It can be fixed by installing packages with summary “URW “Base 35″ font pack for LaTeX.”

packages

packages


After installation this errors would not appear again, i hope 🙂

Categories: Mac OS X Tags: , , , ,

arm-none-eabi-gdb – Segmentation fault: 11 – b 2

07.11.2013 Leave a comment

UPD 14.10.13: This is a bug of GDB. It is already known and fixed.

Terry Guo: The gdb 7.4.1.20130913 in this release has some problem to decode DWARF debug information generated by -g3 option. For the time being, please recompile your project with -g or -g2 to work around this issue.

——-

I am trying to program stm32f303vct6 core on stm32f3discovery board via Eclipse+arm-none-eabi-gdb+openOCD. Source for this stm32 can be built with no errors. I use GNU Tools for ARM Embedded Processors. Also it can be uploaded to MCU. But there are some troubles with debugging: gdb can’t read symbols from the firmware. This means that there will be no breakpoints in code. It is awful.

No symbol file

No symbol file

Read more…