React Native new architecture, C++ Turbo Native Modules - c++

I have been working on RN new architecture for 2 weeks. I'm following instructions on the official doc and I'm struggling with this C++ turbo native module on C++ section. https://reactnative.dev/docs/the-new-architecture/cxx-cxxturbomodules
I thoroughly follow the instructions but not be able to run the code. I run the npx react-native start but the screen is empty and return no error, sometimes it return the EPERM error, operation not permitted but I'm be able to fix this. I can't debug with react tool as well.
If anyone could make it works please help me. Thank you!

Related

Configure wxwidgets with Codeblocks

I want to build C++ GUI programs using Codeblocks+Wxwidgets+cmake. I tried to configure Wxwidgets with codeblocks IDE following the instructions given in the wxWidgets Discussion Forum as well as other Youtube tutorials.
I followed the youtube tutorials below.
Youtube tutorial
But, when 'DEBUG' and 'RELEASE' are being built, it keeps showing some kind of errors. As a result, the building was failed.
Please help me to solve this or suggest another easy way to do C++ GUI projects.
Thank you!
There is an excellent document explaining how to set up C::B with wxWidgets. It can be found here.
It is not about CMake-thingy, but it is written with enough details to help people understand how to setup the IDE.
So I suggest to delete C::B, delete wxWidgets, delete all projects you setup before and start all over, following the instructions from PB to a T.
If you hit a wall or something will not work - please comeback with the exact explanation.

SwiftUI absolute beginner on 10.14.6

I installed XCode and opened a new project using SwiftUI but for the following reason it is impossible to run the builded application. I did use the default code and press run.
I get the following message : "minimum deployment target. Change your project’s minimum deployment target or upgrade MacBook ...".
I tried to change the deployement target but immediately I have several Swift Compiler Error like this one : "'some' return types are only available in macOS 10.15.0 or newer"
I'm running a MacBook Pro with 10.14.6. Is there a way to find the source code for a buildable SwiftUI application on my computer ?
I cannot update to 10.15.0 so I'm looking for other advice or explanation. Maybe for some sourcecode I could use on my MacBook compatible with the Swift Compiler I have.
Thanks.
Thanks for your answers. I cannot update my OS and XCode won't build anything if I don't install Catalina first. I was hopping for an other solution, your answers helped me to focus on the right directions so I searched the web a little bit more and read articles on Mac OS X GUI Programming.
I'm now looking at Python : https://wiki.python.org/moin/GuiProgramming
I'm a little bit disappointed because I wanted to start something new with Swift. But, there is a good lesson here, and I'll do with what is possible given what I have :) Back in the days, for GUIs, I've used Web UI, Java and Qt and I was hoping for something new. I guess that I'll pursue my search to create nice and awesome native Mac OS X application both later and on the side.
Thanks.

C++ REST SDK Sample on Galileo

I would like to run the sample of C++ REST SDK posted in the Windows Developer Program site: https://ms-iot.github.io/content/Casablanca.htm
I was very careful to follow the steps, also using the version 2.2 of cpprest lib instead the latest one (2.4), the result is that I could run successfully the project and deploy it on my Galileo, but when the client object try to resolve the request using the sample posted in the page I received the following error:
Error exception:Error in: WinHttpSendRequest.
The code is the main.cpp in the link above, and I'm trying to run it in my Intel Galileo.
Appreciate any help because it's a bit frustrating can't find info about this error.
The most common cause of errors in the WinHttpSendRequest API are networking/DNS/firewall issues.
One easy thing to check is to ping www.bing.com from the Galileo (Telnet) command line. If that fails, then that's almost certainly the cause. You can replace www.bing.com with the IP address as a quick-and-dirty workaround.
If that's not it, is there a possibility that a firewall is blocking your request (e.g. if you are behind a corporate firewall)?
Did you run the code in the Visual Studio debugger? Can you narrow down where the exception occurs?
If that doesn't help and you're stuck, you might want to try the non-Casablanca approach: http://msdn.microsoft.com/en-us/library/windows/desktop/ms737889(v=vs.85).aspx. Personally, I find Casablanca's asynchronous structure to be confusing, and it's not of much benefit in my projects (basic HTTP client requests). Support for Winsock is packaged with the Windows image running on the Galileo, so no messy prereq configuration required.
Dan.

PyQt-win-gpl-4.11.1 installation

I saw there was a previous question about installing PyQt on a Mac, but unfortunately I'm not quite able to comment on the thread so I had to post a new question. Like that user, I have been having issues downloading QT 4.11.1. I downloaded SIP as well as PyQT4 (link to instructions), but when I try to run python configure-ng.py from my downloads folder, I keep getting the same error saying:
Error: Use the --qmake argument to explicitly specify a working Qt qmake.
Unfortunately I can't find the Qt settings which means I can't keep following the directions from the previous answer and I was hoping someone might be able to help walk me through how to download this module. Sorry for the duplication and thanks in advance.

OpenCV - How do I get started?

I just don't seem to be able to get OpenCV to work properly. Here's what I want to accomplish:
Use CodeBlocks (which I installed using codeblocks-10.05mingw-setup.exe) with OpenCV (installer: OpenCV-2.4.2.exe) on my Windows x64.
I've tried a lot of different configurations which will only bother you if I posted them all, so I hope you don't mind if I just ask the simple question: how do I get this to work?
I think I'm missing the smallest detail right now, so a detailed description of how to get started would be welcome.
If the OpenCV installer did the job, you should have by now OpenCV libraries and headers already installed in your system.
I would then go ahead and try to compile a hello world basic code, like the one you can get from here. If you would like to program using an IDE, like VisualC++ in Windows, you can follow this guide that will help you setting up the environment.
OpenCV team just introduced their new web site. There you can find Introduction to OpenCV section with installation instructions, including detailed instructions for Windows. Don't forget to cleanup your system before installation to avoid problems with mixing different install options. If you still can't get it working with CodeBlocks, follow Dan's advice and try compiling from command line.
When you are done with installation, go on and read there great new tutorials!