Revision 6834

View differences:

trunk/install/launcher/izpack-launcher-1.3_linux/LICENSE
1
Copyright (c) 2004-2005 Julien Ponge - All rights reserved.
2

  
3
Permission is hereby granted, free of charge, to any person obtaining a copy
4
of this software and associated documentation files (the "Software"), to
5
deal in the Software without restriction, including without limitation the
6
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7
sell copies of the Software, and to permit persons to whom the Software is
8
furnished to do so, subject to the following conditions:
9

  
10
The above copyright notice and this permission notice shall be included in
11
all copies or substantial portions of the Software.
12

  
13
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19
IN THE SOFTWARE.
0 20

  
trunk/install/launcher/izpack-launcher-1.3_linux/makePackage.sh
1
#!/bin/sh
2
rm -r ./tmp_gvSIGInstall;
3
rm ./gvSIG-install.bin.old
4
mv ./gvSIG-install.bin ./gvSIG-install.bin.old;
5
mkdir ./tmp_gvSIGInstall;
6
cp -vR ./dist/* ./tmp_gvSIGInstall;
7
tar -czf ./gvSIG-install.tar.gz ./tmp_gvSIGInstall;
8
echo '#!/bin/sh' > xx.tmp
9
echo "set -x" >> xx.tmp
10
lcount=`cat ./xx.tmp ./h_gvSIG-install.sh | wc -l`
11
lcount=`echo $lcount+2 | bc ` # sumamos dos: no por la linea siguiente y otro para el inicio
12
echo "lcount=$lcount" >> xx.tmp
13
cat xx.tmp ./h_gvSIG-install.sh ./gvSIG-install.tar.gz > ./gvSIG-install.bin;
14
#cat xx.tmp ./h_gvSIG-install.sh ./kk.txt > ./gvSIG-install.sh;
15
rm xx.tmp
16
chmod a+x ./gvSIG-install.bin;
17
rm -r ./tmp_gvSIGInstall;
18
rm -r ./gvSIG-install.tar.gz;
0 19

  
trunk/install/launcher/izpack-launcher-1.3_linux/dist/install_jre.sh
1
#!/bin/sh
2
tar -xf ./j2re-1_4_2_10-linux.tar.gz  --directory $HOME/gvSIG/jre --no-same-owner
0 3

  
trunk/install/launcher/izpack-launcher-1.3_linux/dist/launcher.ini
1

  
2
## Ruta al achivo Jar a lanzar
3
jar = %JARNAME%
4

  
5

  
6

  
7
## Parametros a incluir al lanzar el Jar
8
jarParams = 
9

  
10

  
11

  
12
## Lanzar el Jar en ansincrono o no:
13
##     * si(se lanza el java y finaliza el lanzador):S SI YES Y 1
14
##     * no(el lanzado se espera a que termine la ejecucion del java):{distinto de los anterirores}
15
launchJarAsync = NO
16

  
17
## Version de JRE requerida
18
jre_version = 1.4.2
19
## Si existen varias JRE de la requerida, cual es la preferida (si esta)
20
jre_version_prefered = 1.4.2_10
21

  
22

  
23
## Descarga remota
24
## 	* los valores valido de downloadEnabled son:
25
##		- habilitado: S SI YES Y 1
26
##		- deshabilitado: {distinto de los anteriores}
27
downloadEnabled = 1
28

  
29

  
30
## Path del instalable del jre (si no existe y estan
31
##	habilitadas las descargas, lo dejara aqui)
32
jre = j2re-1_4_2_10-linux.tar.gz
33
downloadJre = http://www.gvsig.org/j2re-1_4_2_10-linux.tar.gz
34
installJreCmd =./install_jre.sh
35
installedJreJavaFile = $HOME/gvSIG/jre/1.4.2_10/bin/java
36
installedJreRootDirectory =$HOME/gvSIG/jre
0 37

  
trunk/install/launcher/izpack-launcher-1.3_linux/h_gvSIG-install.sh
1
echo Unpacking...
2
set -e
3
tail +$lcount $0 | tar -xz  --no-same-owner 
4
echo Launching instalation program....
5
cd ./tmp_gvSIGInstall
6
set +e
7
./launcher-Linux
8
cd ..
9
rm -r ./tmp_gvSIGInstall 2>&1 >NULL
10
exit 0 
0 11

  
trunk/install/launcher/izpack-launcher-1.3_linux/AUTHORS
1
Original author and current maintainer:
2

  
3
- Julien Ponge            <julien@izforge.com>
4

  
5
Contributors:
6

  
7
- Dustin Sacks            <dustin@sillytech.com>
8

  
9
Translators:
10

  
11
- Marcus Stursberg        <mstursberg@berlios.de>
12
- Frank Bille Jensen      <izpack@frank-bille.dk>
13
- Alex Carlos Braga Antao <alex@fnde.gov.br>
14
- David Perez Carmona     <DPerezCar@fcc.es>
15
- Gabriele Cavestro       <cavestro@eagle.it>
16
- Martin Bouman           <m.bouman@alumnus.utwente.nl>
0 17

  
trunk/install/launcher/izpack-launcher-1.3_linux/doc/en/howto.html
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&nbsp;</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&nbsp;Windows executable version of the
154
Izpack launcher using&nbsp;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.&nbsp;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&nbsp;installed then it&nbsp;just starts the setup.jar.&nbsp;</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&nbsp;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&nbsp;the manuals which come with IzPack and&nbsp;IzPack Launcher.
342
A <a href="http://www.izforge.com/izpack/izpack-tutorial.pdf">quickstart tutorial</a>&nbsp;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&nbsp;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>&nbsp;</h3>
361

  
362

  
363

  
364

  
365

  
366

  
367

  
368

  
369

  
370

  
371

  
372

  
373
<p class="Standard" style="text-align: left;">IzPack&nbsp;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&nbsp;will also need your application as an&nbsp;"IzPack-Setup
395
Jar-File" executable jar. For the impatient you can use the IzPack's
396
Setup-Jar&nbsp;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&nbsp;</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++&nbsp;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.&nbsp;</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&nbsp;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>&nbsp;</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.&nbsp;<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&nbsp;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&nbsp;</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 --&gt; Control
590
panel -&gt; System -&gt;Advanced -&gt; 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&nbsp;installation-
606
&nbsp;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;">&nbsp;&nbsp;&gt;&nbsp;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;">&nbsp;&nbsp;&nbsp;<span style="font-family: monospace;" class="Standard">&gt; 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&nbsp;console (cmd.exe), change to the wxWindows&nbsp;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
&gt; cd /d C:\wxw242\src\msw&nbsp;</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
&gt;&nbsp;&nbsp;</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
&nbsp;to cleanup&nbsp;previous&nbsp;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
&gt; </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),&nbsp;<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 ;-) :&nbsp;</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;">&gt; <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;">&nbsp;</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;">&gt; make -f</span> <span style="font-weight: bold;">makefile.g95 FINAL=1</span><br /><br />&gt; <span style="font-weight: bold;">copy&nbsp;..</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 />&gt; 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;">&gt; 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 />&gt; 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&nbsp;tool direct in the console.: &nbsp;</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'.&nbsp; 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&nbsp;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&nbsp;compile.bat file.</p>
1151

  
1152

  
1153

  
1154

  
1155

  
1156

  
1157
<pre class="Standard">C:\izpacklauncher&gt;<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&gt;<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&gt;compile.bat<br />
1202
g++&nbsp; -Wl,--subsystem,windows -mwindows -LC:\wxw242/lib -LC:\wxw242/contrib/lib<br />
1203
&nbsp;-o launcher.exe launcher.o failuredialog.o launcher_resources.o&nbsp; 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 />
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff