Re: [fpc-pascal] FPC install on windows with limited rights
On Thu, 2 Nov 2017, Graeme Geldenhuys wrote: Hi, I have a severely locked down laptop (work one) so I can't install anything that creates menu shortcuts, desktop icons or goes into "Program Files". So I can't run the official Windows FPC installer. I don't actually know what is the requirement in Windows to trigger the "admin rights" dialog - but the official FPC installer does trigger it, so I can't use it. Is there a way to unpack the installer so I can manually install FPC in my home folder? Or is there some other lesser known official Windows installer I could use. eg: the FPC Linux installer doesn't require root access. Is there a Windows FPC installer that uses the same installer as Linux or FreeBSD? A console installer? I managed to track down a very old FPC 2.6.0 bundled with Lazarus v1 in a "portable application" installer. This worked, but it's very old. I guess I would go through the tedious process of compiling each FPC release myself starting with the 2.6.0 fpc.exe I have - but if there is a faster way, I would obviously prefer that. The installer is made with inno setup. There are several inno extract tools available, e.g.: http://constexpr.org/innoextract/ You can use that to extract the files to any location you want. A fast USB3 for a portable installation seems like a good idea. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC install on windows with limited rights
I'm curious if it really needs to be installed? I installed it on my desktop computer then just copied the entire FPC directory to my NAS, then went to my laptop where FPC was never installed, mapped a drive to access the FPC copy on the NAS and ran it, and everything seems fine to me.I have even put the entire thing on a USB hard drive and plugged it into customers computers and made source adjustments then recompiled the program and had no problems at all I certainly would never have my source code on their hard drive... and I never install anything on their computer. Maybe this is just something I get away with because my source code and FPC are on the same drive or NAS share and I use relative paths in fp.ini for FU like -Fu..\..\FPC\3.0.4rc1\units\$fpctarget\* and I also usually have a batch file in with my source code that just calls FPC with a relative path like ..\..\FPC\3.0.4rc1\bin\FPC %1 %2 %3 %4 It's just something I always have done since turbo pascal, which I also never installed, just copied the TP directory wherever I wanted to run it. Anyway.. I run FPC all over the place and never "install" it. James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Graeme Geldenhuys Sent: Thursday, November 02, 2017 2:48 AM To: FPC-Pascal users discussions Subject: [fpc-pascal] FPC install on windows with limited rights Hi, I have a severely locked down laptop (work one) so I can't install anything that creates menu shortcuts, desktop icons or goes into "Program Files". So I can't run the official Windows FPC installer. I don't actually know what is the requirement in Windows to trigger the "admin rights" dialog - but the official FPC installer does trigger it, so I can't use it. Is there a way to unpack the installer so I can manually install FPC in my home folder? Or is there some other lesser known official Windows installer I could use. eg: the FPC Linux installer doesn't require root access. Is there a Windows FPC installer that uses the same installer as Linux or FreeBSD? A console installer? I managed to track down a very old FPC 2.6.0 bundled with Lazarus v1 in a "portable application" installer. This worked, but it's very old. I guess I would go through the tedious process of compiling each FPC release myself starting with the 2.6.0 fpc.exe I have - but if there is a faster way, I would obviously prefer that. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC install on windows with limited rights
On Thu, Nov 2, 2017 at 11:31 AM, James Richters wrote: > I'm curious if it really needs to be installed? For commandline compilen (and building Lazarus from console) it's preferrable to have fpc's bin directory in the path (and you need admin privileges for that). Otherwise just copying the entire fpc folder (and adjusting fpc.cfg) should be enough for running and building from Lazarus. (Did that on Win98, because the fpc installer needs XP or higher) Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC install on windows with limited rights
On 2017-11-02 07:17, Michael Van Canneyt wrote: The installer is made with inno setup. There are several inno extract tools available, e.g.: http://constexpr.org/innoextract/ Thank you Michael, that worked perfectly. Strange that the inno setup executable (the FPC installer) doesn't have a parameter to do that itself. I have seen installers in the past that allows for that, but I don't know what program they used to generate that installer. You can use that to extract the files to any location you want. A fast USB3 for a portable installation seems like a good idea. Yes, that was my plan as well. With FPC and Lazarus it is pretty easy to run everything stand-alone from a USB stick. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC install on windows with limited rights
On 2017-11-02 10:31, James Richters wrote: I'm curious if it really needs to be installed? FPC and Lazarus can run just fine without an installer. In fact, that is how I've been running FPC and Lazarus under Linux and FreeBSD for the last 10 years. The problem under Windows was that I couldn't get hold of a v3.0.2 FPC binary. The only Windows installer for FPC requires admin rights to run, which I couldn't do on my work laptop. But now that Michael mentioned the Inno Setup Unpacking tool, I managed to unpack the setup. Now I can copy that to my home folder setup the fpc.cfg and then go from there (compile fpGUI, compile Lazarus etc.). The FPC team really should consider releasing a Windows binary zip release too. It really wouldn't be any extra effort as they already prep everything for Inno Setup, so a simply ZIP command is all that would be needed. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] Forbidden access to the packages page
Hello, is it normal that the following URL gives a 403 forbidden error when trying to access via Firefox? Here it does: https://www.freepascal.org/packages/ Greetings Cleverson ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC install on windows with limited rights
On 2017-11-02 11:30, Bart wrote: For commandline compilen (and building Lazarus from console) it's preferrable to have fpc's bin directory in the path (and you need admin privileges for that). If you use ConEmu [https://conemu.github.io/] - an alternative console for Windows, it allows you to set up environment variables for each session without requiring admin access. ConEmu is a 100x better than the default Windows Command Prompt, and it has tons of other features too. I run Git Bash, Default Console, PowerShell and more all via ConEmu. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Forbidden access to the packages page
On 11/2/2017 1:02 PM, Cleverson Casarin Uliana wrote: > Hello, is it normal that the following URL gives a 403 forbidden error > when trying to access via Firefox? Here it does: > https://www.freepascal.org/packages/ Certainly not a Firefox problem, as I can reproduce this with Chrome and Opera as well... Ralf --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] Compiler directive to compile to 64 bits
Hi, a newbie question but the docs aren't clear on how to say that I want to use the 64-bit compiler, not the i386. I'm on Windows, so I installed the native i386-win32 compiler, then the x86_64 cross compiler. When I issue for example fpc hello, it uses the i386 one. I also gave a look inside the fpc.cfg file, but it isn't clear at all on how to do the trick... Thanks and greetings, Cleverson ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Compiler directive to compile to 64 bits
> Hi, a newbie question but the docs aren't clear on how to say that I want to use the 64-bit compiler, not the i386 fpc -Px86_64 -Twin64 -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Compiler directive to compile to 64 bits
Em 02/11/2017 23:29, leledumbo via fpc-pascal escreveu: fpc -Px86_64 -Twin64 Great, thanks! :) Cleverson ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] move problem
I was just trying to run some old code and found that my calls to Move are crashing (3.1.1/ppcx64) so I tried to make this simple example and it’s crashing also. Also for some reason I can’t use @i as the first parameter of Move and MemSize on “dest” returns 24 instead of 4. What’s going on here??? var i: integer; dest: pointer; src: pointer; dest := GetMem(sizeof(i)); i := 100; src := @i; Move(src, dest, sizeof(i)); writeln(PInteger(block)^); Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] move problem
Ryan Joseph wrote: I was just trying to run some old code and found that my calls to Move are crashing (3.1.1/ppcx64) so I tried to make this simple example and it’s crashing also. Also for some reason I can’t use @i as the first parameter of Move and MemSize on “dest” returns 24 instead of 4. What’s going on here??? What's going on, is that you didn't read what the Unit Reference Guide says about Move. It is not like BlockMoveData on the Mac and it doesn't expect pointers as parameter. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] move problem
> On Nov 3, 2017, at 11:04 AM, Adriaan van Os wrote: > > What's going on, is that you didn't read what the Unit Reference Guide says > about Move. It is not like BlockMoveData on the Mac and it doesn't expect > pointers as parameter. ah I see now I got confused by something else and got derailed. Thanks. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal