Support 3rd-party plugins in Windows package

Bug #1416637 reported by Alexander Wolf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stellarium
Triaged
High
Unassigned

Bug Description

Original message in maillist: https://sourceforge.net/p/stellarium/mailman/message/33261703/

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
Rick

Tags: plugin windows
Revision history for this message
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: http://doc.qt.io/qt-5/sharedlibrary.html

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
Revision history for this message
Alexander Wolf (alexwolf) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.