Page MenuHome

cmake + vc does not build WITH_OPENJPEG
Closed, ResolvedPublic

Description

Windows XP Pro SP3
Building with cmake 2.8 + Visual Studio 2008 Express

openjpeg enabled does not build; error:
+++++++++++++++++++++++++++++++++++++++++
dwt.c
..\..\..\build\trunk\blender-2.5\extern\libopenjpeg\dwt.c(613) : error C2088: '*' : illegal for union
..\..\..\build\trunk\blender-2.5\extern\libopenjpeg\dwt.c(625) : error C2088: '+' : illegal for union
..\..\..\build\trunk\blender-2.5\extern\libopenjpeg\dwt.c(632) : error C2088: '+=' : illegal for union
..\..\..\build\trunk\blender-2.5\extern\libopenjpeg\dwt.c(633) : error C2088: '*=' : illegal for union
..\..\..\build\trunk\blender-2.5\extern\libopenjpeg\dwt.c(636) : error C2088: '+' : illegal for union
cio.c
Generating Code...
Build log was saved at "file://c:\cmake\install\extern\libopenjpeg\extern_libopenjpeg.dir\Release\BuildLog.htm"
extern_libopenjpeg - 5 error(s), 0 warning(s)
+++++++++++++++++++++++++++++++++++++++++++++

P.S.: Earier I reported that building with mingw / gcc 4.4.1 in windows does not work anymore since approx. svn 29210

Question from Campbell was were do you get mingw with gcc 4.4.1?

Its here - a simple installer from TDM-GCC (tdragon): http://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%20Installer/Previous/1.908.0/tdm-mingw-1.908.0-4.4.1-2.exe/download

I did successful and stable build on Graphicall.org (Zebulon) for quite a while using gcc 4.1.2 and gcc 4.4.1 from TDM-GCC.

There is also a new 4.5 available. But it would be nice to get gcc 4.4.1 going under windows like it works in most recent Linux distributions.

Kind regards,
Ralf Luhrmann

Event Timeline

PPS:
GCC 4.4.1 is also included in Code:Blocks 10.05!

Same there: if you try to build with cmake and Code:Blocks (using Codeblocks mingw setup in cmake) it doesn't build - and here gives a ljpeg linking error (last try approx. 2 weeks ago)

Fix in svn for the MSVC build error. About GCC building here, you can open a second bug report for that, with the build errors included, it doesn't seem related to this.

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Resolved.Jul 13 2010, 4:02 PM

Thanks

It now builds again...