Author Topic: Compiling C::B with Make under windows?  (Read 8862 times)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Compiling C::B with Make under windows?
« on: August 08, 2005, 09:12:37 pm »
Hi guys. I was wondering, has any of you had troubles trying to compile code::blocks using the supplied makefile (on windows)?

I get some error about dependency files missing...

Code
C:\somedir\projects\codeblocks\src>make
/bin/sh.exe: -c: line 2: syntax error: unexpected end of file
make: [depend_tinyXML_DIRS] Error 2 (ignored)
/bin/sh.exe: -c: line 2: syntax error: unexpected end of file
make: [depend_tinyXML_DIRS] Error 2 (ignored)
/bin/sh.exe: -c: line 2: syntax error: unexpected end of file
make: [depend_tinyXML_DIRS] Error 2 (ignored)
Calculating dependencies for sdk\tinyxml\tinystr.cpp...
# 1 "C:\\somedir\\projects\\codeblocks\\src//"
sdk/tinyxml/tinystr.cpp:0: fatal error: opening dependency file
  .deps/sdk/tinyxml/tinystr.d: No such file or directory
compilation terminated.
make: *** [.deps/sdk/tinyxml/tinystr.d] Error 1

Any idea of how to fix this?
« Last Edit: August 11, 2005, 04:34:27 pm by rickg22 »

takeshimiya

  • Guest
Re: Compiling C::B with Make?
« Reply #1 on: August 08, 2005, 09:49:05 pm »
Yes, I tried various times to compile using make,
but I'm almost sure that C::B outputs bad makefiles.

takeshimiya

  • Guest
Re: Compiling C::B with Make?
« Reply #2 on: August 08, 2005, 10:10:25 pm »
When trying to compile the HEAD from the Makefile.wx2.6 (updated from the CodeBlocks-wx2.6.0.cbp, because the makefile is always outdated in CVS):
I get to the point where codeblocks.dll is generated, and after that:

Code
Linking static library "src\wxDockit\lib\libwxDockIt.a"...
ranlib src/wxDockit/lib/libwxDockIt.a
Calculating dependencies for "src\app.cpp"...
Calculating dependencies for "src\dlgabout.cpp"...
Calculating dependencies for "src\dlgaboutplugin.cpp"...
Calculating dependencies for "src\environmentsettingsdlg.cpp"...
Calculating dependencies for "src\impexpconfig.cpp"...
Calculating dependencies for "src\main.cpp"...
Calculating dependencies for "src\printdlg.cpp"...
Calculating dependencies for "src\startherepage.cpp"...
Compiling "src\app.cpp"...
Compiling "src\dlgabout.cpp"...
Compiling "src\dlgaboutplugin.cpp"...
Compiling "src\environmentsettingsdlg.cpp"...
Compiling "src\impexpconfig.cpp"...
Compiling "src\main.cpp"...
Compiling "src\printdlg.cpp"...
Compiling "src\startherepage.cpp"...
Compiling resources...
mingw32-make: *** No rule to make target `..\wxDockit\lib\libwxdockit.a', needed by `devel/codeblocks.exe'.  Stop.

But this compiles fine from the CodeBlocks-wx2.6.0.cbp project.

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Compiling C::B with Make?
« Reply #3 on: August 10, 2005, 08:58:22 pm »
Oh, my error :oops: Forgot to install the EXTRA.ZIP under mingw. The makefiles codeblocks generate use abundantly the "cp" and "rm -f" commands.

grv575

  • Guest
Re: Compiling C::B with Make?
« Reply #4 on: August 11, 2005, 06:52:01 am »
btw, where are those taken from (rm & cp)?  which unix utils project?

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Compiling C::B with Make?
« Reply #5 on: August 11, 2005, 08:11:56 am »
« Last Edit: August 11, 2005, 08:14:36 am by tiwag »

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Compiling C::B with Make under windows?
« Reply #6 on: August 11, 2005, 04:38:30 pm »
Hmmmm guys I don't know... I was wondering if we could redistribute that package over the coral network... what do you think?

Offline pjk

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Compiling C::B with Make under windows?
« Reply #7 on: December 22, 2005, 10:07:14 am »
I also was wondering about the pedigree of extra.zip.
The zip include a text file which identifies the packager as Julian Smart and the source as UnxUtils.
I have previously searched for the same utilities to enable the scintilla make files to work under cmd.exe and found them at  http://unxutils.sourceforge.net/ which I presume is the same source.
This site  authored by  Karl M. Syring. There are a number of utilities, the origin of some is given but there is no discussion of licence.

The source code is available through CVS attached to http://sourceforge.net/projects/unxutils

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/unxutils login
 
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/unxutils co -P unxutils

I have downloaded the source and the file utilities appear to be early GNU and are therefore freely distributable.
I enclose a header from the cp.c. There is however no copy of the the GNU General Public Licence.

If you made the source available it would seem ok to resdistribute

/* cp.c  -- file copying (main routines)
   Copyright (C) 89, 90, 91, 95, 1996 Free Software Foundation.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software Foundation,
   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

   Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering. */

grv575

  • Guest
Re: Compiling C::B with Make under windows?
« Reply #8 on: December 23, 2005, 04:37:57 am »
does gnu prevent binary only redistribution or just modifications to the source requiring bundling the source (with modifications)?

Offline Urxae

  • Regular
  • ***
  • Posts: 376
Re: Compiling C::B with Make under windows?
« Reply #9 on: December 23, 2005, 11:09:14 am »
does gnu prevent binary only redistribution or just modifications to the source requiring bundling the source (with modifications)?

It doesn't require you to bundle the source, but it does require the source to be available to anyone who can obtain the binaries.
Bundling the source is one way to make sure of that, but you can also put it in a separate download or just only distribute the source.

Offline pjk

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Compiling C::B with Make under windows?
« Reply #10 on: December 24, 2005, 01:51:03 am »
I have compared the files in extra.zip from ftp://biolpc22.york.ac.uk/pub/ports/mingw32/ with the binaries in UnxUtils.zip from http://unxutils.sourceforge.net/. The bison.exe, flex.exe, gunzip.exe and gzip.exe are identical but make.exe, mkdir.exe, mv.exe, rm.exe are all different. mkdir.exe is much newer with a file date stamp of 2002. So clearly the UnxUtils sources would not be adequate to comply with the GNU licence.

It took until today for me to realise the name Julian Smart which appears in extra.txt is the name of the original developer of wxwidgets. I have no confirmation that they are the same person however. One would not have expected him to be loose with the licensing of software downloadable from his ftp site.

Perhaps it would be more prudent to suggest people use the tools from the GNUWIN32 project.
http://gnuwin32.sourceforge.net .
cp.exe, mv.exe, mkdir.exe, rm.exe, rmdir.exe are all to be found in the coreutils package. I must add that I have yet to try them.
 I don't think make is necessary, mingw32-make works fine for me.  zip.exe is also available at GNUWIN32 or from Info-Zip