![]() |
| Le forum de référence en programmation et développement. Articles, cours et tutoriels du débutant au chef de projet et DBA confirmé. | |||||||
|
|||||||
| CORBA Forum d'entraide et de discussion sur le développement distribué avec CORBA & les ORB |
![]() |
|
|
Outils de la discussion |
|
|
#1 (permalink) |
|
Membre du Club
![]() ![]() Date d'inscription: mai 2002
Messages: 82
|
Bonjour,
OS : Windows 2000 Language : C++ Compilateur : Vc++ 6.0 Standard Edition Technologie : Corba J'aimerais développer un serveur C++ qui offre des services à plusieurs client Java. Je vais utiliser la technologie corba afin de les faire communiquer. Après plusieurs recherche, j'ai downloadé la version d'évaluation de Orbacus (OB-4[1].2.0-eval.zip). J'ai dézippé le fichier et après avoir lu le fichier INSTALL.MICROSOFT, j'ai lancé la commande nmake /f Makefile.mak en console (cmd). J'obtient beaucoup d'erreurs : Code :
perl ..\..\config\makedef.pl jtc.def JTC201d Cond.obj Mutex.obj RWMutex.obj Thread.obj Monitor.obj Sync.obj ThreadGroup.obj TSS.obj TSSManager.obj Version.obj 'perl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'perl' : return code '0x1' Stop. link.exe /nologo /debug /subsystem:console /incremental:no /out:ThreadCreateTest.exe ThreadCreateTest.obj ..\lib\jtcd.lib LINK : fatal error LNK1181: cannot open input file "..\lib\jtcd.lib" NMAKE : fatal error U1077: 'link.exe' : return code '0x49d' Stop. link.exe /nologo /debug /subsystem:console /incremental:no /out:Conprod.exe Conprod.obj ..\lib\jtcd.lib LINK : fatal error LNK1181: cannot open input file "..\lib\jtcd.lib" NMAKE : fatal error U1077: 'link.exe' : return code '0x49d' Stop. NMAKE : fatal error U1077: 'for' : return code '0x2' Stop. Faut-il installer d'autres modules, librairies, .. ? Merci pour vos informations... Cordialement,
__________________
L'expérience est une lanterne qui n'éclaire que le chemin déjà parcouru. |
|
|
|
|
|
#2 (permalink) |
|
Membre du Club
![]() ![]() Date d'inscription: mai 2002
Messages: 82
|
Bonjour,
J'ai résolu mon problème d'installation. 1) Prévoir beaucoup de place si vous lancez l'installation full ! (2,17 Gb) 2) dézippez l'archive 3) lancez runconfig.bat le script propose de compiler une librairie partagée, répondez non. Pour compiler la librairie il faut Perl. 4) lancez vcvars32.bat (Pour fixer l'environement VC++) 2) lancez nmake /f Makefile.mak 3) lancez nmake /f Makefile.mak install 4) Fixez vos variables d'environements. cordialement,
__________________
L'expérience est une lanterne qui n'éclaire que le chemin déjà parcouru. |
|
|
|
|
|
#3 (permalink) |
|
Membre régulier
![]() Date d'inscription: décembre 2004
Messages: 113
|
J'ai suivi la démarche de ton 2eme post et j'ai un problème : il me crée un répertoire OOC mais il n'y a aucun fichier a l'intérieur ...
Il me demande plein d'infos lors du runconfig.bat. Je laisse tous les champs vide car je ne sais quoi mettre ... Merci de m'aider @+ Damien |
|
|
|
|
|
#4 (permalink) |
|
Membre du Club
![]() ![]() Date d'inscription: mai 2002
Messages: 82
|
Salut un peu plus de précision
Code :
*******************************************
**Installation of Orbacus 4.1.2 for Win2k**
** MAGNUM_HEAD 29/09/2004 **
*******************************************
REM : You need 2.5 Gb of free space !
1) Install Visual C++ 6.0
2) Install visual C++ Service Pack 5.0
3) unzip OB-4[1].2.0-eval.zip to D:\OOC\OB-4.2.0-eval
4) Open a cmd console
5) runconfig.bat
6) Answer these :
DLL_CURRENT=no
OPTIMIZE_SPEED_CURRENT=no
OPTIMIZE_SIZE_CURRENT=no
DEBUG_CURRENT=no
OLD_IOSTREAM_CURRENT=no
CPPFLAGS_CURRENT=
CXXFLAGS_CURRENT=
LINKFLAGS_CURRENT=
ARFLAGS_CURRENT=
PREFIX_CURRENT=d:\ooc
7) Run vcvars32.bat (It fixes the environment variable for vc++ 6.0 !)
8) Run nmake /F makefile.mak
9) Run nmake /F makefile.mak install
10) You must fixe the environement variable in
System Properties/Advanced/Environment variables/System Variables/Path with
D:\OOC\bin;D:\OOC\lib;D:\OOC\include\OB;
11) Copy Hello.idl and Client.cpp from ob\demo\hello into c:\myhello.
(for the purpose of this demo we will use c:\myhello, this can
be a different directory in practice)
12) Create the Hello stub source files (Hello.cpp Hello.h) by calling "idl --no-skeletons hello.idl"
To generate an implementation class call "idl --impl-all hello.idl"
13) Start Visual C++ 6.0
14) Start the Developer Studio IDE
15) Select File/New from the Visual C++ 6.0 menu. This opens a dialog box with a list of Project types.
16) Select "Win32 Console Application" from the list of project types.
17) Specify c:\ as the directory and myhello as the project name.
18) Specify "An Empty Project".
19) Add Hello.cpp, Hello.h and Client.cpp to your new project.
20) Open the project settings dialog and select the "C++" tab and
the "Code Generation" settings.
21) Select "Multithreaded DLL" from the "use run-time library:" options.
22) Open the Link options by clicking on the "Link" tab.
23) Add ob.lib jtc.lib advapi32.lib wsock32.lib to the
"Object/Library modules" box.
24) Select "Tools/Options" from the menu to open the "Options" dialog box.
25) Add "c:\myhello" and "d:\ooc\include" to the "Include files" directories.
26) Add "d:\ooc\lib" to the "Library files" directories.
27) In the "Project Settings" dialog box.
Click on the "C/C++" tab and select "C++ Language" in the "Category"
drop-down list. To enable exception handling, make sure the "Enable
exception handling" check box has a check in it. RTTI is enabled by
checking the "Enable Run-Time Type Information (RTTI)" box right under
the "Enable exception handling" check box.
28) Build your project
Enjoy it, Fred ;-)
__________________
L'expérience est une lanterne qui n'éclaire que le chemin déjà parcouru. |
|
|
|
|
|
#5 (permalink) |
|
Membre à l'essai
![]() Date d'inscription: janvier 2006
Messages: 44
|
Bonjour,
désolé de remonter un post aussi vieux J'ai bien suivi toute la démarche d'installation, jusqu'à l'étape 8... durant la compilation j'obtiens l'ouverture d'une jolie fenêtre : Debug Error! Program: C:\monchemin\idl.exe This application has requested the Runtime to terminate it in unusual way. Please contact the application's support team for more information. j'ai le choix de "abandonner", "recommencer", ou "ignorer", vous vous doutez qu'aucun choix ne permet de faire avancer le problème et cela ne change rien. Dans la console j'ai plusieurs erreurs : mc IRMsg.mc "mc" n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. nmake : fatal error u1077 : "mc" : code retour "0X1" stop Impossible de trouver c:\chemin\IMR.cpp impossible de trouver c:\chemin\IMR.h ... couldn't find mcpp in PATH non-compliant application detected: null pointer was used to initialisze T_var type assertion failed: p!=0 file Basic.cpp, line 694 J'ai télécharger orbacus depuis le site officiel. Je suis sous Window Xp, avec visual c++ 2008 Rien que ça. Une petite idée....? Merci d'avance |
|
|
|
|
![]() |
![]() |
||
Installation Orbacus
|
||
| Outils de la discussion | |
|
|