32 bit cygwin build has error with direct.h

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
wizard4
Posts: 192
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

32 bit cygwin build has error with direct.h

Post by wizard4 »

Hello. I'm actually asking a question rather than talking ****.

In my attempts to *cough* work with somebody, I've hit a 64/32/x86/i686 problem. I used Cygwin instead of MYSYS to install a compiler that would transfer over to somebody using an older machine (i686), and cross compiling was something I knew C and C++ could do (with ease) but I've ran into so many problems and have never succeeded.

CFileSystem.cpp needs "direct.h" and this means it's beyond me, or I scamper around Google.

Would anyone suggest I use Mysys or does Irrlicht 1.8.5 not run as well on older machines? I see my friend's executables running on my computer. This seems like a deeper cave than I realised. Oddly enough I used DX 2010 last year and could run 64 bit samples, yet I'm trying recently and can only run samples in the 32 bit folder.

I've inadvertently wedged myself in 32 bits on Windows 11!
wizard4
Posts: 192
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: 32 bit cygwin build has error with direct.h

Post by wizard4 »

I just tried now and x86 and x64 both work. How odd I tried a few weeks ago and dlls couldn't be found :?:
wizard4
Posts: 192
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: 32 bit cygwin build has error with direct.h

Post by wizard4 »

I'm not new to Linux, but I am new to Cygwin. In the installer you can opt into downloading the source of the i686 program. Linux always had devel packages to install if you were programming. I now have the direct.h header file but C::B for another reason cannot find crtdefs.h that is located in the same folder.

edit:
I believe I installed i686-x64 instead of x64-i686, but I'll try that.
wizard4
Posts: 192
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: 32 bit cygwin build has error with direct.h

Post by wizard4 »

I did installed the right i686-w64-mingw32-g++.exe and installed the dev packages. Inside C:\cygwin64\usr\i686-w64-mingw32\sys-root\mingw\include were the right headers. The demo works on my machine. I doubt it'll run on Noie's.

I'm not sure between static and dlls, so I have to hand over a bunch of dlls in C:\cygwin64\usr\x86_64-w64-mingw32\sys-root\mingw\bin.

Also C::B needed the lib and include paths for cygwin. It found it all in the end.
CuteAlien
Admin
Posts: 9965
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: 32 bit cygwin build has error with direct.h

Post by CuteAlien »

Phew, good. Because I haven't used cygwin in a long, long time ;-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
wizard4
Posts: 192
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: 32 bit cygwin build has error with direct.h

Post by wizard4 »

Yes

If I can believe Noie the executable was successful. Side note: Irrlicht has long been a single dll and at the moment I'm more glad it worked, even with the "copy and paste" tactic.
Post Reply