[Qt-wince-interest] OpenSSL failing to build for a Qt 4.6/WinCE 5.0 target

Andreas Unger andi.unger05 at gmail.com
Wed Jan 20 19:53:48 CET 2010


I should first build wcecompat libs before building OpenSSL, right? I'm
unable to build just wcecompat by itself. As a Linux user, I'm not very
familiar with WinCE. See my attempts at building wcecompat below. What is
the sequence of steps that I should follow?

I first start with these commands:

cd C:\Qt\mauricek-wcecompat
set OSVERSION=WCE500
set PLATFORM=STANDARDSDK
set TARGETCPU=MIPSII
set PATH=%PATH%;C:\Qt\qt-4.6.0-MIPS-CE-5.0\bin

Attempt 1:
----------

1) C:\Qt\qt-4.6.0-MIPS-CE-5.0\bin\setcepaths wince50standard-mipsii-msvc2008
output:
Environment Selection:STANDARDSDK_500 (MIPSII)
Standard SDK for mips-ii selected, environment is set up

2) perl config.pl

output:
windows ce version:WCE500
major:5
minor:00
Compiling for Architecture:MIPSII
Compile: -D_WIN32_WCE=0x500 -DUNDER_CE=500 -DMIPS -D_MIPS_ -DMIPS_R4000
Link:/SUBSYSTEM:windowsce,5.00 /MACHINE:MIPS

3) nmake
include\winsock_extras.h(33) : error C2220: warning treated as error - no
'objec
t' file generated
include\winsock_extras.h(33) : warning C4273: 'getservbyname' : inconsistent
dll
 linkage
        C:\Program Files (x86)\Windows CE
Tools\wce500\STANDARDSDK_500\include\M
IPSII\winsock2.h(2183) : see previous definition of 'getservbyname'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
9.0\
VC\ce\bin\x86_mips\cl.EXE"' : return code '0x2'
Stop.

Attempt 2:
------------

1) C:\Qt\qt-4.6.0-MIPS-CE-5.0\bin\setcepaths wince50standard-mipsii-msvc2008

2) C:\Qt\qt-4.6.0-MIPS-CE-5.0\bin\qmake

WARNING: Failure to find: src\io.cpp
WARNING: Failure to find: src\process.cp
WARNING: Failure to find: src\time.cpp
WARNING: Failure to find: src\io.cpp
WARNING: Failure to find: src\process.cp
WARNING: Failure to find: src\time.cpp

On Tue, Jan 19, 2010 at 12:06 PM, Nikolay Mikheev <el.vooft at gmail.com>wrote:

> There's a project wcecompat by one of Trolls. It provides some
> functionality for WinAPI, which was cut off from WinCE.
> http://github.com/mauricek/wcecompat
>
> Last summer i tried to build openssl and built it successfully. Full
> history of my actions i can't remember, but if you want you can use my
> binaries: http://blog.vooft.ru/files/2009/06/openssl_wce.zip
> It contains openssl, QCA and wcecompat. It was built with msvc2008 and
> wincewm50pocket.
>
> 2010/1/19 Andreas Unger <andi.unger05 at gmail.com>:
> > Thanks. Any pointers where I could find instructions on how to build
> OpenSSL
> > for a WinCE target?
> >
> > --Andreas
> >
> > On Tue, Jan 19, 2010 at 10:26 AM, İsmail Dönmez <ismail at namtrac.org>
> wrote:
> >>
> >> You need to install OpenSSL seperately.
> >>
> >> On Tue, Jan 19, 2010 at 5:17 PM, Andreas Unger <andi.unger05 at gmail.com>
> >> wrote:
> >>>
> >>> Ok, so here's what's confusing to me. Doesn't Qt ship with OpenSSL
> >>> source? In that case, shouldn't the headers be somewhere in the
> src/network
> >>> folder or in the include, lib folders of the Qt source code that I
> >>> downloaded from the Qt website? Or do I need to install OpenSSL
> separately?
> >>>
> >>> Cheers,
> >>> Andreas
> >>>
> >>> On Tue, Jan 19, 2010 at 9:44 AM, İsmail Dönmez <ismail at namtrac.org>
> >>> wrote:
> >>>>
> >>>> Andreas;
> >>>> No worries. Your error looks simple. You forgot to include the path
> >>>> OpenSSL headers resides. E.g I got OpenSSL in C:\Qt\openssl so I
> configure
> >>>> with
> >>>> configure.exe -platform win32-msvc2008 -xplatform
> >>>> wince50standard-mipsii-msvc2008 -release -static -I
> C:\Qt\openssl\include -L
> >>>> C:\Qt\openssl\lib
> >>>> Notice the bold part. Just change the path for your OpenSSL
> installation
> >>>> and it should work.
> >>>> Regards,
> >>>> id
> >>>>
> >>>> On Tue, Jan 19, 2010 at 4:40 PM, Andreas Unger <
> andi.unger05 at gmail.com>
> >>>> wrote:
> >>>>>
> >>>>> I could try a dynamic build but unfortunately, the target platform
> has
> >>>>> very limited memory available, so it chokes on the linking process
> when the
> >>>>> libraries are loaded dynamically. I could try it though. How do I get
> >>>>> OpenSSL to work dynamically?
> >>>>>
> >>>>> --Andreas
> >>>>>
> >>>>> On Tue, Jan 19, 2010 at 9:33 AM, İsmail Dönmez <ismail at namtrac.org>
> >>>>> wrote:
> >>>>>>
> >>>>>> Yes but not statically. If you want a dynamic one, I can help.
> >>>>>> Regards,
> >>>>>> id
> >>>>>> On Tue, Jan 19, 2010 at 4:32 PM, Andreas Unger
> >>>>>> <andi.unger05 at gmail.com> wrote:
> >>>>>>>
> >>>>>>> Hi, has anyone here been able to get OpenSSL working with Qt on
> >>>>>>> Windows CE? Mind letting me know the steps to follow? I'm bothered
> by fact
> >>>>>>> that I'm unable to get OpenSSL working and I *really* need it for
> my
> >>>>>>> application.
> >>>>>>>
> >>>>>>> --Andreas
> >>>>>>>
> >>>>>>> On Sun, Jan 17, 2010 at 11:16 AM, Andreas Unger
> >>>>>>> <andi.unger05 at gmail.com> wrote:
> >>>>>>>>
> >>>>>>>> Hi all,
> >>>>>>>> I am trying to get OpenSSL libs built statically via the -openssl
> >>>>>>>> configure switch i.e configure -platform win32-msvc2008 -xplatform
> >>>>>>>> wince50standard-mipsii-msvc2008 -release -static -openssl
> >>>>>>>> This isn't working. The build is failing with the error message:
> >>>>>>>> src/network/qsslsocket_openssl_p.h(66) : fatal error C1083: cannot
> open
> >>>>>>>> include file: 'openssl/asn1.h'
> >>>>>>>> What could I be doing wrong? or what should I do to make this
> work?
> >>>>>>>> Thanks,
> >>>>>>>> Andreas
> >>>>>>>
> >>>>>>> _______________________________________________
> >>>>>>> Qt-wince-interest mailing list
> >>>>>>> Qt-wince-interest at trolltech.com
> >>>>>>> http://lists.trolltech.com/mailman/listinfo/qt-wince-interest
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> Qt-wince-interest mailing list
> >>>>>> Qt-wince-interest at trolltech.com
> >>>>>> http://lists.trolltech.com/mailman/listinfo/qt-wince-interest
> >>>>>>
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> Qt-wince-interest mailing list
> >>>>> Qt-wince-interest at trolltech.com
> >>>>> http://lists.trolltech.com/mailman/listinfo/qt-wince-interest
> >>>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Qt-wince-interest mailing list
> >>>> Qt-wince-interest at trolltech.com
> >>>> http://lists.trolltech.com/mailman/listinfo/qt-wince-interest
> >>>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Qt-wince-interest mailing list
> >>> Qt-wince-interest at trolltech.com
> >>> http://lists.trolltech.com/mailman/listinfo/qt-wince-interest
> >>>
> >>
> >>
> >> _______________________________________________
> >> Qt-wince-interest mailing list
> >> Qt-wince-interest at trolltech.com
> >> http://lists.trolltech.com/mailman/listinfo/qt-wince-interest
> >>
> >
> >
> > _______________________________________________
> > Qt-wince-interest mailing list
> > Qt-wince-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-wince-interest
> >
> >
>
>
>
> --
> Best regards, Nikolay Mikheev
>
> _______________________________________________
> Qt-wince-interest mailing list
> Qt-wince-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-wince-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-wince-interest/attachments/20100120/9c811c8a/attachment.html 


More information about the Qt-wince-interest mailing list