Hello,

I'm working with Windows XP (32Bit), using Visual Studio 2005 Professional.

Now I want to build an Fltk-1.1.10 application (cross-compile) to following 
target:
Freescale, ARM1136-MX35 (armv4i), using OS Microsoft Windows CE 6.0

How to?

First I have to build FLTK for WindowsCE.
http://www.mail-archive.com/fltk-dev@easysw.com/msg00245.html
I used this reference to do that.

Then I chose a example project (just one .cxx file named scope.cxx) and did 
following configurations:
- select / connect to  Target Device
- On property pages of scroll.cxx I choose the SDK for armv4i ('Platform' at 
Configuration Manager)
- On Configuration Properties, I select the right Deployment Device and Remote 
Directory
- Additionaly I tell VC2005 where to find the (changed) Include Directories of 
the FLTK folder
- I show where to find the .libs for the target (fltk.lib corelibc.lib 
coredll.lib libOpenVG.lib lib2dz160k.lib)
- Tell the linker that the Target Machine is a MachineARM

So, Linker commandline is:
/OUT:"../test/scroll.exe" /NOLOGO /LIBPATH:"C:\fltk-1.1.10-wince_armv4i\lib" 
/LIBPATH:"C:\WMF_NG_SDK\Lib" /MANIFEST:NO /NODEFAULTLIB:"libcd" 
/NODEFAULTLIB:"oldnames.lib" /PDB:".\Release/scroll.pdb" /MACHINE:ARM 
/ERRORREPORT:PROMPT fltk.lib corelibc.lib coredll.lib libOpenVG.lib 
lib2dz160k.lib  coredll.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib 
commctrl.lib


Result:
1>------ Rebuild All started: Project: scroll, Configuration: Release 
WMF_NG_SDK (ARMV4I) ------
1>Deleting intermediate and output files for project 'scroll', configuration 
'Release|WMF_NG_SDK (ARMV4I)'
1>Compiling...
1>scroll.cxx
1>Linking...
1>fatal error C1905: Front end and back end not compatible (must target same 
processor).
1>LINK : fatal error LNK1257: code generation failed
1>Build log was saved at 
"file://c:\fltk-1.1.10-wince_armv4i\vc2005\release\BuildLog.htm"
1>scroll - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


Objectfile was created, but linker can't solve it.

Error Message C1905:
Front end and back end not compatible (must target same processor)
This error occurs when a .obj file is generated by a compiler front end 
(C1.dll) that targets one processor, such as x86, Itanium Processor Family 
(IPF), or x64, but is being read by a back end (C2.dll) that targets a 
different processor.
Ensure that you are using a matching front end and back end.


Question:
What went wrong? How to fix this? What to do now?

Thank you for reply
_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to