New gettext and fftw3 for MinGW #20883

Closed
opened 2010-01-29 18:38:58 +01:00 by Sergey Sharybin · 6 comments

%%%Hi,

In IRC people often asks about error at Blender startup when it's compiled with MinGW. When I've got the same error after cross-compilation.
Source of this error is somewhere inside gnu_gettext library. I've compiled new gettext static library by MinGW and told scons to link with it. Now all is o-key.

Another problem with MinGW comes from fftw3 library. There is linking error with unresolved symbols like __alloca, __chkstk and others from msvcrt library. I've made static fftw3 library with MinGW and now I haven't got problems (I've tested by cross-compilation. I was unable to test native MinGW compilation yet).

I've attached new libraries and patch for scons scripts to this message.

NOTE: I haven't tested scons scripts by native MinGW, so mayb there are some typos in new SConstruct.
%%%

%%%Hi, In IRC people often asks about error at Blender startup when it's compiled with MinGW. When I've got the same error after cross-compilation. Source of this error is somewhere inside gnu_gettext library. I've compiled new gettext static library by MinGW and told scons to link with it. Now all is o-key. Another problem with MinGW comes from fftw3 library. There is linking error with unresolved symbols like __alloca, __chkstk and others from msvcrt library. I've made static fftw3 library with MinGW and now I haven't got problems (I've tested by cross-compilation. I was unable to test native MinGW compilation yet). I've attached new libraries and patch for scons scripts to this message. NOTE: I haven't tested scons scripts by native MinGW, so mayb there are some typos in new SConstruct. %%%
Author
Owner

Changed status to: 'Open'

Changed status to: 'Open'
Member

%%%Hi Sergey,

I'm reading your scons patch - greatly appreciate the effort - but
something in the patch looks 'wrong' to me. In line 13 of the patch
you add gnu_gettext.dll to dllsources, and then the next line
dllsources is set to a group of files. This would seem like it would
override your previous action.

for iconv it seems like you are now excluding win32-vc from getting
iconv added ?

LetterRip%%%

%%%Hi Sergey, I'm reading your scons patch - greatly appreciate the effort - but something in the patch looks 'wrong' to me. In line 13 of the patch you add gnu_gettext.dll to dllsources, and then the next line dllsources is set to a group of files. This would seem like it would override your previous action. for iconv it seems like you are now excluding win32-vc from getting iconv added ? LetterRip%%%
Author
Owner

%%%Oh. Stupid mistakes.

At line 15 it shoudld be "+=" instead of "=". gnu_gettext.dll is necessary only if gnu_gettext.lib from lib/windows/gettext is used. But for MinGW static libintl.a is using. If I'm not mistake libintl.a is linked staticly to the iconv, so iconv.dll is unnecessary with new gettext lib. So at line 33 it is also stupid typo, It should be "!=" not "=".

P.S. Sorry for this very stupid typos. It was hard week..%%%

%%%Oh. Stupid mistakes. At line 15 it shoudld be "+=" instead of "=". gnu_gettext.dll is necessary only if gnu_gettext.lib from lib/windows/gettext is used. But for MinGW static libintl.a is using. If I'm not mistake libintl.a is linked staticly to the iconv, so iconv.dll is unnecessary with new gettext lib. So at line 33 it is also stupid typo, It should be "!=" not "=". P.S. Sorry for this very stupid typos. It was hard week..%%%
Author
Owner

%%%Attached libraries in zip format%%%

%%%Attached libraries in zip format%%%
Author
Owner

%%%I've tested this libraries on my virtual machine and made some typofixes to the patch. I've also tried to generate patch in svn-compatible format. I've got mingw's gcc and g++ version 3.4.5.

P.S. New libraries should be placed to the lib/windows/gcc folder.%%%

%%%I've tested this libraries on my virtual machine and made some typofixes to the patch. I've also tried to generate patch in svn-compatible format. I've got mingw's gcc and g++ version 3.4.5. P.S. New libraries should be placed to the lib/windows/gcc folder.%%%
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#20883
No description provided.