Giter Club home page Giter Club logo

Comments (10)

fukuchi avatar fukuchi commented on July 28, 2024

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.

hernan avatar hernan commented on July 28, 2024

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: macroAM_ICONV_LINK' not found in library

from libqrencode.

fukuchi avatar fukuchi commented on July 28, 2024

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.

fukuchi avatar fukuchi commented on July 28, 2024

Sorry, I had closed this issue accidentally. Just reopened.

from libqrencode.

hernan avatar hernan commented on July 28, 2024

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.

fukuchi avatar fukuchi commented on July 28, 2024

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.

hernan avatar hernan commented on July 28, 2024

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.

hernan avatar hernan commented on July 28, 2024

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.

fukuchi avatar fukuchi commented on July 28, 2024

Nice to hear. Thank you very much for your reports!

from libqrencode.

jasonwbarnett avatar jasonwbarnett commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.