adonthell-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Adonthell-general] Python library not found


From: shirish शिरीष
Subject: Re: [Adonthell-general] Python library not found
Date: Wed, 6 Mar 2013 02:35:38 +0530

at bottom :-

On Wed, Mar 6, 2013 at 1:54 AM, Kai Sterker <address@hidden> wrote:
> On Tue, Mar 5, 2013 at 9:00 PM, shirish शिरीष <address@hidden> wrote:
>
>>> This is the library the configure script should pick up in your case:
>>>> libpython2.7: /usr/lib/python2.7/config/libpython2.7.so
>
>> Actually it doesn't seem to have that one :-
>> So as can be seen it has only :-
>>
>> /usr/lib/python2.7/config-x86_64-linux-gnu$ ls
>
> I see. So it appears that the other one would be the 32bit version,
> which would be the wrong one anyway. In that case, the library is
> indeed in a location our configure script does not check. You can tell
> it where to look, however:
>
> Simply add this to the configure invocation:
>   --with-py-libs="-L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7"
>
> The configure script has a couple of paths it checks besides the
> obvious, but it doesn't have that one. What distro are you currently
> running. If its one that will be seeing more widespread use in the
> future, it might be worth to add that path or some more robust way to
> actually find out what the right path should be.
>
> Best regards,
>
> Kai

I am using stock debian (as in from debian.org) .

And indeed the above command you shared made the problem go away :-

~/games/adonthell/adonthell-build$ ../adonthell/configure
--with-py-libs="-L/usr/lib/python2.7/config-x86_64-linux-gnu
-lpython2.7"checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether ln -s works... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking dependency style of ... none
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to
x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to
toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for lt_dlinit in -lltdl... yes
checking for main in -lz... yes
checking for pkg-config... /usr/bin/pkg-config
checking for xml2-config... /usr/bin/xml2-config
checking for libxml - version >= 2.5.0... yes (version 2.8.0)
checking pkg-config is at least version 0.9.0... yes
checking for SDL... no
checking for sdl2-config... no
checking for SDL - version >= 2.0.0... no
*** The sdl2-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl2-config.
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking SDL/SDL_mixer.h usability... yes
checking SDL/SDL_mixer.h presence... yes
checking for SDL/SDL_mixer.h... yes
checking for Mix_OpenAudio in -lSDL_mixer... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for a Python interpreter with version >= 2.0... python
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/dist-packages
checking for python extension module directory...
${exec_prefix}/lib/python2.7/dist-packages
checking for Python header files... found
checking for Python ld flags...
-L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7
checking for swig... /usr/bin/swig
checking for SWIG version... 2.0.7
checking for libglog... no
checking for nanosleep... yes
checking for freetype-config... /usr/bin/freetype-config
checking for FreeType -- version >= 6.0.0... yes
configure: creating ./config.status
config.status: creating adonthell.pc
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/main/Makefile
config.status: creating src/base/Makefile
config.status: creating src/event/Makefile
config.status: creating src/gfx/Makefile
config.status: creating src/input/Makefile
config.status: creating src/audio/Makefile
config.status: creating src/gui/Makefile
config.status: creating src/python/Makefile
config.status: creating src/rpg/Makefile
config.status: creating src/world/Makefile
config.status: creating src/py-runtime/Makefile
config.status: creating src/py-wrappers/Makefile
config.status: creating src/py-wrappers/adonthell/Makefile
config.status: creating doc/Makefile
config.status: creating test/Makefile
config.status: creating test/data/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

So I guess you should think of adding the same in the configure script.

I think this path came because of multi-arch See
https://wiki.debian.org/Multiarch
-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



reply via email to

[Prev in Thread] Current Thread [Next in Thread]