I have a very simple project (static library) and I could not compile it because the error dialog "Could not create Makefile." appers when I try compile or rebild all. :-(
Platform: Windows XP.
Compiler: cygwin GCC 3.3.1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
------------------------------------
Compiler: Default compiler
Building Makefile: "C:\dev\caf\prj\cygwin\caf\gui\Makefile.win"
Executing make clean
make: *** No rule to make target `clean'. Stop.
Execution terminated
------------------------------------
Sorry. But the error dialog appears before I can see compile log. When Dev-C++ try to create the Makefile.win.
I found only when dependence:
My project has complex "Build Options", for example:
Executable output directories:
..\..\..\lib\cygwin
Object file output directory:
..\..\..\..\tmp\cygwin\caf\gui
Override output filename:
libcaf.a
Sometimes, when I set the defult options, the Dev-C++ creates Makefile.win, sometimes doesn't.
Sorry my English.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-01-23
What's in Makefile.win? Anything?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-01-23
If your Makefile is size 0, then you're not going to be able to use make to compile the code because... well... there are no instructions for doing it. So you've got to figure out why makefile is 0 bytes big.
Is your hard drive full?
Do you have privileges to write into this directory?
Do you have privileges to overwrite the makefile?
There's got to be a reason.
Watson (the pencil neck) Davis
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-01-23
What does the actual Compile Log say? There's got to be a reason it couldn't make the makefile.
Watson (the pencil neck) Davis
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
>But is there a reason why you're redirecting the output to different directories?
I just don't clear my source folder every time :-).
Of course I can change the folders. The error is not a real problem. But I'm intrested why it happens.
>Do those directories exist?
Yes. They do.
Step-by-step:
1. open Dev-cpp.
2. open my project.
3. set default "Build options".
4. compile. ==> Ok.
5. set my "Build options".
6. compile. ==> Ok.
7. close Dev-cpp.
8. open Dev-cpp.
9. open my project.
10. compile. ==> Error.
11. set default "Build options".
12. compile. ==> Error. :-( Even with default options.
The steps I can repeat a lot of times on my computer and each time the result of compilation will be same.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok. I read it. I clear reinstalled and don't have any changes with compilation of my example.
I have Windows XP Home Edition with the latest updates. One disk C: with NTFS.
IMHO, problem is here:
--- V5/source/compiler.pas -------------------------
fMakefile := fProject.Directory + DEV_MAKE_FILE;
DoLogEntry('Building Makefile: "'+fMakefile +'"');
Assignfile(F, fMakefile);
try
Rewrite(F);
except
MessageDlg('Could not create Makefile !!!', mtError, [mbOK], 0);
result := false;
exit;
end;
---------------------------------------------
The 'Rewrite(F);' C_R_E_A_T_E_S the file 'Makefile.Win' but an exception occurs.
:-(
I'm intrested, if just ignore the exception (comment exit()), will I have a good Makefile.win? I don't have Delphi so I can't create the version. I will be happy if someone give me the compiled version with commented 'exit'.
If you aren't intrested any more in the problem, just forget. I can work around but perhaps it's a some kind of a bug.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
try saveing your .cpp .h and all that and delete the file projectname.dev and make a new project then right click on the project manager a menu will popup click add to project add the files and then click compile if it dose not work go to project options and click use windows thems click ok then compile if that don't work make shure you have your compiler options the way you want then and then try again.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You're the same guy that's been posting in some other threads as well, right? Could you PLEASE learn how to use punctuation... it's giving me a headache trying to read any of your comments. It's just one huge stream of words, and it's left to the reader to figure out where any commas or periods were supposed to be.
Also, improving your spelling would help things along quite a bit (or decrease your number of typos, either way).
Paul
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a very simple project (static library) and I could not compile it because the error dialog "Could not create Makefile." appers when I try compile or rebild all. :-(
Platform: Windows XP.
Compiler: cygwin GCC 3.3.1
Post your FULL compile log please....
Wayne
------------------------------------
Compiler: Default compiler
Building Makefile: "C:\dev\caf\prj\cygwin\caf\gui\Makefile.win"
Executing make clean
make: *** No rule to make target `clean'. Stop.
Execution terminated
------------------------------------
Sorry. But the error dialog appears before I can see compile log. When Dev-C++ try to create the Makefile.win.
I found only when dependence:
My project has complex "Build Options", for example:
Executable output directories:
..\..\..\lib\cygwin
Object file output directory:
..\..\..\..\tmp\cygwin\caf\gui
Override output filename:
libcaf.a
Sometimes, when I set the defult options, the Dev-C++ creates Makefile.win, sometimes doesn't.
Sorry my English.
What's in Makefile.win? Anything?
It creates zero-size Makefile.win.
If your Makefile is size 0, then you're not going to be able to use make to compile the code because... well... there are no instructions for doing it. So you've got to figure out why makefile is 0 bytes big.
Is your hard drive full?
Do you have privileges to write into this directory?
Do you have privileges to overwrite the makefile?
There's got to be a reason.
Watson (the pencil neck) Davis
What does the actual Compile Log say? There's got to be a reason it couldn't make the makefile.
Watson (the pencil neck) Davis
> Is your hard drive full?
No, It isn't.
>Do you have privileges to write into this directory?
Yes, I do. It's my local hard drive on NTFS.
>Do you have privileges to overwrite the makefile?
Yes, I do.
I understand the reasons. But I don't understand why somitemes it works, sometimes doesn't. :-(
Perhaps it's my fall but I have only one correlation: Build Options. See my previous message.
A few ../..'s shouldn't be a problem.
But is there a reason why you're redirecting the output to different directories? Do those directories exist?
>But is there a reason why you're redirecting the output to different directories?
I just don't clear my source folder every time :-).
Of course I can change the folders. The error is not a real problem. But I'm intrested why it happens.
>Do those directories exist?
Yes. They do.
Step-by-step:
1. open Dev-cpp.
2. open my project.
3. set default "Build options".
4. compile. ==> Ok.
5. set my "Build options".
6. compile. ==> Ok.
7. close Dev-cpp.
8. open Dev-cpp.
9. open my project.
10. compile. ==> Error.
11. set default "Build options".
12. compile. ==> Error. :-( Even with default options.
The steps I can repeat a lot of times on my computer and each time the result of compilation will be same.
Note that he is using Cygwin's gcc as his compiler, not MinGW. And the Cygwin GCC version is not consistent with what Dev was built for....
Wayne
Ah, OK.
Watson (the pencil neck) Davis
That's right. Also my "Compiler Options/Directories/Binaries" is "c:/cygwin/bin".
>Note that he is using Cygwin's gcc as his compiler, not MinGW.
Thank you for the note. But does it dependences on how dev-cpp build a make file? :-)
I've tried to compile on MinGW. Same results.....
Right, I can give my project and maybe someone try to compile it. :-(
Sure.
How big is it?
Watson (the pencil neck) Davis
Try to reduce things to a simple as possible example, and I am more than willing to try it out.
Wayne
I made a simple project and folder structure in '.zip' file. How can I send it?
You can download it from http://comer.pisem.net/blin.zip.
I will download it this weekend and take a look
Wayne
Thank you, Wayne, for support.
Compiler: Default compiler
Building Makefile: "C:\Programming\FromForum\blin\prj\cygwin\caf\Makefile.win"
Executing make clean
rm -f ../../../tmp/cygwin/caf/test.o ../../../lib/cygwin/libcaf.a
make.exe: *** Warning: File `../../../src/caf/test.cpp' has modification time in the future (2004-01-24 00:54:56 > 2004-01-23 08:01:21)
g++.exe -c ../../../src/caf/test.cpp -o ../../../tmp/cygwin/caf/test.o -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include"
ar r ../../../lib/cygwin/libcaf.a ../../../tmp/cygwin/caf/test.o
ranlib ../../../lib/cygwin/libcaf.a
make.exe: warning: Clock skew detected. Your build may be incomplete.
Execution terminated
Compilation successful
------------------------------------------------
Looks like a good compile. In the blin\lib\cygwin directory, I've got libcaf.a.
Do you have a clean install of Dev-C++ on your system?
Watson (the pencil neck) Davis
>Looks like a good compile. In the blin\lib\cygwin directory, I've got libcaf.a.
That's bad. Because I don't know where the problem is :-(
I've tried 4.9.8.5 and also version 4.9.8.6 from CVS... and can't compile the project (blin.zip).
>Do you have a clean install of Dev-C++ on your system?
Hm.... I was sure I have but now I'm not sure.
May be I have wrong installation.
What do I need to clear reinstall Dev-CPP?
I have Dev-C++ 4.9.8.0 installation package and version from CVS 4.9.8.6.
The directions for removing and re-installing are in the "READ THIS BEFORE POSTING" thread.
I'm at 4.9.8.5, btw.
Ok. I read it. I clear reinstalled and don't have any changes with compilation of my example.
I have Windows XP Home Edition with the latest updates. One disk C: with NTFS.
IMHO, problem is here:
--- V5/source/compiler.pas -------------------------
fMakefile := fProject.Directory + DEV_MAKE_FILE;
DoLogEntry('Building Makefile: "'+fMakefile +'"');
Assignfile(F, fMakefile);
try
Rewrite(F);
except
MessageDlg('Could not create Makefile !!!', mtError, [mbOK], 0);
result := false;
exit;
end;
---------------------------------------------
The 'Rewrite(F);' C_R_E_A_T_E_S the file 'Makefile.Win' but an exception occurs.
:-(
I'm intrested, if just ignore the exception (comment exit()), will I have a good Makefile.win? I don't have Delphi so I can't create the version. I will be happy if someone give me the compiled version with commented 'exit'.
If you aren't intrested any more in the problem, just forget. I can work around but perhaps it's a some kind of a bug.
try saveing your .cpp .h and all that and delete the file projectname.dev and make a new project then right click on the project manager a menu will popup click add to project add the files and then click compile if it dose not work go to project options and click use windows thems click ok then compile if that don't work make shure you have your compiler options the way you want then and then try again.
You're the same guy that's been posting in some other threads as well, right? Could you PLEASE learn how to use punctuation... it's giving me a headache trying to read any of your comments. It's just one huge stream of words, and it's left to the reader to figure out where any commas or periods were supposed to be.
Also, improving your spelling would help things along quite a bit (or decrease your number of typos, either way).
Paul