View Issue Details

IDProjectCategoryView StatusLast Update
0001202SkyChart1-Softwarepublic14-02-15 14:50
Reporterpolarcrab Assigned ToPatrick Chevalley  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformRaspberry PiOSWheezyOS Version3.6.11
Product Version3.8 
Summary0001202: Make and Install failed
DescriptionI try to instal the sky chart from source on my Raspberry Pi with Wheezy OS.
I have finised following steps.

sudo apt-get install build-essential lazarus subversion
svn co https://skychart.svn.sourceforge.net/svnroot/skychart/trunk skychart
cd skychart
./configure fpc=/usr/lib/fpc/2.6.0 lazarus=/usr/lib/lazarus/0.9.30.4 prefix=/usr/local

when I execte sudo make command, some errors pop up.

bgratypewriter.pas(860) Fatal: There were 7 errors compiling module, stopping
Fatal: Compilation aborted
make[3]: *** [bgrabitmappack.ppu] Error 1
make[3]: Leaving directory `/usr/local/src/skychart/skychart/component/bgra bitmap'
make[2]: *** [bgrabitmap_all] Error 2
make[2]: Leaving directory `/usr/local/src/skychart/skychart/component'
make[1]: *** [component_all] Error 2
make[1]: Leaving directory `/usr/local/src/skychart/skychart'
make: *** [skychart_all] Error 2
TagsNo tags attached.

Activities

Patrick Chevalley

13-11-03 14:03

administrator   ~0002625

Lazarus 0.9.30 is not supported by the current Skychart trunk.
The version 3.6 is the last that support this Lazarus version but it not support the ARM processor.

If you not have a more recent packages the best solution is to install the current FPC 2.6.2 and Lazarus 1.0.12 from source. Use your current FPC 2.6.0 as the starter compiler. This is what I do for my raspbian emulator.

You can get the FPC/Lazarus source from subversion:
http://svn.freepascal.org/svn/fpc/tags/release_2_6_2
http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_0_12

Let me know of your result an don't hesitate to ask if you need more informations.

Patrick Chevalley

13-11-04 08:10

administrator   ~0002626

I just remark that Jessie include Lazarus 1.0.10, so upgrading to Debian Testing will solve the problem.

And your patch are welcome if you fix anything for the Pi in the current version.

polarcrab

13-11-04 14:46

reporter   ~0002627

Hello Patrick Chevalley.
I have installed the lastest version of fpc(2.6.2) and lazarus(1.0.12). But when i execute make command, new errors happened.

Assembling synaser
synapse.pas(10,41) Fatal: Can't find unit LazarusPackageIntf used by synapse
Fatal: Compilation aborted
make[3]: *** [synapse.ppu] Error 1
make[3]: Leaving directory `/usr/local/src/skychart/skychart/component/synapse/source/lib'
make[2]: *** [synapse/source/lib_all] Error 2
make[2]: Leaving directory `/usr/local/src/skychart/skychart/component'
make[1]: *** [component_all] Error 2
make[1]: Leaving directory `/usr/local/src/skychart/skychart'
make: *** [skychart_all] Error 2

Patrick Chevalley

13-11-05 13:27

administrator   ~0002636

It look like Lazarus do not compile every parts.

To force the compilation of LazarusPackageIntf go to the lazarus source directory: lazarus/packager/registration and type make.

polarcrab

13-11-14 17:01

reporter   ~0002668

Sorry for my delayed reply. Actually I haved builded the files for many times recent days but still failed. I searched the problem on the web and found that someone says it's the memory problem, so I increase the swap file on my RPi. But this doesn't solve my problem. Tonight I search this problem again, and I found some ways likely to solve this problem. Untill now I notice I have missed your first suggestion that "Use your current FPC 2.6.0 as the starter compiler", could tell me how to do this. Thanks.

Patrick Chevalley

13-11-15 08:34

administrator   ~0002669

"Use your current FPC 2.6.0 as the starter compiler" I meant add PP=/usr/bin/fpc to the make command for FPC. But if you have now a working FPC 2.6.2 you not need that, it will not make change to the final result as the compiler specified by PP= is only use to build the first stage ppc1.

I also have to add more swap on my virtual Pi. The virtual image has 256MB of ram and it work after I add 600MB of swap. But you may need more, maybe 1GB if you also run a graphical desktop.

Issue History

Date Modified Username Field Change
13-11-03 06:37 polarcrab New Issue
13-11-03 14:03 Patrick Chevalley Note Added: 0002625
13-11-03 14:03 Patrick Chevalley Assigned To => Patrick Chevalley
13-11-03 14:03 Patrick Chevalley Status new => feedback
13-11-04 08:10 Patrick Chevalley Note Added: 0002626
13-11-04 14:46 polarcrab Note Added: 0002627
13-11-04 14:46 polarcrab Status feedback => assigned
13-11-05 13:27 Patrick Chevalley Note Added: 0002636
13-11-05 13:27 Patrick Chevalley Status assigned => feedback
13-11-14 17:01 polarcrab Note Added: 0002668
13-11-14 17:01 polarcrab Status feedback => assigned
13-11-15 08:34 Patrick Chevalley Note Added: 0002669
14-02-15 14:50 Patrick Chevalley Status assigned => closed
14-02-15 14:50 Patrick Chevalley Resolution open => no change required