2

我正在试验mkbundle 我有一个简单的addApp.exe文件,它调用一个方法addition.dll

我正在尝试为powerpc linux硬件目标创建二进制文件。我已经使用eldk-toolchainfor编译了单声道,powerpc并在目标上使用了mkbundle该版本的单声道。

我正在尝试mkbundle如下使用

mkbundle addApp.exe ./addition.dll --static --deps

上述命令的输出是

OS is: Linux

Sources: 2 Auto-dependencies: True

embedding: /home/testAppV2/addApp.exe

embedding: /opt/sdk/mono/lib/mono/4.5/mscorlib.dll

embedding: /home/testAppV2/addition.dll

AS = as (default)

[execute cmd]: as -o temp.o temp.s 

Compiling:

CC = cc (default)

[execute cmd]: cc -o 'a.out' -Wall `pkg-config --cflags mono-2` temp.c  `pkg-config --libs-only-L mono-2` -Wl,-Bstatic -lmono-2.0 -Wl,-Bdynamic `pkg-config --libs-only-l mono-2 | sed -e "s/\-lmono-2.0 //"` temp.o

/tmp/cc32Vkrh.o: In function `mono_mkbundle_init':
temp.c:(.text+0x3c): undefined reference to `mono_register_bundled_assemblies'

/tmp/cc32Vkrh.o: In function `main':

temp.c:(.text+0x474): undefined reference to `mono_set_dirs'

temp.c:(.text+0x484): undefined reference to `mono_main'

collect2: ld returned 1 exit status
ERROR: [Fail] 256

我已经尝试了所有可能的方法来摆脱这个错误,但徒劳无功。请需要帮助

4

0 回答 0