libpng

UnsatisfiedLinkError In Android 4.4 libDevil cannot locate symbol “png_set_longjmp_fn”

我怕爱的太早我们不能终老 提交于 2019-12-04 12:31:37
问题 I have an image converter app on google play that runs fine and well, it incorporates NDK for support of more file formats using the DevIL Image Processing library. It wokrs fine on most devices but since Android 4.4 Kitkat came out, i've received emails and crash reports on Google Play Console especially from Nexus devices that have 4.4 and now other older devices that receive the update Here is the crash report java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "png_set

libpng not linked on Mac OSX 10.9.2

╄→尐↘猪︶ㄣ 提交于 2019-12-04 06:05:06
I installed matrix2png on my Mac and had used it without problem before last week when I installed another image manipulating tool "circos". Circos requires me to install a different version of libpng, and I did. After that, I am no longer able to run matrix2png, which gives me the following error. I think the old ligpnb is not linked any more. Does anyone know how to fix this error? - appreciate your help. dyld: Library not loaded: /usr/local/lib/libpng15.15.dylib Referenced from: /usr/local/bin/matrix2png Reason: image not found gkiwi Those step solve my problem: brew versions libpng You

Error with homebrew + opencv + libpng

混江龙づ霸主 提交于 2019-12-04 05:11:34
On Mac OS Maverick I have installed OpenCV with a brew install opencv . I created a simple program (copied from this tutorial ). Compilation worked fine but when running the executable I get the following error: dyld: Library not loaded: /usr/local/lib/libpng16.16.dylib Referenced from: /usr/local/lib/libopencv_highgui.2.4.dylib Reason: Incompatible library version: libopencv_highgui.2.4.dylib requires version 33.0.0 or later, but libpng16.16.dylib provides version 32.0.0 Trace/BPT trap: 5 I checked that libpng was properly installed via brew install libpng and ran a brew upgrade to make sure

Linker error with libpng under MacOSX

我怕爱的太早我们不能终老 提交于 2019-12-04 04:51:08
I'm working on MacOSX 10.7.2 and Xcode 4.2.1. I installed libpng using port and I was trying to load a PNG image in my application, but I get linker errors: Undefined symbols for architecture x86_64: "_png_create_read_struct", referenced from: loadPngImage(char*, int&, int&, bool&, unsigned char**) in test.o "_png_create_info_struct", referenced from: loadPngImage(char*, int&, int&, bool&, unsigned char**) in test.o "_png_destroy_read_struct", referenced from: loadPngImage(char*, int&, int&, bool&, unsigned char**) in test.o "_png_set_longjmp_fn", referenced from: loadPngImage(char*, int&, int

cmake - CMakeLists.txt is not in root folder (but is included in source)

狂风中的少年 提交于 2019-12-04 04:10:33
I'm trying to compile a libpng library. The thing is that I need a specific version of this library - 1.2.37 - because the project I'm using it in is written with this version. I've found the source code of this version here (GnuWin32 project). But the folder structure looks something like this: libpng-1.2.37-src/ contrib/ projects/ scripts/ CMakeLists.txt png.h pngread.c pngwrite.c ... See, the CMakeLists.txt is one level deeper than the source files. I've tried: source directory libpng-1.2.37-src/ -> resulted in error: The source directory does not appear to contain CMakeLists.txt source

Save OpenGL screen pixels to PNG using libpng

旧时模样 提交于 2019-12-04 03:11:17
I've been using SOIL to save images as BMP, but it turns out that SOIL (or stbi to be more specific) saves ~5MB images (which is about 1366x768 resolution image or more) which is quite insane. Original BMP saving code ( NOTE Everything is done in the render function): uint8_t *pixels = new uint8_t[w * h * 3]; // copy pixels from screen glBindTexture(GL_TEXTURE_2D, screenTex); glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, w, h); glPixelStorei(GL_PACK_ALIGNMENT, 1); glReadPixels(0, 0, w, h, GL_RGB, GL_UNSIGNED_BYTE, (GLvoid *)pixels); // invert pixels (stolen from SOILs source code) for (int

Cannot build R package “png” Fedora 20

我怕爱的太早我们不能终老 提交于 2019-12-04 02:12:09
I am trying to build the R package png , the repo says that libpng needs to be available. I run a Linux Fedora 20 distro Looks like I have it... [root@localhost bin]# yum install libpng Loaded plugins: langpacks, refresh-packagekit Package 2:libpng-1.6.3-3.fc20.x86_64 already installed and latest version Nothing to do But when I try to install it: > install.packages("png") Installing package into ‘/home/statquant/R/x86_64-redhat-linux-gnu-library/3.0’ (as ‘lib’ is unspecified) trying URL 'http://cran.rstudio.com/src/contrib/png_0.1-7.tar.gz' Content type 'application/x-gzip' length 24990 bytes

Static libpng link with visual studio 2010

主宰稳场 提交于 2019-12-03 21:04:48
I'm trying to add PNG support to my application and thus I want to include libpng. I know it needs zlib and thus I downloaded that as well. I went into the png folder/projects/vstudio and I opened the solution. I compiled it and it went just fine. I added some headers from it into my application and I copied the lib files. My program is a dll written in c++ which is later used from C#. When I run it in C# it complains about not finding my dll (tough if I remove the png part it works fine). I've had this problem before and it usually means a dll dependency is wrong. Now... libpng compiled both

Parallelization of PNG file creation with C++, libpng and OpenMP

落爺英雄遲暮 提交于 2019-12-03 17:47:28
问题 I am currently trying to implement a PNG encoder in C++ based on libpng that uses OpenMP to speed up the compression process. The tool is already able to generate PNG files from various image formats. I uploaded the complete source code to pastebin.com so you can see what I have done so far: http://pastebin.com/8wiFzcgV So far, so good! Now, my problem is to find a way how to parallelize the generation of the IDAT chunks containing the compressed image data. Usually, the libpng function png

UnsatisfiedLinkError In Android 4.4 libDevil cannot locate symbol “png_set_longjmp_fn”

僤鯓⒐⒋嵵緔 提交于 2019-12-03 07:12:29
I have an image converter app on google play that runs fine and well, it incorporates NDK for support of more file formats using the DevIL Image Processing library. It wokrs fine on most devices but since Android 4.4 Kitkat came out, i've received emails and crash reports on Google Play Console especially from Nexus devices that have 4.4 and now other older devices that receive the update Here is the crash report java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "png_set_longjmp_fn" referenced by "libdevil.so"... at java.lang.Runtime.loadLibrary(Runtime.java:364) at java.lang