Issue : Some of the Huawei USB Dongles not recognized by Android JellyBean4.1.2 in Beaglebone. In Detail : I am working with BeagleBone running on Android JellyBean4.1.2 . Huawei – E1731 [Locked] , Huawei – E303D [Locked] are working fine in this platform. Huawei E303F , Huawei E303F (Both Factory…
Tag: c++
Ubuntu 12.04: Installing MonoDevelop “broken packages”/”unmet dependencies” error
I am very new to Linux, so please forgive me if the answer to my question is obvious. Since I am running an ARM device and can’t install wine, I am trying to install Mono/Develop. The problem is, whenever I try to install any of the Mono packages, I am greeted with a huge block of “unmet dependenc…
SIGALRM, interval timers and problems with sleep()
I am working with porting one of our embedded microcontroller libraries to linux and writing a python wrapper around it. One of my low level modules depends on a callback that gets called every 10ms. This callback counts up software timers that each have callbacks of their own. These timers are used all over …
__builtin_return_address returns null for index >0?
I want to get the return address of the caller function. I’m using __builtin_return_address() funtion, but if I give index value greater than 0 it is returning NULL. Please help me with this or tell me any other function to get the same. Answer See this answer to a related question. __builtin_return_add…
cmake linking shared libraries on ubuntu
Hi I am having problems with linking two libraries on ubuntu using cmake 2.8.12 Directory structure CMakeLists.txt for lib1 This builds fine. Then for lib2 I have the following CMakeLists.txt Here I get Linking CXX shared library ../build/liblib2.so /usr/bin/ld: cannot find -llib1 I am not clear how to correc…
Process management code behaves different on Linux and Windows – Why?
(Context) I’m developing a cross-platform (Windows and Linux) application for distributing files among computers, based on BitTorrent Sync. I’ve made it in C# already, and am now porting to C++ as an exercise. BTSync can be started in API mode, and for such, one must start the ‘btsync’…
What does `OBJECTS = $(SOURCES:.cpp=.o)` mean in a makefile
I am going over this tutorial and it has something like this I am not sure if I understand the document and would appreciate it if someone could explain the last two statements. Here are my three questions regarding Makefile Question 1 : Whats the difference between and It says that the second case only works…
Shared library on Linux and -fPIC error
I am trying to compile a shared library in Linux using a Makefile created with Cmake, but running make I obtain the following error: I provide the following command in the CMakeLists.txt in order to say that I want a shared (.so) library: add_library(cpp-lib SHARED ${CPP_FILES}) What else do I need to specify…
Retrieve path of symbolic link
I want to store the path of the file the symbolic link is pointing to into bufff. This works with my current implementation using readlink but it grabs extra data I don’t need because my bufsize is arbitrarily valued. I’m not sure how to size it according to the path of what the symbolic link poin…
Why does QCoreApplication call `setlocale(LC_ALL, “”)` by default on Unix/Linux?
I think that it’s safe to say that C locales are universally recognized as a bad idea. Writing an application that tries to parse or write text-based machine formats (which happens quite often) with C standard library functions gets near-impossible if you have to account for locale being set to anything…