<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On Friday, 28 March, 2014 10:27 AM,
Mattias Gaertner wrote:<br>
</div>
<blockquote cite="mid:20140328032703.091c6323@limapholos"
type="cite">
<pre wrap="">On Fri, 28 Mar 2014 09:42:17 +0800 (PHT)
"Allan E. Registos" <a class="moz-txt-link-rfc2396E" href="mailto:allan.registos@smpc.steniel.com.ph"><allan.registos@smpc.steniel.com.ph></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">[...]
For Lazarus 1.0.14/Ubuntu 64 Precise
I have successfully installed crosscompile win32/i386 and can generate win32 executable.
I upgraded to 1.2.
I've moved the old .lazarus to .lazarus_0.14 because Laz 1.2 is unable to upgrade it and was using instead the binary in that directory which is the 1.014 version
</pre>
</blockquote>
<pre wrap="">
The starter checks the file dates. If your custom built IDE in
the .lazarus directory is newer than the IDE installed via the deb
package it starts your custom IDE.
Maybe we need a better heuristic.
</pre>
<blockquote type="cite">
<pre wrap="">and can't locate the correct fpcsrc version
</pre>
</blockquote>
<pre wrap="">
What is the correct fpcsrc version?</pre>
</blockquote>
During Lazarus startup, cannot find the correct location, I must say
location of the fpcsrc installed.<br>
<blockquote cite="mid:20140328032703.091c6323@limapholos"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">so I just moved that
directory to let the new 1.2 create a new one.
I was able again to recompile lazarus to target win32/i386 and generated win32 exe.
However, I accidentally enter the command "mv .lazarus .lazarus_0.14", this command in linux gives you no warning whatsoever that there is an existing directory with that name. So it just followed that command, and my existing .lazarus which has the lazarus1.2 binary that can target win32 was lost.
</pre>
</blockquote>
<pre wrap="">
Normally "mv .lazarus .lazarus_0.14" moves it to
".lazarus_0.14/.lazarus". Your files were not lost, just moved.</pre>
</blockquote>
My bad. I should have first check the contents of the directory now
that I deleted it.<br>
<blockquote cite="mid:20140328032703.091c6323@limapholos"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">Restoring from .lazarus_0.14 gives me the old lazarus binary. So I
think this is just a trivial problem, and to correct this, I started
from scratch. I removed again .lazarus and start lazarus to recreate
the directory.
</pre>
</blockquote>
<pre wrap="">
Ok. This should give you a pretty standard Lazarus 1.2.
</pre>
<blockquote type="cite">
<pre wrap="">When trying to recompile lazarus (Option > Prof to build[Clean Up + Build All] > LCL Widget type[win32/win64] > Target OS:[win32] > Target CPU:[i386])
I have now this error:
make[1]: *** [../units/i386-win32/win32] Error 1
Recompiling fpcsrc doesn't work.
</pre>
</blockquote>
<pre wrap="">
Please post the other messages before the error message.</pre>
</blockquote>
Here are the messages,(removed some):<br>
<br>
tachartlazaruspkg.pas(11,29) Hint: Unit "TASubcomponentsEditor" not
used in TAChartLazarusPkg<br>
tachartlazaruspkg.pas(12,3) Hint: Unit "TATypes" not used in
TAChartLazarusPkg<br>
tachartlazaruspkg.pas(12,12) Hint: Unit "TADrawUtils" not used in
TAChartLazarusPkg<br>
tachartlazaruspkg.pas(13,34) Hint: Unit "TACustomSource" not used in
TAChartLazarusPkg<br>
tachartlazaruspkg.pas(13,50) Hint: Unit "TAGeometry" not used in
TAChartLazarusPkg<br>
tachartlazaruspkg.pas(14,51) Hint: Unit "TAChartAxisUtils" not used
in TAChartLazarusPkg<br>
tachartlazaruspkg.pas(15,19) Hint: Unit "TAEnumerators" not used in
TAChartLazarusPkg<br>
tachartlazaruspkg.pas(16,18) Hint: Unit "TAMath" not used in
TAChartLazarusPkg<br>
tachartlazaruspkg.pas(17,3) Hint: Unit "TATextElements" not used in
TAChartLazarusPkg<br>
tachartlazaruspkg.pas(17,19) Hint: Unit "TAAxisSource" not used in
TAChartLazarusPkg<br>
tachartlazaruspkg.pas(17,54) Hint: Unit "TACustomFuncSeries" not
used in TAChartLazarusPkg<br>
tachartlazaruspkg.pas(18,3) Hint: Unit "TAFitUtils" not used in
TAChartLazarusPkg<br>
tachartlazaruspkg.pas(18,15) Hint: Unit "TAGUIConnector" not used in
TAChartLazarusPkg<br>
tachartlazaruspkg.pas(18,31) Hint: Unit "TADiagram" not used in
TAChartLazarusPkg<br>
tachartlazaruspkg.pas(18,60) Hint: Unit "TADiagramLayout" not used
in TAChartLazarusPkg<br>
32577 lines compiled, 2.9 sec <br>
5 warning(s) issued<br>
47 hint(s) issued<br>
11 note(s) issued<br>
"Compiling package TAChartLazarusPkg 1.0" completed<br>
Hint: Start of reading config file /etc/fpc.cfg<br>
Hint: End of reading config file /etc/fpc.cfg<br>
Free Pascal Compiler version 2.6.2 [2014/03/28] for i386<br>
Copyright (c) 1993-2012 by Florian Klaempfl and others<br>
Target OS: Win32 for i386<br>
Compiling todolistlaz.pas<br>
Compiling tododlg.pas<br>
Compiling todolist.pas<br>
Compiling todoliststrconsts.pas<br>
Writing Resource String Table file: todoliststrconsts.rst<br>
todolist.pas(153,27) Hint: Parameter "Sender" not used<br>
todolist.pas(154,24) Hint: Parameter "Sender" not used<br>
todolist.pas(155,27) Hint: Parameter "Sender" not used<br>
todolist.pas(156,33) Hint: Parameter "Sender" not used<br>
todolist.pas(157,29) Hint: Parameter "Sender" not used<br>
todolist.pas(158,12) Hint: Parameter "Data" not used<br>
todolist.pas(159,31) Hint: Parameter "Sender" not used<br>
todolist.pas(152,26) Hint: Parameter "Sender" not used<br>
todolist.pas(150,29) Hint: Parameter "Sender" not used<br>
todolist.pas(149,31) Hint: Parameter "Sender" not used<br>
todolist.pas(151,32) Hint: Parameter "Sender" not used<br>
todolist.pas(182,22) Hint: Parameter "Sender" not used<br>
tododlg.pas(65,43) Hint: Parameter "Sender" not used<br>
tododlg.pas(67,31) Hint: Parameter "Sender" not used<br>
tododlg.pas(51,36) Hint: Parameter "Sender" not used<br>
tododlg.pas(50,26) Hint: Parameter "Sender" not used<br>
todolistlaz.pas(10,12) Hint: Unit "TodoList" not used in ToDoListLaz<br>
todolistlaz.pas(10,22) Hint: Unit "ToDoListStrConsts" not used in
ToDoListLaz<br>
1163 lines compiled, 0.7 sec <br>
20 hint(s) issued<br>
"Compiling package ToDoListLaz 1.0.2" completed<br>
Free Pascal Compiler version 2.6.2 [2014/03/28] for i386<br>
Copyright (c) 1993-2012 by Florian Klaempfl and others<br>
Target OS: Win32 for i386<br>
Compiling turbopoweripro.pas<br>
Compiling ipanim.pas<br>
Compiling ipconst.pas<br>
Writing Resource String Table file: ipconst.rst<br>
Compiling ipfilebroker.pas<br>
Compiling iputils.pas<br>
Writing Resource String Table file: iputils.rst<br>
Compiling iphtml.pas<br>
Compiling iphtmltablist.pas<br>
Compiling ipstrms.pas<br>
ipstrms.pas(1308,22) Warning: Converting pointers to signed integers
may result in wrong comparison results and range errors, use an
unsigned type instead.<br>
ipstrms.pas(1356,24) Warning: Converting pointers to signed integers
may result in wrong comparison results and range errors, use an
unsigned type instead.<br>
ipstrms.pas(1358,29) Warning: Converting pointers to signed integers
may result in wrong comparison results and range errors, use an
unsigned type instead.<br>
ipstrms.pas(1439,23) Warning: Converting pointers to signed integers
may result in wrong comparison results and range errors, use an
unsigned type instead.<br>
ipstrms.pas(1487,25) Warning: Converting pointers to signed integers
may result in wrong comparison results and range errors, use an
unsigned type instead.<br>
ipstrms.pas(1489,30) Warning: Converting pointers to signed integers
may result in wrong comparison results and range errors, use an
unsigned type instead.<br>
Compiling ipmsg.pas<br>
Compiling iphtmlpv.pas<br>
Writing Resource String Table file: iphtmlpv.rst<br>
/usr/share/lazarus/1.2.0/components/turbopower_ipro/iphtml.pas(15896,6)
Warning: User defined: Setting these font colors and name messes up
the alignment for some reason<br>
/usr/share/lazarus/1.2.0/components/turbopower_ipro/iphtml.pas(15914,7)
Warning: User defined: TODO Set Font size from CSS Value<br>
35010 lines compiled, 1.9 sec <br>
8 warning(s) issued<br>
"Compiling package TurboPowerIPro 1.0" completed<br>
make: Entering directory `/usr/share/lazarus/1.2.0'<br>
/usr/bin/make -C ide idepkg<br>
make[1]: Entering directory `/usr/share/lazarus/1.2.0/ide'<br>
/bin/mkdir -p ../units/i386-win32/win32<br>
/bin/mkdir: cannot create directory `../units/i386-win32':
Permission denied<br>
make[1]: *** [../units/i386-win32/win32] Error 1<br>
<br>
<blockquote cite="mid:20140328032703.091c6323@limapholos"
type="cite">
<pre wrap="">
How did you install the cross compiled units for win32?</pre>
</blockquote>
You mean for these commands:<br>
<pre dir="ltr" class="mw-geshi mw-content-ltr"><div class="bash source-bash"><pre class="de1"><big><span class="co4">$ </span><span class="kw2">make</span> all <span class="re2">OS_TARGET</span>=win32 <span class="re2">CPU_TARGET</span>=i386</big></pre></div></pre>
<p>and then
</p>
<pre dir="ltr" class="mw-geshi mw-content-ltr"><div class="bash source-bash"><pre class="de1"><big><span class="co4">$ </span><span class="kw2">su</span> <span class="re5">-c</span> <span class="st0">"make crossinstall OS_TARGET=win32 CPU_TARGET=i386"</span></big></pre></div></pre>
Instruction from:
<a class="moz-txt-link-freetext" href="http://wiki.lazarus.freepascal.org/Cross_compiling_for_Win32_under_Linux">http://wiki.lazarus.freepascal.org/Cross_compiling_for_Win32_under_Linux</a><br>
<br>
<blockquote cite="mid:20140328032703.091c6323@limapholos"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">Also the reason why I upgraded to 1.2 is because I want also to target
both 1.0.14 and 1.2 emitted this error:
make[1]: *** [../units/i386-linux/gtk2] Error 1
Anybody experience this or have an idea?
</pre>
</blockquote>
<pre wrap="">
Mattias
--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
</body>
</html>