- Posts: 521
- Forum
- News, Announcements and Feedback
- Feedback & Questions
- Eclipse build failure at copying template files
Eclipse build failure at copying template files
- RandMental
- Topic Author
- Offline
Less
More
03 Dec 2012 14:51 #3569
by RandMental
Eclipse build failure at copying template files was created by RandMental
Hi,
Using the MinGW setup I can build the files without a problem. I am now trying to move over to Eclipse (Juno) using the Eclipse setup instructions in the Articles section
The files build, howevever I get the following file not found error during the process:
File not found - *.[hc]
C:\MinGW\bin\xgettext.exe: no input file given
Advice will be appreciated, seems like a path error, however I cannot find what.
Full verbose makefile output:
+ Copying template files
for tx in devo8 devo10; do \
cp -prf filesystem/common/media filesystem/$tx/; \
cp -prf filesystem/common/template filesystem/$tx/; \
mkdir filesystem/$tx/language 2> /dev/null || true; \
../utils/extract_strings.pl -target $tx; \
cp tx_template.ini filesystem/$tx/tx.ini; \
mkdir filesystem/$tx/models 2> /dev/null || true; \
echo 'name=Model1' > filesystem/$tx/models/model1.ini; \
cat model_template.ini >> filesystem/$tx/models/model1.ini; \
cp model_template.ini filesystem/$tx/models/default.ini; \
number=2 ; while [ $number -le 30 ] ; do \
cp model_template.ini filesystem/$tx/models/model$number.ini; \
number=`expr $number + 1`; \
done; \
done
File not found - *.[hc]
C:\MinGW\bin\xgettext.exe: no input file given
Try `C:\MinGW\bin\xgettext.exe --help' for more information.
File not found - *.[hc]
C:\MinGW\bin\xgettext.exe: no input file given
Try `C:\MinGW\bin\xgettext.exe --help' for more information.
+ Building 'devo8.elf'
Using the MinGW setup I can build the files without a problem. I am now trying to move over to Eclipse (Juno) using the Eclipse setup instructions in the Articles section
The files build, howevever I get the following file not found error during the process:
File not found - *.[hc]
C:\MinGW\bin\xgettext.exe: no input file given
Advice will be appreciated, seems like a path error, however I cannot find what.
Full verbose makefile output:
+ Copying template files
for tx in devo8 devo10; do \
cp -prf filesystem/common/media filesystem/$tx/; \
cp -prf filesystem/common/template filesystem/$tx/; \
mkdir filesystem/$tx/language 2> /dev/null || true; \
../utils/extract_strings.pl -target $tx; \
cp tx_template.ini filesystem/$tx/tx.ini; \
mkdir filesystem/$tx/models 2> /dev/null || true; \
echo 'name=Model1' > filesystem/$tx/models/model1.ini; \
cat model_template.ini >> filesystem/$tx/models/model1.ini; \
cp model_template.ini filesystem/$tx/models/default.ini; \
number=2 ; while [ $number -le 30 ] ; do \
cp model_template.ini filesystem/$tx/models/model$number.ini; \
number=`expr $number + 1`; \
done; \
done
File not found - *.[hc]
C:\MinGW\bin\xgettext.exe: no input file given
Try `C:\MinGW\bin\xgettext.exe --help' for more information.
File not found - *.[hc]
C:\MinGW\bin\xgettext.exe: no input file given
Try `C:\MinGW\bin\xgettext.exe --help' for more information.
+ Building 'devo8.elf'
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
Less
More
- Posts: 4402
03 Dec 2012 17:06 #3582
by PhracturedBlue
Replied by PhracturedBlue on topic Eclipse build failure at copying template files
The issue is likely related to:
../utils/extract_strings.pl -target $tx
That is where the strings are found and extracted
If you edit that file and add:
print "$ENV{PWD}\n";
near the top, it should tell you what directory the script is running in. it should be the 'src' directory of the deviation code.
I am otherwise unaware why it wouldn't work. Certainly others are successfully using Eclipse, but I don't and am not an expert in it.
../utils/extract_strings.pl -target $tx
That is where the strings are found and extracted
If you edit that file and add:
print "$ENV{PWD}\n";
near the top, it should tell you what directory the script is running in. it should be the 'src' directory of the deviation code.
I am otherwise unaware why it wouldn't work. Certainly others are successfully using Eclipse, but I don't and am not an expert in it.
Please Log in or Create an account to join the conversation.
- RandMental
- Topic Author
- Offline
Less
More
- Posts: 521
04 Dec 2012 06:44 #3607
by RandMental
Replied by RandMental on topic Eclipse build failure at copying template files
Thanks PB, will use this line to investigate further today, also for the original Eclipse write-up.
Randmental
Randmental
Please Log in or Create an account to join the conversation.
- xCometz
- Offline
Less
More
- Posts: 18
04 Dec 2012 07:00 #3608
by xCometz
Replied by xCometz on topic Eclipse build failure at copying template files
it is weird that other files could be compiled but can not execute other script.
can you post your eclipse c/c++ build environment?
can you post your eclipse c/c++ build environment?
Please Log in or Create an account to join the conversation.
- RandMental
- Topic Author
- Offline
Less
More
- Posts: 521
04 Dec 2012 15:07 - 04 Dec 2012 15:08 #3622
by RandMental
Replied by RandMental on topic Eclipse build failure at copying template files
Hi PB
The print statement confirmed it is in the correct eclipse working directory:
C:\Users\user\workspace\Devo8\src
File not found - *.[hc]
C:\MinGW\bin\xgettext.exe: no input file given
Try `C:\MinGW\bin\xgettext.exe --help' for more information.
Hi xCometz
Thanks for the assistance. I am old hand at embedded systems, but new to Eclipse and the open source environments, so please excuse my ignorance. I have exported the c/c++ config, but I am sure you are looking for something else?
<?xml version="1.0" encoding="UTF-8"?>
-<cdtprojectproperties> -<section name="org.eclipse.cdt.internal.ui.wizards.settingswizards.IncludePaths"> <language name="holder for library settings"> </language> <language name="Assembly"> </language> <language name="UPC"> </language> <language name="GNU C++"> </language> <language name="GNU C"> </language> </section> -<section name="org.eclipse.cdt.internal.ui.wizards.settingswizards.Macros"> <language name="holder for library settings"> </language> <language name="Assembly"> </language> <language name="UPC"> </language> <language name="GNU C++"> </language> <language name="GNU C"> </language> </section> </cdtprojectproperties>
The print statement confirmed it is in the correct eclipse working directory:
C:\Users\user\workspace\Devo8\src
File not found - *.[hc]
C:\MinGW\bin\xgettext.exe: no input file given
Try `C:\MinGW\bin\xgettext.exe --help' for more information.
Hi xCometz
Thanks for the assistance. I am old hand at embedded systems, but new to Eclipse and the open source environments, so please excuse my ignorance. I have exported the c/c++ config, but I am sure you are looking for something else?
<?xml version="1.0" encoding="UTF-8"?>
-<cdtprojectproperties> -<section name="org.eclipse.cdt.internal.ui.wizards.settingswizards.IncludePaths"> <language name="holder for library settings"> </language> <language name="Assembly"> </language> <language name="UPC"> </language> <language name="GNU C++"> </language> <language name="GNU C"> </language> </section> -<section name="org.eclipse.cdt.internal.ui.wizards.settingswizards.Macros"> <language name="holder for library settings"> </language> <language name="Assembly"> </language> <language name="UPC"> </language> <language name="GNU C++"> </language> <language name="GNU C"> </language> </section> </cdtprojectproperties>
Last edit: 04 Dec 2012 15:08 by RandMental.
Please Log in or Create an account to join the conversation.
- RandMental
- Topic Author
- Offline
Less
More
- Posts: 521
07 Dec 2012 11:16 #3746
by RandMental
Replied by RandMental on topic Eclipse build failure at copying template files
Hi Guys
I am at a complete loss now. Comparing the Deviation directories after a clean build under MiSys and Eclipse respectivly, I get the Eclipse build to fail on the Language strings extractions:
+ Compiling 'config/model.c'
+ Compiling 'config/tx.c'
Found 12 ranges
Found 16 ranges
Found 1 ranges
+ Copying template files
File not found - *.[hc]
C:\MinGW\bin\xgettext.exe: no input file given
Try `C:\MinGW\bin\xgettext.exe --help' for more information.
File not found - *.[hc]
C:\MinGW\bin\xgettext.exe: no input file given
Try `C:\MinGW\bin\xgettext.exe --help' for more information.
+ Building 'devo8.elf'
ROM: 0x08004000 - 0x080275c0 = 141.44kB
RAM: 0x20000000 - 0x200060e0 = 24.22kB
Comparing the directories and file contents afterwards, the language source files under the Eclipse build (Devo 8 and Devo10) are now very short files, content of German file listed below, other are similar short (see attachment):
Deutsch
:4Ch w/ Dual-Rates
4K mit DR
:6Ch Airplane
6-Kanal Flugzeug
:6Ch Helicopter
6-Kanal Heli
:Simple 4 Channel
Src
Any ideas please?
I am at a complete loss now. Comparing the Deviation directories after a clean build under MiSys and Eclipse respectivly, I get the Eclipse build to fail on the Language strings extractions:
+ Compiling 'config/model.c'
+ Compiling 'config/tx.c'
Found 12 ranges
Found 16 ranges
Found 1 ranges
+ Copying template files
File not found - *.[hc]
C:\MinGW\bin\xgettext.exe: no input file given
Try `C:\MinGW\bin\xgettext.exe --help' for more information.
File not found - *.[hc]
C:\MinGW\bin\xgettext.exe: no input file given
Try `C:\MinGW\bin\xgettext.exe --help' for more information.
+ Building 'devo8.elf'
ROM: 0x08004000 - 0x080275c0 = 141.44kB
RAM: 0x20000000 - 0x200060e0 = 24.22kB
Comparing the directories and file contents afterwards, the language source files under the Eclipse build (Devo 8 and Devo10) are now very short files, content of German file listed below, other are similar short (see attachment):
Deutsch
:4Ch w/ Dual-Rates
4K mit DR
:6Ch Airplane
6-Kanal Flugzeug
:6Ch Helicopter
6-Kanal Heli
:Simple 4 Channel
Src
Any ideas please?
Please Log in or Create an account to join the conversation.
- RandMental
- Topic Author
- Offline
Less
More
- Posts: 521
13 Dec 2012 06:37 #3978
by RandMental
Replied by RandMental on topic Eclipse build failure at copying template files
UPDATE
I still don't know what was the reason that only this one line in the PERL script failed, with the rest of the build process seeming to work. However, I have wiped everything and started a fresh with a full environment install - and know it works.
Thanks for everyone's help and especially to xCometz
Deon.
I still don't know what was the reason that only this one line in the PERL script failed, with the rest of the build process seeming to work. However, I have wiped everything and started a fresh with a full environment install - and know it works.
Thanks for everyone's help and especially to xCometz
Deon.
Please Log in or Create an account to join the conversation.
- Forum
- News, Announcements and Feedback
- Feedback & Questions
- Eclipse build failure at copying template files
Time to create page: 0.053 seconds
- Home
- Forum
- News, Announcements and Feedback
- Feedback & Questions
- Eclipse build failure at copying template files