# SDL for Windows CE?

**URL:** <https://discourse.libsdl.org/t/sdl-for-windows-ce/3843>\
**Category:** SDL Development\
**Created:** [February 2, 2001, 9:06pm UTC](https://discourse.libsdl.org/t/sdl-for-windows-ce/3843 "2001-02-02T21:06:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Schultz](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/r/49beb7/32.png) [@Robert\_Schultz](https://discourse.libsdl.org/u/Robert_Schultz)\
**Post date:** [February 2, 2001, 9:06pm UTC](https://discourse.libsdl.org/t/sdl-for-windows-ce/3843/1 "2001-02-02T21:06:28Z")

</div>

Am I able to write applications in SDL that will execute under Windows CE?

Robert Schultz - robert.schultz at [adelphiacom.com](http://adelphiacom.com)  
Knowledge Engineer - Adelphia Communications

---

<div class="post-metadata">

**Author:** ![Robert\_Schultz](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/r/49beb7/32.png) [@Robert\_Schultz](https://discourse.libsdl.org/u/Robert_Schultz)\
**Post date:** [February 2, 2001, 9:48pm UTC](https://discourse.libsdl.org/t/sdl-for-windows-ce/3843/2 "2001-02-02T21:48:14Z")

</div>

Am I able to write applications in SDL that will execute under Windows CE?

Robert Schultz - @Robert_Schultz

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [February 4, 2001, 4:54am UTC](https://discourse.libsdl.org/t/sdl-for-windows-ce/3843/3 "2001-02-04T04:54:44Z")

</div>

> Am I able to write applications in SDL that will execute under Windows CE?

I don’t think it works out of the box with Windows CE, but I don’t think it  
would be much effort to make it work. If you do this, please send me a patch.

I don’t have Windows CE. Is there a development environment for it that  
doesn’t require it to run the application?

See ya,  
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

---

<div class="post-metadata">

**Author:** ![Lutz\_Sammer](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/l/59ef9b/32.png) [@Lutz\_Sammer](https://discourse.libsdl.org/u/Lutz_Sammer)\
**Post date:** [February 7, 2001, 11:26pm UTC](https://discourse.libsdl.org/t/sdl-for-windows-ce/3843/4 "2001-02-07T23:26:09Z")

</div>

Sam Lantinga wrote:

> I don’t think it works out of the box with Windows CE, but I don’t think it  
> would be much effort to make it work. If you do this, please send me a patch.
> 
> I don’t have Windows CE. Is there a development environment for it that  
> doesn’t require it to run the application?

You can get the free development kit from m$, it includes an emulator which  
works only with win2000.

Bye,  
Johns–  
Become famous, earn no money, create music or graphics for FreeCraft

[http://FreeCraft.Org](http://FreeCraft.Org) - A free fantasy real-time strategy game engine  
[http://fgp.cjb.net](http://fgp.cjb.net) - The FreeCraft Graphics Project

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [February 8, 2001, 10:32am UTC](https://discourse.libsdl.org/t/sdl-for-windows-ce/3843/5 "2001-02-08T10:32:15Z")

</div>

> You can get the free development kit from m$, it includes an emulator which  
> works only with win2000.

Thanks, I downloaded this today and I’m down to 11 errors and 75 warnings.  
There are two potential trouble spots that I see.

1. WinCE doesn’t seem to support the multimedia timer interface.  
At one point I had a non-winmm timer solution for SDL, so I’ll have  
to dig that up. It’s not as precise as winmm, but it’s better than  
nothing.

2. SDL’s WaveOut audio interface uses semaphores to manage the threaded  
audio support. The code was very delicate to get the correct amount  
of read-ahead queued up with the lowest amount of latency. However,  
the Windows CE SDK earlier than 3.0 doesn’t support semaphores.

Anyway, SDL 1.2 should at least mostly compile under WinCE. 🙂

See ya!  
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

---

<div class="post-metadata">

**Author:** ![Eike\_Sauer](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/e/94ad74/32.png) [@Eike\_Sauer](https://discourse.libsdl.org/u/Eike_Sauer)\
**Post date:** [February 12, 2001, 11:35am UTC](https://discourse.libsdl.org/t/sdl-for-windows-ce/3843/6 "2001-02-12T11:35:54Z")

</div>

Hello!

> Anyway, SDL 1.2 should at least mostly compile under WinCE. 🙂

Great!

Do you already merge your changes into CVS?  
Could you include project/workspace files for CE in the  
distribution, just like those for “ordinary” windows?

Ciao,  
Eike

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [February 12, 2001, 7:55pm UTC](https://discourse.libsdl.org/t/sdl-for-windows-ce/3843/7 "2001-02-12T19:55:19Z")

</div>

> Hello!

> > Anyway, SDL 1.2 should at least mostly compile under WinCE. 🙂

> Great!

> Do you already merge your changes into CVS?  
> Could you include project/workspace files for CE in the  
> distribution, just like those for “ordinary” windows?

Er, mostly compile != fully compile. 🙂  
I probably won’t include projects initially with the release,  
but I’ll make them available on my website and roll them in  
if somebody completes the port to WinCE. It looks like a  
complete port will require semaphore support which isn’t in  
the free version of the WinCE development kit.

See ya!  
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
