CMake 101

(From https://stackoverflow.com/questions/31037882/whats-the-cmake-syntax-to-set-and-use-variables) When writing CMake scripts there is a lot you need to know about the syntax and how to use variables in CMake. The Syntax Strings using set(): set(MyString “Some Text”) set(MyStringWithVar “Some other Text: ${MyString}”) set(MyStringWithQuot “Some quote: \”${MyStringWithVar}\””) Or with string(): string(APPEND MyStringWithContent ” ${MyString}”) Lists using set(): set(MyList “a” “b” “c”) set(MyList ${MyList} “d”) Or अतिरिक्त Read More

Android NDK console print C/C++ – Chirag Patel

When your Android app has C/C++ code using NDK tools and you want printing output to serial port console, here’s the solution. // change sharing first chmod(“/dev/console”, S_IRWXG | S_IRWXO | S_IRWXU); // open file int serialFd = open(“/dev/console”, O_RDWR | O_NONBLOCK | O_NDELAY | O_NOCTTY | O_APPEND); __android_log_print(ANDROID_LOG_DEBUG, “Serial”, “Serial console fd=%d errno=%d(%s)”, serialFd, अतिरिक्त Read More

Beyond Stephen Hawking – Chirag Patel                                2018 April 01

Beyond Stephen Hawking – Chirag Patel                                2018 April 01 #StephenHawking #DarkMatter #DarkEnergy #BeyondBigBang #BigBang #Upanishad This article is my homage to one of greatest minds of our time – Stephen Hawking. On 2018 March 02, I read a news article on Stephen Hawking (link: https://www.livescience.com/61914-stephen-hawking-neil-degrasse-tyson-beginning-of-time.html). Hawking said that he knew what it was before अतिरिक्त Read More

Remembrance – Chirag Patel Jan 10, 1999

Remembrance – Chirag Patel Jan 10, 1999 The first night of life, God asked “Who do you like?”, Promptuous reply was mine, “Something you life”. Euphemism it was; which unimpressed creator, Elaborating, I unfolded truly my needs to narrator. You like me, you love me, the unforgettable; Feeling you give us is always fully untouchable. अतिरिक्त Read More