Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367899 - media-gfx/blender-2.57-r1 fails to link if "USE=jpeg2k"
Summary: media-gfx/blender-2.57-r1 fails to link if "USE=jpeg2k"
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor with 1 vote (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-18 08:56 UTC by Ooblick
Modified: 2012-07-16 17:13 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info =media-gfx/blender-2.57-r1 (emerge.info,5.31 KB, text/plain)
2011-05-18 08:58 UTC, Ooblick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ooblick 2011-05-18 08:56:18 UTC
If the jpeg2k USE flag is enabled, blender will fail to link during the emerge:

Linking program ==> 'blender'
/tmp/portage/media-gfx/blender-2.57-r1/work/build/linux2/lib/libbf_imbuf.a(jp2.o): In function `imb_jp2_decode':
jp2.c:(.text+0x15d): undefined reference to `opj_set_default_decoder_parameters'
jp2.c:(.text+0x167): undefined reference to `opj_create_decompress'
jp2.c:(.text+0x17c): undefined reference to `opj_set_event_mgr'
jp2.c:(.text+0x187): undefined reference to `opj_setup_decoder'
jp2.c:(.text+0x194): undefined reference to `opj_cio_open'
jp2.c:(.text+0x1a2): undefined reference to `opj_decode'
jp2.c:(.text+0x1b6): undefined reference to `opj_cio_close'
jp2.c:(.text+0x428): undefined reference to `opj_destroy_decompress'
jp2.c:(.text+0x430): undefined reference to `opj_image_destroy'
jp2.c:(.text+0x69f): undefined reference to `opj_destroy_decompress'
jp2.c:(.text+0x6a7): undefined reference to `opj_cio_close'
jp2.c:(.text+0x6c1): undefined reference to `opj_destroy_decompress'
/tmp/portage/media-gfx/blender-2.57-r1/work/build/linux2/lib/libbf_imbuf.a(jp2.o): In function `imb_savejp2':
jp2.c:(.text+0x750): undefined reference to `opj_set_default_encoder_parameters'
jp2.c:(.text+0x9ee): undefined reference to `opj_image_create'
jp2.c:(.text+0xac0): undefined reference to `opj_create_compress'
jp2.c:(.text+0xada): undefined reference to `opj_set_event_mgr'
jp2.c:(.text+0xae8): undefined reference to `opj_setup_encoder'
jp2.c:(.text+0xaf4): undefined reference to `opj_cio_open'
jp2.c:(.text+0xb07): undefined reference to `opj_encode'
jp2.c:(.text+0xb17): undefined reference to `cio_tell'
jp2.c:(.text+0xb76): undefined reference to `opj_cio_close'
jp2.c:(.text+0xb7e): undefined reference to `opj_destroy_compress'
jp2.c:(.text+0xb86): undefined reference to `opj_image_destroy'
jp2.c:(.text+0xeb4): undefined reference to `opj_cio_close'
collect2: ld returned 1 exit status
scons: *** [/tmp/portage/media-gfx/blender-2.57-r1/work/build/linux2/bin/blender] Error 1
scons: building terminated because of errors.

This is on a ~amd64 with media-libs/openjpeg-1.4-r1 installed. Disabling jpeg2k support is a satisfactory workaround.


Reproducible: Always
Comment 1 Ooblick 2011-05-18 08:58:18 UTC
Created attachment 273815 [details]
emerge --info =media-gfx/blender-2.57-r1
Comment 2 Michele Alzetta 2011-08-28 20:58:24 UTC
(In reply to comment #1)
> Created attachment 273815 [details]
> emerge --info =media-gfx/blender-2.57-r1

I have exactly the same problem. I also have ~amd64 and media-libs/openjpeg-1.4-r1, and the -jpeg2k flag solves the problem.
Comment 3 Victor Mataré 2011-10-12 12:09:16 UTC
+1
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-07-16 01:02:25 UTC
Please try again with blender-2.63a and reopen if it's still an issue.
Thanks,
Diego
Comment 5 Ooblick 2012-07-16 17:13:08 UTC
Links and successfully saves jpeg2000 images. Thanks.