[rkward-devel] Windows packaging

Prasenjit Kapat kapatp at gmail.com
Mon Oct 25 17:37:48 UTC 2010


On Mon, Oct 25, 2010 at 7:09 AM, Thomas Friedrichsmeier
<thomas.friedrichsmeier at ruhr-uni-bochum.de> wrote:
> Hi,
>
> On Monday 25 October 2010, Prasenjit Kapat wrote:
>> "The application has failed to start because libstdc++-6.dll was not
>> found. Re-installing the application may fix this problem."
>>
>> Now, libstdc++-6.dll is located at C:\MinGW\bin but should it be
>> needed at runtime for RKWard?
>
> yes and no. libstdc++ is certainly needed (by all KDE apps), but it should
> already be included in the Qt / and or KDE libraries. Either this is not the
> case on your system, or MinGW somehow thought it was a good idea to link
> against libstdc++ dynamically, in addition to that. Which version of GCC is
> this? I used 4.4.0.

Mine's 4.5.0 (as seen from g++.exe --version). Should a different
version matter? After all the compilation was done with this MinGW as
well. Note: C:\MinGW\bin is not in my %PATH%, I only add it in the
make_release.bat file.

> Could you double check that rkward.bat points to the correct location of
> rkward.bin.exe, that rkward.bin.exe is in the same directory as libkdeui.dll

Yes the path is fine - I turned on ECHO and verified (using the actual
rkward.bat file, not its shortcut).

The directory is fine as well - rkward.bin.exe is in
D:\RKWard_package\RKWard\KDE\bin which is where all the libkde* exist.

Here, I've a question. For packaging, I installed the "end user" (not
the "package manager") version of KDE (mingw flavor). I only checked
kdebase-apps (Bin) and let it install the dependencies. Is that OK?

> and friends, and that other KDE appications in that directory can be run?

Yes, kwrite.exe, konqueror.exe, and dolphin.exe, from that directory
(not the KDE used for compiling RKWard), run fine.

> What is the content of
> [...]\windows_nsis\build\rkward\CMakeFiles\rkward.bin.dir\link.txt after
> building? Here's mine:

And here's mine (looks similar to yours):

C:\MinGW\bin\g++.exe    -D_WIN32_WINNT=0x0501 -DWINVER=0x0501
-D_WIN32_IE=0x0501 -DUNICODE -Woverloaded-virtual
-fno-threadsafe-statics -O2 -DNDEBUG -DQT_NO_DEBUG  -mwindows
CMakeFiles\rkward.bin.dir\rkward.bin_automoc.obj
CMakeFiles\rkward.bin.dir\rkward.obj
CMakeFiles\rkward.bin.dir\main.obj
CMakeFiles\rkward.bin.dir\rkglobals.obj
CMakeFiles\rkward.bin.dir\robjectviewer.obj
CMakeFiles\rkward.bin.dir\rkconsole.obj
CMakeFiles\rkward.bin.dir\rkwardapplication.obj  -o rkward.bin.exe
-Wl,--out-implib,librkward.bin.dll.a
-Wl,--major-image-version,0,--minor-image-version,0  -LD:\KDE4\lib
-LC:\R\R-2.11.1\bin
-LD:\RKWard_devel\release_branch_0.5.4\windows_nsis\build\bin
D:\KDE4\lib\libqtmain.a D:\KDE4\lib\libkdecore.dll.a
..\bin\libwindows.a ..\bin\libqwinhost.a ..\bin\libagents.a
..\bin\libdialogs.a ..\bin\libplugin.a ..\bin\libsettings.a
..\bin\libdataeditor.a ..\bin\libcore.a ..\bin\libscriptbackends.a
..\bin\librbackend.a ..\bin\libmisc.a -lktexteditor
D:\KDE4\lib\libkhtml.dll.a D:\KDE4\lib\libkfile.dll.a
D:\KDE4\lib\libkdeui.dll.a D:\KDE4\lib\libkrosscore.dll.a
D:\KDE4\lib\libQtScript4.a -lR -lRlapack -lRblas
D:\KDE4\lib\libkparts.dll.a D:\KDE4\lib\libkjs.dll.a
D:\KDE4\lib\libkio.dll.a D:\KDE4\lib\libQtNetwork4.a
D:\KDE4\lib\libkdeui.dll.a D:\KDE4\lib\libkdecore.dll.a
D:\KDE4\lib\libQtDBus4.a D:\KDE4\lib\libQtCore4.a
D:\KDE4\lib\libkdewin.dll.a -luser32 -lshell32 -lws2_32 -lnetapi32
-luserenv D:\KDE4\lib\libQtGui4.a D:\KDE4\lib\libQtSvg4.a
D:\KDE4\lib\libQtXml4.a


-- 
Prasenjit




More information about the Rkward-devel mailing list