CPCWiki forum

General Category => Programming => Topic started by: Paulo Garcia on 01:33, 22 June 15

Title: Empty build_config.mk after creating project in CPCtelera
Post by: Paulo Garcia on 01:33, 22 June 15

I just installed CPCtelera in my Mac OS X (latest cloned from GitHub) and everything went smoothly.


However, when I try to create a project I see this message:


> Configuring project name to: cpcdev2015/sed: 1: "s/%%%PROJECT_NAME%%%/cp ...": bad flag in substitute command: '/'
[ OK ]


The project folder is created, but the build_config.mk file created is empty (0 bytes).


As expected, if I call make I get:


Makefile:38: /cfg/global_main_makefile.mk: No such file or directory
make: *** No rule to make target `/cfg/global_main_makefile.mk'.  Stop.


Could please someone give me an advice about where to look for the cause?


BTW, the examples folder in CPCtelera were build with no problems, so I believe the toolchain itself is properly installed in my computer.


Thanks in advance


Paulo Garcia
Title: Re: Empty build_config.mk after creating project in CPCtelera
Post by: ronaldo on 11:48, 22 June 15
Hi Paulo,

The problem is quite easy to solve: you have launched a command like this:
cpct_mkproject cpcdev2015/

but you should have written it without the trailing slash '/':
cpct_mkproject cpcdev2015

and remember that, as the script says in its help, the folder must not previously exist (the script creates it).

May be I should rewrite cpct_mkproject help to clarify this point.

Hope this helps :)

Title: Re: Empty build_config.mk after creating project in CPCtelera
Post by: Paulo Garcia on 12:40, 22 June 15
Hey Ronaldo


it helped indeed! Now it is all working :)


Thanks


Paulo
Title: Re: Empty build_config.mk after creating project in CPCtelera
Post by: ronaldo on 12:51, 22 June 15
You're welcome, man :)
Powered by SMFPacks Menu Editor Mod