Comments (10)
Would you mind to test the following patch? Please run "autogen.sh" after applying it to regenerate the configure script.
diff -r 148b741eebec configure.ac
--- a/configure.ac Sun Aug 07 06:04:40 2011 +0900
+++ b/configure.ac Sun Aug 07 13:48:02 2011 +0900
@@ -49,7 +49,7 @@
AM_CONDITIONAL(BUILD_TOOLS, [test "x$build_tools" = "xyes" ])
if test x$build_tools = xyes ; then
- PKG_CHECK_MODULES(png, "libpng12")
- PKG_CHECK_MODULES(png, "libpng")
fi
dnl --with-tests
from libqrencode.
Hi, had the following problems
I've a clean Lion install, with Xcode 4.1. Lion seems to came with autoconf 2.61 installed and automake 1.10.
I installed autoconf-2.68, automake-1.11, libtool-2.4 and downloaded again qrencode-3.1.1 to start with a clean directory.
The patch seems to be made to current trunk code, I patched manually on 3.1.1
When I run autogen.sh get some warning about that was generated for autoconf-2.64 and finish with error:
configure.ac:59: error: possibly undefined macro: AM_PATH_SDL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
Installed SDL library 1.2 but keep getting the error, so
If I comment line 58 => AM_PATH_SDL($SDL_REQUIRED_VERSION,,AC_MSG_WARN([*** SDL $SDL_REQUIRED_VERSION or better is required.]))
autogen.sh now run without problems, run configure and run without problems too, but when run make get an error:
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /Users/hernan/workspace/srcs/qrencode-3.1.1/use/missing --run autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
Making all in .
/bin/sh ./libtool --tag=CC --mode=compile gcc-4.2 -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT qrencode.lo -MD -MP -MF .deps/qrencode.Tpo -c -o qrencode.lo qrencode.c
mv -f .deps/qrencode.Tpo .deps/qrencode.Plo
mv: rename .deps/qrencode.Tpo to .deps/qrencode.Plo: No such file or directory
make[2]: *** [qrencode.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
current content of .deps/
bitstream.Plo qrencode-qrenc.Po qrinput.Plo rscode.Plo
mask.Plo qrencode.Plo qrspec.Plo split.Plo
As last option tried to use trunk code, error egain on autogen.sh:
./autogen.sh
configure.ac:75: warning: macro AM_PATH_SDL' not found in library configure.ac:77: warning: macro
AM_ICONV_LINK' not found in library
from libqrencode.
AM_SDL_PATH is defined in sdl.m4, which is included in SDL source package. autogen.sh tries to find the installed sdl.m4 from /usr/share/aclocal, /usr/local/share/aclocal and /opt/local/share/aclocal. Probably your ports system installed the m4 file in different directory. Can you find where was it installed to?
from libqrencode.
Sorry, I had closed this issue accidentally. Just reopened.
from libqrencode.
Hi
installed the sdl.m4 file and now can run autogen.sh and configure(with the patch applied) without problems !.
but when run make the a dependency problem:
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
Making all in .
/bin/sh ./libtool --tag=CC --mode=compile gcc-4.2 -DHAVE_CONFIG_H -I. -Wall -g -O2 -MT qrencode.lo -MD -MP -MF .deps/qrencode.Tpo -c -o qrencode.lo qrencode.c
mv -f .deps/qrencode.Tpo .deps/qrencode.Plo
mv: rename .deps/qrencode.Tpo to .deps/qrencode.Plo: No such file or directory
make[2]: *** [qrencode.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
sorry for bother you with things that I should know ;)
from libqrencode.
Hmm, no idea I have now. BTW, a small change has been added to configure.ac. Would you mind to test the latest source tree?
from libqrencode.
Hey!
I was able con configure an compile trunk version of the code, had some issue with iconv macro, but solved installing gettext and pointing LDFLAGS and CPPFLAGS to this lib.
Also used the original patch to use libpng dependency, I can't make an extensive test of the result, but at first works fine, I'll test more by the end of the day.
the only warning I get:
qrenc.c: In function ‘writePNG’:
qrenc.c:204: warning: passing argument 2 of ‘png_set_longjmp_fn’ makes qualified function pointer from unqualified
Hernan
from libqrencode.
Hi, sorry for the late reply.
I had chance for some more testing and and seems to work fine, I dont found any problem yet on the many test I run.
As a side note tested trunk too on Ubuntu with libpng lib, and works fine too.
Thanks Fukuchi!
from libqrencode.
Nice to hear. Thank you very much for your reports!
from libqrencode.
I would like to note that for CentOS / RHEL you will need to install gettext-devel and SDL-devel for the autogen.sh to work.
from libqrencode.
Related Issues (20)
- rMQR Support
- ANSI and UTF8 types do not display properly on Windows HOT 2
- Please mention SVG output option in usage summary
- [Build Failed] Please consider updating autotool scripts.
- The library doesn't respect the encoding standard HOT 1
- Generation of lib and dll for windows
- Optimal text segmentation HOT 1
- Generate a QR code image with logo HOT 5
- Detect type of image from extension
- Setting --dpi has no effect on the PNG output HOT 2
- qrencode does not work with local linux vt/console
- Is it possible to use QRcode_encodeData() with command line tool (qrencode)?
- input string beginning with "-" parsed as option HOT 4
- How to add qrencode libraries in Qt creator?
- Cmake error HOT 1
- libqrencode on Perl and on Windows
- Questionable interpretation of mask scoring criterion number 3 (finder pattern) HOT 2
- IS THIS PROJECT DEAD?
- What is the maximum string length for QRcode_encodeStringStructured? HOT 1
- Wrong constant in QRinput_encodeModeECI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libqrencode.