Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static build on Windows fails #994

Closed
lazka opened this issue Aug 16, 2017 · 2 comments
Closed

static build on Windows fails #994

lazka opened this issue Aug 16, 2017 · 2 comments

Comments

@lazka
Copy link

lazka commented Aug 16, 2017

2.1.2 builds, but 2.2.0 fails

[ 79%] Building C object src/bin/jpwl/CMakeFiles/opj_jpwl_compress.dir/__/common/opj_getopt.c.obj
[ 79%] Linking C executable ../../../bin/opj_jpwl_compress.exe
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0xdb): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0xeb): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0xfa): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1d7): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1e8): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1fc): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x27d): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x290): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x2a3): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x472): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x488): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x4a1): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x513): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x525): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x53c): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x95a): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x962): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x987): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x991): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x9a2): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x9af): more undefined references to `opj_image_data_free' follow
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0xcfc): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0xd07): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0xdb9): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0xdc1): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0xde9): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0xdf4): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0xe07): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0xe19): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x10d4): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x10de): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x10e8): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x10f2): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x112b): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1136): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1148): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x115a): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1434): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x143e): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1448): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1450): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x147b): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1486): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1564): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x156c): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1594): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x18da): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x18e5): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x18fa): undefined reference to `opj_image_data_alloc'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x191d): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1933): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1966): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1bdd): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1bef): undefined reference to `opj_image_data_free'
CMakeFiles/opj_jpwl_compress.dir/objects.a(color.c.obj):color.c:(.text+0x1c06): more undefined references to `opj_image_data_free' follow
collect2.exe: error: ld returned 1 exit status
make[2]: *** [src/bin/jpwl/CMakeFiles/opj_jpwl_compress.dir/build.make:207: bin/opj_jpwl_compress.exe] Error 1
make[1]: *** [CMakeFiles/Makefile2:537: src/bin/jpwl/CMakeFiles/opj_jpwl_compress.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
rouault added a commit that referenced this issue Aug 16, 2017
@rouault rouault closed this as completed Aug 16, 2017
@lazka
Copy link
Author

lazka commented Aug 16, 2017

Thank you 😃 ! I'll give the patch a try.

lazka added a commit to lazka/MINGW-packages that referenced this issue Aug 16, 2017
Include a build fix from upstream master. See uclouvain/openjpeg#994
@lazka
Copy link
Author

lazka commented Aug 16, 2017

Works, thanks again.

Alexpux pushed a commit to msys2/MINGW-packages that referenced this issue Aug 16, 2017
Include a build fix from upstream master. See uclouvain/openjpeg#994
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants