ChibiStudio for linux

Discussions and support about ChibiStudio, the free development environment for ARM.
tinito
Posts: 112
Joined: Tue Jun 07, 2011 10:32 am
Has thanked: 1 time
Been thanked: 1 time

ChibiStudio for linux

Post 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...
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: ChibiStudio for linux

Post 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
tinito
Posts: 112
Joined: Tue Jun 07, 2011 10:32 am
Has thanked: 1 time
Been thanked: 1 time

Re: ChibiStudio for linux

Post 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?
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: ChibiStudio for linux

Post 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
tinito
Posts: 112
Joined: Tue Jun 07, 2011 10:32 am
Has thanked: 1 time
Been thanked: 1 time

Re: ChibiStudio for linux

Post 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...
Attachments
project_path.png
project_path.png (40.29 KiB) Viewed 18157 times
linked_resources.png
linked_resources.png (95.28 KiB) Viewed 18157 times
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: ChibiStudio for linux

Post by Giovanni »

I'll try searching in the workspace...

Giovanni
tinito
Posts: 112
Joined: Tue Jun 07, 2011 10:32 am
Has thanked: 1 time
Been thanked: 1 time

Re: ChibiStudio for linux

Post 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
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: ChibiStudio for linux

Post 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
tinito
Posts: 112
Joined: Tue Jun 07, 2011 10:32 am
Has thanked: 1 time
Been thanked: 1 time

Re: ChibiStudio for linux

Post 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..
tinito
Posts: 112
Joined: Tue Jun 07, 2011 10:32 am
Has thanked: 1 time
Been thanked: 1 time

Re: ChibiStudio for linux

Post 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..
Post Reply