Restoring of cross-compilation stuff #20720

Closed
opened 2010-01-18 11:00:59 +01:00 by Sergey Sharybin · 12 comments

%%%This patch tries to restore linux cross-compilation stuff.

I updated libraries from lib/windows directory to fix some linking errors. Updated libraries are ffmpeg and gettext. In new gettext DLL is named libintl3.dll (was gnu_gettext.dll). I've made changed to configurations and scripts, but I haven't got opportunity to check compilation under windows. I've attached this libraries to this message.

Known issues:

  • Not all features if available for cross-compiling
  • I copied dll-s and python/lib to installation directory manually
  • blender.exe depends on libiconv2.dll (it could be found in attachments)
    %%%
%%%This patch tries to restore linux cross-compilation stuff. I updated libraries from lib/windows directory to fix some linking errors. Updated libraries are ffmpeg and gettext. In new gettext DLL is named libintl3.dll (was gnu_gettext.dll). I've made changed to configurations and scripts, but I haven't got opportunity to check compilation under windows. I've attached this libraries to this message. Known issues: * Not all features if available for cross-compiling * I copied dll-s and python/lib to installation directory manually * blender.exe depends on libiconv2.dll (it could be found in attachments) %%%
Author
Owner

Changed status to: 'Open'

Changed status to: 'Open'
Author
Owner

%%%Here is updated version of patch.

Changelog:
* Restored DLL and Python installation.
* Libraries faad.dll, faac.dll and libmp3lame.dll were removed from installation sources, because there is no such libraries in new ffmpeg.
* Use another built of libintl. libiconv2.dll isn't in dependencies now.
* Added icon to blender executable file.

New patch and libintl are in attachments.%%%

%%%Here is updated version of patch. Changelog: * Restored DLL and Python installation. * Libraries faad.dll, faac.dll and libmp3lame.dll were removed from installation sources, because there is no such libraries in new ffmpeg. * Use another built of libintl. libiconv2.dll isn't in dependencies now. * Added icon to blender executable file. New patch and libintl are in attachments.%%%
Author
Owner

%%%With this patch (see attached console_window.patch) option -mwindows is not passing to mingw, so console window appears when blender starts.

This patch should be applied after linux_cross_2.patch. %%%

%%%With this patch (see attached console_window.patch) option -mwindows is not passing to mingw, so console window appears when blender starts. This patch should be applied after linux_cross_2.patch. %%%
Author
Owner

%%%Added support of fftw3 library.

  • Use another libfftw3 library (for linuxcross only)
  • Added libfftw3.dll to installation list (for linuxcross only)

fftw3.patch should be applied after linux_cross_2.patch and console_window.patch

fftw3 library and dll are in attachments. this files should be placed to lib/windows/fftw3/lib directory.
%%%

%%%Added support of fftw3 library. * Use another libfftw3 library (for linuxcross only) * Added libfftw3.dll to installation list (for linuxcross only) fftw3.patch should be applied after linux_cross_2.patch and console_window.patch fftw3 library and dll are in attachments. this files should be placed to lib/windows/fftw3/lib directory. %%%
Author
Owner

%%%Here is some updated version of patch.

Changes:

  • It is now against rev26016
  • All changes, stored in linux_cross_against_26106.patch (no need of previous incremental patches)
  • Use libraries ffmpeg and fftw3 from lib/windows/gcc directory (fftw3 is created by me here, old ffmpeg from gcc directory i replaced with ffmpeg from my previous attachments)
  • gettext library is still common for native and cross compilation, so it should be tested

Unsupported or untested options: WITH_BF_ICONV, WITH_BF_BINRELOC, WITH_BF_OGG, WITH_BF_OPENJPEG, WITH_BF_REDCODE, WITH_BF_COLLADA, WITH_BF_OPENMP, WITH_BF_RAYOPTIMISATION

I've attached content of changed directories in lib/windows (archive named lib_against_26106.tar.bz2)%%%

%%%Here is some updated version of patch. Changes: * It is now against rev26016 * All changes, stored in linux_cross_against_26106.patch (no need of previous incremental patches) * Use libraries ffmpeg and fftw3 from lib/windows/gcc directory (fftw3 is created by me here, old ffmpeg from gcc directory i replaced with ffmpeg from my previous attachments) * gettext library is still common for native and cross compilation, so it should be tested Unsupported or untested options: WITH_BF_ICONV, WITH_BF_BINRELOC, WITH_BF_OGG, WITH_BF_OPENJPEG, WITH_BF_REDCODE, WITH_BF_COLLADA, WITH_BF_OPENMP, WITH_BF_RAYOPTIMISATION I've attached content of changed directories in lib/windows (archive named lib_against_26106.tar.bz2)%%%
Author
Owner

%%%I've compiled Blender with options WITH_BF_OPENJPEG, WITH_BF_REDCODE and WITH_BF_RAYOPTIMIZATION flags. I also made some cleanup in crossmingw.py and started adding support of OpenCOLLADA.

I named patch linux_corss_against_26106_inc1.patch. It should be applied after linux_corss_against_26106.patch.%%%

%%%I've compiled Blender with options WITH_BF_OPENJPEG, WITH_BF_REDCODE and WITH_BF_RAYOPTIMIZATION flags. I also made some cleanup in crossmingw.py and started adding support of OpenCOLLADA. I named patch linux_corss_against_26106_inc1.patch. It should be applied after linux_corss_against_26106.patch.%%%
Author
Owner

%%%Added OpenCollada support.

For this support I recompiled OpenCollada by MinGW, because there were linking errors when I tried to link with existing in libs/windows/opencollada libraries.

To compile OpenCollada by MinGW under Windows I made some changes in source and SCons configuration scripts. Without this changes building system supposed I'm using MSVC and used MS-specified headers, which are missed in MinGW.
I've attached this patches (file collada_mingw_compilation.patch) and compiled OpenCollada libraries and headers, which should be placed to lib/windows/gcc/opencollada (file opencollada.tar.bz2)

One more thing around new OpenCollada libraries: I compiled the latest sources, which are at revision 721, but blender's collada module is written for libraries, compiled from revision 641. Because this, I made some changes to source/blender/collada/DocumentImporter.cpp:

  • In new collada TextureCoordinateBinding, MaterialBinding, TextureCoordinateBindingArray and MaterialBindingArray moved from namespace COLLADAFW::InstanceGeometry to COLLADAFW.
  • TextureCoordinateBinding and MaterialBinding are now classes, so we shouldn't use direct field accessing.
  • InstanceController is not the same as InstanceGeometry. This classes are inherited from InstanceBindingBase with different classId.
  • There is no more Texture::Texture() constructor. New constructor get's the UniqueId parameter.

I've tried to made changes to this file only for corss-compilation, but it would be good to update this file and collada library for native compilation too.

Patch for cross-compilation with collada named linux_corss_against_26106_inc2.patch and should be applied after all previous patches against this revision.%%%

%%%Added OpenCollada support. For this support I recompiled OpenCollada by MinGW, because there were linking errors when I tried to link with existing in libs/windows/opencollada libraries. To compile OpenCollada by MinGW under Windows I made some changes in source and SCons configuration scripts. Without this changes building system supposed I'm using MSVC and used MS-specified headers, which are missed in MinGW. I've attached this patches (file collada_mingw_compilation.patch) and compiled OpenCollada libraries and headers, which should be placed to lib/windows/gcc/opencollada (file opencollada.tar.bz2) One more thing around new OpenCollada libraries: I compiled the latest sources, which are at revision 721, but blender's collada module is written for libraries, compiled from revision 641. Because this, I made some changes to source/blender/collada/DocumentImporter.cpp: * In new collada TextureCoordinateBinding, MaterialBinding, TextureCoordinateBindingArray and MaterialBindingArray moved from namespace COLLADAFW::InstanceGeometry to COLLADAFW. * TextureCoordinateBinding and MaterialBinding are now classes, so we shouldn't use direct field accessing. * InstanceController is not the same as InstanceGeometry. This classes are inherited from InstanceBindingBase<ClassId classId> with different classId. * There is no more Texture::Texture() constructor. New constructor get's the UniqueId parameter. I've tried to made changes to this file only for corss-compilation, but it would be good to update this file and collada library for native compilation too. Patch for cross-compilation with collada named linux_corss_against_26106_inc2.patch and should be applied after all previous patches against this revision.%%%
Author
Owner

%%%Here is new patch for cross-compilation (linux_cross_against_26185.patch):

  • Update DocumentImporter for new changed Collada library. Minor code cleanup.
  • Experimental support of OpenMP
  • Minor code cleanup for Scons's scripts.

I updated patch for OpenCollada. Changes:

  • Added option tools to SConstruct (opencollada_against721.patch).
  • Do not declare COLLADABU_MINGW (use minwg's MINGW32 definition)
    %%%
%%%Here is new patch for cross-compilation (linux_cross_against_26185.patch): * Update DocumentImporter for new changed Collada library. Minor code cleanup. * Experimental support of OpenMP * Minor code cleanup for Scons's scripts. I updated patch for OpenCollada. Changes: * Added option `tools` to SConstruct (opencollada_against721.patch). * Do not declare COLLADABU_MINGW (use minwg's __MINGW32__ definition) %%%
Author
Owner

%%%New patch with some clean-up was uploaded. It is now against revision 26229.%%%

%%%New patch with some clean-up was uploaded. It is now against revision 26229.%%%
Author
Owner

%%%I've adopted patch to revision 26464 and added some changes for MinGW compilation. Now Blender could be built by MinGW with collada openjpeg and redcode support.
Patch now should be in svn-compatible format and libraris, which are necessary for cross-compilation archived by zip. This libraries should be placed to lib/windows/gcc directory.

I've got some troubles with uploading archive with libraries, so I've published it on my homeserver: http://nazg-gul.dyndns.org/storage/blender2.5/lib.zip%%%

%%%I've adopted patch to revision 26464 and added some changes for MinGW compilation. Now Blender could be built by MinGW with collada openjpeg and redcode support. Patch now should be in svn-compatible format and libraris, which are necessary for cross-compilation archived by zip. This libraries should be placed to lib/windows/gcc directory. I've got some troubles with uploading archive with libraries, so I've published it on my homeserver: http://nazg-gul.dyndns.org/storage/blender2.5/lib.zip%%%
Member

%%%Forgot to close this...%%%

%%%Forgot to close this...%%%
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#20720
No description provided.