I Need to install sdl 1.2.15 in mingw (Windows 64bit) - windows

Is there a way to install the old sdl 1.2.15 in mingw on Windows 10 for 64 bit. Everything I find is either only for 32 bit or for 64 bit but only for linux. I also need to install sdl gfx and sdl ttf.

SDL 1.2.15 builds fine under MSYS2 using ./configure and make.
Or you can just get the MSYS2 package (see https://packages.msys2.org/package/mingw-w64-x86_64-SDL) using pacman.

Related

C:\cygwin64\bin does not have gcc.exe, g++.exe

I am using Mingw with code:blocks for years but now I need to to use cygwin64 with code blocks.
So I installed cygwin64 (for 64-bit windows) and the folder C:\cygwin64\bin does not have gcc.exe or g++.exe, while I installed them along with other packages indicated here (NOTE: I do not know if the command prompt runs the gcc/g++ from mingw or from cygwin?)
I do not know if the gcc.exe or g++.exe did not get installed because i also have mingw.
There are many youtube tutorials for this, but they all download the 32-bit version of cygwin. I would like to use the 64-bit. Has anyone done this?
Note that i followed the code:blocks wiki on how to install cygwin, but it does not say whether I need to install the 32 or 64-bit, and there are many points where it says " add [Cygwin]\usr\X11R6\bin (if required)" and ""-3" may need to be changed to "-4"". Unclear documentation!
the gcc compiler is included in the gcc-core package
$ cygcheck -p bin/gcc
Found 10 matches for bin/gcc
gcc-core-10.2.0-1 - gcc-core: GNU Compiler Collection (C, OpenMP)
...
This is valid for both 32bit and 64bit versions of Cygwin.
Fixed it by uninstalling the cygwin64 altogether, and I installed the cygwin 32-bit version. Tutorials on how to install 32-bit version can be found here and here This also installed gcc.exe, g++.exe files in the C:\cygwin\bin folder.
With compiler settings:

Graphic Interface not available when running simulation

I'm getting this error when running the configure file:
configure: error: Cannot build Qt apps, probably due to missing or too
old Qt packages. Make sure Qt development packages are installed and
newer than Qt 5.4. You can disable Qtenv by setting the WITH_QTENV
variable to "no" in configure.user
I've installed Qt5 and also added the path to the paths file.
My Qt version is 5.15.0 and my MacOS is Catalina (10.15.5 (19F101)).
Probably qmake is not able to build the Qt interfaces but I couldn't make it do it.
I think you're misunderstanding for OS support bit. macOS (After High Sierra version) is only use 64bit (x86_64). If you want to know your macOS support bit information, you can execute "uname -a" command in terminal.
i386: 32bit
x86_64: 64bit
I hope this has been useful. :D
It seems that my OS version is 32 bits and Qt5 is 64 bits. Since some of the binaries come in the 64 bits flavor, I was not able to use it with omnet++ 5.6.
I installed omnet++ version 5.0, but the program wouldn't run.
So I went back to omnet++ 5.6 and instead of using Qt, I compiled with tcl/tk and that worked for me.

Cross Debug Win32 Mingw32 C/C++ program on Linux and Wine using GDB

I installed mingw-w64 and gdb-mingw-w64 on Ubuntu 14.10 using:
sudo apt-get install mingw-w64
sudo apt-get install gdb-mingw-w64
I'm able to compile C/C++ programs and run them from Wine or on Windows machine.
I installed mingw32 version of gdb to be able to debug windows app compiled with Mingw.
I tried to use recent versions of Netbeans 8, Code::Blocks 13.12, Eclipse Luna and was able to configure Mingw toolchain to be used with IDE for building win32 application from Linux.
I also tried to configure the same way in those IDEs to use Mingw version of GDB (gdb-mingw-w64) the same way as standrad GDB was sued for non-mingw GCC toolchain but was never able to make it work :(
How can I debug such C/C++ program compiled with Mingw from Linux?
How to configure in any of IDEs listed above?
Thank you!

compiling Win64 bit library using MingW64 compiled libCurl

I need 64 bit windows library for my 64 bit library. I am not able to find any 64 bit libcurl from the libcurl community. They only provide 64 bit in MingW64 or CygWin.
My problem is I dont if I can use 64 bit libCurl compiled in MingW or CygWin in windows or not? if it can be used, how can I do it?
Is there a way I can compile my own 64 bit Windows version? Or Has any one in past tried it?
I am referring:- http://curl.haxx.se/download.html
I am having this issue too, but I did seem to get the x64 libcurl. I downloaded the 64bit curl and from extracting it and looking through the curl files found the libcurl. Looking at the documentation in curl-7.43.0 => winbuild => build.windows helped me set the "target architecture" to x64. Then somewhere in the curl directory is the libcurl.lib they use and you can just copy paste that.
Note:
Libcurl wasn't compiling correctly for me. Updating the Windows SDK fixed this on my Virtual Machine.

How to compile a Windows binary in Ubuntu?

I have a Qt application that I can compile in Ubuntu 10.04 64-bit and on Windows. However, I would like to avoid switching to Windows every time I want to compile the Windows version.
Is there a way I can compile a Windows Qt executable in Ubuntu with mingw32 or something?
Further, is there a way to integrate that compiler into Qt Creator?
There is a PPA (Personal Package Archive) for some people who are cross-compiling Qt and related software on Ubuntu for Windows. The PPA contains both the cross-compilers and the dependencies you will need to cross-compile Qt programs. If you look at the source packages there, I think you will be able to figure out how to configure your projects and build them.
If you most of your time spend coding with Qt on Linux (for example, Ubuntu), you may produce some experiment: install Wine, install Qt SDK for Windows with Wine and tried to build some simple project!
And if you don't like crazy things, which I wrote above, just use VirtualBox.

Resources