Re: Can anyone build with mingw?
Am 07.01.2016 um 19:04 schrieb Scott Kostyshak: > > On Wed, Jan 06, 2016 at 06:58:37PM +0100, Peter Kümmel wrote: >> >> >> Am 28.12.2015 um 14:48 schrieb Scott Kostyshak: Ah, the cmakebin variable is not set, a rest of the bot script. Replacing the variable by cmake should fix it. >> >> committed this. >> >>> >>> Yes this was the problem. There seem to be several unset variables. Can >>> we use >>> set -u >>> with /bin/sh or is that only for bash? >>> For example, $ver is not set for me. >> >> set -u also stops when there is a test for $1, $2, or if a variable is not >> set by design, so it could not be used. > > I'm fine without it, but I note that you can set on/off. For > example (untested): > > set -u > > ... > > set +u > if [ -z $1 ] > then >echo "Usage: xmingw " >exit 1 > fi > set +u A working (and perhaps more accurate?) solution if [ $# -eq 0 ] then echo "Usage: xmingw " exit 1 elif [ -z $1 ] then echo "Invalid value for " exit 2 fi Stephan
Re: Can anyone build with mingw?
Am 28.12.2015 um 14:48 schrieb Scott Kostyshak: Ah, the cmakebin variable is not set, a rest of the bot script. Replacing the variable by cmake should fix it. committed this. Yes this was the problem. There seem to be several unset variables. Can we use set -u with /bin/sh or is that only for bash? For example, $ver is not set for me. set -u also stops when there is a test for $1, $2, or if a variable is not set by design, so it could not be used. Scott
Re: Can anyone build with mingw?
On Mon, Dec 28, 2015 at 12:40:34PM +0100, Peter Kümmel wrote: > Am 28. Dezember 2015 11:41:02 MEZ, schrieb Kornel Benko: > >Am Montag, 28. Dezember 2015 um 05:24:59, schrieb Scott Kostyshak > > > >> On Mon, Dec 28, 2015 at 11:07:18AM +0100, Peter Kümmel wrote: > >> > Am 28. Dezember 2015 07:28:55 MEZ, schrieb Scott Kostyshak > > : > >> > >On Sun, Dec 27, 2015 at 05:52:04AM -0500, Scott Kostyshak wrote: > >> > >> Peter recently added a script to build LyX with mingw, but it > >does > >> > >not > >> > >> work for me. Does it work for anyone else? > >> > >> > >> > >> $ ./development/cmake/scripts/xmingw > >> > >> Usage: xmingw > >> > >> $ ./development/cmake/scripts/xmingw ./ > >> > >> - > >> > >> -- Building LyX-2015.12.27-10.49 > >> > >> - > >> > >> Checking mingw installation ... > >> > >> 4.9.2 > >> > >> Checking Qt installation ... > >> > >> .//../lyx-dependencies/Qt-5.5.1-i686-w64-mingw32/bin/qmake > >> > >> ./development/cmake/scripts/xmingw: line 95: ./: Is a directory > >> > >> Command failed > >> > >> $ > >> > >> > >> > >> It seems xmingw wants a folder as an argument, but the > >underlying > >> > >qmake > >> > >> command wants a .pro file? > >> > > > >> > >CC'ing Peter in case he doesn't follow this list. > >> > > > >> > >Scott > >> > > >> > I only tested with an out of source build directory. Maybe it works > >in your case with an absolute path. > >> > >> Same error: > >> > >> $ /home/scott/lyxbuilds/master/repo/development/cmake/scripts/xmingw > >/home/scott/lyxbuilds/master/repo > >> - > >> -- Building LyX-2015.12.28-10.23 > >> - > >> Checking mingw installation ... > >> 4.9.2 > >> Checking Qt installation ... > >> > >/home/scott/lyxbuilds/master/repo/../lyx-dependencies/Qt-5.5.1-i686-w64-mingw32/bin/qmake > >> /home/scott/lyxbuilds/master/repo/development/cmake/scripts/xmingw: > >line > >> 95: /home/scott/lyxbuilds/master/repo: Is a directory > >> Command failed > >> $ > > > >I get something different: > >$ /usr2/src/lyx/lyx-git/development/cmake/scripts/xmingw > >/usr2/src/lyx/lyx-git > >... > >Checking Qt installation ... > >/usr2/src/lyx/lyx-git/../lyx-dependencies/Qt-5.5.1-i686-w64-mingw32/bin/qmake > >/usr2/src/lyx/lyx-git/development/cmake/scripts/xmingw: 95: > >/usr2/src/lyx/lyx-git/development/cmake/scripts/xmingw: > >/usr2/src/lyx/lyx-git: Permission denied > >Command failed > > > >> Scott > > > > Kornel > > Ah, the cmakebin variable is not set, a rest of the bot script. Replacing the > variable by cmake should fix it. Yes this was the problem. There seem to be several unset variables. Can we use set -u with /bin/sh or is that only for bash? For example, $ver is not set for me. Scott signature.asc Description: PGP signature
Re: Can anyone build with mingw?
Am 28. Dezember 2015 11:41:02 MEZ, schrieb Kornel Benko: >Am Montag, 28. Dezember 2015 um 05:24:59, schrieb Scott Kostyshak > >> On Mon, Dec 28, 2015 at 11:07:18AM +0100, Peter Kümmel wrote: >> > Am 28. Dezember 2015 07:28:55 MEZ, schrieb Scott Kostyshak > : >> > >On Sun, Dec 27, 2015 at 05:52:04AM -0500, Scott Kostyshak wrote: >> > >> Peter recently added a script to build LyX with mingw, but it >does >> > >not >> > >> work for me. Does it work for anyone else? >> > >> >> > >> $ ./development/cmake/scripts/xmingw >> > >> Usage: xmingw >> > >> $ ./development/cmake/scripts/xmingw ./ >> > >> - >> > >> -- Building LyX-2015.12.27-10.49 >> > >> - >> > >> Checking mingw installation ... >> > >> 4.9.2 >> > >> Checking Qt installation ... >> > >> .//../lyx-dependencies/Qt-5.5.1-i686-w64-mingw32/bin/qmake >> > >> ./development/cmake/scripts/xmingw: line 95: ./: Is a directory >> > >> Command failed >> > >> $ >> > >> >> > >> It seems xmingw wants a folder as an argument, but the >underlying >> > >qmake >> > >> command wants a .pro file? >> > > >> > >CC'ing Peter in case he doesn't follow this list. >> > > >> > >Scott >> > >> > I only tested with an out of source build directory. Maybe it works >in your case with an absolute path. >> >> Same error: >> >> $ /home/scott/lyxbuilds/master/repo/development/cmake/scripts/xmingw >/home/scott/lyxbuilds/master/repo >> - >> -- Building LyX-2015.12.28-10.23 >> - >> Checking mingw installation ... >> 4.9.2 >> Checking Qt installation ... >> >/home/scott/lyxbuilds/master/repo/../lyx-dependencies/Qt-5.5.1-i686-w64-mingw32/bin/qmake >> /home/scott/lyxbuilds/master/repo/development/cmake/scripts/xmingw: >line >> 95: /home/scott/lyxbuilds/master/repo: Is a directory >> Command failed >> $ > >I get something different: >$ /usr2/src/lyx/lyx-git/development/cmake/scripts/xmingw >/usr2/src/lyx/lyx-git >... >Checking Qt installation ... >/usr2/src/lyx/lyx-git/../lyx-dependencies/Qt-5.5.1-i686-w64-mingw32/bin/qmake >/usr2/src/lyx/lyx-git/development/cmake/scripts/xmingw: 95: >/usr2/src/lyx/lyx-git/development/cmake/scripts/xmingw: >/usr2/src/lyx/lyx-git: Permission denied >Command failed > >> Scott > > Kornel Ah, the cmakebin variable is not set, a rest of the bot script. Replacing the variable by cmake should fix it.
Re: Can anyone build with mingw?
Am Montag, 28. Dezember 2015 um 13:06:14, schrieb Kornel Benko> Am Montag, 28. Dezember 2015 um 12:56:01, schrieb Kornel Benko > > > > > So we need g++-mingw-w64-i686 package too (not only gcc-mingw-w64-i686) > > > > Now it started ... > > > > And stopped because of iconv.h > /usr2/src/lyx/lyx-git/src/support/docstream.cpp:21:19: fatal error: iconv.h: > No such file or directory > #include > > It is created in the build dir, but apparently are the include paths not > correct > $ find . -name iconv.h -ls > 17172787 12 -rw-r--r-- 1 kornel kornel 9690 Dec 28 12:55 > ./3rdparty/libiconv/iconv.h > 17302591 12 -rw-r--r-- 1 kornel kornel 9348 Dec 28 12:55 > ./libiconv/include/iconv.h > > Which is correct? They are different. Turned out to be error on my side. I already have removed iconv from my local cmake-files. For unix it was OK, but crosscompiling for mingw it was not. Successfully built LyX.exe. Kornel signature.asc Description: This is a digitally signed message part.