Hello Matthew Brincke,
I hav lua 5.3.4, 5.1.5 and 5.2.4 installed, and this is the cmake output
about Lua:
-- Found Lua50: /usr/lib/liblua5.1.so;/usr/lib/libm.so
-- Found Lua: /usr/lib/liblua5.1.so;/usr/lib/libm.so
Lua found - PoDoFoImpose and PoDoFoColor will be built with Lua support
* Lua include directory: /usr/include
* Lua libraries: /usr/lib/liblua5.1.so;/usr/lib/libm.so
If I add VERBOSE=1, this is the output of make:
[ 66%] Linking CXX executable podofocolor
cd
/home/bill/project/othersproject/podofo-code/podofo-code-1899/podofo/podofo-build/tools/podofocolor
&& /usr/bin/cmake -E cmake_link_script CMakeFiles/podofocolor.dir/link.txt
--verbose=1
/usr/bin/c++ -Wall -Woverloaded-virtual -Wswitch-enum -Wcast-qual
-Wwrite-strings -Wredundant-decls -Wreorder -Wno-deprecated-declarations
-rdynamic CMakeFiles/podofocolor.dir/podofocolor.cpp.o
CMakeFiles/podofocolor.dir/colorchanger.cpp.o
CMakeFiles/podofocolor.dir/colorspace.cpp.o
CMakeFiles/podofocolor.dir/graphicsstack.cpp.o
CMakeFiles/podofocolor.dir/iconverter.cpp.o
CMakeFiles/podofocolor.dir/dummyconverter.cpp.o
CMakeFiles/podofocolor.dir/grayscaleconverter.cpp.o
CMakeFiles/podofocolor.dir/luaconverter.cpp.o -o podofocolor
-L/home/bill/project/othersproject/podofo-code/podofo-code-1899/podofo/podofo-build/src
-Wl,-rpath,/home/bill/project/othersproject/podofo-code/
podofo-code-1899/podofo/podofo-build/src: -lpodofo -lfontconfig -lfreetype
-lz -lidn -lcrypto -lcrypto -lssl -ljpeg -lpthread -lfreetype -lpng -lz
-ltiff -lunistring -llua5.1 -lm -lidn -lcrypto -lcrypto -lssl -ljpeg
-lpthread -lfreetype -lpng -ltiff -lunistring -llua5.1 -lm
CMakeFiles/podofocolor.dir/luaconverter.cpp.o: In function
`LuaConverter::StartPage(PoDoFo::PdfPage*, int)':
luaconverter.cpp:(.text+0x280): undefined reference to `lua_getglobal'
luaconverter.cpp:(.text+0x2d4): undefined reference to `lua_callk'
CMakeFiles/podofocolor.dir/luaconverter.cpp.o: In function
`LuaConverter::EndPage(PoDoFo::PdfPage*, int)':
luaconverter.cpp:(.text+0x30a): undefined reference to `lua_getglobal'
luaconverter.cpp:(.text+0x35e): undefined reference to `lua_callk'
CMakeFiles/podofocolor.dir/luaconverter.cpp.o: In function
`LuaConverter::StartXObject(PoDoFo::PdfXObject*)':
luaconverter.cpp:(.text+0x391): undefined reference to `lua_getglobal'
luaconverter.cpp:(.text+0x3be): undefined reference to `lua_callk'
CMakeFiles/podofocolor.dir/luaconverter.cpp.o: In function
`LuaConverter::EndXObject(PoDoFo::PdfXObject*)':
luaconverter.cpp:(.text+0x3f1): undefined reference to `lua_getglobal'
luaconverter.cpp:(.text+0x41e): undefined reference to `lua_callk'
CMakeFiles/podofocolor.dir/luaconverter.cpp.o: In function
`LuaConverter::GetColorFromReturnValue(char
const*)':
luaconverter.cpp:(.text+0x510): undefined reference to `lua_tonumberx'
CMakeFiles/podofocolor.dir/luaconverter.cpp.o: In function `LuaConverter::
SetStrokingColorGray(PoDoFo::PdfColor const&)':
luaconverter.cpp:(.text+0x7a0): undefined reference to `lua_getglobal'
luaconverter.cpp:(.text+0x7fb): undefined reference to `lua_callk'
CMakeFiles/podofocolor.dir/luaconverter.cpp.o: In function `LuaConverter::
SetStrokingColorRGB(PoDoFo::PdfColor const&)':
luaconverter.cpp:(.text+0x872): undefined reference to `lua_getglobal'
luaconverter.cpp:(.text+0x929): undefined reference to `lua_callk'
CMakeFiles/podofocolor.dir/luaconverter.cpp.o: In function `LuaConverter::
SetStrokingColorCMYK(PoDoFo::PdfColor const&)':
luaconverter.cpp:(.text+0x9a0): undefined reference to `lua_getglobal'
luaconverter.cpp:(.text+0xa85): undefined reference to `lua_callk'
CMakeFiles/podofocolor.dir/luaconverter.cpp.o: In function `LuaConverter::
SetNonStrokingColorGray(PoDoFo::PdfColor const&)':
luaconverter.cpp:(.text+0xafc): undefined reference to `lua_getglobal'
luaconverter.cpp:(.text+0xb57): undefined reference to `lua_callk'
CMakeFiles/podofocolor.dir/luaconverter.cpp.o: In function `LuaConverter::
SetNonStrokingColorRGB(PoDoFo::PdfColor const&)':
luaconverter.cpp:(.text+0xbce): undefined reference to `lua_getglobal'
luaconverter.cpp:(.text+0xc85): undefined reference to `lua_callk'
CMakeFiles/podofocolor.dir/luaconverter.cpp.o: In function `LuaConverter::
SetNonStrokingColorCMYK(PoDoFo::PdfColor const&)':
luaconverter.cpp:(.text+0xcfc): undefined reference to `lua_getglobal'
luaconverter.cpp:(.text+0xde1): undefined reference to `lua_callk'
CMakeFiles/podofocolor.dir/luaconverter.cpp.o: In function
`imp_lua_objlen(lua_State*, int)':
luaconverter.cpp:(.text._Z14imp_lua_objlenP9lua_Statei[
_Z14imp_lua_objlenP9lua_Statei]+0x1c): undefined reference to `lua_rawlen'
CMakeFiles/podofocolor.dir/luaconverter.cpp.o: In function
`imp_lua_dofile(lua_State*, char const*)':
luaconverter.cpp:(.text._Z14imp_lua_dofileP9lua_StatePKc[_Z14imp_lua_dofileP9lua_StatePKc]+0x24):
undefined reference to `luaL_loadfilex'
luaconverter.cpp:(.text._Z14imp_lua_dofileP9lua_StatePKc[_Z14imp_lua_dofileP9lua_StatePKc]+0x4f):
undefined reference to `lua_pcallk'
collect2: error: ld returned 1 exit status
make[2]: *** [tools/podofocolor/CMakeFiles/podofocolor.dir/build.make:299:
tools/podofocolor/podofocolor] Error 1
make[2]: Leaving directory '/home/bill/project/othersproject/podofo-code/
podofo-code-1899/podofo/podofo-build'
make[1]: *** [CMakeFiles/Makefile2:971:
tools/podofocolor/CMakeFiles/podofocolor.dir/all]
Error 2
make[1]: Leaving directory '/home/bill/project/othersproject/podofo-code/
podofo-code-1899/podofo/podofo-build'
make: *** [Makefile:130: all] Error 2
If I add -DLUA_LIBRARIES="/usr/lib/liblua.so;/usr/lib/libm.so" to cmake,
podofo is built successfully. Thank you!
Best regards,
Hsiu-Ming Chang
2018-03-10 5:52 GMT+08:00 Matthew Brincke <ma...@mailbox.org>:
> Hello,
> > On 09 March 2018 at 16:04 張修銘 <cges30...@gmail.com> wrote:
> >
> >
> > Hello,
> > I downloaded snapshot of podofo from SourceForge and tried
> > to build it on Manjaro Linux, but I encountered an error. Here
> > is part of the error message:
> >
> > [ 66%] Linking CXX executable podofocolor
> that your build got this far means that the podofo library
> proper got built without (apparent) error. Have you tried to
> use it in a program?
> > CMakeFiles/podofocolor.dir/luaconverter.cpp.o: In function
> `LuaConverter::StartPage(PoDoFo::PdfPage*, int)':
> > luaconverter.cpp:(.text+0x280): undefined reference to `lua_getglobal'
> > luaconverter.cpp:(.text+0x2d4): undefined reference to `lua_callk'
> Please restart make with the VERBOSE=1 argument to get to know
> the command line for this linking. Is the Lua library mentioned?
> (I acknowledge that it being missing from the system should have
> been detected during configuring: the cmake run on the top-level
> CMakeLists.txt file. If you have it: Which version is it?)
> ... snip ... (because the error message have the same form, only
> Lua symbols are reported missing, so the probable cause is the
> Lua library not being mentioned: what is the cmake output on this?)
>
> >
> > Does anyone knows how to solve it?
> You can try to give cmake an argument -DLUA_LIBRARIES=/path/to/liblu
> a.so;/path/to/libm.so
> (of course replace the path by the real one in your system)
> or to check for a successful build of the library give the argument
> -DPODOFO_BUILD_LIB_ONLY:BOOL=TRUE to cmake, this will deactivate
> building the tools, tests and examples.
>
> I hope this helps (untested, sorry). Please provide answers to
> my questions above.
>
> Best regards, mabri
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Podofo-users mailing list
> Podofo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/podofo-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users