mosquitto icon indicating copy to clipboard operation
mosquitto copied to clipboard

lib file for windows for plugin development missing

Open u19809 opened this issue 8 months ago • 5 comments

Hi,

I reported this problem before but when I create a plugin under windows I get missing symbols (like mosquitto_callback_register and mosquitto_free).

These symbols are defined in the dll but the mosquitto.lib file only contains the client API symbols, not the plugin symbols.

COuld they be added to the installer ?

u19809 avatar May 04 '25 00:05 u19809

I do not know much about how linking in windows works, but in linux the broker plugin symbols (eg. mosquitto_callback_register) are located in the mosquitto server binary itself and no separate library for plugin is required.

They are typically resolved when mosquitto loads the plugin.

Perhaps a similar concept is used in windows?

Daedaluz avatar May 04 '25 09:05 Daedaluz

In windows you need a lib in linux the so file is enough ...

W

On Sun, 4 May 2025 at 11:38, Tobias Assarsson @.***> wrote:

Daedaluz left a comment (eclipse-mosquitto/mosquitto#3269) https://github.com/eclipse-mosquitto/mosquitto/issues/3269#issuecomment-2849111074

I do not know much about how linking in windows works, but in linux the broker plugin symbols (eg. mosquitto_callback_register) are located in the mosquitto server binary itself and no separate library for plugin is required.

They are typically resolved when mosquitto loads the plugin.

Perhaps a similar concept is used in windows?

— Reply to this email directly, view it on GitHub https://github.com/eclipse-mosquitto/mosquitto/issues/3269#issuecomment-2849111074, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3LCIUQZDKYT4XRBA4I4BT24XNZLAVCNFSM6AAAAAB4MIB3LGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNBZGEYTCMBXGQ . You are receiving this because you authored the thread.Message ID: @.***>

u19809 avatar May 04 '25 20:05 u19809

@u19809 I've added the file to the installer, you can test it out here if you want: https://github.com/eclipse-mosquitto/mosquitto/actions/runs/14858110554

ralight avatar May 06 '25 15:05 ralight

ok, indeed now a mosquitto_broker.lib is installed. Could only test the x86 build (which I do not need I need the 64x build). so waiting for 2.0.22 64 version

thx

u19809 avatar May 10 '25 23:05 u19809

Here you go: https://github.com/eclipse-mosquitto/mosquitto/actions/runs/14858110562

ralight avatar May 11 '25 19:05 ralight