Re: [Lazarus] OpenGL conversion
- Original Message - From: Juha Manninen juha.mannine...@gmail.com To: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Sent: Monday, February 14, 2011 5:12 AM Subject: [Lazarus] OpenGL conversion Hi Are there any conversion guides or examples of how OpenGL Delphi program can be converted to Lazarus. I would try to automate it with Delphi converter but I don't know much about graphics programming myself. I am testing the converter with DeleD 3-D program which would be an extremely cool porting project. On January Birger Jansen wrote: Project conversion Delphi - FreePascal: success! which mentions OpenGL so it seems to be possible. Juha Hi Juha, IIRC, Freepascal/Lazarus uses the units GL.pas, and GLU.pas as opposed to Delphi's OpenGL.pas. I think this is correct, and I hope this helps :) cheers, Paul -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] More thread questions.
Hi Frank, AFAIK, a thread WILL execute immediately exiting the Create method unless you pass False to the suspended variable in the create method, and call Resume in the main thread later on. I don't think resuming a thread will never do anything if the threads execute method has fallen through, but people can feel free to correct me on this :) cheers, Paul - Original Message - From: Frank Church To: Lazarus mailing list Sent: Tuesday, July 13, 2010 1:42 AM Subject: [Lazarus] More thread questions. Can I take it that a thread will never execute until the Execute procedure is called, and if the Execute procedure is exited, it will not run again until called by the main thread? i.e Resuming a thread which has exited will achieve nothing unless it is called within the scope of an existing Execute? -- Frank Church === http://devblog.brahmancreations.com -- -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Hiding Comments
- Original Message - From: theo x...@theo.ch To: lazarus@lists.lazarus.freepascal.org Sent: Tuesday, February 16, 2010 11:28 AM Subject: [Lazarus] Hiding Comments I know this is probably hard to implement but I sometimes would really like to have it. ;-) I have some heavily commented code, be it for the following reasons. - Comments explaining what the following code is doing, sometimes line by line. - Comments which keep some thoughts of previous implementations in code (not for shipping) but which might be helpful and be it only for not going that route again. - Some todo stuff (I know about the todo feature). I think it would be helpful to hide all comments at times, because while helpful, they make reading the actually working code a lot harder. Does anybody know if this is implemented somewhere in other IDEs? Does anybody else think this would be a good feature? Does anybody have a suggestion how to implement this? Don't beat me, it's just a question and I have no answer. ;-) Thanks +10 cheers, Paul -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Hiding Comments
- Original Message - From: theo x...@theo.ch To: lazarus@lists.lazarus.freepascal.org Sent: Tuesday, February 16, 2010 12:54 PM Subject: Re: [Lazarus] Hiding Comments Well, then welcome on board (if nobody else said that before). How is the weather like in Australia? ;-) Thanks :) it is a lovely sunny 24 degrees here in Tasmania, Australia, very nice :) cheers, Paul -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Delphi converter improvements
- Original Message - From: Juha Manninen juha.manni...@phnet.fi To: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Sent: Wednesday, February 03, 2010 9:43 PM Subject: Re: [Lazarus] Delphi converter improvements Hi. I know a number of people who would be interested in your delphi converter, including myself :) Good to know! (Although it is not really MY converter, but I am willing to improve it.) An easy to use 3d modeling package has now gone open source: www.delgine.com https://sourceforge.net/projects/deled/ The project has currently been written using Delphi, but some of us would love to be able to convert it over completely to Lazarus/freepascal so it is multi-platform :) This won't be easy as there is a LOT of delphi GUI forms and frames there, but it would be great if this could be done. Wow, such a good test case! I became curious and downloaded it and converted to Lazarus. Conversion worked better than expected. All the forms I opened looked good. My patches for converter make it less verbose, not asking so many trivial questions. Now I see it still asks too many questions, about non existing units and properties. It should be made configurable to be fully silent and automatic. Excellent! thanks for trying :) Please, continue to use this as a test case if you wish :) perhaps your delphi converter improvments could help us in this area :) Yes, the amount of questions is more reasonable now but there are still many things to improve. good to know Please remember that you still must make (lots of) manual changes to make your code compile and work. The converter doesn't try to fix windows dependent code or such things. In your code I see at least 2 things that need porting: OpenGL and jpeg. There is support for both in FPC/Lazarus (GL and pasjpeg) but I have no idea how difficult the porting is. At least the windows handles will not work. Yup...you are right about plenty of manual changes :) I knew about windows dependent code ;) The OpenGL should be only a minor issue to fix. Thanks for the info about the windows handles! Keep up the great work :) Perhaps I should try using lazarus from SVN instead of binaries and try your patch? I hope I can develop the code for trunk. That would allow interaction with people who use it. Besides the isolated patches can end up being ignored forever, that's how I feel now... OT Your code has very many units. How did you solve the circular reference problem? I didn't make any deep analysis of your code but it looks clean. I could expect there are lots of cross references in such 3D design prog. Or, maybe there are some units full of type casting but I missed them. /OT I haven't looked closely at the code in regards to the circular reference issues either LOL I guess units have been put in the implementation section to get around this issue as like you, I haven't noticed much type casting yet. And as you might have guessed, it isn't MY code either LOL I HAVE contributed to it, but that is all ;) Regards, Juha Manninen -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Is there anyway I could try out your Lazarus delphi converter improvements? What is the procedure for this? Thanks for your work so far Juha!! cheers, Paul -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus is invisible?
- Original Message - From: Graeme Geldenhuys graemeg.li...@gmail.com To: JoshyFun joshy...@gmail.com; Lazarus mailing list lazarus@lists.lazarus.freepascal.org Sent: Wednesday, January 27, 2010 5:39 PM Subject: Re: [Lazarus] Lazarus is invisible? JoshyFun wrote: Well, all-purpose would be almost impossible due the specialization all-purpose was probably not the best word to use. I was looking for a relatively simple implementation of FTL and Indexing to see how it works, and possibly use that simple implementation or create my own implementation that I could embed in applications (as you mentioned about IODA). I did not want to use external tools for everything, maybe only for the generation of Indexing database/text file over the text you want to FTS. Regards, - Graeme - LOL! I must read too much sci-fi (is this even possible?!?!)... I saw FTL, and straight away read it as Faster Than Light!! hahaha cheers, Paul -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus (pendrive linux) can't find SDL libraries?
Thanks Michael, that seems to have done the trick :) Unfortunately, I ran Lazarus using debug mode (hadn't tried directly running the executable yet), and it killed my pendrive Linux (restoring now) :( Nasty! cheers, Paul - Original Message - From: Michael Joyner ᏩᏯ To: Lazarus mailing list Sent: Monday, December 14, 2009 3:13 PM Subject: Re: [Lazarus] Lazarus (pendrive linux) can't find SDL libraries? Paul Nicholls wrote: Hi Michael, thanks :-) I have now attempted to install SDL like so: apt-get install libsdl1.2-dev I will see if this works :) Look in synaptic for other libsdl stuff, like sdl-mixer-dev, etc, many of the sdl * dev are needed. -- -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus (pendrive linux) can't find SDL libraries?
Hi Michael, thanks :-) I have now attempted to install SDL like so: apt-get install libsdl1.2-dev I will see if this works :) cheers, Paul - Original Message - From: Michael Joyner ᏩᏯ To: Lazarus mailing list Sent: Monday, December 14, 2009 2:51 PM Subject: Re: [Lazarus] Lazarus (pendrive linux) can't find SDL libraries? Paul Nicholls wrote: Hi all, I downloaded and installed pendrive linux on my computer. http://www.pendrivelinux.com/run-pendrivelinux-2009-in-windows/ After much fannying around (package dependancy issues), I managed to install freepascal, Lazarus 0.9.28.2, gdb (for Lazarus debugging), and SDL. Ok, so far so good... I am now trying to get a Win32 Lazarus SDL project I have already made to now also compile and run under my new shiny Linux ;) When I try and compile the source code, I get this linking error: /usr/bin/ld: cannot find -lSDL if it helps, in Linux, I used this (from memory, might be slightly wrong package name) to install SDL (as root user): apt-get install SDL You have to install sdl-dev or similar. So, how do I tell Lazarus where Linux installed the SDL libraries, and how do I find them in the first place if I need a path to them? LOL cheers, Paul -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- LyX: http://www.lyx.org/ OpenOffice: http://www.openoffice.org/ Inkscape: http://www.inkscape.org/ Scribus: http://www.scribus.net/ GIMP: http://www.gimp.org/ PDF: http://www.pdfforge.org/ -- -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Lazarus minimization and code editor maximization issues
Hi all, I'm running Lazarus 0.9.28.2 (Win32), and have noticed two issues... 1.When I click on the minimization button on the main Lazarus program window, more often than not, only the top part of Lazarus minimizes...it leaves the editor window, messages window, etc. still there. This means I have to alt-tab to move away to the program behind Lazarus, and not just using minimize. 2.When I click on the maximization button on the code editor window, it maximizes over the top of all other windows in Lazarus, and doesn't stop underneath the top part of Lazarus like it does in Delphi ( I do realize this is NOT Delphi...LOL ) I love Lazarus, but these 2 issues really annoy me :) Any ideas or tips for me? cheers, Paul-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Cross Compile for arm-linux
Hi :) I don't know if it will help, but back in 2007, I started a website: http://fpc4gp2x.eonclash.com/ which allows one to make programs for an arm-linux handheld, the gp2x. It has a freepascal cross-compiler that works under Windows 32, and generates arm-linux binaries :) I know it is over 2 years old now, but perhaps it may still help? cheers, Paul - Original Message - From: antispamm...@gmail.com To: Lazarus Mailing List lazarus@lists.lazarus.freepascal.org Sent: Saturday, December 05, 2009 8:30 AM Subject: [Lazarus] Cross Compile for arm-linux Hi all, I'm a newbie about cross compiling, but I need to develop some applications for arm-linux architecture. There are many days that I search on web tutorials, guide and simple sparse bit of knowledge about how to to... but no success at now. All references to tutorials I found are very old and partially not working. So I hope that you can help me to write a generic step by step tutorial, starting from generic sources; I mean what to download, what to write in terminal, etc... What I believe to know is that: 1) cross compiling for arm-linux is simplest from Linux X86 2) I need binutils ( I downloaded latest one: http://ftp.gnu.org/gnu/binutils/binutils-2.20.tar.gz ) 3) I need sources of fpc and lazarus. I downloaded: - latest official fpc: fpcbuild-2.2.4.zip - Lazarus snapshots: e.g. today's lazarus-0.9.29-22952-20091204-src.tar.bz2 Now knowledge is even more darkness... I tried to install binutils: cd ~/temp/buinutils ./configure make sudo make install My experience with linux is not very deep, so I don't know if it is installed right. After this, do I need to compile fpc and than lazarus? How? I became crazy... I think I will never develop for arm-linux without your step by step help... Thank you very much in advance! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] ASCII - IBM's (old) extended character set
- Original Message - From: Graeme Geldenhuys gra...@mastermaths.co.za To: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Sent: Thursday, November 05, 2009 1:48 AM Subject: [Lazarus] ASCII - IBM's (old) extended character set Hi, Does Lazarus have a unicode conversion table for this ASCII character set? See url. http://www.web-wise-wizard.com/programming/ascii-ibm-extended-character-set.html As you can see from the url, the characters below Char(32) is very different to standard ASCII table or the ASCII table with CodePage 437. I'm reading old binary data files that used the IBM Extended ASCII characters in text content. At the moment I simply do a the following to replace certain characters. For example, what we know as the standard ascii (bell character), was the a bullet character. s := StringReplace(s, Char(7),'•', [rfReplaceAll, rfIgnoreCase]); Times have changed! I remember those smiley face characters in a old pac-man game I used to play. :-) Regards, - Graeme - Hi Graeme, I don't know if it helps, but the Windows font Terminal contains exactly all those 255 ASCII characters... cheers, Paul -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Find in Files is it filename case-insensitive?
- Original Message - From: Graeme Geldenhuys graemeg.li...@gmail.com To: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Sent: Monday, October 19, 2009 9:00 PM Subject: [Lazarus] Find in Files is it filename case-insensitive? Hi, I think it is, but I would just like to confirm. If I do a find in files and specify '*.pas' without the quotes in the filemask field. Would that search for *.PAS, *.Pas etc.. files too? Especially relevant under case-sensitive file systems, as is used under Linux. The wiki help for that dialog does not mention if the filemask is case-sensitive or not? http://wiki.lazarus.freepascal.org/IDE_Window:_Find_in_files Hi Graeme, it is definitely case-insensitive under Windows, but I don't know about Linux... I suspect it is case-sensitive there, but this needs to be confirmed :) cheers, Paul -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't connect to FPC site
Hi Phil, Since you have tried different computers, browsers, and ISP's, maybe it is a country of origin issue? What country are you trying to reach the site from? It works for me (Australia)... cheers, Paul - Original Message - From: Hess, Philip J To: lazarus@lists.lazarus.freepascal.org Sent: Friday, August 07, 2009 7:28 AM Subject: [Lazarus] Can't connect to FPC site I can't get to the Laz bugtracker or www.freepascal.org. It's been that way for a month or so now and I've tried different computers, browsers and ISP's and nothing works. It just sits there saying Waiting for www.freepascal.org. Does anyone else have that problem? Note I can get to www.lazarus.freepascal.org and the Free Pascal wiki (e.g., http://wiki.freepascal.org/iPhone/iPod_development). I don't think it's a bandwidth issue on my side. Windows tells me now that my wireless signal strength is Excellent and my connection speed is 54.0 Mbps. I also don't have this problem with any other Web site that I've tried in the last few weeks. Thanks. -Phil -- -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus