Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a binary from Makefile

Status
Not open for further replies.

programmer400

Programmer
Nov 8, 2006
17
IN
Dear friends

We are in the process of creating the new server binary for Systinet
Server for C++ . We have compiled the demo folder with the command
./configure CXX= /opt/aCC/bin/aCC and then also managed to compile the
hello demo with wsdl compiler. Now to run a demo we need to have the
server binary up and running also the same with the client binary.
The listing under
/export/home/amitbas/systinet/server_cpp65/share/doc/waspc/demos/server
is
$ ls -al
total 154
drwxr-xr-x 3 amitbas users 1024 Nov 10 13:25 .
drwxr-xr-x 12 amitbas users 1024 Nov 10 13:27 ..
drwxrwxrwx 2 amitbas users 96 Nov 10 13:25 .deps
-rw-rw-rw- 1 amitbas users 26058 Nov 10 13:25 Makefile
-rwxr-xr-x 1 amitbas users 1054 Nov 10 08:10
Makefile.am
-rwxr-xr-x 1 amitbas users 30361 Nov 10 08:10
Makefile.in
-rwxr-xr-x 1 amitbas users 665 Nov 10 08:10 README
-rwxr-xr-x 1 amitbas users 646 Nov 10 08:10
config-base.src.xml
-rwxr-xr-x 1 amitbas users 358 Nov 10 08:10
config.src.xml
-rwxr-xr-x 1 amitbas users 318 Nov 10 08:10
endpoints-common.xml
-rwxr-xr-x 1 amitbas users 251 Nov 10 08:10
endpoints-native.xml
-rwxr-xr-x 1 amitbas users 211 Nov 10 08:10
endpoints-openssl.xml
-rwxr-xr-x 1 amitbas users 2687 Nov 10 08:10
endpoints-stlnative.xml
-rwxr-xr-x 1 amitbas users 256 Nov 10 08:10
endpoints-wss.xml
-rwxr-xr-x 1 amitbas users 6616 Nov 10 08:10 server.cpp


We are stuck in creating the binary to run the server.
Can someone please let us know the steps in creating the binary of
server


Thanks for your time

 
I performed the WSDL compilation from the directory /systinet/server_cpp65/share/doc/waspc/demos/interop/java
And it successfully generated the file barnImpl.h under the above path.
Again I tried to did make and got the errors which I am posting here
Error 419: "../interop/java/impl.h", line 14 # 'Barn_BarnServiceImpl' is used as a type, but has not been defined as a type.
class BarnServerImpl : public Barn_BarnServiceImpl {
^^^^^^^^^^^^^^^^^^^^
Error 376: "../interop/java/impl.h", line 14 # Class name expected.
class BarnServerImpl : public Barn_BarnServiceImpl {
^^^^^^^^^^^^^^^^^^^^
Error 419: "../interop/java/impl.h", line 16 # 'Barn_CowArray' is used as a type, but has not been defined as a type.
Barn_CowArray *cows;
^^^^^^^^^^^^^
Error 20: "../interop/java/impl.h", line 18 # '[' expected before '*'.
Barn_Cow *findCowWithID (Barn_CowArray *where, WASP_LongLong id);
^
Error 19: "../interop/java/impl.h", line 18 # Unexpected 'WASP_LongLong'.
Barn_Cow *findCowWithID (Barn_CowArray *where, WASP_LongLong id);
^^^^^^^^^^^^^
Error 24: "../interop/java/impl.h", line 18 # '(' expected instead of ';'.
Barn_Cow *findCowWithID (Barn_CowArray *where, WASP_LongLong id);
^
Error 22: "../interop/java/impl.h", line 19 # Syntax error.
Barn_Cow *cloneCow (Barn_Cow *cow);
^
Error 419: "../interop/java/impl.h", line 25 # 'Barn_ArrayOflong' is used as a type, but has not been defined as a type.
virtual void slaughterCows (Barn_ArrayOflong * p0);
^^^^^^^^^^^^^^^^
Error 20: "../interop/java/impl.h", line 26 # ':' expected before '*'.
virtual Barn_ArrayOfdouble * actualMilkYield (Barn_ArrayOflong * p0);
^
Error 172: "../interop/java/impl.h", line 26 # Undeclared variable 'Barn_ArrayOflong'.
virtual Barn_ArrayOfdouble * actualMilkYield (Barn_ArrayOflong * p0);
^^^^^^^^^^^^^^^^
Error 335: "../interop/java/impl.h", line 26 # ANSI C and C++ do not allow named bitfield with zero width.
virtual Barn_ArrayOfdouble * actualMilkYield (Barn_ArrayOflong * p0);
^^^^^^^^^^^^^^^^^^
Error 334: "../interop/java/impl.h", line 26 # Bitfield width cannot be larger than the size of its type ''.
virtual Barn_ArrayOfdouble * actualMilkYield (Barn_ArrayOflong * p0);
^^^^^^^^^^^^^^^^^^
Error 699: "../interop/java/impl.h", line 26 # Error limit reached; halting compilation.
virtual Barn_ArrayOfdouble * actualMilkYield (Barn_ArrayOflong * p0);
^^^^^^^^^^^^^^^^^^
*** Error exit code 2
---------------------------------------------------------------------------
impl.h file which is giving problems looks OK to me

#ifndef __WASP_DEMO_BARN_SERVICE_H
#define __WASP_DEMO_BARN_SERVICE_H

#include

#include

// Generated code includes
#include "../java/barnImpl.h"

class BarnServerImpl : public Barn_BarnServiceImpl {

Barn_CowArray *cows;

Barn_Cow *findCowWithID (Barn_CowArray *where, WASP_LongLong id);
Barn_Cow *cloneCow (Barn_Cow *cow);

public:
BarnServerImpl();
virtual ~BarnServerImpl();

virtual void slaughterCows (Barn_ArrayOflong * p0);
virtual Barn_ArrayOfdouble * actualMilkYield (Barn_ArrayOflong * p0);
virtual Barn_ArrayOfCow * cowsForSlaughter ();
virtual Barn_ArrayOfCow * getCows (Barn_ArrayOflong * p0);
virtual double barnRating ();
virtual Barn_Cow * theBestCow ();
virtual Barn_ArrayOfCow * getAllCows ();

};

#endif // __WASP_DEMO_BARN_SERVICE_H

Is it that the JNI package installed which is required for building that module is missing thats why its throwing such errors ?

Thanks
Amit
 
Sounds like you don't know what a make file is... It's a file with rules on how to build a program. In distributing softeare, it's typically created itself by an autoconf (./configure) (which just determines which libraries and compilers to use in the makefile). Sounds like all you have to do is run make (which should be on your system already).

What happens when you run make, or make all?

If those work, then all that is left is to make install.

Makefiles and the make command are beautiful things, for more information man make, and then google arround for "greg greycat make" which should get you to a very nice basic explanation of makefiles.

[plug=shameless]
[/plug]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top