[Kde-bindings] Fw: Patches for smokegen/smokeqt/qyoto under Windows (almost done!)

Dimitar Dobrev dpldobrev at yahoo.com
Thu Dec 8 18:00:27 UTC 2011




----- Forwarded Message -----
From: Dimitar Dobrev <dpldobrev at yahoo.com>
To: Steven Boswell II <ulatekh at yahoo.com> 
Sent: Thursday, December 8, 2011 8:00 PM
Subject: Re: [Kde-bindings] Patches for smokegen/smokeqt/qyoto under Windows (almost done!)
 

Sorry, that was a theoretic guess of mine. If /bin is OK, so be it, doesn't matter to me. Haven't tried on the mac, though, but I doubt there would be any difference. Just go ahead, I'll fix it if something comes up.



________________________________
 From: Steven Boswell II <ulatekh at yahoo.com>
To: Dimitar Dobrev <dpldobrev at yahoo.com>; KDE bindings for other programming languages <kde-bindings at kde.org> 
Sent: Thursday, December 8, 2011 7:47 PM
Subject: Re: [Kde-bindings] Patches for smokegen/smokeqt/qyoto under Windows (almost done!)
 

Actually, "RUNTIME DESTINATION bin" did NOT make everything go to /bin on Linux.  I made sure there were no changes in file locations before I e-mailed those patches.

Oh well.  When I submit my final patches, I'll integrate with your changes and change RUNTIME DESTINATION back to bin.

Unless...does "RUNTIME DESTINATION bin" affect Mac negatively?  I don't have access to a Mac.

Steven Boswell



________________________________
 From: Dimitar Dobrev <dpldobrev at yahoo.com>
To: KDE bindings for other programming languages <kde-bindings at kde.org> 
Sent: Thursday, December 8, 2011 8:55 AM
Subject: Re: [Kde-bindings] Patches for smokegen/smokeqt/qyoto under Windows (almost done!)
 

Last night I committed (as I said I would) some now conflicting changes to the CMakeLists. All:

INSTALL(TARGETS qyoto-<lib>-native LIBRARY DESTINATION lib)

were turned to:


INSTALL(TARGETS qyoto-<lib>-native LIBRARY DESTINATION ${LIB_INSTALL_DIR}
                                      ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
                             
         RUNTIME
 DESTINATION lib)

The difference with Steven's patches is that he uses RUNTIME DESTINATION *bin*. I pushed "lib" because otherwise everything would go to /bin also on the Unix platforms (Linux, Mac) and that is against the Unix standards. Sorry for any inconvenience but, as I said, yesterday I mailed I'd commit Steven's changes and a minute later sent a follow-up that I'd replace "bin" with "lib" in his code.



________________________________
 From: Arno Rehn <arno at arnorehn.de>
To: KDE bindings for other programming languages <kde-bindings at kde.org> 
Sent: Thursday, December 8, 2011 5:44 PM
Subject: Re: [Kde-bindings] Patches for smokegen/smokeqt/qyoto under Windows (almost done!)
 
On Wednesday 07 December 2011 18:39:49 Steven Boswell II wrote:
> Enclosed is an archive of my latest patches to smokegen, smokeqt, and qyoto,
> against the latest version of the code in the git repositories.
> 
> Now all the DLLs are put into the "bin" directory (to minimize the number of
> directories that have to be added to the Windows system path), and "lib" is
> no longer prepended to the beginning of DLL/archive names.  No files are
> moved under Linux; the generated directory tree has the same layout.
> 
> 
> But there's one problem I can't solve.  Look at line 107 of
> qyoto-windows.patch.  I removed that line because otherwise, the Windows
> CMake dies during generation with:
> 
> CMake Error: INSTALL(EXPORT "QyotoExport") given absolute DESTINATION
> "C:/Program Files (x86)/qyoto/share/qyoto/cmake" but the export references
> an
 installation of target "qyoto" which has relative DESTINATION "bin".
> 
> But removing that line also causes SmokeExport.cmake and
> SmokeExport-release.cmake to not get installed in the Linux version, and
> presumably in the Windows version.  With that line restored (i.e. if the
> patch file is altered to not remove that line), the Linux version builds
> fine, and SmokeExport.cmake and SmokeExport-release.cmake are in the
> installed directory tree.
> 
> Does anyone know how to solve this?  Apart from this issue, I think my
> changes are ready to check in.
First, thanks for the patches :)
To solve the problem, I thank that you either have to make the DESTINATION 
argument of the INSTALL(EXPORT ...) line relative (i.e. just make it 
"share/qyoto/cmake"), or make all reference to the "bin" DESTINATION absolute 
by saying "${CMAKE_INSTALL_PREFIX}/bin".

-- 
Arno
 Rehn
_______________________________________________
Kde-bindings mailing list
Kde-bindings at kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings



_______________________________________________
Kde-bindings mailing list
Kde-bindings at kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20111208/a9e0b359/attachment.html>


More information about the Kde-bindings mailing list