Page 1 of 6
ChibiStudio for linux
Posted: Mon Sep 17, 2012 5:18 pm
by tinito
Hi,
I've started working on the linux version of ChibiStudio. About the tools, like openocd, would you like to include the sources (so people have to ./configure && make it) or do you feel that a static binary is better?
I'm not sure that static binaries will work on every machine, but, I guess, they should...
Re: ChibiStudio for linux
Posted: Mon Sep 17, 2012 6:08 pm
by Giovanni
Static binaries should work, I use Eclipse and CodeSourcery compiler binaries.
I wonder if the workspace can be ported, most settings are there.
Giovanni
Re: ChibiStudio for linux
Posted: Tue Sep 18, 2012 4:03 pm
by tinito
I've imported it but most of the paths are absolute, is it due to eclipse or is it possible to setup paths relative to the workspace?
Re: ChibiStudio for linux
Posted: Tue Sep 18, 2012 8:18 pm
by Giovanni
Project paths should be all relative to two variables CHIBIOS and CHIBISTUDIO that are defaulted to C:\ChibiStudio and C:\ChibiStudio\chibios. There should not be absolute paths, only those variables need to be changed.
Giovanni
Re: ChibiStudio for linux
Posted: Wed Sep 19, 2012 10:12 am
by tinito
I've updated those two variables in windows->preferencies->general->workspace->linked resources, but projects still point to c:\ChibiStudio, i'm attaching two screenshot.
Not sure I'm modifying the correct stuff...
Re: ChibiStudio for linux
Posted: Wed Sep 19, 2012 10:15 am
by Giovanni
I'll try searching in the workspace...
Giovanni
Re: ChibiStudio for linux
Posted: Wed Sep 19, 2012 10:37 am
by tinito
If I look for "C:\ChibiStudio" in the workspace i get 266 references:
Code: Select all
tino@Dell:~/Desktop/ChibiStudio-linux/workspace$ grep -rn "C:/ChibiStudio" .metadata/.plugins/* | wc -l
266
I really don't know how eclipse manages environment variables and paths, it looks weird
Re: ChibiStudio for linux
Posted: Wed Sep 19, 2012 10:50 am
by Giovanni
In the distributed ChibiStudio I found "C:" in only two files, you could try to delete them and see if are regenerated or Eclipse re-launch.
Giovanni
Re: ChibiStudio for linux
Posted: Wed Sep 19, 2012 10:58 am
by tinito
Do you mean the "preview 2"?
If I extract the workspace folder from ChibiStudio_Preview2.7z and look for C:/Chibistudio I still find 200+ references, without any eclipse execution:
Code: Select all
tino@Dell:~/test/workspace$ grep -rn "C:/ChibiStudio" .metadata/.plugins/* | wc -l
267
ps: they are in "hidden" folders so I have to specify where to search..
Re: ChibiStudio for linux
Posted: Wed Sep 19, 2012 11:51 am
by tinito
I've tried to find&replace every occurrence of C:/ChibiStudio with ${CHIBI_STUDIO}, the problem is that it seems the project location path is in a binary file:
Code: Select all
Binary file .metadata/.plugins/org.eclipse.core.resources/.projects/ARMCM4-STM32F407-DISCOVERY/.location matches
so I'm still not able to open the demo projects. If I modify that entry by hand eclipse wont start at all.
BTW, I can import again all the projects and it will work, but if you move the workspace you have to do it again. And we would have different workspaces for windows and linux, not easy to mantain..