Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 82 lines (69 sloc) 3.458 kb
6ce244d
volute authored
1 These are some notes/memo about compiling Pencil on Windows
a7a0898 Added Debian directory created by P. Wise. Some minor clean-up, and adde...
volute authored
2 Last edited: 2007-10-12
6ce244d
volute authored
3 Pascal Naidon
4
a7a0898 Added Debian directory created by P. Wise. Some minor clean-up, and adde...
volute authored
5 To compile Pencil for Windows "out of the box"
6 1) Install Qt from TrollTech if you haven't done it
7 (the installer will propose to install MinGW if you don't have any C++ compiler)
8 2) From the Start menu (for example), launch the Qt Command Prompt (a kind of DOS Terminal)
9 4) (Using DOS commands like cd) go to the directory where you saved Pencil source,
10 ie the directory where the file pencil.pro is located.
11 Then type "qmake". This should generate a makefile from the pencil.pro file.
12 5) Then type "make". This should compile Pencil.
13
6ce244d
volute authored
14 ====================================================================
15 Qt on Windows
a7a0898 Added Debian directory created by P. Wise. Some minor clean-up, and adde...
volute authored
16 -> The Qt framework is needed to create the graphical interface of Pencil
6ce244d
volute authored
17 Use the installer from Trolltech
18 www.trolltech.com
a7a0898 Added Debian directory created by P. Wise. Some minor clean-up, and adde...
volute authored
19 I've used Qt 4.2.2
6ce244d
volute authored
20
21 Problems encountered
22 if the following message appears:
23 mingw32\bin\ld.exe: cannot find -lqtmaind
24
25 You are building in debug mode and haven't built the debug libraries.
26 -> needs to build qmake with the debug libraries, ie:
27 --> go to the QT bin folder and execute "qtvars.bat compile_debug"
28
29 ====================================================================
30 Ming (Flash/SWF library) on Windows
a7a0898 Added Debian directory created by P. Wise. Some minor clean-up, and adde...
volute authored
31 -> The Ming library enables Pencil to export animation to the Flash/SWF format
32 www.libming.org
33 I've used Ming 0.3
34
6ce244d
volute authored
35 This took me some time to work out
a7a0898 Added Debian directory created by P. Wise. Some minor clean-up, and adde...
volute authored
36 As a convenience, I put the compiled library (0.3) for Windows in the libwin32 directory, so you can just use those. If you want to get the latest version and compile Ming yourself, here is how I did it
37
6ce244d
volute authored
38 I roughly followed the instructions from
39 http://eratosthenes.wordpress.com/tag/ming
40 The MinGW (GNU compiler for Windows) was already installed during the Qt install.
41 Compiling ming (Flash/SWF library) requires a UNIX-like environment to execute
42 the configure script, which is why one has to install Cygwin.
43 (MinGW and cygwin were installed separately so they are separate environment :
44 don't re-install mingw within cygwin. To check that you are running the correct
45 gcc (=MinGW), launch cygwin and type: gcc -v
46 it should say "mingw special" and not "cygwin special")
a7a0898 Added Debian directory created by P. Wise. Some minor clean-up, and adde...
volute authored
47
6ce244d
volute authored
48 Ming requires the zlib and libpng library.
49 The point is to find these libraries for MinGW:
50 http://tjaden.strangesoft.net/loadpng/mingw.html
51 http://gnuwin32.sourceforge.net/downlinks/libpng.php
52 http://gnuwin32.sourceforge.net/downlinks/zlib.php
53 (these libraries may also be present withing cygwin (if you have chosen to
54 install them) but we won't use those.)
55
56 Within cygwin, make sure (in your .bash_profile) that the paths are
57 set correctly to work with mingw:
58 PATH ===> /cygdrive/c/MinGW/bin
59 (LD_)LIBRARY_PATH ===> /cygdrive/c/MinGW/lib
60 C_INCLUDE_PATH ====> /cygdrive/c/MinGW/include
61 CPLUS_INCLUDE_PATH ===> /cygdrive/c/MinGW/include
62
a7a0898 Added Debian directory created by P. Wise. Some minor clean-up, and adde...
volute authored
63 Then download the ming source from
64 www.libming.org
65 and go to the ming directory and type:
66 autoconf (but I'm not sure it's necessary)
6ce244d
volute authored
67 ./configure
68 mingw32-make static
69
70 Then I put the libming.a, ming.h, ming_conf.h in the "libwin32" directory inside the
71 pencil directory, as well as libpng12.a libpng12.dll.a
72 and I added
73 lib
74 -Llibwin32 -lming -lpng
75 in the pencil.pro file, for the INCLUDEPATH and LIBS respectively.
76
77 That worked (compiled pencil.exe)
78 Now, a copy of the dynamic library libpng12.dll should be present next to
79 pencil.exe in order for pencil to run. This library was installed inside
80 c://MinGW/bin
81 That's it.
Something went wrong with that request. Please try again.