greencatshomie
Posts: 1
Joined: Sat Feb 24, 2018 5:24 am

Compiling Program from Source Code

Sat Feb 24, 2018 5:29 am

Hi all!

I recently got a Raspberry Pi Zero and successfully got it setup, controlling it over USB from my laptop.

I would like to install a program, however the linux version is source code and I have not been able to figure out how to go about installing it.
I unzipped the files to a directory on the pi and tried to use the make command, however it returns an error. Any help would be greatly appreciated!

This is the link I am using https://github.com/hawkinsp/ZTopo

Thanks

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5644
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Compiling Program from Source Code

Sat Feb 24, 2018 2:43 pm

greencatshomie wrote:
Sat Feb 24, 2018 5:29 am
Hi all!

I recently got a Raspberry Pi Zero and successfully got it setup, controlling it over USB from my laptop.

I would like to install a program, however the linux version is source code and I have not been able to figure out how to go about installing it.
I unzipped the files to a directory on the pi and tried to use the make command, however it returns an error. Any help would be greatly appreciated!

This is the link I am using https://github.com/hawkinsp/ZTopo

Thanks
The github link points to a project that, AFAICT, hasn't been updated since 2010, two years before the first Pi so it's unlikely (and probably never tested) to work on a Pi.
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

jahboater
Posts: 5824
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: Compiling Program from Source Code

Sat Feb 24, 2018 2:56 pm

And it looks like it needs "cmake" instead of "make" anyway.

Heater
Posts: 16091
Joined: Tue Jul 17, 2012 3:02 pm

Re: Compiling Program from Source Code

Sat Feb 24, 2018 5:44 pm

If you don't tell us the error message then it's impossible to help. We are not psychic.

Given that the code has not been maintained for 8 years and has quite list of dependencies I can imagine it might be a challenge to build it.

You could raise an issue on it's github repository. If you are lucky the author might like to help you.

Do state exactly what you did and what the error message was.
Memory in C++ is a leaky abstraction .

Return to “General programming discussion”