build project from command line

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

build project from command line

ソリューションへジャンプ
4,181件の閲覧回数
svensavic
Contributor III

I have problem building application from command line in windows. It seems that it only works if project was left open in the workspace. As I have multiple projects in one Workspace, I do close projects on which I dont work at the moment. So when I run the script for automated build it fails for closed project.

"C:\nxp\MCUXpressoIDE_10.0.0_344\ide\mcuxpressoidec.exe" --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -cleanBuild MyProject1/Debug -data "C:\Projects\Xpresso"

Error message that I get for closed projects is:

Project: MyProject1 doesn't appear to be a CDT project. Skipping...
WARNING: No Config matched "MyProject1/Debug". Skipping...

Works fine if I leave project opened before closing the IDE.

Is there a workaround for that "feature" ?

1 解決策
3,357件の閲覧回数
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Sven,

As Con Verse mentions, the workaround would be to use the -import option, this will open the project in the existing workspace, here is an example:

mcuxpressoide -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data C:\Users\b38285\Documents\MCUXpressoIDE_10.0.2_411\workspace-LPC54608 -import C:\Users\b38285\Documents\MCUXpressoIDE_10.0.2_411\workspace-LPC54608\lpcxpresso54608_demo_apps_hello_world -cleanBuild lpcxpresso54608_demo_apps_hello_world/Debug


Hope it helps!

Best Regards,
Carlos Mendoza
Technical Support Engineer

元の投稿で解決策を見る

4 返答(返信)
3,358件の閲覧回数
converse
Senior Contributor V

Have you tried 'importing' the closed project? i.e. use the -import option?

0 件の賞賛
返信
3,357件の閲覧回数
svensavic
Contributor III

You mean import project in already existent workspace (where that project is closed) or create a new workspace ? When I create new one (without using -data parameter), linking part of build fails as I have some global variables defined in my workspace...

0 件の賞賛
返信
3,358件の閲覧回数
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Sven,

As Con Verse mentions, the workaround would be to use the -import option, this will open the project in the existing workspace, here is an example:

mcuxpressoide -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data C:\Users\b38285\Documents\MCUXpressoIDE_10.0.2_411\workspace-LPC54608 -import C:\Users\b38285\Documents\MCUXpressoIDE_10.0.2_411\workspace-LPC54608\lpcxpresso54608_demo_apps_hello_world -cleanBuild lpcxpresso54608_demo_apps_hello_world/Debug


Hope it helps!

Best Regards,
Carlos Mendoza
Technical Support Engineer

3,357件の閲覧回数
svensavic
Contributor III

Yes, that seems to do the trick. Thanks to both of you guys ...