Re: [Lazarus] Crosscompile Target Win32 error : ( /units/i386-win32/win32] Error 1)

2014-03-31 Thread Allan E. Registos
On Friday, 28 March, 2014 05:36 PM, Mattias Gaertner wrote:
 On Fri, 28 Mar 2014 17:02:44 +0800
 Allan E. Registos allan.regis...@smpc.steniel.com.ph wrote:

 [...]
 and can't locate the correct fpcsrc version
 What is the correct fpcsrc version?
 During Lazarus startup, cannot find the correct location, I must say
 location of the fpcsrc installed.
 The IDE searches all common places. Is one common place missing?
I have .lazarus v 1.0.14 in my home directory. Uninstalled Lazarus
1.0.14 and install v 1.2, during startup, it uses that directory for
environmental setup and now generates an error for locating FPC. My
mistake of saying 'location', it still find the directory but failed to
recognize that it was the correct directory, that prompted me to move
.lazarus. I did not take a screenshot of the error, so I cannot recall
of the exact wording, but I think anyone can reproduce the error
generated by:
1. Install Lazarus 1.0.14(fpc/fpcsrc).
2. Uninstall only lazarus 1.0.14
3. Install 1.2 version
4. Run Lazarus and wait for the prompt and error at fpc tab during startup.


 [...]
 make: Entering directory `/usr/share/lazarus/1.2.0'
 /usr/bin/make -C ide idepkg
 make[1]: Entering directory `/usr/share/lazarus/1.2.0/ide'
 /bin/mkdir -p ../units/i386-win32/win32
 /bin/mkdir: cannot create directory `../units/i386-win32': Permission denied
 make[1]: *** [../units/i386-win32/win32] Error 1
 Thanks.
 The debian packages do not support cross compiling the IDE. 
 Why do you want that?
Thank you.. I see. I am thinking that the (IDE) to get recompiled in
order to support win32 objects.

 You can cross compile the packages, which the IDE does automatically
 when you cross compile your project. No need to use make manually.
I see.  Try to target win32 and now it works. Thank you for your help...
Solved...

 Mattias

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Crosscompile Target Win32 error : ( /units/i386-win32/win32] Error 1)

2014-03-28 Thread Mattias Gaertner
On Fri, 28 Mar 2014 17:02:44 +0800
Allan E. Registos allan.regis...@smpc.steniel.com.ph wrote:

[...]
  and can't locate the correct fpcsrc version
  What is the correct fpcsrc version?
 During Lazarus startup, cannot find the correct location, I must say
 location of the fpcsrc installed.

The IDE searches all common places. Is one common place missing?


[...]

 make: Entering directory `/usr/share/lazarus/1.2.0'
 /usr/bin/make -C ide idepkg
 make[1]: Entering directory `/usr/share/lazarus/1.2.0/ide'
 /bin/mkdir -p ../units/i386-win32/win32
 /bin/mkdir: cannot create directory `../units/i386-win32': Permission denied
 make[1]: *** [../units/i386-win32/win32] Error 1

Thanks.
The debian packages do not support cross compiling the IDE. 
Why do you want that?
You can cross compile the packages, which the IDE does automatically
when you cross compile your project. No need to use make manually.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Crosscompile Target Win32 error : ( /units/i386-win32/win32] Error 1)

2014-03-27 Thread Allan E. Registos
Hi all, 

Good day, 

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 and can't locate the correct fpcsrc version 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. 
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. 

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. 


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?

Best regards,
Allan

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Crosscompile Target Win32 error : ( /units/i386-win32/win32] Error 1)

2014-03-27 Thread Mattias Gaertner
On Fri, 28 Mar 2014 09:42:17 +0800 (PHT)
Allan E. Registos allan.regis...@smpc.steniel.com.ph wrote:

[...]
 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

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.


 and can't locate the correct fpcsrc version

What is the correct fpcsrc version?


 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.

Normally mv .lazarus .lazarus_0.14 moves it to
.lazarus_0.14/.lazarus. Your files were not lost, just moved.


 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. 

Ok. This should give you a pretty standard Lazarus 1.2.

 
 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. 

Please post the other messages before the error message.

How did you install the cross compiled units for win32?

 
 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?


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus