make the source code error,need help

Firmware/software/electronics/mechanics
Post Reply
xfce
Beginner
Posts: 11
Joined: Tue Jun 04, 2013 9:29 am

make the source code error,need help

Post by xfce »

Hi all
I want to make the quadcopter similer as the crazyflie, but when I compile the source code, use make command, gives the error as below,can someone tell me where is the bug,Thanks.

[root@localhost bitcraze-crazyflie-firmware-e6f9fbdc42b3]# make
CLEAN_VERSION
VTMPL version.c
abort: there is no Mercurial repository here (.hg not found)
Traceback (most recent call last):
File "scripts/versionTemplate.py", line 20, in <module>
identify = subprocess.check_output(["hg", "identify", "-nitb"])
File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['hg', 'identify', '-nitb']' returned non-zero exit status 255
make: *** [version.c] Error 1
[root@localhost bitcraze-crazyflie-firmware-e6f9fbdc42b3]#
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: make the source code error,need help

Post by marcus »

Hi,

The build environment uses mercurial (hg) to include information about the version of firmware that you are building. Either you have to remove this step from the build process or place you code in a mercurial repository.
xfce
Beginner
Posts: 11
Joined: Tue Jun 04, 2013 9:29 am

Re: make the source code error,need help

Post by xfce »

OK,Thanks
could you please tell me how to solve the problem step by step or is there some documents for this
rmirwin2
Member
Posts: 51
Joined: Mon May 13, 2013 6:06 pm

Re: make the source code error,need help

Post by rmirwin2 »

I'm afraid there are lots of steps, but basically you have to create a local copy of the repository before you try to build. Maybe someone can give you the steps from the command line.

I find it simpler to use the Bitcraze Virtual Machine, running under VMware or VirtualBox on Windows 7.

Once you set up this VM, you'll find that it includes all the tools that you need, including Tortousel HG, which has a GUI that can assist you in download, updating, and managing your local files.

A link to information about the tools is in the Wiki, http://wiki.bitcraze.se/misc:osstools:index, and from there you can find help files.

Hope this helps some!
Rich
VGer's v1.7.1 frame, 10DOF Crazyflie, Wireless Xbox360 Controller, Virtual Machine on VMware/Windows 7
vivekrk44
Beginner
Posts: 7
Joined: Sun Nov 23, 2014 6:17 pm

Re: make the source code error,need help

Post by vivekrk44 »

To solve it all you need to do is install tortoise hg and initialize the project.

So to do this

1. sudo apt-get install tortoisehg
2. cd to the root of the project (Lets call it /home/blah/crazyflie-firmware)
3. hg init
4. make

That solved the problem for me
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: make the source code error,need help

Post by chad »

vivekrk44 wrote:To solve it all you need to do is install tortoise hg and initialize the project.
That solved the problem for me
Hi vivekrk44, welcome to the forum!

This issue is really quite old (almost two years now). The current repository does not have a dependency on mercurial anymore, afaik. That is, you should be able to build without it installed. Are you using the latest available on GitHub in either the master or crazyflie2 branches?
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
Post Reply