Login |  Register



Welcome
Welcome to engineeringdiy

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!


Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Recompile CarPC Controller
PostPosted: Sun Mar 13, 2016 7:15 am 
Joined: Thu Jan 01, 2015 10:55 am
Posts: 115
I have download the carpc controller source from github, i need to make some changes inside it.
But how do i recompile it ? There is no make file, and I'm not an expert on this.

Best Regards
Andreas


Report this post
Profile  Offline
 
 Post subject: Re: Recompile CarPC Controller
PostPosted: Sun Mar 13, 2016 5:17 pm 
Joined: Fri May 22, 2015 8:46 pm
Posts: 330
If i well remember this work:

Code:
CC=g++
CFLAGS=-I. -lstdc++ -lpthread -lrt -lwiringPi
DEPS = *.h
OBJ = *.o

%.o: %.c $(DEPS)
        $(CC) -c -o $@ $< $(CFLAGS)

carpc-controller: $(OBJ)
        gcc -o $@ $^ $(CFLAGS)


Report this post
Profile  Offline
 
 Post subject: Re: Recompile CarPC Controller
PostPosted: Wed Mar 23, 2016 10:07 am 
Joined: Thu Jan 01, 2015 10:55 am
Posts: 115
I tried that but im only getting errors when im make the file.
Im using the source from the latest carpc-controller


Report this post
Profile  Offline
 
 Post subject: Re: Recompile CarPC Controller
PostPosted: Wed Mar 23, 2016 3:17 pm 
Joined: Fri May 22, 2015 8:46 pm
Posts: 330
i did it in RPi2 and everything had gone good .


Report this post
Profile  Offline
 
 Post subject: Re: Recompile CarPC Controller
PostPosted: Sat Apr 09, 2016 3:12 pm 
Joined: Tue Oct 06, 2015 3:01 pm
Posts: 122
So I want to change something inside carpc-controller.
I have download the carpc controller source from github and changed.

Now I put all the files in a directory on raspberry and run that code from @Elias Alves and after that I just copy compiled file into /opt/carpc/....?
Is this the correct procedure?


Report this post
Profile  Offline
 
 Post subject: Re: Recompile CarPC Controller
PostPosted: Sat Apr 09, 2016 8:34 pm 
Joined: Fri May 22, 2015 8:46 pm
Posts: 330
Result from compiled is a binary . Wherever you put it you just need point it config file :

Ex: if it is in your download directory

Code:
cd ~/downloads

Code:
sudo carpc-controller /opt/carpc/config/gpio_description &


As you know gpio_description is inside folder /opt/carpc/config
Binary carpc-controller is inside /usr/bin (i would rename your old binary to keep as backup) then replace with your new one .


Report this post
Profile  Offline
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests

Panel

Top You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Search for:
Jump to:  


suspicion-preferred