How to install TAChart lazarus / 13-General ---------------------------------------------------------------------- BLL · 2016-06-12 12:11 Hi, I have just installed fpc 3.0.0 and lazarus 1.7 on my RasPi model 3. I need to install TAChart but I don't how to do it. There are various components showing in the components folder, starting with tachart, such as tachartaggpas 1.0. Do I need any/all of these? My application, which ran on my model 2 uses a simple bar chart, so that's all I need. I have googled for ages and, as usual, nothing helpful! I am completely lost! Any help much appreciated ---------------------------------------------------------------------- wp · 2016-06-12 13:01 Normally TAChart is installed along with Lazarus. Sometimes, when you compile from sources, it is not. In this case open "Package" / "Open Package file". Navigate to the folder components/tachart within the Lazarus installation. Select tachartlazaruspackage, the others are optional and not need normally. Click "Compile", then "Use" / "Install" (not sure, I think you can skip the "Compile" step). ---------------------------------------------------------------------- BLL · 2016-06-12 14:15 Hi,. Thanks for the reply. When I try that, I get the error message that in spe.pas, typ not found! No idea what spe.pas does, but anyway it won't compile! Any thoughts? Brian ---------------------------------------------------------------------- wp · 2016-06-12 15:32 typ is one of the units in fpc's numlib which should be available by default. I fear your fpc is not set up correctly. Please make sure that fpc and Lazarus are installed correctly. ---------------------------------------------------------------------- BLL · 2016-06-12 15:43 Thanks for that. I installed both fpc and lazarus using a script from http://www.getlazarus.org/setup/?download#. It all ran fine and it was the ONLY way to get fpc and lazarus installed (other than using the ancients from the repository). I tried other tutorials but all failed as they tried to use fpc 2.6.4, not 3.0.0. So now, I don't have a clue how to proceed! ---------------------------------------------------------------------- wp · 2016-06-12 17:15 I just tried the installation script on a Ubuntu virtual machine which never had seen Lazarus before, and it worked fine. But anyway, maybe there's a better way, and I don't know if there are any side effects, but you could try this: Navigate to the folder "packages/numlib/src", this is a subfolder of the fpc installation, and copy all files to the "num_fixes folder" which you find in "(lazarus)/components/tachart". But don't overwrite the files which already are there (maybe you should make a backup copy of the original "num_fixes" folder). The TAChart installation did work this way. ---------------------------------------------------------------------- BLL · 2016-06-12 18:07 Hi, Thanks. I don't have a /packages/numlib/src! God, why is everything to do with lazarus so complicated? Brian ---------------------------------------------------------------------- wp · 2016-06-12 20:45 Strange, I looked at the raspi script of the getlazarus site and the fpc downloaded in fact does not contain the numlib folder... You can try to download the sources for fpc3.0's numlib separately from http://svn.freepascal.org/cgi- bin/viewvc.cgi/tags/release_3_0_0/packages/numlib/src/. numlib is rather separated from the rest of fpc, therefore it should work if you compile it within Lazarus. But, as I said, do not overwrite the files in the numlib_fixes of the TAChart folder, i.e. dowload only these files: det.pas dsl.pas eig.pas eigh1.pas eigh2.pas int.pas inv.pas iom.pas numlib.pas ode.pas omv.pas roo.pas spl.pas timer.pas tpnumlib.pas typ.pas ---------------------------------------------------------------------- BLL · 2016-06-13 11:55 You sir are a star!! I found that none of the files in your list existed. I downloaded them, put them in the numlib folder and, bingo, TAChart compiled and installed fine and I can now load my application - brilliant. The only problem I have now is that I can run my program from within lazarus via remore desktop, but not directly at the pi! It keeps saying that the debugger has entered the error state! It gives no reason why! Thanks again Brian ---------------------------------------------------------------------- wp · 2016-06-13 14:12 I don't have any experience with Raspi and cannot help you here - I'm sorry. Maybe you need a different gdb version. ---------------------------------------------------------------------- BLL · 2016-06-13 15:37 Hi Thanks for that. I am beginning to think that there are major problems with lazarus 1.7 on the RasPi. The program I have been developing previously builds and runs, but the button to quit the program doesn't; it just stops it! I am not getting any data from 2 USB ports, even though I know these ports are getting data, using putty. I created a new project and added all my units to see if that made any difference. It builds fine but on running, you get an exception error!! I am fed to the back teeth with it!! Brian