Hi D.Bane,
If 'gcc --version' is not working from you from outside the folder, then gcc is not in your path
Which folder did you cd into for it to work? Is it C:\Program Files (x86)\ECERE SDK\mingw\bin ?
You should have a gcc.exe in that folder (You ARE on a 64 bit Windows right?).
Also make sure you restart a new command prompt anytime you modify the path, as it will only take effect then.
If the build went as far as the 2nd stage ear like you pasted though, gcc should be in your path! Very strange. Maybe you haven't tried gcc --version after changing the path and starting a new command prompt?
About the ear error...
Could you try cd'ing into sdk\ear\cmd and from there doing a mingw32-make ? From there you should see the commands being run as well as the exact output. Please paste the make build log here.
Thanks for working this through with me
Regards,
Jerome
Compiler stops right away
Re: Compiler stops right away
Hi.
I am sorry, I forgot to destroy the cmd window so yes, I am able to just call it from any folder and I get the version info... for both of them.
Now, I tried what you said about building inside of "sdk\ear\cmd"
I had to do clean first..
That is what I got, I hope that it has some sense to you.
Best Regards,
D.Bane.
Thank you Jerome for working with mejerome wrote:Thanks for working this through with me
I am sorry, I forgot to destroy the cmd window so yes, I am able to just call it from any folder and I get the version info... for both of them.
Now, I tried what you said about building inside of "sdk\ear\cmd"
I had to do clean first..
Code: Select all
E:\Builds\ecere-sdk-f564926\ear\cmd>mingw32-make
mingw32-make: Nothing to be done for `all'.
E:\Builds\ecere-sdk-f564926\ear\cmd>mingw32-make clean
E:\Builds\ecere-sdk-f564926\ear\cmd>mingw32-make
..\..\compiler\bootstrap\obj\bin.win32\ecp -nolinenumbers -fmessage-length=0 -O
2 -ffast-math -m32 -w -c ear.ec -o obj/release.win32/ear.sym
..\..\compiler\bootstrap\obj\bin.win32\ecc -nolinenumbers -fmessage-length=0 -O
2 -ffast-math -m32 -w -c ear.ec -o obj/release.win32/ear.c -symbols obj/releas
e.win32/
gcc -fmessage-length=0 -O2 -ffast-math -m32 -w -c obj/release.win32/ear.c -o o
bj/release.win32/ear.o
..\..\compiler\bootstrap\obj\bin.win32\ecs -console obj/release.win32/ear.sym o
bj/release.win32/ear.imp -symbols obj/release.win32 -o obj/release.win32/ear.mai
n.ec
..\..\compiler\bootstrap\obj\bin.win32\ecp -nolinenumbers -fmessage-length=0 -O
2 -ffast-math -m32 -w -c obj/release.win32/ear.main.ec -o obj/release.win32/ear
.main.sym -symbols obj/release.win32/
..\..\compiler\bootstrap\obj\bin.win32\ecc -nolinenumbers -fmessage-length=0 -O
2 -ffast-math -m32 -w -c obj/release.win32/ear.main.ec -o obj/release.win32/ea
r.main.c -symbols obj/release.win32/
gcc -fmessage-length=0 -O2 -ffast-math -m32 -w -c obj/release.win32/ear.main.c
-o obj/release.win32/ear.main.o
gcc -m32 -L../../obj/win32/bin -L../../obj/win32/lib obj/release.win32/ear.o obj
/release.win32/ear.main.o -lecere -mconsole -o obj/release.win32/ear.exe
strip -x obj/release.win32/ear.exe
..\..\obj\win32\bin\ear awq obj/release.win32/ear.exe ../extract/obj/release.win
32/extract.exe ""
..\..\obj\win32\bin\ear awq obj/release.win32/ear.exe locale/zh_CN/LC_MESSAGES/e
ar.mo "locale/zh_CN/LC_MESSAGES"
..\..\obj\win32\bin\ear awq obj/release.win32/ear.exe locale/es_ES/LC_MESSAGES/e
ar.mo "locale/es_ES/LC_MESSAGES"
mingw32-make: *** [obj/release.win32/ear.exe] Error 1
Best Regards,
D.Bane.
No army is to big, if the heart is beating strong.
There's no bad luck, it's just easier to blame someone else.
There's no bad luck, it's just easier to blame someone else.
Re: Compiler stops right away
Hi D.Bane,
OK we're making a bit of progress here! hehe
Can you try taking out the 'q' (quiet) in the ear awq command, and then doing make clean/make again?
Also can you try directly calling the command that seems to be failing (from the ear/cmd directory):
..\..\obj\win32\bin\ear awq obj/release.win32/ear.exe locale/es_ES/LC_MESSAGES/ear.mo "locale/es_ES/LC_MESSAGES"
You do have this file "locale/es_ES/LC_MESSAGES/ear.mo" there, right?
And your disk is not out of free space?
Thanks!
Jerome
OK we're making a bit of progress here! hehe
Can you try taking out the 'q' (quiet) in the ear awq command, and then doing make clean/make again?
Also can you try directly calling the command that seems to be failing (from the ear/cmd directory):
..\..\obj\win32\bin\ear awq obj/release.win32/ear.exe locale/es_ES/LC_MESSAGES/ear.mo "locale/es_ES/LC_MESSAGES"
You do have this file "locale/es_ES/LC_MESSAGES/ear.mo" there, right?
And your disk is not out of free space?
Thanks!
Jerome
Re: Compiler stops right away
Hi.
Uf... It is not working...
(I have added the comments to them..)..
Now..The command prompt is much longer, here is the output:
Now, I thought that it was something with the ear in the ecere bin folder, so I changed it's name to ear2.exe and then got this..
First time, I have done mingw32-make clean then make, the second time I did not I will try that as well.
O, and when I go to sdk/ear folder and type ear.exe and the location of the file (I copyed what you wrote and then entered the exact location as well...it is not working, it was only showing the ear.exe "usage manual".
Also, regarding calling the part that makes error without q parameter, if that is what you were actually thinking off gives this:
I hope that I have not put a lot of words without any sense as my head is a bit hurting from the sun.. :/
Yes, and I do have
as well as
and
Almost forgot, unless Ecere needs 1GB space, I have enough on this partition.. If will transfer the false somewhere else and try again (but the previous ecere built with 400MB available only so I do not think that that is the issue), the main partition has about 10GB free.
Sorry for all the hassle..
A question:
I was searching the forums and found Sam's post about not being able to build at one point, so I added the gettext and other dependencies (libiconv-2.dll and libintl-8.dll in the ecere/bin folder) and gettext in mingw/bin folder..that is OK right? And could that be an issue?
Best Regards,
D.Bane
Uf... It is not working...
If you meant that I should open sdk/ear/cmd/ear.epj and change this section:jerome wrote:Can you try taking out the 'q' (quiet) in the ear awq command, and then doing make clean/make again?
Code: Select all
452 | //case 'q':
453 | // quiet = true;
454 | // break;
Now..The command prompt is much longer, here is the output:
Code: Select all
Building ear...
Building self-extract tool...
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2011
UPX 3.08w Markus Oberhumer, Laszlo Molnar & John Reiser Dec 12th 2011
File size Ratio Format Name
-------------------- ------ ----------- -----------
1483374 -> 667246 44.98% win32/pe extract.exe
Packed 1 file.
ECERE Archiver v0.1
Copyright (c) 2003 Jerome Jacovella-St-Louis
General Syntax:
eAR <command> <archive> <parameters>
Extraction Commands:
v (View) <archive> [files...]
x (Extract All) <archive> [where]
e (Extract) <archive> <files...>
Modification Commands:
a (Add) <archive> <files...>
r (Refresh) <archive> <files...>
u (Update) <archive> <files...>
m (Move) <archive> <files...> <to>
n (Rename) <archive> <file> <new name>
d (Delete) <archive> <files...>
c (Clear) <archive>
s (Self Extract) <archive> <self-extractable> (With a: overwrite)
Options:
(aru) f Treat <files> as folders to pack at the root of the archive
(aru) 0 No Compression
(aru) 1 ... 9 (Fastest Compression ... Best Compression (default = 9))
(earu) w Specify an output directory after <files>
(xearu) q Quiet mode
ECERE Archiver v0.1
Copyright (c) 2003 Jerome Jacovella-St-Louis
General Syntax:
eAR <command> <archive> <parameters>
Extraction Commands:
v (View) <archive> [files...]
x (Extract All) <archive> [where]
e (Extract) <archive> <files...>
Modification Commands:
a (Add) <archive> <files...>
r (Refresh) <archive> <files...>
u (Update) <archive> <files...>
m (Move) <archive> <files...> <to>
n (Rename) <archive> <file> <new name>
d (Delete) <archive> <files...>
c (Clear) <archive>
s (Self Extract) <archive> <self-extractable> (With a: overwrite)
Options:
(aru) f Treat <files> as folders to pack at the root of the archive
(aru) 0 No Compression
(aru) 1 ... 9 (Fastest Compression ... Best Compression (default = 9))
(earu) w Specify an output directory after <files>
(xearu) q Quiet mode
ECERE Archiver v0.1
Copyright (c) 2003 Jerome Jacovella-St-Louis
General Syntax:
eAR <command> <archive> <parameters>
Extraction Commands:
v (View) <archive> [files...]
x (Extract All) <archive> [where]
e (Extract) <archive> <files...>
Modification Commands:
a (Add) <archive> <files...>
r (Refresh) <archive> <files...>
u (Update) <archive> <files...>
m (Move) <archive> <files...> <to>
n (Rename) <archive> <file> <new name>
d (Delete) <archive> <files...>
c (Clear) <archive>
s (Self Extract) <archive> <self-extractable> (With a: overwrite)
Options:
(aru) f Treat <files> as folders to pack at the root of the archive
(aru) 0 No Compression
(aru) 1 ... 9 (Fastest Compression ... Best Compression (default = 9))
(earu) w Specify an output directory after <files>
(xearu) q Quiet mode
ECERE Archiver v0.1
Copyright (c) 2003 Jerome Jacovella-St-Louis
General Syntax:
eAR <command> <archive> <parameters>
Extraction Commands:
v (View) <archive> [files...]
x (Extract All) <archive> [where]
e (Extract) <archive> <files...>
Modification Commands:
a (Add) <archive> <files...>
r (Refresh) <archive> <files...>
u (Update) <archive> <files...>
m (Move) <archive> <files...> <to>
n (Rename) <archive> <file> <new name>
d (Delete) <archive> <files...>
c (Clear) <archive>
s (Self Extract) <archive> <self-extractable> (With a: overwrite)
Options:
(aru) f Treat <files> as folders to pack at the root of the archive
(aru) 0 No Compression
(aru) 1 ... 9 (Fastest Compression ... Best Compression (default = 9))
(earu) w Specify an output directory after <files>
(xearu) q Quiet mode
ECERE Archiver v0.1
Copyright (c) 2003 Jerome Jacovella-St-Louis
General Syntax:
eAR <command> <archive> <parameters>
Extraction Commands:
v (View) <archive> [files...]
x (Extract All) <archive> [where]
e (Extract) <archive> <files...>
Modification Commands:
a (Add) <archive> <files...>
r (Refresh) <archive> <files...>
u (Update) <archive> <files...>
m (Move) <archive> <files...> <to>
n (Rename) <archive> <file> <new name>
d (Delete) <archive> <files...>
c (Clear) <archive>
s (Self Extract) <archive> <self-extractable> (With a: overwrite)
Options:
(aru) f Treat <files> as folders to pack at the root of the archive
(aru) 0 No Compression
(aru) 1 ... 9 (Fastest Compression ... Best Compression (default = 9))
(earu) w Specify an output directory after <files>
(xearu) q Quiet mode
ECERE Archiver v0.1
Copyright (c) 2003 Jerome Jacovella-St-Louis
General Syntax:
eAR <command> <archive> <parameters>
Extraction Commands:
v (View) <archive> [files...]
x (Extract All) <archive> [where]
e (Extract) <archive> <files...>
Modification Commands:
a (Add) <archive> <files...>
r (Refresh) <archive> <files...>
u (Update) <archive> <files...>
m (Move) <archive> <files...> <to>
n (Rename) <archive> <file> <new name>
d (Delete) <archive> <files...>
c (Clear) <archive>
s (Self Extract) <archive> <self-extractable> (With a: overwrite)
Options:
(aru) f Treat <files> as folders to pack at the root of the archive
(aru) 0 No Compression
(aru) 1 ... 9 (Fastest Compression ... Best Compression (default = 9))
(earu) w Specify an output directory after <files>
(xearu) q Quiet mode
ECERE Archiver v0.1
Copyright (c) 2003 Jerome Jacovella-St-Louis
General Syntax:
eAR <command> <archive> <parameters>
Extraction Commands:
v (View) <archive> [files...]
x (Extract All) <archive> [where]
e (Extract) <archive> <files...>
Modification Commands:
a (Add) <archive> <files...>
r (Refresh) <archive> <files...>
u (Update) <archive> <files...>
m (Move) <archive> <files...> <to>
n (Rename) <archive> <file> <new name>
d (Delete) <archive> <files...>
c (Clear) <archive>
s (Self Extract) <archive> <self-extractable> (With a: overwrite)
Options:
(aru) f Treat <files> as folders to pack at the root of the archive
(aru) 0 No Compression
(aru) 1 ... 9 (Fastest Compression ... Best Compression (default = 9))
(earu) w Specify an output directory after <files>
(xearu) q Quiet mode
ECERE Archiver v0.1
Copyright (c) 2003 Jerome Jacovella-St-Louis
General Syntax:
eAR <command> <archive> <parameters>
Extraction Commands:
v (View) <archive> [files...]
x (Extract All) <archive> [where]
e (Extract) <archive> <files...>
Modification Commands:
a (Add) <archive> <files...>
r (Refresh) <archive> <files...>
u (Update) <archive> <files...>
m (Move) <archive> <files...> <to>
n (Rename) <archive> <file> <new name>
d (Delete) <archive> <files...>
c (Clear) <archive>
s (Self Extract) <archive> <self-extractable> (With a: overwrite)
Options:
(aru) f Treat <files> as folders to pack at the root of the archive
(aru) 0 No Compression
(aru) 1 ... 9 (Fastest Compression ... Best Compression (default = 9))
(earu) w Specify an output directory after <files>
(xearu) q Quiet mode
Building eAR command line tool...
ECERE Archiver v0.1
Copyright (c) 2003 Jerome Jacovella-St-Louis
General Syntax:
eAR <command> <archive> <parameters>
Extraction Commands:
v (View) <archive> [files...]
x (Extract All) <archive> [where]
e (Extract) <archive> <files...>
Modification Commands:
a (Add) <archive> <files...>
r (Refresh) <archive> <files...>
u (Update) <archive> <files...>
m (Move) <archive> <files...> <to>
n (Rename) <archive> <file> <new name>
d (Delete) <archive> <files...>
c (Clear) <archive>
s (Self Extract) <archive> <self-extractable> (With a: overwrite)
Options:
(aru) f Treat <files> as folders to pack at the root of the archive
(aru) 0 No Compression
(aru) 1 ... 9 (Fastest Compression ... Best Compression (default = 9))
(earu) w Specify an output directory after <files>
(xearu) q Quiet mode
ECERE Archiver v0.1
Copyright (c) 2003 Jerome Jacovella-St-Louis
General Syntax:
eAR <command> <archive> <parameters>
Extraction Commands:
v (View) <archive> [files...]
x (Extract All) <archive> [where]
e (Extract) <archive> <files...>
Modification Commands:
a (Add) <archive> <files...>
r (Refresh) <archive> <files...>
u (Update) <archive> <files...>
m (Move) <archive> <files...> <to>
n (Rename) <archive> <file> <new name>
d (Delete) <archive> <files...>
c (Clear) <archive>
s (Self Extract) <archive> <self-extractable> (With a: overwrite)
Options:
(aru) f Treat <files> as folders to pack at the root of the archive
(aru) 0 No Compression
(aru) 1 ... 9 (Fastest Compression ... Best Compression (default = 9))
(earu) w Specify an output directory after <files>
(xearu) q Quiet mode
ECERE Archiver v0.1
Copyright (c) 2003 Jerome Jacovella-St-Louis
General Syntax:
eAR <command> <archive> <parameters>
Extraction Commands:
v (View) <archive> [files...]
x (Extract All) <archive> [where]
e (Extract) <archive> <files...>
Modification Commands:
a (Add) <archive> <files...>
r (Refresh) <archive> <files...>
u (Update) <archive> <files...>
m (Move) <archive> <files...> <to>
n (Rename) <archive> <file> <new name>
d (Delete) <archive> <files...>
c (Clear) <archive>
s (Self Extract) <archive> <self-extractable> (With a: overwrite)
Options:
(aru) f Treat <files> as folders to pack at the root of the archive
(aru) 0 No Compression
(aru) 1 ... 9 (Fastest Compression ... Best Compression (default = 9))
(earu) w Specify an output directory after <files>
(xearu) q Quiet mode
mingw32-make[2]: *** [obj/release.win32/ear.exe] Error 1
mingw32-make[1]: *** [all] Error 2
mingw32-make: *** [ear] Error 2
Code: Select all
E:\Builds\ecere-sdk-f564926>mingw32-make
Bootstrapping eC compiling tools...
Building ecere...
Building ec...
Building ecp...
Building ecc...
Building ecs...
mingw32-make[2]: *** [all] Error 1
mingw32-make[1]: *** [bootstrap] Error 2
mingw32-make: *** [bootstrap] Error 2
O, and when I go to sdk/ear folder and type ear.exe and the location of the file (I copyed what you wrote and then entered the exact location as well...it is not working, it was only showing the ear.exe "usage manual".
Also, regarding calling the part that makes error without q parameter, if that is what you were actually thinking off gives this:
Code: Select all
E:\Builds\ecere-sdk-f564926\ear>ear [b]aw[/b] obj/release.win32/ear.exe locale/es
_ES/LC_MESSAGES/ear.mo "locale/es_ES/LC_MESSAGES"
Failed to open archive obj/release.win32/ear.exe for writing!
Yes, and I do have
Code: Select all
sdk\ear\cmd\locale\es_ES\LC_MESSAGES/ear.mo
sdk\ear\cmd\locale\es_ES\LC_MESSAGES/ear.po
Code: Select all
sdk\ear\cmd\locale\zh_CN\LC_MESSAGES/ear.mo
sdk\ear\cmd\locale\zh_CN\LC_MESSAGES/ear.po
Code: Select all
sdk\ear\cmd\locale\ear.pot
Sorry for all the hassle..
A question:
I was searching the forums and found Sam's post about not being able to build at one point, so I added the gettext and other dependencies (libiconv-2.dll and libintl-8.dll in the ecere/bin folder) and gettext in mingw/bin folder..that is OK right? And could that be an issue?
Best Regards,
D.Bane
No army is to big, if the heart is beating strong.
There's no bad luck, it's just easier to blame someone else.
There's no bad luck, it's just easier to blame someone else.
Re: Compiler stops right away
Hi again D.Bane,
Yes, what I meant was simply taking out the 'q' from the ear awq commands in the makefile.
When you completely disabled the option in the code, had you just commented out the 'quiet = true' line, it would have had the same effect. But because you commented out the case 'q' as well, it resulted in ear giving showing you the syntax (because you made 'awq' invalid syntax).
The reason I wanted you to do that, was to see what error ear was reporting. I was asking if you are out of space (as in 0..2 megabyte available), because I saw error code 1 was reported when running out of space. But make might be changing the error code into 1, because the error reported now (Failed to open archive obj/release.win32/ear.exe for writing!) should actually be 4.
Now, I have a feeling this has to do with the problem you were having with Windows doing funny things with your files! The output file (ear.exe in this case) is opened multiple times to add multiple resources to it, and it seems to be failing because the file is still opened!
Are you running any anti-virus software on your system? Or perhaps you actually have some kind of malware on your system, messing around with your files.
Do you have any other computer on which you can try the same thing? I suspect this won't happen on a fresh Windows install. FYI I have NOT had that issue with locked .exe on multiple computers, regardless of it running Windows 7 or not.
Ecere does not require libiconv-2.dll or libintl-8.dll anymore. That was only required for a short time period of time, as I was working on the internationalization support. I have decided to write my own internationalization routines rather than using the GNU gettext library.
I hope you can figure out what's going on with your Windows setup Something is wrong!
Good luck!
Jerome
Yes, what I meant was simply taking out the 'q' from the ear awq commands in the makefile.
When you completely disabled the option in the code, had you just commented out the 'quiet = true' line, it would have had the same effect. But because you commented out the case 'q' as well, it resulted in ear giving showing you the syntax (because you made 'awq' invalid syntax).
The reason I wanted you to do that, was to see what error ear was reporting. I was asking if you are out of space (as in 0..2 megabyte available), because I saw error code 1 was reported when running out of space. But make might be changing the error code into 1, because the error reported now (Failed to open archive obj/release.win32/ear.exe for writing!) should actually be 4.
Now, I have a feeling this has to do with the problem you were having with Windows doing funny things with your files! The output file (ear.exe in this case) is opened multiple times to add multiple resources to it, and it seems to be failing because the file is still opened!
Are you running any anti-virus software on your system? Or perhaps you actually have some kind of malware on your system, messing around with your files.
Do you have any other computer on which you can try the same thing? I suspect this won't happen on a fresh Windows install. FYI I have NOT had that issue with locked .exe on multiple computers, regardless of it running Windows 7 or not.
Ecere does not require libiconv-2.dll or libintl-8.dll anymore. That was only required for a short time period of time, as I was working on the internationalization support. I have decided to write my own internationalization routines rather than using the GNU gettext library.
I hope you can figure out what's going on with your Windows setup Something is wrong!
Good luck!
Jerome
Re: Compiler stops right away
Hi,
Thank you Jerome, I will see what may be the problem. I have access to other computers so I will try that, although I am thinking of switching to Ubuntu I already have it setup and everything
Great.
Thank you Jerome, I will post my findings or if I went to Ubuntu without resolving the issue (I do not think that that will happen).
Best Regards,
D.Bane
Thank you Jerome, I will see what may be the problem. I have access to other computers so I will try that, although I am thinking of switching to Ubuntu I already have it setup and everything
Since I do not have Kaspersky any more I feel like I am not using anything..I do have Ad-Aware..should change it to something else, as the free version I was testing till now does not have file scanner (just found out yesterday when I wanted to see it's reports to see what it is blocking).jerome wrote:Are you running any anti-virus software on your system? Or perhaps you actually have some kind of malware on your system, messing around with your files.
Jerome wrote:Ecere does not require libiconv-2.dll or libintl-8.dll anymore. That was only required for a short time period of time, as I was working on the internationalization support. I have decided to write my own internationalization routines rather than using the GNU gettext library.
Great.
Thank you Jerome, I will post my findings or if I went to Ubuntu without resolving the issue (I do not think that that will happen).
Best Regards,
D.Bane
No army is to big, if the heart is beating strong.
There's no bad luck, it's just easier to blame someone else.
There's no bad luck, it's just easier to blame someone else.