Menu

compile error with 0.0.1.26 under cygwin

Luigi01
2009-04-25
2012-12-14
  • Luigi01

    Luigi01 - 2009-04-25

    Hi all,
    I tried to upgrade from 0.0.1.25 to 0.0.1.26 but get an error running ./configure with the new version under my up-to-date cgywin environment. I then also downloaded the log4cpp-1.0 package which produced now errors doing ./configure, make, make install but my ./configure error below does not go away. Could you please give me some idea what could be wrong? Thanks a lot in advance!
    Luigi

    checking for log4cpp-config... /usr/local/bin/log4cpp-config
    checking for log4cpp... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for LOG4CPP... configure: error: Package requirements (log4cpp >= 1.0)
    were not met:

    No package 'log4cpp' found

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    Alternatively, you may set the environment variables LOG4CPP_CFLAGS
    and LOG4CPP_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.

     
    • jef2000

      jef2000 - 2009-04-25

      Hi,

      I only tested it on cygwin using --without-log4cpp option.
      Can you try the following commands and tell me what's the output.

      /usr/local/bin/log4cpp-config --version
      pkg-config --modversion log4cpp

      Additionally, finding where the file log4cpp.pc is copied when log4cpp is installed and setting the environment variable PKG_CONFIG_PATH to that value could help.

      Regards,

      Jean-François

       
      • Luigi01

        Luigi01 - 2009-04-26

        Hi, thanks for you quick response!

        $ /usr/local/bin/log4cpp-config --version
        1.0

        but:

        $ pkg-config --modversion log4cpp
        Package log4cpp was not found in the pkg-config search path.
        Perhaps you should add the directory containing `log4cpp.pc'
        to the PKG_CONFIG_PATH environment variable
        No package 'log4cpp' found

        I found the log4cpp.pc in /usr/local/lib/pkgconfig but noticed that my PKG_CONFIG_PATH was empty. But setting the path with
        $ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
        does not change above error entering
        pkg-config --modversion log4cpp

        Very strange. Any ideas?
        Luigi

         
    • jef2000

      jef2000 - 2009-04-27

      Hi,

      Please try :

      export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
      pkg-config --modversion log4cpp

      Regards,

      Jean-François

       
    • Luigi01

      Luigi01 - 2009-04-27

      Hi Jean-Francois,
      that helped, thank you! Now log4cpp is ok but...
      the next missing package in my cygwin environment is lua5.1  (see log below).
      I searched the web but only found a lua5.1-binary for cygwin. I could not manage to compile the lua5.1 sources within my cygwin.

      Sorry,  but as you notice I am a newbee to linux(cygwin) and better should use a ready compiled linknx in my cygwin. Is one available?

      Thanks a lot!
      Luigi

      checking for LUA... checking for LUA... configure: error: Package requirements (
      lua5.1 >= 5.1) were not met:

      No package 'lua5.1' found

      Consider adjusting the PKG_CONFIG_PATH environment variable if you
      installed software in a non-standard prefix.

      Alternatively, you may set the environment variables LUA_CFLAGS
      and LUA_LIBS to avoid the need to call pkg-config.
      See the pkg-config man page for more details.

       
    • jef2000

      jef2000 - 2009-05-12

      Hi,

      I just managed to compile linknx under cygwin with lua configured.
      It was not so easy because lua doesn't build as a library by default.

      First I downloaded http://www.lua.org/ftp/lua-5.1.4.tar.gz
      uncompressed it in /usr/local/src
      cd /usr/local/src/lua-5.1.4/src
      Edit Makefile, add "cygwin" at the end of the platform list like this:
      PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris cygwin
      and add the following make target (after the solaris target for example)
      cygwin:
          $(MAKE) "LUA_A=lua51.dll" "LUA_T=lua.exe" \     "AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \     "MYCFLAGS=-DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_BUILD_AS_DLL" \     "MYLIBS=-lreadline -lhistory -lncurses" "MYLDFLAGS=-s" lua.exe
          $(MAKE) "LUAC_T=luac.exe" luac.exe

      (be careful to use tabs and not spaces to indent lines in makefile)

      Then:
      cd /usr/local/src/lua-5.1.4
      make cygwin
      make install
      cp /usr/local/src/lua-5.1.4/etc/lua.pc /usr/local/lib/pkgconfig/

      export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
      pkg-config --modversion lua

      The last command should answer: 5.1.4

      Then you can restart the ./configure command of linknx and hope it will finally detect lua

      I have added a binary package for cygwin in the download section:
      https://sourceforge.net/project/downloading.php?group_id=207555&filename=linknx-0.0.1.26-cygwin.zip&a=27781946

      Regards,

      Jean-François

       
    • jef2000

      jef2000 - 2009-05-12

      Hi,

      I also managed to compile libesmtp for cygwin.
      I needed to add the following declaration at the beginning of libesmtp-1.0.4/headers.c (just after the includes:
      struct timeval {
         time_t tv_sec;
         suseconds_t tv_usec;
      };

      Then
      ./configure --enable-emulate-getaddrinfo
      make
      make install

      and back to linknx compilation

      Regards,

      Jean-François

       
    • Luigi01

      Luigi01 - 2009-07-10

      Jean-Francois,
      today I finally had time to upgrade to 0.0.1.26 using your Cygwin compiled version.
      I just want to say that I had to install the openssl and curl packages via the Cygwin Setup.exe because the dll's are not installed by default.

      Thank you very much again for this great tool!
      Luigi

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.