[ace-users] Auto-generating dependencies in ACE Makefile using MINGW and MSYS

[ace-users] Auto-generating dependencies in ACE Makefile using MINGW and MSYS

Post by Townsend, » Thu, 01 Jul 2004 21:42:20


ACE VERSION: 5.4.1

HOST MACHINE and OPERATING SYSTEM:
Dell PC (Pentium 4), Windows XP, MinGW, Msys, and GCC.
If on Windows based OS's, which version of WINSOCK do you
use?: ???

TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
COMPILER NAME AND VERSION (AND PATCHLEVEL):
gcc version 3.2.3 (mingw special 20030504-1)

CONTENTS OF $ACE_ROOT/ace/config.h [if you use a link to a platform-
specific file, simply state which one]:
#define ACE_DISABLE_WIN32_ERROR_WINDOWS
#define TAO_HAS_SMART_PROXIES 1
#define TAO_HAS_AMI 1
#define ACE_HAS_STANDARD_CPP_LIBRARY 1
#define TAO_HAS_INTERFACE_REPOSITORY 1
#define TAO_HAS_RT_CORBA 1
#include "ace/config-win32.h"

CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU (unless
this isn't used in this case, e.g., with Microsoft Visual C++):
#static_libs_only=1
debug=1
exceptions=1
include $(ACE_ROOT)/include/makeinclude/platform_mingw32.GNU

AREA/CLASS/EXAMPLE AFFECTED:
Builds work fine.
"make depend" does not work in my environment for any example or my
application.


DOES THE PROBLEM AFFECT:
OTHER (please specify)? "make depend" for examples or my application


SYNOPSIS:
I am using MinGW so that I can use gcc and makefiles to build my application.
Eventually we will be using the gcc compiler for VxWorks so I would like to use
the ACE make structure to create my application. I can build my application fine
but the "make depend" command fails.

DESCRIPTION:
"make depend" fails to run and update make files.
I have a custom application, but since make depend also fails in examples, I'll
use one of those for now:

$ cd $ACE_ROOT/examples/Logger
$ make (everything builds OK!)
...
$ make depend
make -f Makefile SUBDIR_TARGET=depend Acceptor-server.subdir client.subdir
simple-server.subdir
make[1]: Entering directory
`/c/Data/Prototypes/Applications/ACE/ACE_wrappers/examples/Logger'
cd Acceptor-server && make -f Makefile depend
make[2]: Entering directory
`/c/Data/Prototypes/Applications/ACE/ACE_wrappers/examples/Logger/Acceptor-serve
r'
ACE_PLATFORM_CONFIG=config.h OBJEXT=o SOEXT=dll \
VDIR=.obj/ VSHDIR=.shobj/ ACE_DEPEND_SED_CMD="" \
C:/Data/Prototypes/Applications/ACE/ACE_wrappers/bin/g++dep -A -e config.h -f
Makefile -IC:/Data/Prototypes/Applications/ACE/ACE_wrappers
-DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ \
-DMAKEDEPEND server_loggerd.cpp server_loggerd.cpp
In file included from
C:/Data/Prototypes/Applications/ACE/ACE_wrappers/ace/config-win32.h:36,
from
C:/Data/Prototypes/Applications/ACE/ACE_wrappers/ace/config.h:7,
from
C:/Data/Prototypes/Applications/ACE/ACE_wrappers/ace/config-lite.h:24,
from
C:/Data/Prototypes/Applications/ACE/ACE_wrappers/ace/config-all.h:20,
from
C:/Data/Prototypes/Applications/ACE/ACE_wrappers/ace/Basic_Types.h:44,
from
C:/Data/Prototypes/Applications/ACE/ACE_wrappers/ace/SStringfwd.h:22,
from
C:/Data/Prototypes/Applications/ACE/ACE_wrappers/ace/Get_Opt.h:18,
from server_loggerd.cpp:9:
C:/Data/Prototypes/Applications/ACE/ACE_wrappers/ace/config-win32-common.h:346:4
: #error You must link against multi-threaded libraries when using ACE (check
your project settings)
In file included from
C:/Data/Prototypes/Applications/ACE/ACE_wrappers/ace/config-win32.h:36,
 
 
 

[ace-users] Auto-generating dependencies in ACE Makefile using MINGW and MSYS

Post by Johnny Wil » Thu, 01 Jul 2004 21:50:59

i,

Thanks for using the PRF form. I have to say that make depend is never
tested and used on MinGW, you are the first to try ;-). On Linux it works
without problems. The only thing I can recommand is to compare the
commandline options between the normal make and make depend and look what is
missing and how to get rid of the error.

If your end environment is VxWorks, then I would say, stop with MinGW at
this moment. You are now using g++ but with the Win32 api, convert to Linux
or Cygwin (but Cygwin is not fully support and has many problems). VxWorks
is a real hard OS and MinGW is not a good starting point for that.

Regards,

Johnny Willemsen
Remedy IT
Leeghwaterstraat 25
2811 DT Reeuwijk
The Netherlands
www.theaceorb.nl / www.remedy.nl



































































































































 
 
 

[ace-users] Auto-generating dependencies in ACE Makefile using MINGW and MSYS

Post by Johnny Wil » Tue, 06 Jul 2004 17:06:28

Hi,


Besided MinGW, try to setup a Cygwin build then also, this way you are sure
your developers don't use windows specific things.

Because we are moving to MPC I would recommend you to regenerate the
makefiles with MPC and then have a look at the makefiles. Run perl
$(ACE_ROOT)\bin\mwc.pl in the directory and then look at the makefiles.

Johnny
 
 
 

[ace-users] Auto-generating dependencies in ACE Makefile using MINGW and MSYS

Post by Johnny Wil » Wed, 07 Jul 2004 21:56:53

Hi,


MinGW is fully build and tested and MinGW is now a good alternative for
MSVC, everything works as expected. We are now so far with Cygwin that
things build, but about 80% of the ACE tests work, so Cygwin is tested, but
not all tests succeed. Setup is now easy, ACE-INSTALL.html mentiones which
packages you need, install, update the config.h/platform_macros.GNU and
build.


When also using Cygwin you will make the live of the integrator a lot
easier.


We will deliver generated makefiles> For Cygwin/MinGW I am using only the
generated ones for months now.


That is dependent on the base projects you have, look at one of the MPC
files of the TAO tests.


See one of the TAO tests for more examples.

Regards,

Johnny Willemsen
Remedy IT
Leeghwaterstraat 25
2811 DT Reeuwijk
The Netherlands
www.theaceorb.nl / www.remedy.nl