Hi!
2015-01-23 21:45 GMT+06:00 Griflet <grif...@libero.it>:
> 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'
>
The stelMain library can be created through GCC. Stellarium has two way for
building on Windows - with MinGW GCC and MSVC - and we have troubles with
MSVC -
http://bazaar.launchpad.net/~stellarium/stellarium/trunk/view/head:/CMakeLists.txt#L145
I don't played with MSVC settings for getting DLL + EXE and apparently we
should make investigation of this question now.
>
>
> 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 guess the linker can't be helpful here because Stellarium x64 doesn't has
stelMain.dll
I hope Windows developers may fix me if I was wrong.
--
WBW, Alex
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Stellarium-pubdevel mailing list
Stellarium-pubdevel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel