Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?
On Tue, 8 May 2018, Marcos Douglas B. Santos wrote: On Mon, May 7, 2018 at 6:05 PM, Michael Van Canneyt wrote: On Mon, 7 May 2018, Marcos Douglas B. Santos wrote: Application.Run; end. ===END=== My environment is: Lazarus 1.8.3 r57764 FPC 3.0.4 i386-win32-win32/win64 Best regards, Marcos Douglas Michael, Would you want that I open a issue for it? Allow me to test first, please. All right. Let me know if you need a tester or more information. I tested it. The memleak is present only in 3.0.4, no longer in trunk. I remembered a similar bugreport by African Wild Dog: https://bugs.freepascal.org/view.php?id=33535 where I had the same conclusion. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] pas2js Webgl unit committed
On Wed, 9 May 2018, Ryan Joseph wrote: On May 9, 2018, at 1:20 PM, Michael Van Canneyt wrote: Where is the rtl.js file ? is it in /Developer/pas2js/packages/rtl ? it should be in one of the directories specified with -Fu. I misunderstood the wiki I guess. I thought that command was supposed to generate the file for you. It’s just a little auxiliary file we need with every .html file generated right? Yes. It contains some basic functionality that the compiler relies on. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] pas2js Webgl unit committed
> On May 9, 2018, at 1:20 PM, Michael Van Canneyt > wrote: > > Where is the rtl.js file ? is it in /Developer/pas2js/packages/rtl ? it > should be in one of the directories specified with -Fu. I misunderstood the wiki I guess. I thought that command was supposed to generate the file for you. It’s just a little auxiliary file we need with every .html file generated right? Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] pas2js Webgl unit committed
On Wed, 9 May 2018 09:03:29 +0700 Ryan Joseph wrote: > > On May 9, 2018, at 8:41 AM, Ryan Joseph wrote: > > > > Ok it finally worked. > > Making progress but the wiki is incomplete I think. I figured out how to add > the rtl with -Fu but I’m getting an error. What’s wrong with that name? Can > you show an example of a working command line? > > ./pas2js -Jc -Jirtl.js -Tbrowser -Fu/Developer/pas2js/packages/rtl > /Users/ryanjoseph/Downloads/hello.pas > Fatal: Compilation aborted > invalid custom JS file name "rtl.js" It means file not found. I will change the error message. The -Ji option searches in the unit search path. In the svn the rtl.js is only in "compiler/utils/pas2js/dist/rtl.js". So you need to add a -Fu. In the release it is in "packages/rtl/rtl.js" as well, so it can be found without an extra -Fu. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] pas2js Webgl unit committed
On Wed, 9 May 2018, Ryan Joseph wrote: On May 9, 2018, at 8:41 AM, Ryan Joseph wrote: Ok it finally worked. Making progress but the wiki is incomplete I think. I figured out how to add the rtl with -Fu but I’m getting an error. What’s wrong with that name? Can you show an example of a working command line? ./pas2js -Jc -Jirtl.js -Tbrowser -Fu/Developer/pas2js/packages/rtl /Users/ryanjoseph/Downloads/hello.pas The above should be fine. It may be easier to use a config file, though. Fatal: Compilation aborted invalid custom JS file name "rtl.js" Where is the rtl.js file ? is it in /Developer/pas2js/packages/rtl ? it should be in one of the directories specified with -Fu. my .pas2js.cfg config file contains the following: -Fu/home/michael/projects/pas2js/packages/rtl -Fu/home/michael/projects/pas2js/packages/* And I have symlinked rtl.js (available in compiler/utils/pas2js/dist/) in directory /home/michael/projects/pas2js/packages/rtl, so the compiler will always find it. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] pas2js Webgl unit committed
> On May 9, 2018, at 8:41 AM, Ryan Joseph wrote: > > Ok it finally worked. Making progress but the wiki is incomplete I think. I figured out how to add the rtl with -Fu but I’m getting an error. What’s wrong with that name? Can you show an example of a working command line? ./pas2js -Jc -Jirtl.js -Tbrowser -Fu/Developer/pas2js/packages/rtl /Users/ryanjoseph/Downloads/hello.pas Fatal: Compilation aborted invalid custom JS file name "rtl.js" Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] pas2js Webgl unit committed
> On May 8, 2018, at 6:47 PM, Michael Van Canneyt > wrote: > > Do a checkout of the pas2js repo, and in the toplevel fpmake.pp, remove the > line with AddLibrary. Ok it finally worked. The fpmake.pp file at https://svn.freepascal.org/svn/projects/pas2js/trunk was totally different than the one in the compiler sources. May I suggest you put these instructions at the top level of the wiki? It’s pretty easy but I wasn’t able to build it for literally days and could have easily given up. Something like that would have been really helpful: 1) svn co https://svn.freepascal.org/svn/projects/pas2js/trunk 2) cd trunk (or rename to pas2js) 3) modify fpmake.pp as explained 4) make all What did I lose removing AddLibrary btw? Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?
On Mon, May 7, 2018 at 6:05 PM, Michael Van Canneyt wrote: > > > On Mon, 7 May 2018, Marcos Douglas B. Santos wrote: > >>> Application.Run; >>> end. >>> >>> ===END=== >>> >>> My environment is: Lazarus 1.8.3 r57764 FPC 3.0.4 i386-win32-win32/win64 >>> >>> Best regards, >>> Marcos Douglas >> >> >> Michael, >> Would you want that I open a issue for it? > > > Allow me to test first, please. All right. Let me know if you need a tester or more information. Thanks for your time. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] pas2js Webgl unit committed
On Tue, 8 May 2018, Ryan Joseph wrote: You mean this line: PT:=P.Targets.AddLibrary('pas2jslib.pp’);? Yes. I removed that line but if I do a “make all” in the /utils/pas2js directory I still get this error. I remember getting this in the past before and doing a clean install seem to fix it but not this time. The file system.ppu is the culprit but that was built from the original make all on the top directory. Yes, but do not do this in the utils/pas2js directory. Do a checkout of the pas2js repo, and in the toplevel fpmake.pp, remove the line with AddLibrary. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] pas2js Webgl unit committed
You mean this line: PT:=P.Targets.AddLibrary('pas2jslib.pp’);? I removed that line but if I do a “make all” in the /utils/pas2js directory I still get this error. I remember getting this in the past before and doing a clean install seem to fix it but not this time. The file system.ppu is the culprit but that was built from the original make all on the top directory. /usr/local/bin/ppc386 fpmake.pp -n -Fu../../rtl/units/i386-darwin -Fu../../packages/paszlib/units/i386-darwin -Fu../../packages/fcl-process/units/i386-darwin -Fu../../packages/hash/units/i386-darwin -Fu../../packages/libtar/units/i386-darwin -Fu../../packages/fpmkunit/units/i386-darwin PPU Loading /Developer/ObjectivePascal/fpc/rtl/units/i386-darwin/system.ppu PPU Invalid Version 200 Fatal: Can't find unit system used by fpmake Fatal: Compilation aborted > On May 8, 2018, at 12:55 PM, Michael Van Canneyt > wrote: > > IMO the simplest solution for you is to use the pas2js repo: > > Remove the line in fpMake.pp that adds the library. Run make all. > > You will not have the library version of the compiler, but the rest should > be compiled: command-line compiler and web compiler. > > Michael. Regards, Ryan Joseph ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Feature announcement: default namespaces
On 2018-05-06 14:45, Vojtěch Čihák wrote: > LCLIntf, LCLProc, LCLType isn't enough? I will use dotted units only if > there will be absolutely no other way around. > > I believe it can be useful but I don't think it's "must have" (when I > don't consider Delphi compat.). > No, it's not a "must have" or "must use", but it does have it's uses. As was already pointed out, Delphi uses it for backwards compatibility and allows two completely different framework to use the same unit names. eg: VCL.Forms and FMX.Forms. It could be used in FPC or your own library too - instead of using IFDEFs and Include files for platform specific code, where they share the same interface. So now you can use namespaces instead and specify the namespace platform when you compile - similar to what you would have done with Compile Defines. 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