用于UML的Doxygraph显示来自doxygen的类

时间:2016-02-09 15:52:05

标签: c++ perl doxygen doxygen-wizard

使用doxygen我创建了我的c ++类的文档。在doxyfile中我设置了标志' GENERATE_XML = YES'因为我希望在doxygraph的帮助下创建我的类的UML表示。 doxygraph是用perl编写的,我不太了解它,并且它不能立即使用。你必须包含一些库,我所强调的点是在库Want。有人设法使doxygraph有效吗?如果有,怎么样? 当我试图运行命令

perl doxygraph  path/to/doxygen/html/index.xml path/to/output/graph.dot

我收到以下错误:

 Can't locate loadable object for module Want in @INC 
(@INC contains: C:/Strawberry/cpan/build/Set-Array/Want C:/Strawberry/cpan/build/Set-Array/blib/lib C:/Strawberry/cpan/build/Data-Section-Simple/lib/Data/Section C:/Strawberry/cpan/build/GraphViz2/lib C:/Strawberry/cpan/build/Hash-FieldHash/lib/Hash P:/Stathis/Work/Projects/Notifier/doc/doxygraph-master/doxygraph/lib C:/Perl64/cpan/build/lib-abs/blib/lib C:/Strawberry/perl/site/lib C:/Strawberry/perl/vendor/lib C:/Strawberry/perl/lib .) at C:/Strawberry/cpan/build/Set-Array/blib/lib/Set/Array.pm line 9.
    Compilation failed in require at C:/Strawberry/cpan/build/Set-Array/blib/lib/Set/Array.pm line 9.
    BEGIN failed--compilation aborted at C:/Strawberry/cpan/build/Set-Array/blib/lib/Set/Array.pm line 9.
    Compilation failed in require at C:/Strawberry/cpan/build/GraphViz2/lib/GraphViz2.pm line 21.
    BEGIN failed--compilation aborted at C:/Strawberry/cpan/build/GraphViz2/lib/GraphViz2.pm line 21.
    Compilation failed in require at P:/Stathis/Work/Projects/Notifier/doc/doxygraph-master/doxygraph/lib/GraphViz/UML.pm line 11.
    BEGIN failed--compilation aborted at P:/Stathis/Work/Projects/Notifier/doc/doxygraph-master/doxygraph/lib/GraphViz/UML.pm line 11.
    Compilation failed in require at doxygraph line 9.
    BEGIN failed--compilation aborted at doxygraph line 9.

我已经安装了Want模块,但我仍然遇到此错误。

来自cpan我写道:Install Want

我得到了:

    cpan> install Want
Database was generated on Tue, 09 Feb 2016 11:14:01 GMT

Want is up to date (0.26).

Array.pm内,我添加了以下依赖项:

use lib "C:/Strawberry/cpan/build/Set-Array/Want";

CPAN>安装Set :: Array

    cpan> install Set::Array
Running install for module 'Set::Array'
Checksum for C:\STRAWB~1\cpan\sources\authors\id\R\RS\RSAVAGE\Set-Array-0.30.tgz ok
Scanning cache C:\STRAWB~1\cpan\build for sizes
............................................................................DONE
Configuring R/RS/RSAVAGE/Set-Array-0.30.tgz with Build.PL
Checking prerequisites...
  requires:
    !  Want is not installed

ERRORS/WARNINGS FOUND IN PREREQUISITES.  You may wish to install the versions
of the modules indicated above before proceeding with this installation

Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Set-Array' version '0.30'
  RSAVAGE/Set-Array-0.30.tgz
  C:\Strawberry\perl\bin\perl.exe Build.PL -- OK
Running Build for R/RS/RSAVAGE/Set-Array-0.30.tgz
---- Unsatisfied dependencies detected during ----
----        RSAVAGE/Set-Array-0.30.tgz        ----
    Want [requires]
Running install for module 'Want'
Checksum for C:\STRAWB~1\cpan\sources\authors\id\R\RO\ROBIN\Want-0.26.tar.gz ok
Configuring R/RO/ROBIN/Want-0.26.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Want
Writing MYMETA.yml and MYMETA.json
  ROBIN/Want-0.26.tar.gz
  C:\Strawberry\perl\bin\perl.exe Makefile.PL -- OK
Running make for R/RO/ROBIN/Want-0.26.tar.gz
cp Want.pm blib\lib\Want.pm
Running Mkbootstrap for Want ()
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 "Want.bs"
"C:\Strawberry\perl\bin\perl.exe" "C:\Strawberry\perl\lib\ExtUtils\xsubpp"  -typemap "C:\STRAWB~1\perl\lib\ExtUtils\typemap"  Want.xs > Want.xsc && "C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e mv -- Want.xsc Want.c
gcc -c          -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2     -DVERSION=\"0.26\"    -DXS_VERSION=\"0.26\"  "-IC:\STRAWB~1\perl\lib\CORE"   Want.c
In file included from C:\STRAWB~1\perl\lib\CORE/hv.h:629:0,
                 from C:\STRAWB~1\perl\lib\CORE/perl.h:3740,
                 from Want.xs:2:
C:\STRAWB~1\perl\lib\CORE/hv_func.h: In function 'S_perl_hash_murmur3':
C:\STRAWB~1\perl\lib\CORE/hv_func.h:403:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Mksymlists \
     -e "Mksymlists('NAME'=>\"Want\", 'DLBASE' => 'Want', 'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_VARS' => []);"
dlltool --def Want.def --output-exp dll.exp
g++ -o blib\arch\auto\Want\Want.xs.dll -Wl,--base-file -Wl,dll.base -mdll -s -L"C:\STRAWB~1\perl\lib\CORE" -L"C:\STRAWB~1\c\lib" Want.o   "C:\STRAWB~1\perl\lib\CORE\libperl522.a" -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -l
ws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp
Want.o:Want.c:(.text+0xd): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0x6e): undefined reference to `__imp_Perl_sv_2mortal'
Want.o:Want.c:(.text+0xb3): undefined reference to `__imp_Perl_croak_xs_usage'
Want.o:Want.c:(.text+0xfa): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0x15f): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0x30b): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0x383): undefined reference to `__imp_Perl_croak_xs_usage'
Want.o:Want.c:(.text+0x395): undefined reference to `__imp_Perl_croak'
Want.o:Want.c:(.text+0x3ad): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0x42b): undefined reference to `__imp_Perl_sv_2iv_flags'
Want.o:Want.c:(.text+0x449): undefined reference to `__imp_Perl_sv_newmortal'
Want.o:Want.c:(.text+0x496): undefined reference to `__imp_Perl_sv_setuv'
Want.o:Want.c:(.text+0x4aa): undefined reference to `__imp_Perl_mg_set'
Want.o:Want.c:(.text+0x50f): undefined reference to `__imp_Perl_croak_nocontext'
Want.o:Want.c:(.text+0x51f): undefined reference to `__imp_Perl_croak_xs_usage'
Want.o:Want.c:(.text+0x543): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0x7a9): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0x7cf): undefined reference to `__imp_Perl_croak_nocontext'
Want.o:Want.c:(.text+0x7eb): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0x869): undefined reference to `__imp_Perl_sv_2iv_flags'
Want.o:Want.c:(.text+0x893): undefined reference to `__imp_Perl_sv_2mortal'
Want.o:Want.c:(.text+0x901): undefined reference to `__imp_Perl_croak_xs_usage'
Want.o:Want.c:(.text+0x970): undefined reference to `__imp_Perl_die_nocontext'
Want.o:Want.c:(.text+0x9d0): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0xa03): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0xa39): undefined reference to `__imp_Perl_die_nocontext'
Want.o:Want.c:(.text+0xb73): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0xba9): undefined reference to `__imp_Perl_die_nocontext'
Want.o:Want.c:(.text+0xbb9): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0xbdf): undefined reference to `__imp_Perl_croak_nocontext'
Want.o:Want.c:(.text+0xbfd): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0xc28): undefined reference to `__imp_Perl_croak_nocontext'
Want.o:Want.c:(.text+0xc3d): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0xcaf): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0xd2d): undefined reference to `__imp_Perl_sv_2iv_flags'
Want.o:Want.c:(.text+0xede): undefined reference to `__imp_Perl_croak_xs_usage'
Want.o:Want.c:(.text+0xf1b): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0xf94): undefined reference to `__imp_Perl_sv_2iv_flags'
Want.o:Want.c:(.text+0xff5): undefined reference to `__imp_Perl_croak'
Want.o:Want.c:(.text+0x103b): undefined reference to `__imp_Perl_newSVpv'
Want.o:Want.c:(.text+0x104c): undefined reference to `__imp_Perl_sv_2mortal'
Want.o:Want.c:(.text+0x1097): undefined reference to `__imp_Perl_sv_newmortal'
Want.o:Want.c:(.text+0x10d3): undefined reference to `__imp_Perl_stack_grow'
Want.o:Want.c:(.text+0x10ed): undefined reference to `__imp_Perl_croak'
Want.o:Want.c:(.text+0x10fd): undefined reference to `__imp_Perl_croak_xs_usage'
Want.o:Want.c:(.text+0x111f): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0x119c): undefined reference to `__imp_Perl_sv_2iv_flags'
Want.o:Want.c:(.text+0x11c6): undefined reference to `__imp_Perl_sv_newmortal'
Want.o:Want.c:(.text+0x11ef): undefined reference to `__imp_PL_op_name'
Want.o:Want.c:(.text+0x1249): undefined reference to `__imp_Perl_stack_grow'
Want.o:Want.c:(.text+0x125e): undefined reference to `__imp_Perl_newSVpv'
Want.o:Want.c:(.text+0x1277): undefined reference to `__imp_Perl_sv_2mortal'
Want.o:Want.c:(.text+0x128d): undefined reference to `__imp_PL_op_name'
Want.o:Want.c:(.text+0x1300): undefined reference to `__imp_Perl_newSVpv'
Want.o:Want.c:(.text+0x1315): undefined reference to `__imp_Perl_sv_2mortal'
Want.o:Want.c:(.text+0x1327): undefined reference to `__imp_Perl_dowantarray'
Want.o:Want.c:(.text+0x13a3): undefined reference to `__imp_Perl_stack_grow'
Want.o:Want.c:(.text+0x13bb): undefined reference to `__imp_Perl_croak_xs_usage'
Want.o:Want.c:(.text+0x14e7): undefined reference to `__imp_PL_op_name'
Want.o:Want.c:(.text+0x14fa): undefined reference to `__imp_Perl_die_nocontext'
Want.o:Want.c:(.text+0x1544): undefined reference to `__imp_Perl_die_nocontext'
Want.o:Want.c:(.text+0x1558): undefined reference to `__imp_Perl_die_nocontext'
Want.o:Want.c:(.text+0x156a): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0x15c1): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0x163f): undefined reference to `__imp_Perl_sv_2iv_flags'
Want.o:Want.c:(.text+0x1678): undefined reference to `__imp_Perl_sv_newmortal'
Want.o:Want.c:(.text+0x16cd): undefined reference to `__imp_Perl_sv_setiv'
Want.o:Want.c:(.text+0x16e1): undefined reference to `__imp_Perl_mg_set'
Want.o:Want.c:(.text+0x179d): undefined reference to `__imp_Perl_croak_xs_usage'
Want.o:Want.c:(.text+0x17c3): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0x17fd): undefined reference to `__imp_Perl_newSV_type'
Want.o:Want.c:(.text+0x180b): undefined reference to `__imp_Perl_newSVsv'
Want.o:Want.c:(.text+0x1812): undefined reference to `__imp_Perl_av_push'
Want.o:Want.c:(.text+0x188b): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0x18ad): undefined reference to `__imp_Perl_newSV_type'
Want.o:Want.c:(.text+0x18d4): undefined reference to `__imp_Perl_newSVsv'
Want.o:Want.c:(.text+0x18e8): undefined reference to `__imp_Perl_av_push'
Want.o:Want.c:(.text+0x190d): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0x198a): undefined reference to `__imp_Perl_sv_2uv_flags'
Want.o:Want.c:(.text+0x1a12): undefined reference to `__imp_Perl_newRV_noinc'
Want.o:Want.c:(.text+0x1a23): undefined reference to `__imp_Perl_sv_2mortal'
Want.o:Want.c:(.text+0x1a53): undefined reference to `__imp_Perl_stack_grow'
Want.o:Want.c:(.text+0x1ace): undefined reference to `__imp_Perl_newSV_type'
Want.o:Want.c:(.text+0x1af9): undefined reference to `__imp_Perl_croak_xs_usage'
Want.o:Want.c:(.text+0x1b0b): undefined reference to `__imp_Perl_get_context'
Want.o:Want.c:(.text+0x1b3c): undefined reference to `__imp_Perl_xs_handshake'
Want.o:Want.c:(.text+0x1b4b): undefined reference to `__imp_Perl_newXS_flags'
Want.o:Want.c:(.text+0x1ccd): undefined reference to `__imp_Perl_xs_boot_epilog'
c:/perl64/site/lib/auto/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: Want.o: bad reloc address 0x60 in section `.rdata'
c:/perl64/site/lib/auto/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.exe: final link failed: Invalid operation
collect2: ld returned 1 exit status
dmake.exe:  Error code 129, while making 'blib\arch\auto\Want\Want.xs.dll'
  ROBIN/Want-0.26.tar.gz
  C:\STRAWB~1\c\bin\dmake.exe -- NOT OK
Stopping: 'install' failed for 'Want'.
Failed during this command:
 ROBIN/Want-0.26.tar.gz                       : make NO

0 个答案:

没有答案