root / trunk / build / distribution / launcher / izpack-launcher-1.3_linux / doc / en / howto.html @ 21757
History | View | Annotate | Download (22.9 KB)
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
|
---|---|
2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
3 |
<head>
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
<meta name="Generator" content="KWord HTML Export Filter Version 1.40.2.1 " /> |
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
<meta name="Author" content="Marc Eppelmann" /> |
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
<title>howto.html</title> |
67 |
<style type="text/css"> |
68 |
/* KWORD_CSS_EXPORT = 1.15.2.6 */
|
69 |
BODY
|
70 |
{
|
71 |
background-color: #FFFFFF
|
72 |
}
|
73 |
.Standard
|
74 |
{
|
75 |
text-indent:0pt; line-height:normal; text-shadow:none; font-family: helvetica; font-style: normal; font-weight: normal; font-size: 12pt; text-decoration: none; text-transform: none; font-variant:normal;
|
76 |
}
|
77 |
.Document_Title
|
78 |
{
|
79 |
text-align:center; text-indent:0pt; line-height:normal; text-shadow:none; font-family: helvetica; font-style: normal; font-weight: bold; font-size: 24pt; text-decoration: none; text-transform: none; font-variant:normal;
|
80 |
}
|
81 |
.Head_1
|
82 |
{
|
83 |
text-indent:0pt; line-height:normal; text-shadow:none; font-family: helvetica; font-style: normal; font-weight: bold; font-size: 20pt; text-decoration: none; text-transform: none; font-variant:normal;
|
84 |
}
|
85 |
.Head_2
|
86 |
{
|
87 |
text-indent:0pt; line-height:normal; text-shadow:none; font-family: helvetica; font-style: normal; font-weight: bold; font-size: 16pt; text-decoration: none; text-transform: none; font-variant:normal;
|
88 |
}
|
89 |
.Head_3
|
90 |
{
|
91 |
text-indent:0pt; line-height:normal; text-shadow:none; font-family: helvetica; font-style: normal; font-weight: bold; font-size: 12pt; text-decoration: none; text-transform: none; font-variant:normal;
|
92 |
}
|
93 |
.Enumerated_List
|
94 |
{
|
95 |
text-indent:0pt; line-height:normal; text-shadow:none; font-family: helvetica; font-style: normal; font-weight: normal; font-size: 12pt; text-decoration: none; text-transform: none; font-variant:normal;
|
96 |
}
|
97 |
.Alphabetical_List
|
98 |
{
|
99 |
text-indent:0pt; line-height:normal; text-shadow:none; font-family: helvetica; font-style: normal; font-weight: normal; font-size: 12pt; text-decoration: none; text-transform: none; font-variant:normal;
|
100 |
}
|
101 |
.Bullet_List
|
102 |
{
|
103 |
text-indent:0pt; line-height:normal; text-shadow:none; font-family: helvetica; font-style: normal; font-weight: normal; font-size: 12pt; text-decoration: none; text-transform: none; font-variant:normal;
|
104 |
}
|
105 |
@page
|
106 |
{
|
107 |
size: 21.0cm 29.7cm;
|
108 |
margin-top: 42pt;
|
109 |
margin-left: 28pt;
|
110 |
margin-bottom: 42pt;
|
111 |
margin-right: 28pt;
|
112 |
}
|
113 |
</style>
|
114 |
</head>
|
115 |
|
116 |
|
117 |
<body>
|
118 |
|
119 |
|
120 |
|
121 |
|
122 |
|
123 |
|
124 |
|
125 |
|
126 |
|
127 |
<h1>Izpack-Launcher </h1> |
128 |
|
129 |
|
130 |
|
131 |
|
132 |
|
133 |
|
134 |
|
135 |
|
136 |
|
137 |
<p class="Standard" style="text-align: left;"></p> |
138 |
|
139 |
|
140 |
|
141 |
|
142 |
|
143 |
|
144 |
<h2><span class="Head_2">HowTo |
145 |
Compile an Executable for the Win32 Platform.</span></h2> |
146 |
|
147 |
|
148 |
|
149 |
|
150 |
|
151 |
|
152 |
<p class="Standard" style="text-align: left;">This document endeavors |
153 |
to describe how to compile a Windows executable version of the
|
154 |
Izpack launcher using open source tools and Windows as a build
|
155 |
environment.</p>
|
156 |
|
157 |
|
158 |
<p class="Standard" style="text-align: left;"><br /> |
159 |
|
160 |
|
161 |
|
162 |
|
163 |
|
164 |
|
165 |
|
166 |
|
167 |
|
168 |
</p>
|
169 |
|
170 |
|
171 |
|
172 |
|
173 |
|
174 |
|
175 |
<h3><span class="Head_3">Table of Content </span></h3> |
176 |
|
177 |
|
178 |
|
179 |
|
180 |
|
181 |
|
182 |
<p class="Standard" style="text-align: left;"> |
183 |
|
184 |
|
185 |
<br /> |
186 |
|
187 |
|
188 |
|
189 |
|
190 |
|
191 |
|
192 |
|
193 |
|
194 |
|
195 |
1. Introduction <br /> |
196 |
|
197 |
|
198 |
2. Startup <br /> |
199 |
|
200 |
|
201 |
|
202 |
|
203 |
|
204 |
|
205 |
|
206 |
|
207 |
|
208 |
3. Prerequisites <br /> |
209 |
|
210 |
|
211 |
|
212 |
|
213 |
|
214 |
|
215 |
|
216 |
|
217 |
|
218 |
4. Getting Sources <br /> |
219 |
|
220 |
|
221 |
|
222 |
|
223 |
|
224 |
|
225 |
|
226 |
|
227 |
|
228 |
5. Installation<br /> |
229 |
|
230 |
|
231 |
|
232 |
|
233 |
|
234 |
|
235 |
|
236 |
|
237 |
|
238 |
6. Preparation<br /> |
239 |
|
240 |
|
241 |
|
242 |
|
243 |
|
244 |
|
245 |
7. Perform complete compilation of the Izpack-Launcher - Distribution<br /> |
246 |
|
247 |
|
248 |
|
249 |
|
250 |
|
251 |
|
252 |
|
253 |
|
254 |
|
255 |
8. Test<span class="Head_3"><br /> |
256 |
|
257 |
|
258 |
|
259 |
|
260 |
|
261 |
|
262 |
<span class="Standard">9. Customization</span></span><br /> |
263 |
|
264 |
|
265 |
|
266 |
|
267 |
|
268 |
|
269 |
10. Shutdown <br /> |
270 |
|
271 |
|
272 |
|
273 |
|
274 |
|
275 |
|
276 |
|
277 |
|
278 |
|
279 |
<br /> |
280 |
|
281 |
|
282 |
|
283 |
|
284 |
|
285 |
|
286 |
|
287 |
|
288 |
|
289 |
<br /> |
290 |
|
291 |
|
292 |
|
293 |
|
294 |
|
295 |
|
296 |
|
297 |
|
298 |
|
299 |
</p>
|
300 |
|
301 |
|
302 |
|
303 |
|
304 |
|
305 |
|
306 |
<h3><span class="Head_3">1. Introduction</span></h3> |
307 |
|
308 |
|
309 |
|
310 |
|
311 |
|
312 |
|
313 |
|
314 |
|
315 |
|
316 |
|
317 |
|
318 |
|
319 |
|
320 |
<p class="Standard" style="text-align: left;">Izpack-launcher is a |
321 |
native Executable, that searches for, installs if not found and starts |
322 |
a Java Runtime Environment (JRE) together with a customers "IzPack Java |
323 |
- setup.jar". |
324 |
If Java is already installed then it just starts the setup.jar. </p> |
325 |
|
326 |
|
327 |
<p class="Standard" style="text-align: left;">IzPack-launcher can be |
328 |
compiled and run on a number of OSs. But it will be of most |
329 |
benefit to Windows users, who lack the ability of being able to
|
330 |
effectively accomplish the above task using good old unix scripting |
331 |
tools.</p>
|
332 |
|
333 |
|
334 |
<p class="Standard" style="text-align: left;">Building of a self-extracting version is also possible. This uses a technique which is nicely illustrated by |
335 |
Julien in a separate <a href="http://www.izforge.com/izpack/7zip-sfx-tutorial/demo.html">flash</a> "screen-cam" demonstration or alternatively a <a href="http://www.izforge.com/izpack/7zip-sfx-tutorial/izpack-win32-sfx-tutorial.pdf">pdf</a>.</p> |
336 |
|
337 |
|
338 |
<p class="Standard" style="text-align: left;">For more information on |
339 |
how |
340 |
to use, embed and build a IzPack Setup with the IzPack-Launcher, |
341 |
read the manuals which come with IzPack and IzPack Launcher. |
342 |
A <a href="http://www.izforge.com/izpack/izpack-tutorial.pdf">quickstart tutorial</a> pdf is also provided and is recommended for beginners. There is another "howto compile" in the <a href="http://openfacts.berlios.de/index-en.phtml?title=IzPack/Launcher">WIKI</a>, which describes the compile and build based on MSVC++6.0 and Open Watcom.</p> |
343 |
|
344 |
|
345 |
|
346 |
|
347 |
|
348 |
|
349 |
|
350 |
|
351 |
|
352 |
|
353 |
|
354 |
|
355 |
<p class="Standard" style="text-align: left;">Finally, Imho: IzPack-Launcher is not the name that describes this Executable exactly. |
356 |
JRE_FindAndStartWithAny(Gui)Jar.exe would be a more precise name. ;-)</p>
|
357 |
|
358 |
|
359 |
<h3><span class="Head_3">2. |
360 |
Startup</span> </h3> |
361 |
|
362 |
|
363 |
|
364 |
|
365 |
|
366 |
|
367 |
|
368 |
|
369 |
|
370 |
|
371 |
|
372 |
|
373 |
<p class="Standard" style="text-align: left;">IzPack launcher is build |
374 |
and based on WxWindows/wxWidgets, a native and platform independent |
375 |
GUI-Development |
376 |
library similar to Qt and Gtk. But it has more liberal licensing terms then Qt (even for |
377 |
win32 binaries as of the current Qt4 release). That is why you will need (in addition to a |
378 |
C++ Compiler) the WxWindow/wxWidgets distribution. I will describe how to |
379 |
get and |
380 |
prebuild this GUI-library in the Prerequisites and the Preparation Section.</p>
|
381 |
|
382 |
|
383 |
|
384 |
|
385 |
|
386 |
|
387 |
|
388 |
|
389 |
|
390 |
|
391 |
|
392 |
|
393 |
<p class="Standard" style="text-align: left;">To use IzPack-Launcher, |
394 |
you will also need your application as an "IzPack-Setup |
395 |
Jar-File" executable jar. For the impatient you can use the IzPack's |
396 |
Setup-Jar from <a href="http://www.izforge.com/izpack">http://www.izforge.com/izpack</a>, for testing purposes.</p> |
397 |
|
398 |
|
399 |
<h3 class="Head_3">3. |
400 |
Prerequisites </h3> |
401 |
|
402 |
|
403 |
|
404 |
|
405 |
|
406 |
|
407 |
|
408 |
|
409 |
|
410 |
|
411 |
|
412 |
|
413 |
<p class="Standard" style="text-align: left;">To start with, you need a |
414 |
C++ Compiler. The easiest way is to download and install <a href="http://www.bloodshed.net">DevCPP</a> from |
415 |
http://www.bloodshed.net. This is a complete IDE and comes with all tools needed to compile |
416 |
wxWindows/wxWidgets and IzPack-launcher. </p> |
417 |
|
418 |
|
419 |
<p class="Standard" style="text-align: left;">The current release of DevCPP |
420 |
is 4.9.9.2 (as of 19th August 2005). Unfortunately the make utility of this suite has a
|
421 |
bug, so you have to do 3 very simple edit/copy steps manually. I will describe this in |
422 |
the preparation chapter. Note: if this bug gets fixed in a future |
423 |
release, you might be lucky and not have to fix it yourself!</p>
|
424 |
|
425 |
|
426 |
|
427 |
|
428 |
<p class="Standard" style="text-align: left;">After installation, you have to add the <span style="font-family: monospace;">"bin</span>" - folder of DevCPP to your PATH-Environment variable. i.e. <span style="font-family: monospace;">set PATH=%PATH%;C:\devcpp\bin</span></p> |
429 |
|
430 |
|
431 |
|
432 |
|
433 |
|
434 |
|
435 |
|
436 |
|
437 |
|
438 |
|
439 |
|
440 |
|
441 |
<h3><span class="Head_3"> 4. Getting |
442 |
Sources</span> </h3> |
443 |
|
444 |
|
445 |
|
446 |
|
447 |
|
448 |
|
449 |
|
450 |
|
451 |
|
452 |
|
453 |
|
454 |
|
455 |
<p class="Standard" style="text-align: left;">The next thing you have to do is build IzPack-launcher, so checkout the sources from the |
456 |
svn-tree, if you don't have the sources already. <br /> |
457 |
|
458 |
|
459 |
As registered IzPack developer, you can checkout using: <br /> |
460 |
|
461 |
|
462 |
|
463 |
|
464 |
|
465 |
|
466 |
|
467 |
|
468 |
|
469 |
|
470 |
|
471 |
|
472 |
<tt>svn checkout svn+ssh://<i>developername</i>@svn.berlios.de/svnroot/repos/izpack/izpack-launcher/trunk</tt> |
473 |
<br /> |
474 |
|
475 |
|
476 |
|
477 |
|
478 |
while as anonymous user you have to use:<br /> |
479 |
|
480 |
|
481 |
|
482 |
|
483 |
|
484 |
|
485 |
|
486 |
|
487 |
|
488 |
|
489 |
|
490 |
|
491 |
<tt>svn checkout svn://svn.berlios.de/izpack/izpack-launcher/trunk</tt></p> |
492 |
|
493 |
|
494 |
|
495 |
|
496 |
|
497 |
|
498 |
|
499 |
|
500 |
|
501 |
|
502 |
|
503 |
|
504 |
<p class="Standard" style="text-align: left;"><tt><span class="Standard">Then, you have to download the wxWindows</span><span class="Standard">/</span></tt>wxWidgets<tt><span class="Standard"> sources for your target platform.</span><span class="Standard"> As this is all about Windows - go</span><span class="Standard"> download the old version 2.4.2 (otherwise you will be faced with more build bugs) <a href="http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.4.2-setup.zip">wxMSW-2.4.2-setup.zip</a> |
505 |
from http://www.sourceforge.net . </span></tt>Yes, this is maybe a todo for us - at least we have to adapt the makefiles.<br /> |
506 |
|
507 |
|
508 |
|
509 |
|
510 |
|
511 |
|
512 |
|
513 |
|
514 |
|
515 |
|
516 |
|
517 |
|
518 |
</p>
|
519 |
|
520 |
|
521 |
|
522 |
|
523 |
|
524 |
|
525 |
|
526 |
|
527 |
|
528 |
|
529 |
|
530 |
|
531 |
<h3 class="Head_3">5. Installation</h3> |
532 |
|
533 |
|
534 |
|
535 |
|
536 |
|
537 |
|
538 |
|
539 |
|
540 |
|
541 |
|
542 |
|
543 |
|
544 |
<p class="Standard" style="text-align: left;">Once you have done your downloading, you are ready to install. I have setup DevCPP |
545 |
with the default options and the default install path: c:\dev-cpp. |
546 |
wxWindows was also installed typically, except I choosed another |
547 |
install path: c:\wxw242.</p>
|
548 |
|
549 |
|
550 |
|
551 |
|
552 |
|
553 |
|
554 |
|
555 |
|
556 |
|
557 |
|
558 |
|
559 |
|
560 |
<h3 class="Head_3">6. Preparation </h3> |
561 |
|
562 |
|
563 |
|
564 |
|
565 |
|
566 |
|
567 |
|
568 |
|
569 |
|
570 |
|
571 |
|
572 |
|
573 |
<p class="Standard" style="text-align: left;">You can read the |
574 |
documentation on how to build the wxWindows library, or alternatively follow the required steps below to compile with DevCpp.</p>
|
575 |
|
576 |
|
577 |
|
578 |
|
579 |
|
580 |
|
581 |
|
582 |
|
583 |
|
584 |
|
585 |
|
586 |
|
587 |
<p class="Standard" style="text-align: left;">A) In order to compile |
588 |
the wxWindows/wxWidget Libraries, you have to set some environment |
589 |
variables. You can set these globally with Settings --> Control
|
590 |
panel -> System ->Advanced -> Environment Variables or only in |
591 |
the current Console:</p>
|
592 |
|
593 |
|
594 |
|
595 |
|
596 |
|
597 |
|
598 |
|
599 |
|
600 |
|
601 |
|
602 |
|
603 |
|
604 |
<p class="Standard" style="text-align: left;">i) Adjust the environment |
605 |
variable WXWIN to your wxWindows/wxWidgets installation-
|
606 |
base path: <br /> |
607 |
|
608 |
|
609 |
|
610 |
|
611 |
|
612 |
|
613 |
|
614 |
|
615 |
|
616 |
|
617 |
|
618 |
|
619 |
</p>
|
620 |
|
621 |
|
622 |
|
623 |
|
624 |
|
625 |
|
626 |
|
627 |
|
628 |
|
629 |
|
630 |
|
631 |
|
632 |
<pre class="Standard" style="font-family: monospace;"> > set WXWIN=C:\wxw242</pre> |
633 |
|
634 |
|
635 |
|
636 |
|
637 |
|
638 |
|
639 |
|
640 |
|
641 |
|
642 |
|
643 |
|
644 |
|
645 |
<p class="Standard" style="text-align: left;">ii) Don't forget to add the "bin" |
646 |
subdirectory of DevCPP to your PATH environment variable:<br /> |
647 |
|
648 |
|
649 |
|
650 |
|
651 |
|
652 |
|
653 |
|
654 |
|
655 |
|
656 |
|
657 |
|
658 |
|
659 |
</p>
|
660 |
|
661 |
|
662 |
|
663 |
|
664 |
|
665 |
|
666 |
|
667 |
|
668 |
|
669 |
|
670 |
|
671 |
|
672 |
<pre style="font-family: monospace;"> <span style="font-family: monospace;" class="Standard">> set PATH=%PATH%;C:\dev-cpp\bin</span></pre> |
673 |
|
674 |
|
675 |
|
676 |
|
677 |
|
678 |
|
679 |
|
680 |
|
681 |
|
682 |
|
683 |
|
684 |
|
685 |
<p class="Standard" style="text-align: left;"></p> |
686 |
|
687 |
|
688 |
|
689 |
|
690 |
|
691 |
|
692 |
|
693 |
|
694 |
|
695 |
|
696 |
|
697 |
|
698 |
<p class="Standard" style="text-align: left;">iii) Now open a new console (cmd.exe), change to the wxWindows basedir typing:<br /> |
699 |
|
700 |
|
701 |
|
702 |
|
703 |
|
704 |
|
705 |
|
706 |
|
707 |
|
708 |
|
709 |
|
710 |
<br /> |
711 |
|
712 |
|
713 |
|
714 |
|
715 |
|
716 |
|
717 |
<span style="font-family: monospace;"> |
718 |
|
719 |
|
720 |
|
721 |
|
722 |
> cd /d C:\wxw242\src\msw </span></p> |
723 |
|
724 |
|
725 |
|
726 |
|
727 |
|
728 |
|
729 |
|
730 |
|
731 |
|
732 |
|
733 |
|
734 |
|
735 |
<p class="Standard" style="text-align: left;">iv) and enter:<br /> |
736 |
|
737 |
|
738 |
|
739 |
|
740 |
|
741 |
|
742 |
|
743 |
|
744 |
|
745 |
|
746 |
|
747 |
<br /> |
748 |
|
749 |
|
750 |
|
751 |
|
752 |
|
753 |
|
754 |
<span style="font-family: monospace;"> |
755 |
|
756 |
|
757 |
|
758 |
|
759 |
> </span><span style="font-weight: bold;"><span style="font-family: monospace;">make -f makefile.g95 clean</span><br /> |
760 |
|
761 |
|
762 |
|
763 |
|
764 |
|
765 |
|
766 |
|
767 |
|
768 |
|
769 |
|
770 |
|
771 |
</span><br /> |
772 |
|
773 |
|
774 |
|
775 |
|
776 |
|
777 |
|
778 |
|
779 |
|
780 |
|
781 |
|
782 |
|
783 |
to cleanup previous created binaries. This is not required, for the first time.<br /> |
784 |
|
785 |
|
786 |
|
787 |
|
788 |
|
789 |
|
790 |
|
791 |
|
792 |
|
793 |
|
794 |
|
795 |
</p>
|
796 |
|
797 |
|
798 |
|
799 |
|
800 |
|
801 |
|
802 |
|
803 |
|
804 |
|
805 |
|
806 |
|
807 |
<p class="Standard" style="text-align: left;">v) now enter:<br /> |
808 |
|
809 |
|
810 |
|
811 |
|
812 |
|
813 |
|
814 |
|
815 |
|
816 |
|
817 |
|
818 |
|
819 |
<br /> |
820 |
|
821 |
|
822 |
|
823 |
|
824 |
|
825 |
|
826 |
<span style="font-family: monospace;"> |
827 |
|
828 |
|
829 |
|
830 |
|
831 |
> </span><span style="font-weight: bold; font-family: monospace;">make -f</span><span style="font-family: monospace;"> </span><span style="font-weight: bold; font-family: monospace;">makefile.g95 FINAL=1</span></p> |
832 |
|
833 |
|
834 |
|
835 |
|
836 |
|
837 |
|
838 |
|
839 |
|
840 |
|
841 |
|
842 |
|
843 |
|
844 |
|
845 |
|
846 |
|
847 |
|
848 |
|
849 |
<p class="Standard" style="text-align: left;">NOTE: Unfortunately, |
850 |
there is a tiny bug in the make tool or copy-tool (as I sayed above). (The |
851 |
destination option is not recognized correctly), <br /> |
852 |
|
853 |
|
854 |
|
855 |
|
856 |
|
857 |
|
858 |
|
859 |
|
860 |
|
861 |
|
862 |
|
863 |
So you will get a Error message like:</p>
|
864 |
|
865 |
|
866 |
|
867 |
|
868 |
|
869 |
|
870 |
|
871 |
|
872 |
|
873 |
|
874 |
|
875 |
|
876 |
<p class="Standard" style="text-align: left; font-family: monospace;">mkdir ..\..\lib\msw<br /> |
877 |
|
878 |
|
879 |
|
880 |
|
881 |
|
882 |
|
883 |
|
884 |
|
885 |
|
886 |
mkdir ..\..\lib\msw\wx<br /> |
887 |
|
888 |
|
889 |
|
890 |
|
891 |
|
892 |
|
893 |
|
894 |
|
895 |
|
896 |
cp ../../include/wx/msw/setup.h ../../lib/msw/wx/setup.h<br /> |
897 |
|
898 |
|
899 |
|
900 |
|
901 |
|
902 |
|
903 |
|
904 |
|
905 |
|
906 |
<span style="font-weight: bold;">process_begin: CreateProcess((null), cp ../../include/wx/msw/setup.h ../../lib/m</span><br style="font-weight: bold;" /> |
907 |
|
908 |
|
909 |
|
910 |
|
911 |
|
912 |
|
913 |
|
914 |
|
915 |
|
916 |
<span style="font-weight: bold;">sw/wx/setup.h, ...) failed.</span><br /> |
917 |
|
918 |
|
919 |
|
920 |
|
921 |
|
922 |
|
923 |
|
924 |
|
925 |
|
926 |
make (e=2): The system cannot find the file specified.<br /> |
927 |
|
928 |
|
929 |
|
930 |
|
931 |
|
932 |
|
933 |
|
934 |
|
935 |
|
936 |
make: *** [../../lib/msw/wx/setup.h] Error 2</p>
|
937 |
|
938 |
|
939 |
|
940 |
|
941 |
|
942 |
|
943 |
<p class="Standard" style="text-align: left;"><span class="Standard">or:</span><br /> |
944 |
|
945 |
|
946 |
|
947 |
|
948 |
|
949 |
|
950 |
|
951 |
|
952 |
|
953 |
|
954 |
|
955 |
</p>
|
956 |
|
957 |
|
958 |
|
959 |
|
960 |
|
961 |
|
962 |
<pre style="font-weight: bold; font-family: monospace;">cp ../common/dosyacc.c ../common/y_tab.c</pre> |
963 |
|
964 |
|
965 |
|
966 |
|
967 |
|
968 |
|
969 |
|
970 |
|
971 |
|
972 |
|
973 |
|
974 |
<pre style="font-family: monospace;">process_begin: CreateProcess((null), cp ../common/dosyacc.c ../common/y_tab.c, .</pre> |
975 |
|
976 |
|
977 |
|
978 |
|
979 |
|
980 |
|
981 |
|
982 |
|
983 |
|
984 |
|
985 |
|
986 |
<pre style="font-family: monospace;">..) failed.</pre> |
987 |
|
988 |
|
989 |
|
990 |
|
991 |
|
992 |
|
993 |
|
994 |
|
995 |
|
996 |
|
997 |
|
998 |
<pre style="font-family: monospace;">make (e=2): The system cannot find the file specified.</pre> |
999 |
|
1000 |
|
1001 |
|
1002 |
|
1003 |
|
1004 |
|
1005 |
|
1006 |
|
1007 |
|
1008 |
|
1009 |
|
1010 |
<pre style="font-family: monospace;">make: *** [../../src/common/y_tab.c] Error 2</pre> |
1011 |
|
1012 |
|
1013 |
|
1014 |
|
1015 |
|
1016 |
|
1017 |
|
1018 |
|
1019 |
|
1020 |
|
1021 |
|
1022 |
<p class="Standard" style="text-align: left;"><br /> |
1023 |
|
1024 |
|
1025 |
|
1026 |
|
1027 |
|
1028 |
|
1029 |
|
1030 |
|
1031 |
|
1032 |
|
1033 |
|
1034 |
However there is a simple Workaround by doing the three following easy things ;-) : </p> |
1035 |
|
1036 |
|
1037 |
|
1038 |
|
1039 |
|
1040 |
|
1041 |
|
1042 |
|
1043 |
|
1044 |
|
1045 |
|
1046 |
<p class="Standard" style="text-align: left;">Just copy the file manually: Enter in the case above: <span style="font-style: italic;"><br /> |
1047 |
|
1048 |
|
1049 |
|
1050 |
|
1051 |
|
1052 |
|
1053 |
|
1054 |
|
1055 |
|
1056 |
|
1057 |
|
1058 |
Note: Use backslash instead of slash.</span></p> |
1059 |
|
1060 |
|
1061 |
|
1062 |
|
1063 |
|
1064 |
|
1065 |
|
1066 |
|
1067 |
|
1068 |
|
1069 |
|
1070 |
<pre><pre style="font-family: monospace;">> <span style="font-weight: bold;">copy ..\..\include\wx\msw\setup.h ..\..\lib\msw\wx\setup.h</span></pre><span class="Standard">comment out line 546: ( $(COPY) $(WXDIR)/include/wx/msw/setup.h $(subst $(BACKSLASH),/,$@) ) in the</span><span style="font-weight: bold;"> </span><span class="Standard">makefile.g95</span> <span class="Standard">and continue the build, by reenter</span> <span style="font-weight: bold;"></span></pre> |
1071 |
|
1072 |
|
1073 |
|
1074 |
|
1075 |
|
1076 |
|
1077 |
<pre><span style="font-weight: bold;">> make -f</span> <span style="font-weight: bold;">makefile.g95 FINAL=1</span><br /><br />> <span style="font-weight: bold;">copy ..</span>\<span style="font-weight: bold;">common</span>\<span style="font-weight: bold;">dosyacc.c ..</span>\<span style="font-weight: bold;">common</span>\<span style="font-weight: bold;">y_tab.c</span><br /><br /><span class="Standard">and continue the build, by enter </span> <span style="font-weight: bold;"><br /><br />> make -f</span> <span style="font-weight: bold;">makefile.g95 FINAL=1</span><br /><span style="font-style: italic;"></span><br /><span style="font-weight: bold;">> copy ..\common\doslex.c ..\common\lex_yy.c<br /><br /></span><span class="Standard">again and </span><span class="Standard" style="font-weight: bold;">finish</span><span class="Standard"> the wxWin-build, by (last) re-enter </span> <span style="font-weight: bold;"><br /></span><span style="font-weight: bold;"><br />> make -f</span> <span style="font-weight: bold;">makefile.g95 FINAL=1</span><br /><br /></pre> |
1078 |
|
1079 |
|
1080 |
|
1081 |
|
1082 |
|
1083 |
|
1084 |
<p class="Standard">The wxwindows libs and all other wxw stuff should now compiled successfully. </p> |
1085 |
|
1086 |
|
1087 |
|
1088 |
|
1089 |
|
1090 |
|
1091 |
<p class="Standard">OK. You are now able to compile the IzPack-Launcher Exe.</p> |
1092 |
|
1093 |
|
1094 |
|
1095 |
|
1096 |
|
1097 |
|
1098 |
<pre><span style="font-weight: bold;"></span></pre> |
1099 |
|
1100 |
|
1101 |
|
1102 |
|
1103 |
|
1104 |
|
1105 |
|
1106 |
|
1107 |
|
1108 |
|
1109 |
|
1110 |
|
1111 |
|
1112 |
|
1113 |
|
1114 |
<h3 class="Head_3">7. Perform complete compilation of the IzPack-Launcher - Distribution</h3> |
1115 |
|
1116 |
|
1117 |
|
1118 |
|
1119 |
|
1120 |
|
1121 |
|
1122 |
<p class="Standard" style="text-align: left;">( First ensure, that the |
1123 |
WXWIN-Environment variable is set. Otherwise you get an error like if |
1124 |
you calls the make tool direct in the console.: </p> |
1125 |
|
1126 |
|
1127 |
|
1128 |
|
1129 |
|
1130 |
|
1131 |
|
1132 |
<p class="Standard" style="text-align: left; font-family: monospace;">Makefile.mingw:10: /src/makeprog.g95: No such file or directory<br /> |
1133 |
|
1134 |
|
1135 |
|
1136 |
|
1137 |
|
1138 |
|
1139 |
|
1140 |
make: *** No rule to make target `/src/makeprog.g95'. Stop.)</p> |
1141 |
|
1142 |
|
1143 |
|
1144 |
|
1145 |
|
1146 |
|
1147 |
|
1148 |
|
1149 |
<p class="Standard" style="text-align: left;">Otherwise if you use the new provided <span style="font-weight: bold;">compile.bat</span> (recommended) you gets an error message, that WXWIN is not defined yet.</p> |
1150 |
<p class="Standard" style="text-align: left;">If all is set up correctly, you can simply compile by start compile.bat file.</p> |
1151 |
|
1152 |
|
1153 |
|
1154 |
|
1155 |
|
1156 |
|
1157 |
<pre class="Standard">C:\izpacklauncher><span style="font-weight: bold; font-family: monospace;">compile.bat<br /></span></pre> |
1158 |
<p class="Standard" style="text-align: left;">Alternatively you can compile by hand using the following command:</p> |
1159 |
|
1160 |
|
1161 |
|
1162 |
|
1163 |
|
1164 |
|
1165 |
C:\izpacklauncher><span style="font-weight: bold; font-family: monospace;">make -f Makefile.mingw install</span> |
1166 |
|
1167 |
|
1168 |
|
1169 |
|
1170 |
|
1171 |
|
1172 |
|
1173 |
|
1174 |
|
1175 |
|
1176 |
|
1177 |
|
1178 |
|
1179 |
|
1180 |
|
1181 |
|
1182 |
|
1183 |
|
1184 |
|
1185 |
|
1186 |
<p class="Standard" style="text-align: left;">Here is just the output:<br /> |
1187 |
|
1188 |
|
1189 |
|
1190 |
|
1191 |
|
1192 |
|
1193 |
|
1194 |
<br /> |
1195 |
|
1196 |
|
1197 |
|
1198 |
|
1199 |
|
1200 |
|
1201 |
<span style="font-family: monospace;" class="Standard">C:\home\marc\izpack-launcher\trunk\src>compile.bat<br /> |
1202 |
g++ -Wl,--subsystem,windows -mwindows -LC:\wxw242/lib -LC:\wxw242/contrib/lib<br /> |
1203 |
-o launcher.exe launcher.o failuredialog.o launcher_resources.o C:\wxw242/lib/<br /> |
1204 |
libwxmsw.a -lregex -lpng -ljpeg -lzlib -ltiff -lstdc++ -lgcc -lodbc32 -lwsock32<br /> |
1205 |
-lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 -lodbc32 -<br /> |
1206 |
lwsock32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid<br /> |
1207 |
if not exist ..\dist\fr mkdir ..\dist\fr<br /> |
1208 |
if not exist ..\dist\de mkdir ..\dist\de<br /> |
1209 |
if not exist ..\dist\da mkdir ..\dist\da<br /> |
1210 |
if not exist ..\dist\pt-BR mkdir ..\dist\pt-BR<br /> |
1211 |
if not exist ..\dist\es mkdir ..\dist\es<br /> |
1212 |
if not exist ..\dist\it mkdir ..\dist\it<br /> |
1213 |
if not exist ..\dist\nl mkdir ..\dist\nl<br /> |
1214 |
copy fr\launcher.mo ..\dist\fr<br /> |
1215 |
1 file(s) copied.<br /> |
1216 |
copy es\launcher.mo ..\dist\es<br /> |
1217 |
1 file(s) copied.<br /> |
1218 |
copy de\launcher.mo ..\dist\de<br /> |
1219 |
1 file(s) copied.<br /> |
1220 |
copy da\launcher.mo ..\dist\da<br /> |
1221 |
1 file(s) copied.<br /> |
1222 |
copy pt-BR\launcher.mo ..\dist\pt-BR<br /> |
1223 |
1 file(s) copied.<br /> |
1224 |
copy it\launcher.mo ..\dist\it<br /> |
1225 |
1 file(s) copied.<br /> |
1226 |
copy nl\launcher.mo ..\dist\nl<br /> |
1227 |
1 file(s) copied.<br /> |
1228 |
copy launcher.exe ..\dist\launcher-Win32.exe<br /> |
1229 |
1 file(s) copied.<br /> |
1230 |
strip ../dist/launcher-Win32.exe<br /> |
1231 |
copy launcher.exe.manifest ..\dist\launcher-Win32.exe.manifest<br /> |
1232 |
1 file(s) copied.</span><span style="font-family: monospace;" class="Standard"></span></p> |
1233 |
|
1234 |
|
1235 |
|
1236 |
|
1237 |
|
1238 |
|
1239 |
|
1240 |
|
1241 |
<p class="Standard" style="text-align: left;">Congratulation! You have now a IzPack launcher.exe in the current folder!</p> |
1242 |
|
1243 |
|
1244 |
|
1245 |
|
1246 |
|
1247 |
|
1248 |
<h3><span class="Head_3">8. Test</span></h3> |
1249 |
|
1250 |
|
1251 |
|
1252 |
|
1253 |
|
1254 |
|
1255 |
|
1256 |
<p class="Standard" style="text-align: left;">You can test it by enter:<span style="font-family: monospace;"> "launcher"</span> to test the developer version.</p> |
1257 |
|
1258 |
|
1259 |
|
1260 |
|
1261 |
|
1262 |
|
1263 |
|
1264 |
<p class="Standard" style="text-align: left;">You will get one of the following screen shots depend on the content of the <span style="font-family: monospace;">launcher.ini</span> in the current folder.</p> |
1265 |
|
1266 |
|
1267 |
|
1268 |
|
1269 |
|
1270 |
|
1271 |
|
1272 |
<p class="Standard" style="text-align: left;">If the file launcher.ini contains a valid <span style="font-family: monospace;">"Jar = YourInstall.jar" </span>- line, you will get:<br /> |
1273 |
|
1274 |
|
1275 |
|
1276 |
|
1277 |
|
1278 |
|
1279 |
|
1280 |
</p>
|
1281 |
|
1282 |
|
1283 |
|
1284 |
|
1285 |
|
1286 |
|
1287 |
|
1288 |
<p class="Standard" style="text-align: left;"><img style="width: 511px; height: 219px;" alt="default" src="001.png" /></p> |
1289 |
|
1290 |
|
1291 |
|
1292 |
|
1293 |
|
1294 |
|
1295 |
|
1296 |
<p class="Standard" style="text-align: left;">Otherwise: </p> |
1297 |
|
1298 |
|
1299 |
|
1300 |
|
1301 |
|
1302 |
|
1303 |
|
1304 |
<p class="Standard" style="text-align: left;"><img style="width: 671px; height: 380px;" alt="wrong ini" src="002.png" /></p> |
1305 |
|
1306 |
|
1307 |
|
1308 |
|
1309 |
|
1310 |
|
1311 |
|
1312 |
<p class="Standard" style="text-align: left;">Alternatively you can enter <span style="font-family: monospace;">..\dist\launcher-Win32.exe</span> to test the distribution version.</p> |
1313 |
|
1314 |
|
1315 |
|
1316 |
|
1317 |
|
1318 |
|
1319 |
|
1320 |
<p class="Standard" style="text-align: left;">The result should be similar to the developer version:<br /> |
1321 |
|
1322 |
|
1323 |
|
1324 |
|
1325 |
|
1326 |
|
1327 |
|
1328 |
<img style="width: 672px; height: 430px;" alt="dist" src="003.png" /></p> |
1329 |
|
1330 |
|
1331 |
|
1332 |
|
1333 |
|
1334 |
|
1335 |
|
1336 |
<p class="Standard" style="text-align: left;">But the file size of this executable is about 1MB smaller than the developers one. At least on my machine ;-)</p> |
1337 |
|
1338 |
|
1339 |
|
1340 |
|
1341 |
|
1342 |
|
1343 |
|
1344 |
|
1345 |
<h3><span class="Head_3">9. Customization</span> <br /> |
1346 |
|
1347 |
|
1348 |
|
1349 |
|
1350 |
|
1351 |
|
1352 |
|
1353 |
</h3>
|
1354 |
|
1355 |
|
1356 |
|
1357 |
|
1358 |
|
1359 |
|
1360 |
|
1361 |
<p><span class="Standard" style="font-family: helvetica;">If you want to test the other languages you have to change your locale in the </span><span class="Standard">regional options dialog launched from the control panel. For example for german</span>:</p> |
1362 |
|
1363 |
|
1364 |
|
1365 |
|
1366 |
|
1367 |
|
1368 |
|
1369 |
<br /> |
1370 |
|
1371 |
|
1372 |
|
1373 |
|
1374 |
|
1375 |
|
1376 |
|
1377 |
<img style="width: 1078px; height: 572px;" alt="change lang" src="004.png" /><br /> |
1378 |
|
1379 |
|
1380 |
|
1381 |
|
1382 |
|
1383 |
|
1384 |
|
1385 |
<br /> |
1386 |
|
1387 |
|
1388 |
|
1389 |
|
1390 |
|
1391 |
|
1392 |
<h3 class="Head_3">10. Shutdown</h3> |
1393 |
|
1394 |
|
1395 |
|
1396 |
|
1397 |
|
1398 |
|
1399 |
<br /> |
1400 |
|
1401 |
|
1402 |
|
1403 |
|
1404 |
|
1405 |
|
1406 |
<p class="Standard">Now, that's all folks.</p> |
1407 |
|
1408 |
|
1409 |
|
1410 |
|
1411 |
|
1412 |
|
1413 |
|
1414 |
<span style="font-family: helvetica;"> |
1415 |
<p class="Standard" style="text-align: left;">Thanks to Julien Ponge, |
1416 |
all developers, members and even the users of IzPack. Thanks goes
|
1417 |
also still to VMware, which made this doc possible, since I work with |
1418 |
Linux and run any Win32-OS only in a VMware-sandbox. ;-)</p>
|
1419 |
<p class="Standard" style="text-align: left;">Not least thanks to Nick Cunnah for review this doc.</p> |
1420 |
|
1421 |
|
1422 |
|
1423 |
|
1424 |
|
1425 |
|
1426 |
|
1427 |
|
1428 |
|
1429 |
|
1430 |
|
1431 |
|
1432 |
<p class="Standard" style="text-align: left;">This document was initially written at |
1433 |
2005-05-19 by Marc Eppelmann / Oldenburg(Oldb) / Germany</p>
|
1434 |
|
1435 |
|
1436 |
|
1437 |
|
1438 |
|
1439 |
|
1440 |
|
1441 |
|
1442 |
|
1443 |
|
1444 |
|
1445 |
|
1446 |
|
1447 |
|
1448 |
|
1449 |
|
1450 |
|
1451 |
<p class="Standard" style="text-align: left;">This comes without any |
1452 |
warranty. Suggestions and Feedback are always welcome. Send these to <a href="mailto:marc.eppelmann&#064;gmx.de">marc.eppelmann_at_gmx.de</a></p> |
1453 |
|
1454 |
|
1455 |
|
1456 |
|
1457 |
|
1458 |
|
1459 |
|
1460 |
|
1461 |
|
1462 |
|
1463 |
|
1464 |
|
1465 |
|
1466 |
|
1467 |
|
1468 |
|
1469 |
|
1470 |
<p class="Standard" style="text-align: left;"><span class="Standard"> </span><br class="Standard" /> |
1471 |
|
1472 |
|
1473 |
|
1474 |
|
1475 |
|
1476 |
|
1477 |
<span class="Standard"> |
1478 |
The License is the same as for the entire software. See LICENSE, which comes with the distribution.</span><br /> |
1479 |
|
1480 |
|
1481 |
|
1482 |
|
1483 |
|
1484 |
|
1485 |
|
1486 |
|
1487 |
|
1488 |
|
1489 |
|
1490 |
|
1491 |
</p>
|
1492 |
|
1493 |
|
1494 |
|
1495 |
|
1496 |
|
1497 |
<p class="Standard" style="text-align: left;">$Id: howto.html 6834 2006-08-24 08:23:24Z jmvivo $<br /> |
1498 |
|
1499 |
|
1500 |
|
1501 |
|
1502 |
|
1503 |
|
1504 |
|
1505 |
|
1506 |
|
1507 |
|
1508 |
|
1509 |
|
1510 |
</p>
|
1511 |
|
1512 |
|
1513 |
|
1514 |
|
1515 |
|
1516 |
|
1517 |
|
1518 |
|
1519 |
|
1520 |
|
1521 |
|
1522 |
|
1523 |
</span>
|
1524 |
</body>
|
1525 |
</html>
|