Compiling on Windows 7

User avatar
chris
Posts: 493
Joined: Fri Jun 17, 2011 5:39 am

Re: Compiling on Windows 7

Post by chris » Sun Aug 18, 2013 10:42 pm

Something from cygwin is polluting your path

Zah
Posts: 12
Joined: Fri Nov 29, 2013 11:07 pm

Re: Compiling on Windows 7

Post by Zah » Mon Dec 30, 2013 10:40 pm

In regards to the original error reported in this thread:

Code: Select all

[ ERROR ] cannot find Lua module rex_pcre. Some functions may not be available.Lua error:error 
loading module 'rex_pcre' from file '.\rex_pcre.dll':
	%1 is not a valid Win32 application.
I found a cheap hack of a workaround.
Install the Lua binaries for 5.1 or higher from http://code.google.com/p/luaforwindows/
Add the following environment variables:
LIB_CPATH = C:\Program Files (x86)\Lua\5.1\clibs\?.dll;?.dll
LIB_PATH = C:\Program Files (x86)\Lua\5.1\lua\?.lua;?.lua
Add the Lua binaries directory to the system path.

Open the Lua clib directory and delete rex_pcre.dll and pcre.dll. This should force mudlet to use the rex_pcre.dll and pcre.dll that ship with mudlet rather than the incompatible DLLs are are shipping in the lua binaries.

rw3iss
Posts: 4
Joined: Tue Jun 03, 2014 3:24 am

Re: Compiling on Windows 7

Post by rw3iss » Fri Jun 06, 2014 6:22 pm

Hi all,

I've nearly got Mudlet compiled, but I'm running into an issue with the Libzip library, on Windows 7. cmake worked, but the mingw32-make is failing with:
"src\CMakeFiles\zipcmp.dir\build.make:85: *** target pattern contains no '%'. Stop."
Does anyone know how to fix this?

rw3iss@Nowhere /c/mingw32/msys/home/rw3iss/src/libzip-0.11.2
$ mingw32-make
-- Configuring done
-- Generating done
-- Build files have been written to: C:/mingw32/msys/home/rw3iss/src/libzip-0.11.2
Linking C shared library libzip.dll
[ 85%] Built target zip
src\CMakeFiles\zipcmp.dir\build.make:85: *** target pattern contains no '%'. Stop.
CMakeFiles\Makefile2:146: recipe for target 'src/CMakeFiles/zipcmp.dir/all' failed
mingw32-make[1]: *** [src/CMakeFiles/zipcmp.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

rw3iss@Nowhere /c/mingw32/msys/home/rw3iss/src/libzip-0.11.2

Thanks,
Ryan

User avatar
Vadi
Posts: 4721
Joined: Sat Mar 14, 2009 3:13 pm

Re: Compiling on Windows 7

Post by Vadi » Fri Jun 06, 2014 8:21 pm

I think you want to be using qmake instead of cmake.

rw3iss
Posts: 4
Joined: Tue Jun 03, 2014 3:24 am

Re: Compiling on Windows 7

Post by rw3iss » Fri Jun 06, 2014 10:18 pm

Here are the instructions a few posts back, for compiling libzip on Windows:

Compile the new libzip dependency (not yet on the wiki) from http://www.nih.at/libzip/
* From a CMD window: cmake -G "MinGW Makefiles" -D<path to zlib>
* mingw32-make
* Either copy the libs to your mingw32 folders, or add the libzip dirs to Mudlet's src.pro file under LIBS and INCLUDES

I had to change the cmake command slightly to this:
rw3iss@Nowhere /c/mingw32/msys/home/rw3iss/src/libzip-0.11.2
$ cmake -G "MinGW Makefiles" -DZLIB_INCLUDE_DIR:PATH="/c/mingw32/include" -DZLIB_LIBRARY:FILEPATH="/c/mingw32/lib/libz.a"
-- Configuring done
-- Generating done
-- Build files have been written to: C:/mingw32/msys/home/rw3iss/src/libzip-0.11.2

Same error when trying the next step, 'mingw32-make'.

Could you please advise?

Thanks,
Ryan
I can use cmake or qmake I think. What is the syntax to compile with qmake?

User avatar
Vadi
Posts: 4721
Joined: Sat Mar 14, 2009 3:13 pm

Re: Compiling on Windows 7

Post by Vadi » Fri Jun 06, 2014 11:42 pm


rw3iss
Posts: 4
Joined: Tue Jun 03, 2014 3:24 am

Re: Compiling on Windows 7

Post by rw3iss » Sat Jun 07, 2014 3:00 pm

Ugh, I DID follow those instructions, but those instructions don't include instructions for the new Libzip library compilation, mentioned in this thread a few posts back. Just need some help compiling Libzip under windows (which requires the Zlib library, which I have compiled successfully using that link/instructions).

Thanks,
Ryan

User avatar
Vadi
Posts: 4721
Joined: Sat Mar 14, 2009 3:13 pm

Re: Compiling on Windows 7

Post by Vadi » Sat Jun 07, 2014 8:58 pm

Ah I see.

Larkin
Posts: 7
Joined: Thu Oct 14, 2010 6:13 pm

Re: Compiling on Windows 7

Post by Larkin » Wed Jun 11, 2014 11:46 am

Does Mudlet still need the external dependencies for zip files, regular expressions, etc? Qt 5 supports more of these things now.

User avatar
chris
Posts: 493
Joined: Fri Jun 17, 2011 5:39 am

Re: Compiling on Windows 7

Post by chris » Wed Jun 11, 2014 1:08 pm

We need the external dependencies because Qt's implementations are/were at the time of checking horrid. Their new QRegularExpressions may warrant a look (http://qt-project.org/doc/qt-5/qregularexpression.html).

The reason we've used an external zip handler is because it is great at replacing files in existing archives. There is no Qt equivalent I know of at the moment which can match libzip from NIH (http://www.nih.at/libzip/).

Feel free to correct me, I haven't looked at these things in quite a bit or if you know if any of the other libraries we use have a Qt equivalent.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests