Help with importing a GCC project into CodeWarrior!

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Help with importing a GCC project into CodeWarrior!

4,620 次查看
JoshComley
Contributor I
Hi all,
 
I have a GCC project which I'm having serious difficulty getting into CodeWarrior. The project structure is as follows:
 
Top directory:
xxx
xxxInstall1
xxxInstall2
xxxInstall3
xxxInstaller
xxxLib
xxxLib2
 
Where xxx is the project name. Each of these directories contains the following directories:
 
GCC
Src (containing the .c and .h files amongst others)
 
Also, each top level directory contains a makefile and a .prc file, and scattered between them, the top level directories contain:
- some .a files
- some .o files
- some .s files
- some header files, usually relating to what is listed under LIBS in the makefile
 
In my google adventures today I've read about the Codewarrior Makefile Importer Wizard, but alas this is not an option in my version of CodeWarrior (which I bought only a few weeks ago).
 
I assume I have to create some kind of set of linked projects in CodeWarrior, for each of the seven projects listed above. But I'm struggling to figure out the exact intricacies of such a task!
 
Any advice would be greatly appreciated!! If you need any information that I haven't provided, I will provide; just ask!
 
Many thanks,
Josh Comley
标签 (1)
0 项奖励
回复
5 回复数

1,434 次查看
CrasyCat
Specialist III
Hello
 
- Which CPU are you targeting (HC08, HC12, Coldfire, ..)
- Which version of CodeWarrior are you using?
  To retrieve that info:
    - Start CodeWarrior
    - Select Help -> About Freescale CodeWarrior
    - Click on "Install Products"
    - CodeWarrior version used is displayed on top in the Installed Products dialog.
 
CrasyCat
0 项奖励
回复

1,434 次查看
JoshComley
Contributor I
Hi CrasyCat,
 
Thanks for your reply!
 
1) I am targetting the ARM CPU
2) According to your instructions, I am using CodeWarrior Development Studio for Palm OS Platform, Version 9.3, Professional Edition
 
Thanks again for your help,
Josh
0 项奖励
回复

1,434 次查看
CrasyCat
Specialist III
Hello
 
I am not an expert in CodeWarrior for Palm, so I am afraid I will not be able to help a lot here.
 
Basically your application looks pretty complicated with main project and a couple of sub-projects.
According to my experience with CodeWarrior for Embedded architecture, I would not recommend you to use make file importer wizard to import your projects in CodeWarrior.
 
This importer as far as I remember covers only simple projects and is not able to deal with a project hierarchy.
 
I would recommend you to create your project using either a stationery or a wizard (Depending what is available in your PAlm version today) and add your source files manually to each project.
 
I am not sure you can get assistance on CodeWarrior for Palm in that Forum. It is mainly covering embedded products.
In order to get assistance on CodeWarrior for Palm I would recommend you to send an email to  desktop@metrowerks.com.
 
Thanks for your understanding. 
 
CrasyCat
0 项奖励
回复

1,434 次查看
JoshComley
Contributor I
Hi there,
 
Thanks again for your help!
Yes that is what I'd tried, both a wizard and stationary, copying the files in. The problem lies in that the projects are inter-dependant, and contain some files with the same name, and similar functionality but not identical (so some same method names also etc.) - so I can't just put all the different code files into one big project, it won't work! I need to create some kind of CodeWarrior solution that has the various projects in it and linked together. I will take your advice and contact desktop@metrowerks.com.
 
Does anyone know how to achieve what I want? Linked projects in CodeWarrior?
 
Cheers,
Josh
 
0 项奖励
回复

1,434 次查看
Luchnik
Contributor I
Hi, depending on the IDE version that is in your product, you may have the ability to create a project around your make files without converting them.

This functionality can be accessed by running the External Build Wizard under File|New...|Project. Essentially CodeWarrior will use make to build the project, while allowing you to debug using the CodeWarrior debugger. You will have to manually add the source files to the project window, but other than that source editing, code completion, etc. should work exactly as when using a regular CodeWarrior project.
0 项奖励
回复