How to compile UEFI Applications with GNU-UEFI in Windows? - uefi

I've read this but I believe the setup cannot be used in Windows. Is there anyway I can build UEFI apps in WIndows?

gnu-efi was created to make it easy to build UEFI applications/drivers from a unix-like operating system.
If you are on Windows, the traditional way would be to use Visual Studio (community edition is fine) and the open source TianoCore EDK2 project. Instructions can be found in the TianoCore wiki.

Related

Is it possible to compile Linux runnable fmus from Dymola on Windows machine?

I am trying to export a FMU from windows machine using Dymola, to be used on both Linux and Windows OS. I guess such fmu will have linux64 and linux32 binaries along with win32 and win64 ones. However, I am not sure how to trigger Dymola to generate binaries for Linux runnable fmu (if it possible to do that).
The Dymola (2020X) installation is using Visual Studio 2019 compiler with both 'Desktop development with C++' and 'Linux development with C++' options. My assumption was that 'Linux development with C++' would make Dymola to compile .so files, however I see only dlls included in the fmu.
Unfortunately you cannot create Windows and Linux binaries for FMU:s in one operation. Great suggestion, though.
Are you using a network or nodelocked license? Maybe a dual boot/virtual machine could help.

Eclipse, GCC, installing them twice?

I am thinking of installing Eclipse for developing STM32 programs (I have a question about this that I will post later). In the instructions it says I have to install:
the IDE for C/C++
GNU ARM Eclipse Plug-ins
GNU GCC ARM tool-chain
among other tools..
However, I am also thinking of installing e2studio for developing Renesas programs. You can see about this Here. There you can see that this is "based on Eclipse CDT" (what is the difference between this CDT and the IDE?) and that it also uses Plug-ins like GNU Tool & Support Here.
My question is, is this possible? Do I have to install them separately? (I guess so). Will the GNU tools will also be installed twice??
(I am using a windows10 machine)
Thanks in advance
CDT is dedicated to C/C++ programming. Actually I personally prefere to have separate eclipse installations for different families of uC. Why? Because it is much easier to manage updates and to keep my work in the correct order.
For STM32 I advice (I think, you are a novice user of Eclipse & ARM toolchains) to install OpenSTM32 (yo have a straightforward installer). It imports projects from CUBEFX & MX which gives you an easy way to import examples & initialisation code from Cube. I personally do not use HAL libraries but as I know I am a minority.
However, I am also thinking of installing e2studio for developing
Renesas programs. You can see about this Here. There you can see that
this is "based on Eclipse CDT" (what is the difference between this
CDT and the IDE?)
Eclipse CDT is an open-source general-purpose C and C++ IDE.
e2studio is one of several software packages that extend CDT with (most likely proprietary) plugins geared towards a more specific market (in this case, Renesas programs).
My question is, is this possible?
Yes.
Do I have to install them separately? (I guess so).
Yes.
Will the GNU tools will also be installed twice?? (I am using a windows10 machine)
You can certainly share a single installation of a toolchain between two installations of CDT, if both of them need the same toolchain (in terms of version and architecture). I don't know enough about STM32 and Renesas to tell you if they use the same toolchain.

Acquire Gtk binaries for windows under linux

I am currently trying to compile my Gtkmm program for windows using my linux system. This requires that I ship the Gtk binaries (in this case .dll's) with my program, since Gtk does not support static linking.
But I just dont know how to get them - the official Gtk download page ( https://www.gtk.org/download/windows.php ) just redirects to the MSYS2 project ( http://www.msys2.org/ ) that offers .EXE files **rage*!
I just dont know where I can download the right dll files that I need to include :/
I would appreciate any help with this.
Regards,
NiAypa
The GTK+ project does not distribute binaries for any platform.
If you are cross-compiling from Linux to Windows, you will need to cross-compile all the dependencies yourself, and distribute them together. Various distributions, like Fedora, ship with cross-compiled dependencies that you can re-use for that purpose.
The MSYS2 project is for building applications and libraries on Windows, using a native toolchain.
I'd like to point out that cross-compiling is great if you want to do CI and testing, but if you want to distribute complex applications for Windows my suggestion would be to actually build them on Windows.

Remote C development on a UNIX machine from a Windows machine using eclipse

I have terminal access to an AIX machine using ssh/telnet (No root access). I need to develop programs using C and compile it using the xlc compiler. Currently I can open remote files in eclipse(Juno) using RSE and edit files, but code-completion and error checking won't work. Can anyone please, help me to setup eclipse, so that code-completion would work and also, I would be able to compile the code from my Windows machine. Any help would be deeply appreciated.
You could try this, http://wiki.eclipse.org/PTP/rdt-setup or.. check out...
How to build a c++ project on a remote computer in Eclipse?
Somewhat similar. If you look at the 3rd answer.
Also you could try X11 Forwarding -
http://tartarus.org/~simon/putty-snapshots/htmldoc/Chapter3.html#using-x-forwarding
Instead of trying to setup Eclipse and CDT to do remote development, you may want to consider purchasing IBM Rational Developer for Power Systems Software (RDP), which is an Eclipse-based remote development environment that allows for C and C++ (and COBOL) application development on AIX from a Windows or Linux system. More information can be found here.

Visual studio + remote gdb debugging

What is best way to do remote live gdb debugging and use Visual studio as the front end.
In my case: I have a C++ application (compiled for debugging) running on a Linux server
Can I use Visual studio on my windows machine as a front end to do
live debugging on the C++ application. Is this even possible for a
large scale application (OR)
If above is not possible, can I use eclipse on my windows or on a different linux box to do the same remote live debugging
Any other better IDE options ?
Thanks.
You can easily do it with VisualGDB:
Build your app on the Linux machine and ensure that you can run it.
Install VisualGDB on your Windows machine with Visual Studio.
Run the VisualGDB build server on the Linux machine.
In Visual Studio, create new project, select C++->VisualGDB
In the wizard select Linux Application -> Import Existing -> Import from Remote machine
Select the directory where you have built the Linux app. If it's not based on GNU Make, also specify the build command line.
Specify whether you want to synchronize IntelliSense directories with Visual Studio.
On the last wizard page specify the executable name of your project so that VisualGDB knows what to debug.
When you press "finish", the Wizard will create a Visual Studio wrapper project around your Linux project so that you can edit the files, built the project and debug it from Visual Studio.
There's a more detailed tutorial here: http://visualgdb.com/tutorials/linux/import/
You can try WinGDB.
It is an extension for Visual Studio allowing to develop and debug programs with GDB. Here is how to setup Remote Linux development using WinGDB.
I don't think it's possible using Visual Studio.
It should be possible using gdbserver/gdb combo, but on Windows machine you will need special build of gdb that targets linux. I never tried this, but it should be possible to build.
If you can get this working, then you can use Eclipse or any IDE that supports GNU tools.
Just some recommendation:
You can install a free X server on your Windows machine, such as Xming or Xorg in Cygwin. Then you can do Linux native debugging with eclipse. Just display the eclipse GUI to your X server on Windows. You can interactive with the GUI on your Windows machine.
Now possible with VS2015 + GDB extension, reas MS blog post here: http://blogs.msdn.com/b/vcblog/archive/2015/11/18/announcing-the-vs-gdb-debugger-extension.aspx