Xys wrote:First Thanks for replying
ok can you explain a bit more i will ask about what i cant understand
a) First I setup a external drive to hold the project files, and plug it into the windows machine. (dont program directly on the raspi SD. It's sooooo slow)
what external device like a flash memory or something I connect my pi to my laptop via SSH connection
Yes, I suggest to use a shared drive that could be accesible by your development machine and the Pi. I'd preffer not use directly the Pi's memory card to avoid the high read/write cycles that happens in a compilation/linking process during development.
Xys wrote:b) mount that driver in the raspi with sambaclient
Where should I install the samba client
You should install sambaclient in the Pi. Samba client is an utility to share drives across a network, so the development machine could access to it. Just mount natively the drive in the Pi and share to your Windows using samba. You can get samba using apt-get.
Xys wrote:d) create a Makefile for the linux side. This could be very simple. I'm currently using something like the one I'd attached at the end of this post.
making that makefile needs a software or what I dont get the code at the end of your post
A makefile is nothing more than a text file that holds the rules to build a project. It's an ancient system and I don't like it very much, but it's widely supported and is a sort of standard in linux systems. You can create it with a regular text editor (but keep in mind that tabs and whitespaces are relevant for that kind of files) At the end of my original post is the makefile I'd used to compile my project. It's quite generic.
Xys wrote:e) download putty package, the complete one, not just putty.exe.
I already use PuTTy to work on my pi, So what is the complete PuTTy
and The last point is I am building a C++ program with opencv so it has libraries and so I get a debug file how to execute the file is it by transfering to the pi and running the executable file?
To run the executable, if you need visual output, just keep a putty console open, and after the compilation process, simply run it. If your application does not produce more than text based outputs, just run it like you compile the process: use plink to launch the command from in Visual Studio.
If you get lost with the makefile, just replace it by a simple script with all needed commands to compile your project (all gcc/g++ commands)
About samba configuration, well, if you can't get through it, I only can say that if you are working with a Pi, samba is a key knowledge because allows you to access in a bidirectional way to the files and folders managed by the Pi. There are many good basic tutorials through the internet about this matter
