Re: [Lazarus] Can't access mysql tables in linux using lazarus
On Sun, 24 Jun 2018, Larry Dalton via Lazarus wrote: I have an application that uses mysql databases. It works perfectly in Windows, but not linux. Here is the problem: Mysql57Connection won't apply updates correctly in linux. Here are the details: 1. I am using linux 18.3 Cinnamon 64bit 2. I am running lazarus 1.8.2. 3. I am using Mysql 5.7 4. Some of the tables were created using phpmyadmin. 5. Other tables were created from the lazarus application. 6. The tables created in phpmyadmin are accessable both for reading and writing from the lazarus application. 7. The tables created in lazarus are read only in the lazarus application. They are read and write both from phpmyadmin. How do you conclude this ? What errors do you get (if any) ? 8.All tables are accessable from the application and phpmyadmin when running it on Windows 7. What do I need to look for? SQLDB has no knowledge of security settings in the various DB engines. It just executes SQL statements. You need to check the security settings for these tables in MySQL. It could be that phpMyAdmin uses a different user than your program. The fact that it works differently on linux and windows may point to file permissions on the table files. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] 64 bit Cocoa package (Mac)
On Sunday, June 24, 2018, Ryan Joseph via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > > Is the IDE broken for the Cocoa widget set? > I prefer the word “incomplete” for Cocoa widget. Are you using trunk for Lazarus, or an earlier release? If an earlier release then it’s expected. If trunk then a screenshot would worth a thousand words. Thanks, Dmitry -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Can't access mysql tables in linux using lazarus
I have an application that uses mysql databases. It works perfectly in Windows, but not linux. Here is the problem: Mysql57Connection won't apply updates correctly in linux. Here are the details: 1. I am using linux 18.3 Cinnamon 64bit 2. I am running lazarus 1.8.2. 3. I am using Mysql 5.7 4. Some of the tables were created using phpmyadmin. 5. Other tables were created from the lazarus application. 6. The tables created in phpmyadmin are accessable both for reading and writing from the lazarus application. 7. The tables created in lazarus are read only in the lazarus application. They are read and write both from phpmyadmin. 8.All tables are accessable from the application and phpmyadmin when running it on Windows 7. What do I need to look for? -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] 64 bit Cocoa package (Mac)
> On Jun 25, 2018, at 9:38 AM, Dmitry Boyarintsev via Lazarus > wrote: > > It's not IDE that demands the compiler to be i386, but the widgetset (Carbon). > > You need to specify Lazarus to build for Cocoa instead. In this case you > should be able to install the package into IDE. Yes I finally got it figured out with help from another person. It was the “Tools -> Configure …” settings I was missing. When I turn on the Cocoa widget set I can install the package now but the IDE is basically broken. Menu items are missing, command key are wrong , size of the controls are all wrong (due to high resolution) and crashing in the source editor amongst others. Is the IDE broken for the Cocoa widget set? Regards, Ryan Joseph -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] 64 bit Cocoa package (Mac)
On Sun, Jun 24, 2018 at 12:49 AM, Ryan Joseph via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > 1) by setting the Tools > Options compiler path to ppc386 I can rebuild > but I get symbol not found error because the framework I’m linking is 64 > bit only. > 1) If I set the compiler to ppcx64 I get the "Identifier not found > “ATSUFindFontFromName”” error and never get to the building of the actual > package. > > How can I get out of this loop? Apparently lazarus needs to compile the > package and link everything but the IDE also demands I only build with the > i386 compiler. > It's not IDE that demands the compiler to be i386, but the widgetset (Carbon). You need to specify Lazarus to build for Cocoa instead. In this case you should be able to install the package into IDE. thanks, Dmitry -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058
On Sun, Jun 24, 2018 at 11:04 PM, Mattias Gaertner via Lazarus wrote: > My fpc 3.0.4 simply ignores the parameter. > What compiler flavor shows this error? 3.0.4rc1 does (never got to updating that to the actual 3.0.4 release). C:\Users\Bart\LazarusProjecten\ConsoleProjecten>fpc -vm6058 test.pas Error: Illegal parameter: -vm6058 Error: C:\devel\fpc\3.0.4\bin\i386-Win32\ppc386.exe returned an error exitcode Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058
On Sun, 24 Jun 2018 13:00:06 +0200 Florian Klämpfl via Lazarus wrote: >[...] > > Error: (11006) Illegal parameter: -vm6058 > > > > when compiling LazUtils. >[...] > This error message is 3.1.1+ only. My fpc 3.0.4 simply ignores the parameter. What compiler flavor shows this error? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058
Am 24.06.2018 um 20:12 schrieb Bart via Lazarus: On Sun, Jun 24, 2018 at 7:59 PM, Michael Ring via Lazarus wrote: Are you 100% sure that this message is 3.1.1+ only? He probably means that a message with id 6058 only exists in 3.1.1, so you cannot suppress it using -vm6058 in earlier versions? Yes. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058
On Sun, Jun 24, 2018 at 7:59 PM, Michael Ring via Lazarus wrote: > Are you 100% sure that this message is 3.1.1+ only? He probably means that a message with id 6058 only exists in 3.1.1, so you cannot suppress it using -vm6058 in earlier versions? Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058
Are you 100% sure that this message is 3.1.1+ only? Please look at the output below, the error is reported for /usr/local/bin/ppcx64, and when I do a version check on that file it returns 3.0.4 Error: (11006) Illegal parameter: -vm6058 Hint: (11007) -? writes help pages Error: /usr/local/bin/ppcx64 returned an error exitcode Error: (lazarus) Compile package LazUtils 1.0: stopped with exit code 256 /usr/local/bin/ppcx64 -iW 3.0.4 Am 24.06.18 um 13:00 schrieb Florian Klämpfl via Lazarus: Am 24.06.2018 um 12:07 schrieb Michael Ring via Lazarus: I cannot build current lazarus trunk on MacOSX, 64bits, not sure if the problem is because of my build environment or not. I have successfully build lazarus for a very long time with the steps I do. When I rebuild lazarus I get this error message: Error: (11006) Illegal parameter: -vm6058 when compiling LazUtils. I can workarround the problem by removing the following lines from lazutils.lpk: I do not see an obvious problem in my buildsystem: lrwxr-xr-x 1 root staff 23 4 Dez 2017 /usr/local/bin/ppc386 -> ../lib/fpc/3.0.4/ppc386 lrwxr-xr-x 1 root staff 23 4 Dez 2017 /usr/local/bin/ppcx64 -> ../lib/fpc/3.0.4/ppcx64 lrwxr-xr-x 1 ring staff 25 24 Jun 11:49 /usr/local/bin/lazbuild -> ../share/lazarus/lazbuild ppcx64 points to fpc 3.0.4 which is last official version so I guess all is fine. Any ideas? This error message is 3.1.1+ only. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058
Am 24.06.2018 um 12:07 schrieb Michael Ring via Lazarus: I cannot build current lazarus trunk on MacOSX, 64bits, not sure if the problem is because of my build environment or not. I have successfully build lazarus for a very long time with the steps I do. When I rebuild lazarus I get this error message: Error: (11006) Illegal parameter: -vm6058 when compiling LazUtils. I can workarround the problem by removing the following lines from lazutils.lpk: I do not see an obvious problem in my buildsystem: lrwxr-xr-x 1 root staff 23 4 Dez 2017 /usr/local/bin/ppc386 -> ../lib/fpc/3.0.4/ppc386 lrwxr-xr-x 1 root staff 23 4 Dez 2017 /usr/local/bin/ppcx64 -> ../lib/fpc/3.0.4/ppcx64 lrwxr-xr-x 1 ring staff 25 24 Jun 11:49 /usr/local/bin/lazbuild -> ../share/lazarus/lazbuild ppcx64 points to fpc 3.0.4 which is last official version so I guess all is fine. Any ideas? This error message is 3.1.1+ only. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058
I cannot build current lazarus trunk on MacOSX, 64bits, not sure if the problem is because of my build environment or not. I have successfully build lazarus for a very long time with the steps I do. When I rebuild lazarus I get this error message: Error: (11006) Illegal parameter: -vm6058 when compiling LazUtils. I can workarround the problem by removing the following lines from lazutils.lpk: I do not see an obvious problem in my buildsystem: lrwxr-xr-x 1 root staff 23 4 Dez 2017 /usr/local/bin/ppc386 -> ../lib/fpc/3.0.4/ppc386 lrwxr-xr-x 1 root staff 23 4 Dez 2017 /usr/local/bin/ppcx64 -> ../lib/fpc/3.0.4/ppcx64 lrwxr-xr-x 1 ring staff 25 24 Jun 11:49 /usr/local/bin/lazbuild -> ../share/lazarus/lazbuild ppcx64 points to fpc 3.0.4 which is last official version so I guess all is fine. Any ideas? Michael Here's more detail on what I am doing: I first build lazarus with the following command: LCL_PLATFORM=cocoa CPU_TARGET=x86_64 COMPILERSWITCH="--compiler=ppcx64" make clean all CPU_TARGET=$CPU_TARGET LCL_PLATFORM=$LCL_PLATFORM OPT="-dLCLScaleForms -k'-framework' -k'ApplicationServices'" || exit 1 then I install lazarus to destination directory: sudo rm -rf /usr/local/share/lazarus sudo make install CPU_TARGET=$CPU_TARGET LCL_PLATFORM=$LCL_PLATFORM and then rebuild lazarus with lazbuild: sudo chown -R ring:staff /usr/local/share/lazarus lazbuild --build-ide= --ws=$LCL_PLATFORM --cpu=$CPU_TARGET $COMPILERSWITCH When rebuild starts I get this error message: Info: (lazarus) Execute Title="Compile package LazUtils 1.0" Info: (lazarus) Working Directory="/usr/local/share/lazarus/components/lazutils/" Info: (lazarus) Executable="/usr/local/bin/fpc" Info: (lazarus) Param[0]="-B" Info: (lazarus) Param[1]="-MObjFPC" Info: (lazarus) Param[2]="-Scghi" Info: (lazarus) Param[3]="-O1" Info: (lazarus) Param[4]="-gw" Info: (lazarus) Param[5]="-gl" Info: (lazarus) Param[6]="-l" Info: (lazarus) Param[7]="-vewnhibq" Info: (lazarus) Param[8]="-vm6058" Info: (lazarus) Param[9]="-Fu/usr/local/share/lazarus/packager/units/x86_64-darwin" Info: (lazarus) Param[10]="-Fu/usr/local/share/lazarus/components/lazutils/" Info: (lazarus) Param[11]="-FU/usr/local/share/lazarus/components/lazutils/lib/x86_64-darwin/" Info: (lazarus) Param[12]="-O2" Info: (lazarus) Param[13]="-g-" Info: (lazarus) Param[14]="-Xs" Info: (lazarus) Param[15]="lazutils.pas" Error: (11006) Illegal parameter: -vm6058 Hint: (11007) -? writes help pages Error: /usr/local/bin/ppcx64 returned an error exitcode -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus IDE on Android (ARM and x86_64)
On 24/06/18 01:00, Paul Breneman via Lazarus wrote: A couple of days ago I loaded UserLAnd on my Moto Z2 Android phone. I then loaded fpc and got fpc 3.0.0 loaded for AArch64. I have this web page started: www.turbocontrol.com/userland.htm Please try UserLAnd and report back how it works for you. Hopefully you will get a 64-bit Debian 9. Console mode stuff is no problem, until one tries to use things like pthread. Yesterday I set up a makefile for a project that did and got bogged down with linkage errors, so it isn't simply that ld is hardcoding references to the wrong .so file. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus