Re: [lazarus] acs for lazarus
On Tue, Jan 01, 2008 at 12:16:23AM +0800, Antonio Sanguigni wrote: MemCheck {$endif} {$ifdef Linux} ,cthreads {$endif} (In addition to Vincent's comments), don't use linux, but Unix. See http://www.stack.nl/~marcov/porting.pdf _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] acs for lazarus
Documentation is scarce, therefore I asked you to add it to the wiki. I will try to help to improve it for what I can ! [CUT] Now open the package file (.lpk) of ACS. Click on the Options button. On the first tab (usage), there is a text box at the button. Add the following text: -dUseCThreads Now if you compile your an application which uses this package, -dUseCThreads is added to the command line parameters of the compiler. Therefore, the unit cthreads is used, if you are compiling for any unix, in particalur linux. Please, try this out and confirm it is working. If so, add it to the wiki: 1. in the FAQ 2. http://wiki.lazarus.freepascal.org/Lazarus_Packages Thank you for these info. I'm not using these components but just trying to help Bee with its problem. Anyway, I had not problems compiling and installing these components, just an access violation when I attempt to put on my form TACSAudioOut at design time under Windows and a crash with no errors of Lazarus IDE windows under Linux. Other components seems to be ok. Antonio -- Antonio Sanguigni alias slapshot -- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://www.edupup.org
Re: [lazarus] acs for lazarus
On Tue, Jan 01, 2008 at 12:16:23AM +0800, Antonio Sanguigni wrote: MemCheck {$endif} {$ifdef Linux} ,cthreads {$endif} (In addition to Vincent's comments), don't use linux, but Unix. See http://www.stack.nl/~marcov/porting.pdf I will read it, Marco, thank you. BTW, I saw in the Lazarus lazarus.pp unit source there is the following: {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} I think lazarus isalready builded with -dUseCThreads, or not ? Antonio -- Antonio Sanguigni alias slapshot -- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://www.edupup.org
Re: [lazarus] acs for lazarus
On Tue, 1 Jan 2008 20:56:02 + Antonio Sanguigni [EMAIL PROTECTED] wrote: On Tue, Jan 01, 2008 at 12:16:23AM +0800, Antonio Sanguigni wrote: MemCheck {$endif} {$ifdef Linux} ,cthreads {$endif} (In addition to Vincent's comments), don't use linux, but Unix. See http://www.stack.nl/~marcov/porting.pdf I will read it, Marco, thank you. BTW, I saw in the Lazarus lazarus.pp unit source there is the following: {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} I think lazarus isalready builded with -dUseCThreads, or not ? The IDE is built with cthreads if you install a package that uses the -dUseCThreads trick. Otherwise: not. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] acs for lazarus
Now open the package file (.lpk) of ACS. Click on the Options button. On the first tab (usage), there is a text box at the button. Add the following text: -dUseCThreads I can see four textboxbut they are all for unit paths. There are also a couple of memo box but one isfor linker options and the other for custom. I tried to use both but I'm having errors, of course. Sorry for this stupid question but I cannot understand where to put it. Antonio -- Antonio Sanguigni alias slapshot -- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://www.edupup.org
Re: [lazarus] acs for lazarus
I can see four textboxbut they are all for unit paths. There are also a couple of memo box but one isfor linker options and the other for custom. I tried to use both but I'm having errors, of course. Sorry for this stupid question but I cannot understand where to put it. Thanks to Vincent into fpc irc chat I was able to solve this problem. I will document it on wiki ASAP. The box where to putthe options was Custom box, without any other space ;-). Antonio -- Antonio Sanguigni alias slapshot -- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://www.edupup.org
Re: [lazarus] acs for lazarus
On Tue, 1 Jan 2008 22:23:28 + Antonio Sanguigni [EMAIL PROTECTED] wrote: I can see four textboxbut they are all for unit paths. There are also a couple of memo box but one isfor linker options and the other for custom. I tried to use both but I'm having errors, of course. Sorry for this stupid question but I cannot understand where to put it. Thanks to Vincent into fpc irc chat I was able to solve this problem. I will document it on wiki ASAP. The box where to putthe options was Custom box, without any other space ;-). I did. See http://wiki.lazarus.freepascal.org/Lazarus_Faq#Lazarus_crashes_with_runtime_error_211_after_I_installed_a_component. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] acs for lazarus
I did. See http://wiki.lazarus.freepascal.org/Lazarus_Faq#Lazarus_crashes_with_runtime_error_211_after_I_installed_a_component . Great job Mattias :-). Antonio -- Antonio Sanguigni alias slapshot -- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://www.edupup.org
Re: [lazarus] acs for lazarus
Am Dienstag 01 Januar 2008 schrieb Antonio Sanguigni: Thank you for these info. I'm not using these components but just trying to help Bee with its problem. Anyway, I had not problems compiling and installing these components, just an access violation when I attempt to put on my form TACSAudioOut at design time under Windows and a crash with no errors of Lazarus IDE windows under Linux. Other components seems to be ok. Antonio Same here.(SuSE 10.2) When i place the TACSAudioOut on a Form Lazarus crashes and only kill -9 solves. Konsole output: TApplication.HandleException Access violation Stack trace: $0814D798 TMENUITEM__SETCHECKED, line 971 of ./include/menuitem.inc $080BAA62 TMAINIDEBASE__UPDATEWINDOWMENU, line 1018 of mainbase.pas $080B13F0 TMAINIDE__ONAPPLICATIONIDLE, line 12651 of main.pp $08077CBA TAPPLICATION__NOTIFYIDLEHANDLER, line 556 of ./include/application.inc $080774D7 TAPPLICATION__IDLE, line 302 of ./include/application.inc $08078B4F TAPPLICATION__HANDLEMESSAGE, line 962 of ./include/application.inc $08078F24 RUNMESSAGE, line 1075 of ./include/application.inc $08078E7E TAPPLICATION__RUNLOOP, line 1085 of ./include/application.inc $080BAF43 TWIDGETSET__APPRUN, line 49 of ./include/interfacebase.inc $08078E3A TAPPLICATION__RUN, line 1064 of ./include/application.inc $080557D2 main, line 99 of lazarus.pp _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] acs for lazarus
Same here.(SuSE 10.2) When i place the TACSAudioOut on a Form Lazarus crashes and only kill -9 solves. [CUT] Please, read faq link above. Recompiling Lazarus IDE with cthreads on will solve the problem. One solutionis to add -dUseCThreads options to ACS package Custom options, then recompile it and Lazarus IDE. Antonio -- Antonio Sanguigni alias slapshot -- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://www.edupup.org
Re: [lazarus] acs for lazarus
It works if I compiled Lazarus using fpc 2.2.0. That's fine, I can live with that. Though it compilable, I couldn't get the component run properly. Including the demo projects. :( The application always crashes at the beginning and complains about RunError(232), SYSTEM_NOTHREADERROR, SYSTEM_RUNERROR$WORD, and the debugger got stuck on TACSThread.Create. :( I never did any sound programming on Linux before and I'm new to this component. Hints? TIA. -Bee- has Bee.ography at: http://beeography.wordpress.com _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] acs for lazarus
Though it compilable, I couldn't get the component run properly. Including the demo projects. :( The application always crashes at the beginning and complains about RunError(232), SYSTEM_NOTHREADERROR, SYSTEM_RUNERROR$WORD, and the debugger got stuck on TACSThread.Create. :( I never did any sound programming on Linux before and I'm new to this component. Hints? TIA. RunError(232) maybe is because unit cthreads is missing and these components are using threads under Linux. Try to force cthreads unit as one of the first units into uses clause of your project. Never tried this components, tough. Antonio -- Antonio Sanguigni alias slapshot -- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://www.edupup.org
Re: [lazarus] acs for lazarus
Antonio Sanguigni schreef: Though it compilable, I couldn't get the component run properly. Including the demo projects. :( The application always crashes at the beginning and complains about RunError(232), SYSTEM_NOTHREADERROR, SYSTEM_RUNERROR$WORD, and the debugger got stuck on TACSThread.Create. :( I never did any sound programming on Linux before and I'm new to this component. Hints? TIA. RunError(232) maybe is because unit cthreads is missing and these components are using threads under Linux. Try to force cthreads unit as one of the first units into uses clause of your project. Never tried this components, tough. A component should add -dUseCThread to its usage options. Please update the FAQ at http://wiki.lazarus.freepascal.org/Lazarus_Faq#When_I_run_a_program_with_threads_I_get_runtime_error_232 Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] acs for lazarus
A component should add -dUseCThread to its usage options. Please update the FAQ at http://wiki.lazarus.freepascal.org/Lazarus_Faq#When_I_run_a_program_with_threads_I_get_runtime_error_232 Reading Readme-lazarus notes I found this: --- to use the Package in Linux you must add cthreads unit to main lazarus unit lazarus.pp like: uses {$ifdef MemCheck} MemCheck {$endif} {$ifdef Linux} ,cthreads {$endif} ... Vincent, how can I read about -dUseCThread for packages ? Antonio -- Antonio Sanguigni alias slapshot -- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://www.edupup.org
Re: [lazarus] acs for lazarus
Antonio Sanguigni schreef: A component should add -dUseCThread to its usage options. Please update the FAQ at http://wiki.lazarus.freepascal.org/Lazarus_Faq#When_I_run_a_program_with_threads_I_get_runtime_error_232 http://wiki.lazarus.freepascal.org/Lazarus_Faq#When_I_run_a_program_with_threads_I_get_runtime_error_232 Reading Readme-lazarus notes I found this: --- to use the Package in Linux you must add cthreads unit to main lazarus unit lazarus.pp like: uses {$ifdef MemCheck} MemCheck {$endif} {$ifdef Linux} ,cthreads {$endif} ... Vincent, how can I read about -dUseCThread for packages ? Documentation is scarce, therefore I asked you to add it to the wiki. If you create a new project, you see in the main project file (.lpr-file): uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Now open the package file (.lpk) of ACS. Click on the Options button. On the first tab (usage), there is a text box at the button. Add the following text: -dUseCThreads Now if you compile your an application which uses this package, -dUseCThreads is added to the command line parameters of the compiler. Therefore, the unit cthreads is used, if you are compiling for any unix, in particalur linux. Please, try this out and confirm it is working. If so, add it to the wiki: 1. in the FAQ 2. http://wiki.lazarus.freepascal.org/Lazarus_Packages Hope this helps. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] acs for lazarus
On Sun, 30 Dec 2007 08:51:31 +0700 Bee [EMAIL PROTECTED] wrote: Hi all, I was just trying to install ACS for Lazarus from http://wiki.lazarus.freepascal.org/ACS But, I failed. The package couldn't be compiled with the following error: /$acs_folder/Src/classes/acs_classes.pas(148,24) Error: Identifier not found 'class' It kinds of weird, IMO, because the error happened on this line: 147| {Basic exception class for ACS} 148| EACSException = class(Exception) 149| end; If I didn't compile the ACS package (laz_acs.lpk) and use the acs_classes.pas unit directly, it compiled just fine. I don't understand how this could happen. I just did a clean svn checkout and it compiles under linux without problem. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] acs for lazarus
I just did a clean svn checkout and it compiles under linux without problem. Re-checkout my svn, the problem persists. :( Screenshot can be seen at http://i11.tinypic.com/87mevb7.png I'm using Lazarus 9.25 (SVN) with fpc 2.3.1 on Ubuntu i386. -Bee- has Bee.ography at: http://beeography.wordpress.com _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] acs for lazarus
I'm using Lazarus 9.25 (SVN) with fpc 2.3.1 on Ubuntu i386. It works if I compiled Lazarus using fpc 2.2.0. That's fine, I can live with that. Now, I'm looking for: - video component, - openOffice component especially for the spreadsheet, and - TWebBrowser-like for Lazarus. After all these are installed, I can show it to my friends (and their companies) and convince them that Lazarus can do what they used to do with Delphi plus cross platform ability as a bonus. MacOS-intel does considered very much by now. ;) Any hints will be very much appreciated. TIA. -Bee- has Bee.ography at: http://beeography.wordpress.com _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] acs for lazarus
Hi all, I was just trying to install ACS for Lazarus from http://wiki.lazarus.freepascal.org/ACS But, I failed. The package couldn't be compiled with the following error: /$acs_folder/Src/classes/acs_classes.pas(148,24) Error: Identifier not found 'class' It kinds of weird, IMO, because the error happened on this line: 147| {Basic exception class for ACS} 148| EACSException = class(Exception) 149| end; If I didn't compile the ACS package (laz_acs.lpk) and use the acs_classes.pas unit directly, it compiled just fine. I don't understand how this could happen. TIA. -Bee- has Bee.ography at: http://beeography.wordpress.com _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives