linux emule 编译 wx-config --libs,#2448 (Additional libraries not mentioned by wx-config --libs) ...

刁丰羽
2023-12-01

I built 2.6.0 as a monolithic static library. The

resulting lib directory has not just the main liibrary

but also some others. For example, this is what I get

on the Mac:

akmac:~ pkoning$ ls /usr/local/wxstaticu/lib

libwx_macu-2.6.a libwxpng-2.6.a wx

libwxexpat-2.6.a libwxregexu-2.6.a

libwxjpeg-2.6.a libwxtiff-2.6.a

On Linux/GTK, I get fewer: just the main library and

libwxregexu. Curiously enough, that second library

does *not* appear in the shared lib build.

All this is fine, but those libraries are NOT mentioned

by wx-config --libs, so the normal procedure of linking

with whatever that command produces doesn't work. The

output (on the Mac) looks like this:

-L/usr/local/wxstaticu/lib -framework QuickTime

-framework IOKit -framework Carbon -framework Cocoa

-framework System

/usr/local/wxstaticu/lib/libwx_macu-2.6.a -framework

WebKit -lz -lpthread -liconv

Similarly on Linux only the main library is mentioned,

not the wxregexu library.

If the build has to produce additional libraries then

those libraries should be included in the wx-config

output. In fact, none of them are.

 类似资料: