Support 3rd-party plugins in Windows package

Bug #1416637 reported by Alexander Wolf on 2015-01-31
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Original message in maillist:

Hi, I wrote a static plugin that I would like to convert to dynamic but I'm not able to build it under windows (Win7 x64, Visual Studio 2012, Qt 5.2.1, Cmake 3.0.2).

The static version works fine on Stellarium 0.13.1 but when I try to compile it as dynamic (obviously after creating the appropriate cmake files, starting from official examples) I get following linking error:

error LNK1181: cannot open input file 'stelMain.lib'

but no stelMain.lib is generated during main Stellarium building process.

Reading some forums I found that could be an issue related to wrong linker parameters but the suggestion to add following linker flags doesn't work (cause these flags are not recognized during plugin building)

-Wl,--enable-runtime-pseudo-reloc -Wl,--allow-multiple-definition

I'm a newbie with c++/qt/stellarium development so please excuse me if I'm submitting a stupid question, but after a lot of tries I'm running out of ideas L

Thanks in advance

Alexander Wolf (alexwolf) wrote :

This issue related to packaging of the binaries, who has been built through MSVC. Current implementation of Stellarium doesn't give possibility build dynamic libraries with MSVC because by default MSVC didn't exports the public symbols.

Some docs for resolving this issue:

Changed in stellarium:
importance: Undecided → High
status: New → Triaged
tags: added: plugin windows
summary: - Support 3rd-party plugins in Win64 package
+ Support 3rd-party plugins in Windows package
Changed in stellarium:
milestone: none → 0.15.0
Changed in stellarium:
milestone: 0.15.0 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers