kde-4.8 & mingw64, emerge qt fails at linking stage
Pedro Lopez-Cabanillas
pedro.lopez.cabanillas at gmail.com
Sat Feb 25 13:43:23 UTC 2012
On Sat, Feb 25, 2012 at 2:02 PM, Patrick Spendrin <ps_ml at gmx.de> wrote:
> Am 25.02.2012 13:20, schrieb Pedro Lopez-Cabanillas:
>> Hi,
>>
>> Working with kde-4.8 on Windows7 64 bit, mingw64 compiler, emerge qt
>> fails at linking stage:
>>
> [...]
>> searching for -lssleay32
>> c:/kderoot/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x86_64-w64-mingw32/bin/ld.exe:
>> cannot find -lssleay32
> ^^^
> [...]
>>
>> C:\kderoot>emerge --print-installed
>> Category Package Version
>> -------- ------- -------
>> dev-util 7zip 9.20
> [...]
>> win32libs-bin openssl 1.0.0d
> ^^
>> win32libs-bin zlib 1.2.5-1
>>
>
> It seems it cannot find the openssl libraries which I have never seen
> before. This works on our buildserver, so it shouldn't happen.
>
> What you should check:
> do C:\kderoot\lib\ssleay32.dll.a and C:\kderoot\lib\libeay32.dll.a
> exist? If not, try if reinstalling emerge -i openssl helps you.
Yes:
C:\kderoot>dir lib
Directorio de C:\kderoot\lib
25/02/2012 12:18 <DIR> .
25/02/2012 12:18 <DIR> ..
25/02/2012 12:18 <DIR> engines
25/02/2012 12:18 2.442.080 libcrypto.a
25/02/2012 12:17 156.078 libdbus-1.dll.a
25/02/2012 12:18 2.260.644 libeay32.dll.a
25/02/2012 12:17 54.264 libexpat.dll.a
25/02/2012 12:18 32.924 libmysql.lib
25/02/2012 12:18 24.222 libmysqld.lib
25/02/2012 12:18 463.158 libssl.a
25/02/2012 12:18 43.706 libz.dll.a
25/02/2012 12:18 <DIR> pkgconfig
25/02/2012 12:18 <DIR> plugin
25/02/2012 12:18 156.166 ssleay32.dll.a
9 archivos 5.633.242 bytes
> I have one thing to mention here though:
> - You work without shortening the path (see the kdesettings.bat), which
> is not really recommended because it will probably fail later in Qt.
Didn't help:
g++ -mthreads -shared
-Wl,--out-implib,r:\build\libs\qt-4.7.1.20101224\work\mingw4-RelWithDebInfo-4.7.4\lib\libQtNetwork4.a
-o ..\..\lib\Q
tNetwork4.dll object_script.QtNetwork.Release
-L"r:\build\libs\qt-4.7.1.20101224\work\mingw4-RelWithDebInfo-4.7.4\lib"
-L"r:\build\libs\q
t-4.7.1.20101224\work\mingw4-RelWithDebInfo-4.7.4\lib" -lws2_32
tmp\obj\release_shared\QtNetwork_resource_res.o
-Lr:\build\win32libs-bin\d
bus-1.4.16\image\lib -Lr:\build\win32libs-bin\openssl-1.0.0d\image\lib
-Lr:\build\testing\mysql-pkg-5.1.56\image-mingw4-RelWithDebInfo-5.1
.56\lib -llibmysql -lQtCore4 -lssleay32 -llibeay32
r:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible r:\build\win32libs-bin
\openssl-1.0.0d\image\lib/ssleay32.dll.a when searching for -lssleay32
r:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible r:\build\win32libs-bin
\openssl-1.0.0d\image\lib/ssleay32.dll.a when searching for -lssleay32
r:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x86_64-w64-mingw32/bin/ld.exe:
cannot find -lssleay32
r:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible r:\build\win32libs-bin
\openssl-1.0.0d\image\lib/libeay32.dll.a when searching for -llibeay32
r:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x86_64-w64-mingw32/bin/ld.exe:
skipping incompatible r:\build\win32libs-bin
\openssl-1.0.0d\image\lib/libeay32.dll.a when searching for -llibeay32
r:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x86_64-w64-mingw32/bin/ld.exe:
cannot find -llibeay32
collect2: ld returned 1 exit status
gmake[4]: *** [..\..\lib\QtNetwork4.dll] Error 1
gmake[4]: Leaving directory
`r:/build/libs/qt-4.7.1.20101224/work/mingw4-RelWithDebInfo-4.7.4/src/network'
gmake[3]: *** [release] Error 2
gmake[3]: Leaving directory
`r:/build/libs/qt-4.7.1.20101224/work/mingw4-RelWithDebInfo-4.7.4/src/network'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`r:/build/libs/qt-4.7.1.20101224/work/mingw4-RelWithDebInfo-4.7.4/src/network'
gmake[1]: *** [sub-network-make_default-ordered] Error 2
gmake[1]: Leaving directory
`r:/build/libs/qt-4.7.1.20101224/work/mingw4-RelWithDebInfo-4.7.4'
gmake: *** [all] Error 2
emerge fatal error: while running make cmd: gmake
emerge fatal error: running python
r:\emerge\portage\libs\qt\qt-4.7.1.20101224.py compile
emerge debug: Task: Emerge stopped after: 0:04:22.250000
> Personally I also would set EMERGE_SOURCEONLY=True (just add at the end)
> and EMERGE_BUILDTYPE=Debug in kdesettings.bat.
>
> regards,
> Patrick
> _______________________________________________
> Kde-windows mailing list
> Kde-windows at kde.org
> https://mail.kde.org/mailman/listinfo/kde-windows
More information about the Kde-windows
mailing list