I went ahead and bit the bullet, downloaded and compiled the IUP Lua source.
Tecmake complained it was missing 'liblua.a'.
In the ../lua5.1/lib/Linux32_64/ directory, there was 'liblua5.1.a' so I 
just made a soft link to it.

cd ../lua5.1/lib/Linux32_64/
ln -s liblua5.1.a liblua.a

CD'd back to the IUP directory, sent 'make' once more and build 
completed successfully.
So, that worked, but it should be possible to build with a natively 
installed Lua.

Now on to test the implementation ;)

Thanks,
-Eddy

On 03/05/2012 12:11 PM, Eddy Martin wrote:
> OK, tried added srcmglplot to the makefile (just to experiment) and it
> still stopped, so I did as you directed, compiled successfully.
> CD'd back to the IUP directory and issued 'make'.
> Now it has stopped, and is looking for liblua.a from the
> ./lua5.1/lib/Linux32_64/ directory:
>
> ./tecmake.mak:1469: iuplua51.dep: No such file or directory
> Tecmake: Building Dependencies ... [ iuplua51.dep ] (can be slow)
>
> Tecmake: starting [ iuplua51:Linux32_64 ]
>
> Tecmake: compiling iup_lua51.c ...
> gcc -c  -Wall -O2 -m64 -fPIC -Ilh -I/usr/include/lua5.1
> -DIUPLUA_USELH -DTEC_UNAME=Linux32_64 -DTEC_SYSNAME=Linux -DLinux=3.2
> -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o
> ./obj/iuplua51/Linux32_64/iup_lua51.o iup_lua51.c
>
> Tecmake: linking iuplua51 ...
> g++ -o ../bin/Linux32_64/iuplua51 ../obj/iuplua51/Linux32_64/iup_lua51.o
> ./../lua5.1/lib/Linux32_64/liblua.a -Wl,-E  -ldl -lreadline -lhistory
> -lcurses -lncurses -lm
> g++: error: ../../lua5.1/lib/Linux32_64/liblua.a: No such file or directory
> make[2]: *** [../bin/Linux32_64/iuplua51] Error 1
> make[1]: *** [iuplua5] Error 2
> make: *** [iupconsole] Error 2
>
>
> I decided not to compile the IUP Lua source as I have Lua installed on
> my system already.
> Is there a way to work around this and compile IUP with my existing Lua
> install?
> I had added 'export LUA_BIN=/usr/bin' to my pre-make script when it
> errored from looking for the Lua executable in the same directory.
> I have all the Lua dev libraries installed as well.
>
> Thanks for the help,
> -Eddy
>
> On 03/05/2012 09:56 AM, Antonio Scuri wrote:
>    
>>     That was something missing the "iup/Makefile" list. To solve that just go
>> in the folder "srcmglplot" and type make.
>>
>>     Actually you don't need to build all the libraries just to start using
>> IUP. You can also live without that executable if things go wrong. Anyway,
>> let me know if you could compile everything.
>>
>> Best,
>> Scuri
>>
>>
>>      
>>> -----Original Message-----
>>> From: Eddy Martin [mailto:[email protected]]
>>> Sent: segunda-feira, 5 de março de 2012 14:48
>>> To: IUP discussion list.
>>> Subject: Re: [Iup-users] Compiling IUP - linker errors
>>>
>>> Thanks for your reply Antonio.
>>> I did a CVS checkout and ran 'make', now I have a new error:
>>>
>>> Tecmake: linking libiuplua_mglplot51.so ...
>>> gcc -shared -o ../lib/Linux32_64/libiuplua_mglplot51.so
>>> ./obj/iuplua_mglplot51/Linux32_64/iuplua_mglplot.o
>>> ./obj/iuplua_mglplot51/Linux32_64/il_mglplot.o  -L../lib/Linux32_64 -
>>> liup_mglplot -liuplua51 -liup -lm
>>> /usr/bin/ld: cannot find -liup_mglplot
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [../lib/Linux32_64/libiuplua_mglplot51.so] Error 1
>>> make[1]: *** [iuplua_mglplot] Error 2
>>> make: *** [iuplua5] Error 2
>>>
>>> in ./lib there is no iup_mglplot file, and I dug around in the ./srclua5
>>> makefiles, but honestly I'm not sure what to look for.
>>>
>>> Thanks again,
>>> -Eddy
>>>
>>> P.S. Just for the record, output of gcc -v:
>>>
>>> Using built-in specs.
>>> COLLECT_GCC=gcc
>>> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
>>> Target: x86_64-linux-gnu
>>> Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.2-12'
>>> --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
>>> --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr
>>> --program-suffix=-4.6 --enable-shared --enable-linker-build-id
>>>
>>>        
>> --with-system-
>>
>>      
>>> zlib --libexecdir=/usr/lib --without-included-gettext
>>>
>>>        
>> --enable-threads=posix --
>>
>>      
>>> with-gxx-include-dir=/usr/include/c++/4.6
>>> --libdir=/usr/lib --enable-nls --enable-clocale=gnu
>>>
>>>        
>> --enable-libstdcxx-debug --
>>
>>      
>>> enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --with-arch-
>>> 32=i586 --with-tune=generic --enable-checking=release
>>>
>>>        
>> --build=x86_64-linux-
>>
>>      
>>> gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix
>>> gcc version 4.6.2 (Debian 4.6.2-12)
>>>
>>> Thanks again,
>>> -Eddy
>>>
>>> On 03/05/2012 04:55 AM, Antonio Scuri wrote:
>>>
>>>        
>>>>      Hi,
>>>>
>>>>      CD and IM had a few changes in their configuration that affected
>>>> the IUP build. But we still did not release a new IUP version with the
>>>> necessary updates in the Makefiles. So you will need to download IUP
>>>> from CVS. We expect to release a new IUP version soon, but I don't
>>>> have a date yet, still working on some tasks.
>>>>
>>>>      This should solve both of your issues.
>>>>
>>>> Best Regards,
>>>> Antonio Scuri
>>>>
>>>>
>>>>
>>>>          
>>>>> -----Original Message-----
>>>>> From: Eddy Martin [mailto:[email protected]]
>>>>> Sent: segunda-feira, 5 de março de 2012 02:12
>>>>> To: [email protected]
>>>>> Subject: [Iup-users] Compiling IUP - linker errors
>>>>>
>>>>> Hello all, I'm new to this list, in fact new to a lot of
>>>>>
>>>>>
>>>>>            
>>>> programming-related
>>>>
>>>>
>>>>          
>>>>> subjects, so hopefully I won't be a nuisance while I learn, but
>>>>> please
>>>>>
>>>>>
>>>>>            
>>>> bear with
>>>>
>>>>
>>>>          
>>>>> me, as I'm stumped trying to build IUP on my machine.
>>>>>
>>>>> I'm running Debian 'testing' on a 64-bit machine.
>>>>> Following the instructions at http://www.tecgraf.puc-rio.br/iup/ I
>>>>>
>>>>>
>>>>>            
>>>> successfully
>>>>
>>>>
>>>>          
>>>>> built IM and CD, but IUP fails.
>>>>> All required development files are installed.
>>>>> This is the last message I received:
>>>>>
>>>>> Tecmake: linking iupview ...
>>>>> g++ -o ../bin/Linux32_64/iupview ../obj/iupview/Linux32_64/iup_view.o
>>>>> ./lib/Linux32_64/libiupim.a ../lib/Linux32_64/libiupimglib.a
>>>>> ./lib/Linux32_64/libiupcontrols.a ../lib/Linux32_64/libiupcd.a
>>>>> ./lib/Linux32_64/libiupgl.a ../lib/Linux32_64/libiup.a
>>>>> ./../cd/lib/Linux32_64/libcd.a ../../im/lib/Linux32_64/libim.a
>>>>> -L/usr/X11R6/lib64 -lGLU -lGL -lgtk-x11-2.0 -lgdk-x11-2.0
>>>>> -lpangox-1.0
>>>>> -lgdk_pixbuf-2.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
>>>>> -lXmu
>>>>>
>>>>>
>>>>>            
>>>> -lXt -
>>>>
>>>>
>>>>          
>>>>> lXext -lX11 -lm
>>>>> /usr/bin/ld: ../../im/lib/Linux32_64/libim.a(pngwrite.o): undefined
>>>>>
>>>>>
>>>>>            
>>>> reference
>>>>
>>>>
>>>>          
>>>>> to symbol 'deflate'
>>>>> /usr/bin/ld: note: 'deflate' is defined in DSO /usr/lib/libz.so.1 so
>>>>> try
>>>>>
>>>>>
>>>>>            
>>>> adding it
>>>>
>>>>
>>>>          
>>>>> to the linker command line
>>>>> /usr/lib/libz.so.1: could not read symbols: Invalid operation
>>>>> collect2: ld returned 1 exit status
>>>>> make[2]: *** [../bin/Linux32_64/iupview] Error 1
>>>>> make[1]: *** [iupview] Error 2
>>>>> make: *** [iupview] Error 2
>>>>>
>>>>> I've already had to add softlinks to some gtk include files, because
>>>>> they
>>>>>
>>>>>
>>>>>            
>>>> were
>>>>
>>>>
>>>>          
>>>>> installed a bit strangely.
>>>>> Hopefully I didn't break something:
>>>>>
>>>>> ln -s /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h
>>>>> /usr/include/glib-2.0/glibconfig.h
>>>>> ln -s /usr/lib/x86_64-linux-gnu/gtk-2.0/include/gdkconfig.h
>>>>> /usr/include/gtk-2.0/gdkconfig.h
>>>>> ln -s /usr/lib/libwebkitgtk-1.0.so /usr/lib/libwebkit-1.0.so
>>>>>
>>>>> At this point I have no idea how to do what it suggests, any takers?
>>>>>
>>>>> -Eddy
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>            
>>>> ----------------------------------------------------------------------
>>>> ------
>>>> --
>>>>
>>>>
>>>>          
>>>>> Try before you buy = See our experts in action!
>>>>> The most comprehensive online learning library for Microsoft
>>>>> developers is just $99.99! Visual Studio, SharePoint, SQL - plus
>>>>> HTML5, CSS3, MVC3,
>>>>>
>>>>>
>>>>>            
>>>> Metro
>>>>
>>>>
>>>>          
>>>>> Style Apps, more. Free future releases when you subscribe now!
>>>>> http://p.sf.net/sfu/learndevnow-dev2
>>>>> _______________________________________________
>>>>> Iup-users mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>>>
>>>>>
>>>>>            
>>>> ----------------------------------------------------------------------
>>>> -------- Try before you buy = See our experts in action!
>>>> The most comprehensive online learning library for Microsoft
>>>> developers is just $99.99! Visual Studio, SharePoint, SQL - plus
>>>> HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when
>>>>
>>>>          
>>> you subscribe now!
>>>
>>>        
>>>> http://p.sf.net/sfu/learndevnow-dev2
>>>> _______________________________________________
>>>> Iup-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>>
>>>>
>>>>          
>>>
>>>
>>>
>>>        
>> ----------------------------------------------------------------------------
>> --
>>
>>      
>>> Try before you buy = See our experts in action!
>>> The most comprehensive online learning library for Microsoft developers is
>>> just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>>>
>>>        
>> Metro
>>
>>      
>>> Style Apps, more. Free future releases when you subscribe now!
>>> http://p.sf.net/sfu/learndevnow-dev2
>>> _______________________________________________
>>> Iup-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>
>>>        
>> ------------------------------------------------------------------------------
>> Try before you buy = See our experts in action!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-dev2
>> _______________________________________________
>> Iup-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>      
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>    



------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to