Is it possible to compile a windows service with cygwin? - c++

I tried to compile my C++ daemon code from linux, with cygwin. It worked but not as a windows service. It's in processes list. How can I run it as a service? Or can I compile a windows service with cygwin?

cygrunsrv is used to install and manage Cygwin-based Windows services. Once you've installed that package, complete documentation is available in the /usr/share/doc/Cygwin/cygrunsrv.README file.

Related

How to write native C++ in VS 2022, using Linux for build and test

I need a native C++ app to make from scratch. It has to run on linux (CentOS). I want to use VS2022 to write and test. I have Hyper-V VM with CentOS.
I tried to google a solution but there are only posts for using WSL.
Can someone please describe steps to connect VS to Linux VM instead of WSL so I can build and run the app on the VM.
This article describes the process: https://devblogs.microsoft.com/cppblog/linux-development-with-c-in-visual-studio/
add workload to the VS using VS Installer (Linux and embedded..)
create project of correct type
add SSH credentials in the project Properties (also can be added/removed/edited in Tools-Options-Cross Platform)

Deploying a C++ application developed on Mac OS in a Ubuntu environment

I have developed a small web server based on Crow, link.
I'm pretty new to developing in C++ so all advices are greatly appreciated.
I'm developing the application on my Mac and intend to deploy it to a Ubuntu server.
I use Make to build the application so that I can run it on the Mac. The application is depending on two libraries, pqxx and png++. None of those are installed on the server.
I'd like to know how to run this application on the Ubuntu server. Mainly I guess the issue is, can I make a specific build on the Mac that is targeted for running on the Ubuntu server? Or do I have to build the application on the server?
Easiest way is to install Ubuntu on a VM on your Mac and deploy there your application.
Less easy solution: move source files on server, deploy the application, delete the sources from server.
Theoretically, both system are linux, so as long as you are using standard c++ libraries the code should run anyway.
In any case, the dependencies on Linux and Mac for Crown are different, so (most probabily) you have to install some libraries on your server.

Do Monaca Build Windows Apps Work on WIndows 10?

I built an app in Monaca, and have successfully deployed and published it on google play and the App Store. I know I have to sign it with visual studio to publish it in the windows store, but can manually install it using powershell for development purposes. However, even though it works on android and ios, it crashes immediately after launching in Windows 10. I read over the documentation, and my question is: Is it even compatible? Everything in the documentation is either outdated or stictly for windows 8.
Yes they are compatible. I finally installed and ran it successfully.

How Remote Development of C++ works in Netbeans?

Hi we want to use remote development features of netbeans but while trying out on our setup its very slow. I want to understand its feasibility of integrating our build environment with netbeans.
Our setup would be normally:
1. Windows 7 Professional 64bit where we install netbeans
2. RHEL 5.5 64bit linux where we have tools and sources
Normally we directly connect to that machine through PuTTY and use VIM to edit sources and gmake to compile and build projects. Now when I created the "New Remote Project with existing sources" and try to use it It took more time to load the project.
So Can anybody tell me how actually this remote compilation works??
Because we have some GBs of sources here on linux box and I want to know is it possible for smooth development with this big data??
Simple steps. Read this tutorial. You just need a SSH-server on your Linux.
The process is easy, your Netbeans connects to the SSH-server and searches for compilation tools then uses them to build your projects.
The second issue is creating a shared folder that your Windows and Linux able to access to it. I suggest you first create a shared folder on your Windows and use Samba client on your Linux.

configure WSO2 Web Services Framework for C++ (WSO2 WSF/C++) on windows 7

i use this documenet for configure on windows WSO2 Web Services Framework for C++
form the following documnet i able to start axis2_http_server and it's running on port on 9090
its display deployed application on http://localhost:9090/axis2/services
but when i try to create hello.cpp sample application from the given documentation but not able to compile the hello.cpp src file
i install all listed Dependencies on my windows 7 box then also not able to compile hello.cpp i install visual c++ 2008 and also try with cygwin for gcc compiler then also not able to compile can any one help to set development environment for WSO2 Web Services Framework for C++ on windows
Try using visual studio to build a project. Another option is to try and look at the samples makefile shipped with wsf/cpp and use a similar command.