PROPER COMPILATION BUILD PROCESS IN WIN32

classic Classic list List threaded Threaded
35 messages Options
12
Reply | Threaded
Open this post in threaded view
|

PROPER COMPILATION BUILD PROCESS IN WIN32

Sonya Blade
Hi,
 
I usually found it very difficult to perform the compilation process with MinGW of the existing projects(obtained from internet).
There are many projects out there in the net that's been compiled with Gnu, but I rarely succed to compile them, especially if project is big
I have no chance. They includes configure and make files, so I don't know that all of the comilation process can be levaraged with simply
typing "./configure" and "make"
 
Basically my problem boils down to these;
1. Is that configure and make files are, automatically created files or do I have to create them manually (which means I 've to be fully literate about their
content) ?
2. What other files exist(if there are any) in the name of automated compilation process other than configure and make files?
3.Where to find comprehensive info about compilation process ? ( I already looked into Documentation on MingGW web site,  probably due to the fact
that I'm novice or not adopted to the orientation structure , I easily get disgouraged and gave up reading).
 
Any guidance will be appreciated,
 
 
 
 

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Eli Zaretskii
> From: Sonya Blade <[hidden email]>
> Date: Sun, 22 Jan 2012 12:09:51 +0000
>
> 1. Is that configure and make files are, automatically created files or do I have to create them manually (which means I 've to be fully literate about their
> content) ?
> 2. What other files exist(if there are any) in the name of automated compilation process other than configure and make files?
> 3.Where to find comprehensive info about compilation process ? ( I already looked into Documentation on MingGW web site,  probably due to the fact
> that I'm novice or not adopted to the orientation structure , I easily get disgouraged and gave up reading).
>  
> Any guidance will be appreciated,

Install MSYS, and you can run these scripts as if you were on Unix.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Chris Wilson-4
In reply to this post by Sonya Blade
Hi Sonya,

On Sun, 22 Jan 2012, Sonya Blade wrote:

> I usually found it very difficult to perform the compilation process
> with MinGW of the existing projects(obtained from internet).

I'm not an expert but I'll try to help.

> There are many projects out there in the net that's been compiled with
> Gnu, but I rarely succed to compile them, especially if project is big I
> have no chance.

Usually that's because they have not been designed to compile or run on
Windows. Most open source projects are written for Unix environments, and
Windows is not Unix, even with the MinGW tools.

> They includes configure and make files, so I don't know that all
> of the comilation process can be levaraged with simply typing
> "./configure" and "make"

The whole purpose of MinGW is to provide (almost) all the necessary
command-line tools that are needed for configure and make scripts to work.
So they should work. The problem is not usually there; it is in the C/C++
source code, which uses Unix, Linux or BSD features that simply aren't
available on Windows (such as fork()) and doesn't implement replacements
or alternatives.

> Basically my problem boils down to these; 1. Is that configure and make
> files are, automatically created files or do I have to create them
> manually (which means I 've to be fully literate about their content)

It depends on the project. Most projects at least have a Makefile, or use
an alternative build system such as cmake or scons. You can find a list an
biased opinions of various build systems here:

   http://www.scons.org/wiki/SconsVsOtherBuildTools

Microsoft Visual Studio, the most common non-free compiler for Windows
software, contains two build systems, the GUI system which uses "projects"
and "solutions", and nmake for the command line. I reckon most Windows
software is built using "solutions" rather than Makefiles, but Unix is the
opposite.

Some developers did write configure scripts by hand, but it's very hard
and pretty pointless when most of the donkey-work is already done for you
by the automated build tools above, if one learns how to use them
(admittedly not trivial). Some very simple projects only have a Makefile,
and that can be written by hand in simple cases.

> 2. What other files exist(if there are any) in the name of automated
> compilation process other than configure and make files?

That depends entirely on the tool in use to generate them. Autoconf uses
configure.ac as the source code to generate the configure script (which is
usually not human-readable); Automake uses Makefile.am as the source
code to generate the Makefile (also not really human-readable). Other
tools use different files.

> 3.Where to find comprehensive info about compilation process ? (
> I already looked into Documentation on MingGW web site,  probably due to
> the fact that I'm novice or not adopted to the orientation structure , I
> easily get disgouraged and gave up reading).

That documentation assumes familiarity with the Unix tools already. I
would start by understanding the build system used by your existing
project, or choosing one (or experimenting with one) if this is a new
project, preferably one that MinGW supports if your goal is to compile
with MinGW; and *then* look at how to actually use that tool with MinGW.

Hope this helps, Chris.
--
_____ __     _
\  __/ / ,__(_)_  | Chris Wilson <[hidden email]> Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer |
\__/_/_/_//_/___/ | We are GNU : free your mind & your software |
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Sonya Blade
In reply to this post by Sonya Blade
As of that time, I mainly focusing on mesh generation softwares. Here is the couple of them that I couldn't succeed to compile.
CQmesh : http://www.dimap.ufrn.br/~mfsiqueira/Marcelo_Siqueiras_Web_Spot/cqmesh.html

Libmesh : http://libmesh.sourceforge.net/installation.php
 
Stellar : http://www.cs.berkeley.edu/~jrs/stellar/
 
The problem is not, simply to convert the given project, it's a high chance that I'll come across on the net that will require the automated compilation via MinGw one way or the other. Main goal is to understand the logic of how to use it.
 
I still got a couple of questions in mind that's related with MinGW which I didn't digest.
  • Isn't there any visual editor for compilation process ?
  • Some projects comes with make file, other comes with make+configuration files, so that configuration file is not obligatory?
  • How is created those files (configuration, make etc... ) manually or automaticall ? If automatic, by which tool (Cmake) ??
  • Is there F77 compiler in MinGW? (or gfortran is used with setting some compiler switches to serve as F77_
 
Thanks in advance,
 

From: [hidden email]
To: [hidden email]
Subject: RE: [Mingw-users] PROPER COMPILATION BUILD PROCESS IN WIN32
Date: Sun, 22 Jan 2012 12:38:41 +0000

Ciao Sonya.

We've built over 30 applications using MinGW environment and we never had a problem. We have plenty of documentation that can be of your interest. It would help if you let us know which project you're having problem(s) with?

Cheers.


From: [hidden email]
To: [hidden email]
Date: Sun, 22 Jan 2012 12:09:51 +0000
Subject: [Mingw-users] PROPER COMPILATION BUILD PROCESS IN WIN32

Hi,
 
I usually found it very difficult to perform the compilation process with MinGW of the existing projects(obtained from internet).
There are many projects out there in the net that's been compiled with Gnu, but I rarely succed to compile them, especially if project is big
I have no chance. They includes configure and make files, so I don't know that all of the comilation process can be levaraged with simply
typing "./configure" and "make"
 
Basically my problem boils down to these;
1. Is that configure and make files are, automatically created files or do I have to create them manually (which means I 've to be fully literate about their
content) ?
2. What other files exist(if there are any) in the name of automated compilation process other than configure and make files?
3.Where to find comprehensive info about compilation process ? ( I already looked into Documentation on MingGW web site,  probably due to the fact
that I'm novice or not adopted to the orientation structure , I easily get disgouraged and gave up reading).
 
Any guidance will be appreciated,
 
 
 
 

------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________ MinGW-users mailing list [hidden email] This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users Also: mailto:[hidden email]?subject=unsubscribe

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

lrn-2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22.01.2012 18:39, Sonya Blade wrote:
>
> As of that time, I mainly focusing on mesh generation softwares.
> Here is the couple of them that I couldn't succeed to compile.
> CQmesh :
> http://www.dimap.ufrn.br/~mfsiqueira/Marcelo_Siqueiras_Web_Spot/cqmesh.html
Simple
>
editable makefile, which means low level of automation. If the
makefile was written for *nix systems, you might have difficult time
fixing it to work on W32 (it's slightly easier with MSys, but might
still pose problems)
> Libmesh : http://libmesh.sourceforge.net/installation.php
Autotools! Just
$ cd directorywheresourcefilesare
$ ./configure --prefix=/mingw
$ make
If there's no configure file, you have to run
$ autoreconf -fi
(or something similar) first, but that doesn't always work
Obviously, all that implies that you're doing that from MSys
> Stellar : http://www.cs.berkeley.edu/~jrs/stellar/
Same as CQmesh - custom makefile. Good luck with that one.
> The problem is not, simply to convert the given project, it's a
> high chance that I'll come across on the net that will require the
> automated compilation via MinGw one way or the other. Main goal is
> to understand the logic of how to use it.
Logic is:
1) Run MSys
2) Invoke the buildsystem (whichever is used by the project -
configure script, makefile, etc) from Msys.
3) If it doesn't work - find out why (but that usually requires good
understanding of the process).
Configure script leaves a file `config.log' with details about tests
it performs.
> I still got a couple of questions in mind that's related with MinGW
> which I didn't digest.
>
> Isn't there any visual editor for compilation process ?
I don't think there is.
> Some projects comes with make file, other comes with
> make+configuration files, so that configuration file is not
> obligatory?
No, if there's a configure file, in 99% of cases you have to use it.
> How is created those files (configuration, make etc... ) manually
> or automaticall ? If automatic, by which tool (Cmake) ??
Makefile.am's are processed by automake to create Makefile.in's
configure.ac is processed by automake to create configure.in
configure.in is processed by autoconf to create configure
configure runs and creates config.status, runs it immediately,
creating Makefile's from Makefile.in's.
Something like that. The part before "configure runs" is usually done
by the developer before packing the tarball, so users don't usually
have to do that (OTOH, on W32 you might need to fix .m4 or .am or .ac
files, in which case you WILL need to regenerate configure before
running it)

In some (relatively rare) cases either configure.in is written by hand
(instead of being generated from configure.ac) OR configure script
itself is written by hand (i think, ffmpeg does that).

CMake is not compatible with Msys and works only with MinGW. It
generates a dummy makefiles for various `make' variants, but under the
hood CMake toolset does all the work, and then invokes MinGW.

Scons is not compatible either. Scons does everything by itself
(except for, maybe, using pkg-config in some cases) and invokes MinGW
tools as necessary (scons scripts usually reqire a bit of hacking to
make sure that they use MinGW tools on W32, not MSVC).

Most non-autotools-based buildsystems are not compatible with MSys
(or, to be precise, MSys was never meant to be able to run them)

P.S. Do read http://www.mingw.org/Mailing_Lists
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPHCahAAoJEOs4Jb6SI2CwIO8H/j7awA2ntI29i3/i3Wd/CjDX
E/LeQ+Vfume7210Nd5LytuX+Wr61JATHmb58wBP+s8CEWpbK8hx9ThhXulTRzBc2
D4CM7WLzLAvG/6QqhV/foMD3ouVj5EbBt4ZPNYBjCF2Qy7+h6nRLLD88d5DC4ZOt
DHF6Lk5fQr7z6aSW5ALjsORD6pJuhlC9+fvMb8+EUi+E1BpncMS3pHTaizrV824A
hE56t1YKugaiEUCQ2FuVM672UuYCh7z6H6P6xpvjUZtxW7rSbRibRgWnNQ/ffKWT
4qFdtACq+UPPna/xSCqUJd364ra7fIZyhEtV0nAOLxlADBtQUYAt/khe/PF/hFQ=
=Vx33
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Keith Marshall
On 22/01/12 15:09, LRN wrote:
> configure.ac is processed by automake to create configure.in

No, it isn't!  configure.ac is processed by autoconf directly, to
generate configure ...

> configure.in is processed by autoconf to create configure

configure.in is an old name, used by ancient versions of autoconf
instead of configure.ac -- still supported, but deprecated; don't use it
for any new project, and consider renaming it when updating an old project.

--
Regards,
Keith.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Jared Maddox
In reply to this post by Sonya Blade
> Date: Sun, 22 Jan 2012 14:39:15 +0000
> From: Sonya Blade <[hidden email]>
> Subject: Re: [Mingw-users] PROPER COMPILATION BUILD PROCESS IN WIN32
> To: <[hidden email]>, <[hidden email]>
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset="windows-1254"

> The problem is not, simply to convert the given project, it's a high chance
> that I'll come across on the net that will require the automated compilation
> via MinGw one way or the other. Main goal is to understand the logic of how
> to use it.
>

The usual process is to type these three lines, hitting enter (or your
keyboard's equivalent) after each line:

./configure
make
make install

The *nix build system that make comes from (as well as the GNU build
system, which extends the *nix build system with configure) is
flexible enough that a project can choose to do something different,
and possibly something more complex, but usually those three lines
(and occasionally extra options to them) are all you need.

Most of the complexity is concealed inside configure (which itself
is/requires several different programs and project files to do complex
things; it was created to help programmers recognize and compensate
for differences between various operating systems).

> Isn't there any visual editor for compilation process ?

You could probably find one (or more) but they'd just be issuing text
commands, so you'd benefit more from using a command-line, so that you
can watch the results. A visual editor might make sense for actual
code MODIFICATIONS though, and if you find one that you like with a
text-prompt then it would probably be the best of both worlds.

> Some projects comes with make file, other comes with make+configuration
> files, so that configuration file is not obligatory?

No they aren't, and makefiles aren't obligatory either. The only
things that are genuinely required are the relevant compilers (e.g.
f77) and the programs necessary to turn the output of the compilers
into the end-result that you're looking for (compilers normally
produce 'object files', which are essentially pieces of a program
instead of an actual program; these are then 'linked' with libraries
to create programs and/or more libraries).

> How is created those files (configuration, make etc... ) manually or
> automaticall ?

Yes (meaning: Both). The instructions for creating the files for make
and configure are available online, though I've personally only tried
my hand at make. Note that different versions of make are capable of
different 'extra' things, some things don't work in some versions of
make!

1) configure and make are both command-line tools.

2) configure looks for several files, and uses them and some
information already located on your computer to create a Makefile. If
the project doesn't say to use configure, then that usually means that
a Makefile is already included (note that while there are several
standard names for makefiles, they're all similar to each other, such
as GNUMakefile, Makefile, and makefile).

3) make looks for a makefile (it will automatically look for one with
a preference for particular ones, but you can force it to use a
specific one if you want), and then uses that makefile to issue
commands to more command-line tools. The details of what it does
depend on the instructions inside the makefile, the 'freshness' (date
of the last modification) of files that are listed inside the
makefile, and any 'targets' that you specify on the command line.

4) "make install" runs the instructions specified inside a makefile,
in order to achieve the "install" target. It commonly allows such
things as specifying a folder location to install the resulting
program(s) into.

It's also possible to use a sh file (shell script file) as a
replacement for one or both of these (if I recall correctly, both were
originally replacements for shell scripts).

> If automatic, by which tool (Cmake) ??

I believe that CMake can create makefiles (and projects for MSVC,
etc.), but CMake is completely different from configure or make.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Sonya Blade
In reply to this post by Sonya Blade

Thank you all for helping,
 
I'm still studying, what should be the content of makefile and proper syntax. The main malfunctioning part in my idea is,
the makefile is supposed to include somekind of external dependencies header from (CGAL and GMP).
 
CGAL_INCLUDE = -I/usr/local/include
CGAL_LIB     = -L/usr/local/lib

GMP_INCLUDE = -I/usr/local/include
GMP_LIB     = -I/usr/local/lib

Those are Unix-like definition, I've also read the "Using Headers Provided with Locally Installed External Libraries" and
converted them to Win equivalents.
CGAL_INCLUDE = -I/ C:\........\CGAL\include
CGAL_LIB     = -L/ C:\.......\CGAL\include
 
...
...
but still makefile produces the erros about not found header files ("enum.h, intersections.h etc...)which I surely know they exist
under the defined folder (C:\........\CGAL\include).
 
What's wrong here syntax? or do I have to include that search path into enviromental variables?
 
Regards,
 
 

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Eli Zaretskii
> From: Sonya Blade <[hidden email]>
> Date: Mon, 23 Jan 2012 10:04:53 +0000
>
> I'm still studying, what should be the content of makefile and proper syntax. The main malfunctioning part in my idea is,
> the makefile is supposed to include somekind of external dependencies header from (CGAL and GMP).
>  
> CGAL_INCLUDE = -I/usr/local/include
> CGAL_LIB     = -L/usr/local/lib
>
> GMP_INCLUDE = -I/usr/local/include
> GMP_LIB     = -I/usr/local/lib
>
> Those are Unix-like definition, I've also read the "Using Headers Provided with Locally Installed External Libraries" and
> converted them to Win equivalents.
> CGAL_INCLUDE = -I/ C:\........\CGAL\include
> CGAL_LIB     = -L/ C:\.......\CGAL\include
>  
> ...
> ...
> but still makefile produces the erros about not found header files ("enum.h, intersections.h etc...)which I surely know they exist
> under the defined folder (C:\........\CGAL\include).
>  
> What's wrong here syntax? or do I have to include that search path into enviromental variables?

Lose the "/" part after -I and -L.  Like this:

  CGAL_INCLUDE = -I C:\........\CGAL\include
  CGAL_LIB     = -L C:\.......\CGAL\include

Better yet, use forward slashes:

  CGAL_INCLUDE = -IC:/......../CGAL/include
  CGAL_LIB     = -LC:/......./CGAL/include

Surprising as it might look, Windows is perfectly capable to deal with
Unix-style forward slashes.

It is better to use forward slashes because backslashes serve as
escape characters in certain contexts within a makefile.  They will
bite you some day.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Sonya Blade
In reply to this post by Sonya Blade
>Better yet, use forward slashes:
>
>  CGAL_INCLUDE = -IC:/......../CGAL/include
>  CGAL_LIB     = -LC:/......./CGAL/include


Instead of that, If I wrap the  "CGAL_INCLUDE = -I "C:/Program Files/CGAL-3.9/include/" into double quotes, I get the full plethora of
syntax errors relating to CGAL library. That 's not supposed to be.



 

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Earnie Boyd
2012/1/23 Sonya Blade <[hidden email]>:

>>Better yet, use forward slashes:
>>
>>  CGAL_INCLUDE = -IC:/......../CGAL/include
>>  CGAL_LIB     = -LC:/......./CGAL/include
>
>
> Instead of that, If I wrap the  "CGAL_INCLUDE = -I "C:/Program
> Files/CGAL-3.9/include/" into double quotes, I get the full plethora of
> syntax errors relating to CGAL library. That 's not supposed to be.
>

Spaces in path names are really a horrible idea and most likely the
cause of your problems.  Change "C:/Program Files" to "c:/progra~1"
and see if it helps.

--
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Sonya Blade
In reply to this post by Sonya Blade
>Spaces in path names are really a horrible idea and most likely the
>cause of your problems.  Change "C:/Program Files" to "c:/progra~1"
>and see if it helps.
>
>--
>Earnie
>-- https://sites.google.com/site/earnieboyd

Tried that w/o success, same issue couldn't find the headers again.
 
./src/common/typdefs.h :6:28 error CGAL/Exact_predicates_inexact_constructions_kernel.h :No such file or directory
.....
....
 

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Eli Zaretskii
In reply to this post by Sonya Blade
> From: Sonya Blade <[hidden email]>
> Date: Mon, 23 Jan 2012 11:51:15 +0000
> Reply-To: MinGW Users List <[hidden email]>
>
> >Better yet, use forward slashes:
> >
> >  CGAL_INCLUDE = -IC:/......../CGAL/include
> >  CGAL_LIB     = -LC:/......./CGAL/include
>
>
> Instead of that, If I wrap the  "CGAL_INCLUDE = -I "C:/Program Files/CGAL-3.9/include/" into double quotes, I get the full plethora of
> syntax errors relating to CGAL library. That 's not supposed to be.

Does it help to use 'C:/Program Files/CGAL-3.9/include/' (i.e. single
quotes) instead?

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Sonya Blade
In reply to this post by Sonya Blade
>Does it help to use 'C:/Program Files/CGAL-3.9/include/' (i.e. single
>quotes) instead?

With or w/o single quotes, w or w/o space char in the files path doesn't work (that is, couldn't find the headers for CGAL).
I tried every single combination, the only thing that is working is, file path with double quotes and produces plenty of errors
oin CGAL library.
 
If you want I can upload the makfile, could you take a look at it.
 
Also here is the web site for the project. It seems the compilatio is simple, when you see that it have well-organized couple of files.
http://www.dimap.ufrn.br/~mfsiqueira/Marcelo_Siqueiras_Web_Spot/cqmesh.html
 

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe

makefile (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Sonya Blade
>Does it help to use 'C:/Program Files/CGAL-3.9/include/' (i.e. single
>quotes) instead?

With or w/o single quotes, w or w/o space char in the files path doesn't work (that is, couldn't find the headers for CGAL).
I tried every single combination, the only thing that is working is, file path with double quotes and produces plenty of errors
in CGAL library.
 
If you want I can upload the makfile, could you take a look at it.
 
Also here is the web site for the project. It seems the compilatio is simple, when you see that it have well-organized couple of files.
http://www.dimap.ufrn.br/~mfsiqueira/Marcelo_Siqueiras_Web_Spot/cqmesh.html
 


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

lrn-2
In reply to this post by Eli Zaretskii
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 23.01.2012 14:36, Eli Zaretskii wrote:

>> From: Sonya Blade <[hidden email]> Date: Mon, 23 Jan
>> 2012 10:04:53 +0000
>>
>> I'm still studying, what should be the content of makefile and
>> proper syntax. The main malfunctioning part in my idea is, the
>> makefile is supposed to include somekind of external dependencies
>> header from (CGAL and GMP).
>>
>> CGAL_INCLUDE = -I/usr/local/include CGAL_LIB     =
>> -L/usr/local/lib
>>
>> GMP_INCLUDE = -I/usr/local/include GMP_LIB     =
>> -I/usr/local/lib
>>
>> Those are Unix-like definition, I've also read the "Using Headers
>> Provided with Locally Installed External Libraries" and converted
>> them to Win equivalents. CGAL_INCLUDE = -I/
>> C:\........\CGAL\include CGAL_LIB     = -L/
>> C:\.......\CGAL\include
Another option is to simply install CGAL into /mingw/ or /usr/local/
giving -I/usr/local/include and -L/usr/local/lib is not a problem, and
giving -I/mingw/include or -L/mingw/lib is not even necessary -
compiler will add these automatically.
Putting everything into /mingw/ does create a bit of a chaos though.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPHWAhAAoJEOs4Jb6SI2CwNPgIALPtSN96IgwfXdnlX5evMVrx
8aHn7GEI2X3w9Z7iyCBAtUbmT11Bw3lfpwo2ZtXxCdB1ZTgyeWfTTT4fsj4y27vk
iwMBpGAkWUUYAh9o506voiYX6bfnydY6osPE29tYV9Hod39QQJQjCdCe8vFLEUEX
TTaMpGyTc+VkRm19WjEMvS/Te73vpkh9DvUJP64tXmA/Qn3z/cz1rW8PuvMbBeEX
G8pOxygeVSA459qaLKhfzL0gb7YdE8bIoK9E17ykFRiEB52b/DoIeiEY4fBod2Ro
nOU93sERFcDVRu12Sa23ga0frnCWiZvCVLn9psJYdIJcuuL256RbUuLpOS04rfA=
=qxIl
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Eli Zaretskii
In reply to this post by Sonya Blade
> From: Sonya Blade <[hidden email]>
> Date: Mon, 23 Jan 2012 12:53:14 +0000
>
> >Spaces in path names are really a horrible idea and most likely the
> >cause of your problems.  Change "C:/Program Files" to "c:/progra~1"
> >and see if it helps.
> >
> Tried that w/o success, same issue couldn't find the headers again.
>  
> ./src/common/typdefs.h :6:28 error CGAL/Exact_predicates_inexact_constructions_kernel.h :No such file or directory

Show the command issued by Make which triggered this error message,
and maybe someone will have a clue.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Sonya Blade
In reply to this post by Sonya Blade
> Tried that w/o success, same issue couldn't find the headers again.

> ./src/common/typdefs.h :6:28 error CGAL/Exact_predicates_inexact_constructions_kernel.h :No such file or directory
>Show the command issued by Make which triggered this error message,
>and maybe someone will have a clue.

To me everything seems normal, just a couple macros defined
in my idea weak havoc is those code lines in makefile :
......
CGAL_INCLUDE = -I C:/Program Files/CGAL-3.9/include
.......
OBJ = vertex2.o halfedge2.o edge2.o face2.o boundary2.o bbox2.o complex2.o \
      dualgraph.o regiongraph.o sptree.o edgekey.o polygon2.o tri2.o quad2.o \
      iomesh2.o mesh2.o compquad.o gencontrol.o cqm.o
 
cqm: $(OBJ)
 $(CC) $(LDFLAGS) $(OBJ) -o cqm $(LIB_FLAGS) $(LIBS);
# mv cqm ./bin/cqm
 
vertex2.o: $(INC1)/typedefs.h $(INC2)/vertex2attrib.h \
           $(INC2)/vertex2.h $(INC2)/vertex2.cc
 $(CC) $(CFLAGS) $(INC2)/vertex2.cc $(INC_FLAGS) $(CGAL_INCLUDE)
 
halfedge2.o: $(INC2)/vertex2.h \
             $(INC2)/halfedge2.h $(INC2)/halfedge2.cc
 $(CC) $(CFLAGS) $(INC2)/halfedge2.cc $(INC_FLAGS) $(CGAL_INCLUDE)


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Emanuel Falkenauer

Hi Sonya,

 

>CGAL_INCLUDE = -I C:/Program Files/CGAL-3.9/include

IMHO you should move your installation from "C:/Program Files" to a directory with NO SPACES, say "C:/Programs" created for that purpose. I've seen very strange behavior in my MinGW as long as my directories contained spaces - it looks like somewhere in the parameter-passing among the various tools, spaces are interpreted as "end-of-param", which would in your case result in the include directory being just "C:/Program", which obviously does not exist nor contain your headers.

 

You may also wish to first put quotes around your space-containing directory, i.e.

 

CGAL_INCLUDE = -I "C:/Program Files/CGAL-3.9/include"

 

but honestly even that didn't always work for me.

 

 

Good luck (I do agree it's not simple)!

 

Emanuel

 


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: PROPER COMPILATION BUILD PROCESS IN WIN32

Eli Zaretskii
In reply to this post by Sonya Blade
> From: Sonya Blade <[hidden email]>
> Date: Mon, 23 Jan 2012 21:29:28 +0000
>
> > Tried that w/o success, same issue couldn't find the headers again.
> >  
> > ./src/common/typdefs.h :6:28 error CGAL/Exact_predicates_inexact_constructions_kernel.h :No such file or directory
> >Show the command issued by Make which triggered this error message,
> >and maybe someone will have a clue.
>
> To me everything seems normal, just a couple macros defined
> in my idea weak havoc is those code lines in makefile :
> ......
> CGAL_INCLUDE = -I C:/Program Files/CGAL-3.9/include

This will never work unless you quote the file name with embedded
whitespace.

> OBJ = vertex2.o halfedge2.o edge2.o face2.o boundary2.o bbox2.o complex2.o \
>       dualgraph.o regiongraph.o sptree.o edgekey.o polygon2.o tri2.o quad2.o \
>       iomesh2.o mesh2.o compquad.o gencontrol.o cqm.o
>  
> cqm: $(OBJ)
>  $(CC) $(LDFLAGS) $(OBJ) -o cqm $(LIB_FLAGS) $(LIBS);
> # mv cqm ./bin/cqm
>  
> vertex2.o: $(INC1)/typedefs.h $(INC2)/vertex2attrib.h \
>            $(INC2)/vertex2.h $(INC2)/vertex2.cc
>  $(CC) $(CFLAGS) $(INC2)/vertex2.cc $(INC_FLAGS) $(CGAL_INCLUDE)
>  
> halfedge2.o: $(INC2)/vertex2.h \
>              $(INC2)/halfedge2.h $(INC2)/halfedge2.cc
>  $(CC) $(CFLAGS) $(INC2)/halfedge2.cc $(INC_FLAGS) $(CGAL_INCLUDE)

That's not the command, these are the macros used to construct the
command.  I meant show the actual GCC compilation command that caused
the error messages.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
12