Compile source for WinCE (.netce 3.5) fails

Hello,

I'm fairly new to Windows CE development. I try to compile a given software package which is supposed to support ce framework until 2.0.

I installed CMake on my machine, extracted the source code and ran

CMake -G "Visual Studio 8 2005" to create the project files. This worked fine. When I compile the source for Win32 it works also fine. If I switch to PocketPC 2003 (armv4) it leads to the error that a header file is not found.

message is:
3>C:\Users\Oliver\Downloads\yasdi-1.8.1build9-src\projects\generic-cmake\..\..\os\os_windows.h(27) : fatal error C1083: Cannot open include file: 'fcntl.h': No such file or directory

The package that I try to compile to a WinCE DLL is this public library from a Inverter manufacturer:
http://www.sma.de/yasdi-source-code.html

What am I doing wrong?

Thanks in advance
LVL 12
HugoHiaslAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hjgodeCommented:
The code assumes that Windows header files are also available for WinCE.

Possibly you can use the missing WinCE header files from here:
http://code.google.com/p/libce/source/browse/trunk/include/?r=2

0
HugoHiaslAuthor Commented:
I had some fcntl.h files. I copied one into the project dir but it didn't help.

Where do I need to put them?
0
hjgodeCommented:
You have to put them in one of the include path's defined for the built. You can also add an additional include search path, for example <projectdir>\WinCEinc and then put the header files there.

BTW: I added fcntl.h but it then the build still fails for other header includes.

BTW2: the makers of the cmake build set seem not to have much knowledge of how a windows ce sdk is layed out on a windows PC.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

HugoHiaslAuthor Commented:
I was not able to compile the dll.

Your answer showed me the right place to put the lib info.

Thanks a lot.

PS: If you were able to compile it I would apreciate to get the compiled dll :-)
0
hjgodeCommented:
Hello

I was unable to compile the code for windows ce. I dont know what it all assumes. But I found that it needs the mingw32ce environment as it uses the header files of mingw32ce (for example fcntl.h). Unfortunately mingw32ce does not come with a arm-make utility.
Additionally I installed CygWin with development tools and mingw. So I was able to compile the windows DLLs using
cmake -G "MINGW Makefiles" ..

But know I am again lost for how to do this with mingw32ce (no arm-make).

Possibly you can contact the autor as he stated that yasdi is Windows CE compatible.
0
HugoHiaslAuthor Commented:
I'll try that :-)

Thanks a lot.

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Smartphone Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.