Recent

Author Topic: Lazarus 1.6 - Released  (Read 190912 times)

RusDeveloper

  • New Member
  • *
  • Posts: 24
Re: Lazarus 1.6 - Released
« Reply #150 on: April 04, 2016, 01:17:59 pm »
From the svn server, or in case that doesn't ring a bell, from the ftp site.

^^ i am not going to fight this stupidity forum software anymore. figure out the correct ftp link yourself please.
thanks :)

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1313
Re: Lazarus 1.6 - Released
« Reply #151 on: April 06, 2016, 12:17:00 pm »
I am unable to create a win32 executable with Lazarus 1.6.

I installed and re-installed the official Windows32/64 download multiple times, on a Windows 7 64-bit laptop, but when selecting WIn32 as target, I get the error message:

Error: Illegal parameter: -Twin32

I have also tried installing FPC32 and the cross-compiler, but to no avail.

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: Lazarus 1.6 - Released
« Reply #152 on: April 06, 2016, 07:31:20 pm »
If your default setup of Lazarus/Fpc is Win64, then when you want a Win32 app, you must set both TargetOS and TargetCPU.

(Same goes if you cross compile from win32 -> win64).

Bart

uzoamaka

  • Newbie
  • Posts: 4
Re: Lazarus 1.6 - Released
« Reply #153 on: April 07, 2016, 03:28:23 pm »
Please Friends, I have uninstalled the old Lazarus IDE - 1.4.2 and  downloaded the latest IDE, also have installed it. As a newbie and still learning the language by using the IDE; on the old one - Lazarus IDE 1.4.2, I have some tutorial questions or DIY assignment program from a book am learning from as the book do give some questions at the end of every chapter. After I have installed the new version 1.6.0, I tried to continue with the tutorial but I realized that compiling and running a program from the 1.6.0 version fails, went back to the old programs I have written before and tried to open anyone of them, none could compile and run, the "begin.... end." statement is what is highlighted as the error and I don't know why. If you guys don't mind me posting a simple DIY program done by me:

Code: [Select]
program ArithmeticFunction;

{$mode objfpc}{$H+}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Classes
  { Arithmetic Standard Functions};
CONST
  Pi = 3.14159;
begin
  Writeln('SQR(3) : ', SQR(3));     {Power of 2}
  Writeln('SQR(3) * 3 : ', SQR(3) * 3); {Power of 3}
  Writeln('SQR(SQR(3)) : ', SQR(SQR(3)));     {Power of 4}
  Writeln('SQR(2.5) : ', SQR(2.5) :0:2);
  Writeln('SQRT(16) : ', SQRT(16) :0:2);
  Writeln('ABS(-45.65) : ', ABS(-45.65) :0:2);
  Writeln('LN(EXP(1) : ', LN(EXP(1)) :0:2);
  Writeln('ARCTAN(1) : ', ARCTAN(1) * 180/Pi :0:0, ' degrees');
  Writeln('FRAC(8.22) : ', FRAC(8.22):2:2); { Fractional function}
  Writeln('INT(8.22) : ', INT(8.22):2:2);   {Fractional function}
  Writeln(RANDOM:2:2);
  Writeln(RANDOM(5));
  Readln;
end.

THE ERROR MESSAGE BELOW:
Compile Project, Target: ArithmeticFunction.exe: Exit code 1, Errors: 13
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol PASCALMAIN
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol main
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol INITFINAL
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_THREADVARTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_RESOURCESTRINGTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_WIDEINITTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_RESSTRINITTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol __heapsize
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol __fpc_valgrind
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol $unwind$main
ArithmeticFunction.pas(27,1) Error: Undefined symbol: IID_$TYPES_$$_ISTREAM
ArithmeticFunction.pas(27,1) Error: Undefined symbol: IIDSTR_$TYPES_$$_ISTREAM
ArithmeticFunction.pas(27,1) Error: Undefined symbol: RTTI_$TYPES_$$_ISTREAM


Please, I need someone, anyone to help me rectify this bug. Thanks and God bless

uzoamaka

  • Newbie
  • Posts: 4
Re: Lazarus 1.6 - Released
« Reply #154 on: April 07, 2016, 03:38:55 pm »
Please Friends, I have uninstalled the old Lazarus IDE - 1.4.2 and  downloaded the latest IDE, also have installed it. As a newbie and still learning the language by using the IDE; on the old one - Lazarus IDE 1.4.2, I have some tutorial questions or DIY assignment program from a book am learning from as the book do give some questions at the end of every chapter. After I have installed the new version 1.6.0, I tried to continue with the tutorial but I realized that compiling and running a program from the 1.6.0 version fails, went back to the old programs I have written before and tried to open anyone of them, none could compile and run, the "begin.... end." statement is what is highlighted as the error and I don't know why. If you guys don't mind me posting a simple DIY program done by me:

Code: [Select]
program ArithmeticFunction;

{$mode objfpc}{$H+}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Classes
  { Arithmetic Standard Functions};
CONST
  Pi = 3.14159;
begin
  Writeln('SQR(3) : ', SQR(3));     {Power of 2}
  Writeln('SQR(3) * 3 : ', SQR(3) * 3); {Power of 3}
  Writeln('SQR(SQR(3)) : ', SQR(SQR(3)));     {Power of 4}
  Writeln('SQR(2.5) : ', SQR(2.5) :0:2);
  Writeln('SQRT(16) : ', SQRT(16) :0:2);
  Writeln('ABS(-45.65) : ', ABS(-45.65) :0:2);
  Writeln('LN(EXP(1) : ', LN(EXP(1)) :0:2);
  Writeln('ARCTAN(1) : ', ARCTAN(1) * 180/Pi :0:0, ' degrees');
  Writeln('FRAC(8.22) : ', FRAC(8.22):2:2); { Fractional function}
  Writeln('INT(8.22) : ', INT(8.22):2:2);   {Fractional function}
  Writeln(RANDOM:2:2);
  Writeln(RANDOM(5));
  Readln;
end.

THE ERROR MESSAGE BELOW:
Compile Project, Target: ArithmeticFunction.exe: Exit code 1, Errors: 13
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol PASCALMAIN
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol main
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol INITFINAL
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_THREADVARTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_RESOURCESTRINGTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_WIDEINITTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_RESSTRINITTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol __heapsize
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol __fpc_valgrind
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol $unwind$main
ArithmeticFunction.pas(27,1) Error: Undefined symbol: IID_$TYPES_$$_ISTREAM
ArithmeticFunction.pas(27,1) Error: Undefined symbol: IIDSTR_$TYPES_$$_ISTREAM
ArithmeticFunction.pas(27,1) Error: Undefined symbol: RTTI_$TYPES_$$_ISTREAM


Please, I need someone, anyone to help me rectify this bug. Thanks and God bless

I would have loved to remove to this post but had a second thought that someone else, a newbie like me might have the same issue. Somehow, I got the idea to do or use the "Clean up and Build..." function on the IDE and everything is okay now.

Thanks Everyone!

lgrfbs

  • Jr. Member
  • **
  • Posts: 68
    • My CV page (On Swedish only)
Re: Lazarus 1.6 - Released
« Reply #155 on: April 08, 2016, 06:13:56 pm »
Hi
just installed Lazarus 1.6 and the startup dialog has OK on all tabs.
Clicked Start IDE
Now I gets the dialog in the attachments.

How do I fix this?

I do have Lazarus 1.2.6 installed in a different folder just for I are in a project and do not need to stop codeing for now.
OS : Win 10 64bit Home * Win 7 64bit Professional
Lazarus 1.8.4 r57972 FPC 3.0.4 i386-win32-win32/win64
Delphi 7.0 (Build 4.453)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus 1.6 - Released
« Reply #156 on: April 08, 2016, 07:02:25 pm »
Did you install as "secondary installation"?
What did you set the the config path to?

You can check, do you have: c:\mitt\lazarus16\lazarus.cfg
And what does it contain?
(Assuming you installed to c:\mitt\lazarus16\ )

If you choose c:\mitt\lazarus16\ as config path (and that is the install path too), that may be an issue (not sure, but avoid it).

You can create the folder c:\mitt\lazarus16\config\ for your conf.
Just edit the lazarus.cfg to point there, and try again.
« Last Edit: April 08, 2016, 07:04:07 pm by Martin_fr »

lgrfbs

  • Jr. Member
  • **
  • Posts: 68
    • My CV page (On Swedish only)
Re: Lazarus 1.6 - Released
« Reply #157 on: April 08, 2016, 10:11:33 pm »
> Did you install as "secondary installation"?
Yes

> What did you set the the config path to?
Same as install path.

>You can check, do you have: c:\mitt\lazarus16\lazarus.cfg
>And what does it contain?
Code: Pascal  [Select][+][-]
  1. --primary-config-path=C:\Mitt\lazarus16

> (Assuming you installed to c:\mitt\lazarus16\ )
Yes I did.

> You can create the folder c:\mitt\lazarus16\config\ for your conf.
> Just edit the lazarus.cfg to point there, and try again.
Sorry as user I dont can do that. Not alow as a user.
______________________________

This is in a Windows7 install and I have 2 user accounts in the system:
Administrator
User

I can logon as administrator and make \config\

As it is now I can run Lazarus from user account but, I need to run it as administrator.
OS : Win 10 64bit Home * Win 7 64bit Professional
Lazarus 1.8.4 r57972 FPC 3.0.4 i386-win32-win32/win64
Delphi 7.0 (Build 4.453)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus 1.6 - Released
« Reply #158 on: April 08, 2016, 10:29:37 pm »
Code: [Select]
primary-config-path=is where your config is stored.

So it must point to a user writeable directory.
It can be outside the install dir. e.g. C:\Users\USERNAME\AppData\Local\laz2


Note that (for 2ndary installations) all logins (windows user accounts) will use the same path for config.

The primary installation, uses a path inside the current users home dir.
« Last Edit: April 08, 2016, 10:31:11 pm by Martin_fr »

lgrfbs

  • Jr. Member
  • **
  • Posts: 68
    • My CV page (On Swedish only)
Re: Lazarus 1.6 - Released
« Reply #159 on: April 08, 2016, 10:35:08 pm »
Uninstalled Lazarus 1.6 and tryed to install from my user/programmer account and it do not have rights to run the installer, so the installer most run from administrator account.

Hmmm, tested to make a new folder in C:\Mitt and windows want admin... password, so I will try to changes the rights on that folder (C:\mitt).
OS : Win 10 64bit Home * Win 7 64bit Professional
Lazarus 1.8.4 r57972 FPC 3.0.4 i386-win32-win32/win64
Delphi 7.0 (Build 4.453)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus 1.6 - Released
« Reply #160 on: April 08, 2016, 10:51:19 pm »
make a folder in your user account.

then either:
- during install (as admin) enter that as the location for config.
- (or) edit the lazarus.cfg file (as admin).

I have not tested on windows, but afaik it works so long as the config folder is writeable. (it does on other os)

If you rebuild the IDE (install packages, you need to use startlazarus.exe, as the new lazarus.exe should be in your conf folder (since/if the install folder is not writeable)

lgrfbs

  • Jr. Member
  • **
  • Posts: 68
    • My CV page (On Swedish only)
Re: Lazarus 1.6 - Released
« Reply #161 on: April 08, 2016, 10:57:13 pm »
By Switch user and fix the rights for the folder and logout as administrator, run the installer for Lazarus from user/programmers account and now do it all work just fine.
Now is the path like this:
Install: C:\Mitt\lazarus1.6
Config: C:\Mitt\lazarus1.6\Config
 :-[


Thanks for you poke me at right way.
OS : Win 10 64bit Home * Win 7 64bit Professional
Lazarus 1.8.4 r57972 FPC 3.0.4 i386-win32-win32/win64
Delphi 7.0 (Build 4.453)

lgrfbs

  • Jr. Member
  • **
  • Posts: 68
    • My CV page (On Swedish only)
Re: Lazarus 1.6 - Released
« Reply #162 on: April 08, 2016, 11:00:32 pm »
How do I config Lazarus 1.6 so this dialog (see attachments) will be back?
OS : Win 10 64bit Home * Win 7 64bit Professional
Lazarus 1.8.4 r57972 FPC 3.0.4 i386-win32-win32/win64
Delphi 7.0 (Build 4.453)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Lazarus 1.6 - Released
« Reply #163 on: April 08, 2016, 11:47:03 pm »
How do I config Lazarus 1.6 so this dialog (see attachments) will be back?

You cannot get it back. It was replaced by a threaded build system. All information is in the messages window.
The dialog could be brought back to life if somebody worked for it but nobody felt it important enough.
« Last Edit: April 09, 2016, 12:02:29 am by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

lgrfbs

  • Jr. Member
  • **
  • Posts: 68
    • My CV page (On Swedish only)
Re: Lazarus 1.6 - Released
« Reply #164 on: April 09, 2016, 12:00:12 am »
Ok, thanks
OS : Win 10 64bit Home * Win 7 64bit Professional
Lazarus 1.8.4 r57972 FPC 3.0.4 i386-win32-win32/win64
Delphi 7.0 (Build 4.453)

 

TinyPortal © 2005-2018