Compiling on Mingw

emyr emyr at soundmouse.com
Wed Sep 8 15:01:53 CEST 2010


I modified CMakeCache.txt and set...

CMAKE_EXE_LINKER_FLAGS:STRING=-enable-auto-import
CMAKE_MODULE_LINKER_FLAGS:STRING=-enable-auto-import
CMAKE_SHARED_LINKER_FLAGS:STRING=-enable-auto-import


and now it all works as expected with no crashes.
Phew.

On 08/09/10 13:40, emyr wrote:
> The issue seems to be the same as this...
>
> http://www.paraview.org/Bug/view.php?id=9071
>
> how can I add
>
> CMAKE_EXE_LINKER_FLAGS=-Wl,--enable-auto-import
>
> into the commands mentioned below ? do i need to add it to some file ?
>
> On 08/09/10 11:18, emyr wrote:
>    
>> I had everything in my path and same happened.
>> I then tried cmake in a normal windows cmd window instead of in a mingw
>> shell and it *almost* works.
>> When it made the library it complained about the auto-import but it
>> compiled and make install seemed to copy all the stuff required.
>>
>> I compiled the tagreader example against my newly built library with
>> -enable-auto-import for the linking but the app crashes when I try to
>> run it.
>>
>> Says "the application fails to initialise properly (0xc0000005). Click
>> OK to terminate the application."
>>
>> I suspect the library needs to be linked with -enable-auto-imort during
>> the cmake process. How can I make it do this ?
>>
>> On 08/09/10 10:30, Anton Sergunov wrote:
>>
>>      
>>> Don't forget to set PATH enviroment
>>>
>>> to build library
>>> cd<taglib root>
>>> set PATH=C:\mingw\bin;%PATH%
>>> set PATH=C:\Program Files\CMake 2.8\bin;%PATH%
>>> cmake -G"MinGW Makefiles" -i
>>> mingw32-make.exe
>>> cd taglib
>>> dir libtag*
>>>
>>> result:
>>> libtag.dll
>>> libtag.dll.a
>>>
>>> To build docs
>>> set PATH=C:\Program Files\doxygen\bin\;%PATH%
>>> set PATH=c:\Program Files\Graphviz2.26.3\bin;%PATH%
>>> cd<taglib root>
>>> cd doc
>>> doxygen taglib.doxgen
>>> html\index.html
>>>
>>>
>>> 2010/9/8 emyr<emyr at soundmouse.com>:
>>>
>>>
>>>        
>>>> Doesn't work.
>>>> I downloaded and installed cmake. Typed in the commands below and
>>>> mingw-32.make does absolutely nothing. Just moves on to the next shell
>>>> command line immediately.
>>>> Does anyone have a ready built shared library binary for it?
>>>>
>>>> On 07/09/10 18:22, Anton Sergunov wrote:
>>>>
>>>>
>>>>          
>>>>> cmake -G"MinGW Makefiles" -i
>>>>> mingw32-make
>>>>>
>>>>> -L<Path to lagLib/tagLib>      -ltag
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>            
>>>>>> I downloaded the latest source then did ./configure
>>>>>>
>>>>>> When I try to compile a program and link it using -ltag it complains
>>>>>> about undefined symbols.
>>>>>>
>>>>>>
>>>>>>
>>>>>>              
>>>>> _______________________________________________
>>>>> taglib-devel mailing list
>>>>> taglib-devel at kde.org
>>>>> https://mail.kde.org/mailman/listinfo/taglib-devel
>>>>>
>>>>>
>>>>>
>>>>>            
>>>> _______________________________________________
>>>> taglib-devel mailing list
>>>> taglib-devel at kde.org
>>>> https://mail.kde.org/mailman/listinfo/taglib-devel
>>>>
>>>>
>>>>
>>>>          
>>> _______________________________________________
>>> taglib-devel mailing list
>>> taglib-devel at kde.org
>>> https://mail.kde.org/mailman/listinfo/taglib-devel
>>>
>>>
>>>        
>> _______________________________________________
>> taglib-devel mailing list
>> taglib-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/taglib-devel
>>
>>      
> _______________________________________________
> taglib-devel mailing list
> taglib-devel at kde.org
> https://mail.kde.org/mailman/listinfo/taglib-devel
>    



More information about the taglib-devel mailing list