summaryrefslogtreecommitdiffstats
path: root/tools/copydlldeps.md
diff options
context:
space:
mode:
authordl5rcw <dl5rcw@users.noreply.github.com>2016-02-10 08:31:46 (GMT)
committerdl5rcw <dl5rcw@users.noreply.github.com>2016-02-10 08:31:46 (GMT)
commit37ea726082c31dd90899a2d8e3d0e894f5dab90f (patch)
tree000e7aee5257611e18ff6d0a3bdf689dbcca04df /tools/copydlldeps.md
parent9fe0f21d44179356398c6f0708cbaaec71a63895 (diff)
downloadmxe-37ea726082c31dd90899a2d8e3d0e894f5dab90f.zip
mxe-37ea726082c31dd90899a2d8e3d0e894f5dab90f.tar.gz
mxe-37ea726082c31dd90899a2d8e3d0e894f5dab90f.tar.bz2
converting file to md format
converting file from mediawiki to md format
Diffstat (limited to 'tools/copydlldeps.md')
-rw-r--r--tools/copydlldeps.md26
1 files changed, 14 insertions, 12 deletions
diff --git a/tools/copydlldeps.md b/tools/copydlldeps.md
index dc07f4d..1809e12 100644
--- a/tools/copydlldeps.md
+++ b/tools/copydlldeps.md
@@ -1,8 +1,9 @@
-== README of copydlldeps.sh ==
-This document was created 2016-02-05. It belongs to copydlldeps.sh
+README of copydlldeps.sh
+========================
+This document was created 2016-02-05. It belongs to copydlldeps.sh and is part of the MXE project.
I call it on the command line like:
-<source lang="bash">
+
/share/mxe/tools/copydlldeps.sh --infile /home/mxeuser/test/i686-w64-mingw32.shared/Application.exe \
--destdir /home/mxeuser/testdlls/ \
--recursivesrcdir /home/mxeuser/mxe/usr/i686-w64-mingw32.shared/ \
@@ -10,10 +11,9 @@ I call it on the command line like:
--copy \
--enforce /home/mxeuser/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/platforms/ \
--objdump /home/mxeuser/mxe/usr/bin/i686-w64-mingw32.shared-objdump
-</source>
+
It got embedded in a build script like:
-<source lang="bash">
MXEPATH=/path/to/mxe
compiler=i686-w64-mingw32.shared
orgDir=/path/to/my/nsis/dll #nsis is then copying all dlls in there to the place where the exe is located
@@ -21,9 +21,9 @@ orgDir=/path/to/my/nsis/dll #nsis is then copying all dlls in there to the place
if [ ! $( echo $compiler | grep -q "shared" ) ]; then
echo "\$compiler=$compiler and contains the word 'shared'" | tee -a $CURLOG
- echo "#===============================================# " | tee -a $CURLOG
+ echo "+-----------------------------------------------+ " | tee -a $CURLOG
echo "| Starting new MXE copydlldeps.sh by LHE DL5RCW | " | tee -a $CURLOG
- echo "#===============================================# " | tee -a $CURLOG
+ echo "+-----------------------------------------------+ " | tee -a $CURLOG
echo "currently working in $( pwd ) " | tee -a $CURLOG
executable=$( find . -name "*.exe" | tail -n 1 )
if [ -e $MXEPATH/usr/bin/$compiler-objdump ]; then
@@ -42,17 +42,19 @@ else
--enforce $MXEPATH/usr/$compiler/qt5/plugins/platforms/ \
--copy | tee -a $CURLOG
fi
-</source>
-== Additional hints ==
-=== objdump ===
+Additional hints
+================
+objdump
+-------
I checked if there is a mxe objdump. If not, I took the native one on my server. I actually do not know the difference but decided to include it in the script in case it is important to someone
-=== enforce ===
+enforce
+-------
My application is using Qt5 and objdump did not return the needed qwindows.dll - so I enforce the platform folder. You may add multiple --enforce directories using --enforce /path/folder1 --enforce /path/folder2 --enforce /path/folder3
They are NOT recursively copied, only flat. See:
string=$( find $enforcedDirectory -maxdepth 1 -iregex '.*\(dll\|exe\)' | tr '\n' ' ' )
If you would remove the -maxdepth 1, it would become recoursive. Does anyone need that?
-
+2016-02-10 Lars Holger Engelhard - DL5RCW