Re: [Iup-users] Trouble building im - I seem to be missing a variable?

2021-03-18 Thread Matt Welland
I agree it is weird. Possibly I am doing something wrong but it is not
obvious to me what. To help debug I have written a script to do a clean,
from scratch build (see attached). I have tested on Ubuntu 18.04 and 20.04
with the same result. If you are working from Windows you can probably test
that script in a WLS session (
https://docs.microsoft.com/en-us/windows/wsl/install-win10). If the script
runs cleanly for you that would help bisect the problem as being in my
setup.

I don't know how tecmake works but I can try to debug further. I did notice
that some .h files that are committed in svn are modified by the dep
generation process.

FYI, I'm setting up an automated daily build of iup along with some other
stuff that will be made browseable from the web. I'm hoping that I can
provide timely feedback and help keep IUP building seamlessly out of the
box on Ubuntu.

On Thu, Mar 18, 2021 at 5:47 AM Antonio Scuri 
wrote:

>  That's weird, because that dependency occurs on the dependency file. If
> you remove it or build from SVN, that's not hardcoded anywhere.
>
>  For instance:
>
> D:\tecgraf\cd\src>grep -R "/tecgraf/pdflib7" *
> dep/cdpdf.dep.Linux313_64: ../include/cdpdf.h
> /tecgraf/pdflib7/include/pdflib.h
> dep/cdpdf.dep.Linux319_64: ../include/cdpdf.h
> /tecgraf/pdflib7/include/pdflib.h
> dep/cdpdf.dep.Linux415_64: ../include/cdpdf.h
> /tecgraf/pdflib7/include/pdflib.h
> dep/cdpdf.dep.Linux44_64: ../include/cdpdf.h
> /tecgraf/pdflib7/include/pdflib.h
> dep/cdpdf.dep.Linux50_64: ../include/cdpdf.h
> /tecgraf/pdflib7/include/pdflib.h
> dep/cdpdf.dep.Linux54_64: ../include/cdpdf.h
> /tecgraf/pdflib7/include/pdflib.h
>
>
>
>
> Em qui., 18 de mar. de 2021 às 08:56, Matt Welland 
> escreveu:
>
>> Yes, folder is removed. I also built from svn and see the same problem.
>>
>> Get BlueMail for Android <http://www.bluemail.me/r?b=16696>
>> On Mar 17, 2021, at 10:56 AM, Antonio Scuri 
>> wrote:
>>>
>>>  Still the same problem. Did you remove the folder in CD/src folder?
>>>
>>> Em qua., 17 de mar. de 2021 às 12:02, Matt Welland <
>>> mattrwell...@gmail.com> escreveu:
>>>
>>>> Hi Scuri,
>>>>
>>>> I do get the message:
>>>>
>>>> make[1]: *** No rule to make target '/tecgraf/pdflib7/include/pdflib.h', 
>>>> needed by '../obj/cdpdf/Linux54_64/cdpdf.o'.  Stop.
>>>>
>>>> *after* removing the dep dir. Can you suggest how to debug further?
>>>>
>>>> Thanks,
>>>> Matt
>>>> -=-
>>>>
>>>>
>>>> On Mon, Mar 15, 2021 at 4:39 AM Antonio Scuri < antonio.sc...@gmail.com>
>>>> wrote:
>>>>
>>>>> HiI,
>>>>>
>>>>> This is the same problem, but in the CD src folder. Simply erase the
>>>>> folder:
>>>>>
>>>>> cd\src\dep
>>>>>
>>>>> If you get from SVN head, it will not have the problem. But there
>>>>> aren't any differences in CD and IM that are worth it. Maybe in IUP.
>>>>>
>>>>> Best,
>>>>> Scuri
>>>>>
>>>>>
>>>>>
>>>>> Em seg., 15 de mar. de 2021 às 02:18, Matt Welland <
>>>>> mattrwell...@gmail.com> escreveu:
>>>>>
>>>>>> Thanks Scuri,
>>>>>>
>>>>>> That fixed it and it built a few times (I'm automating the build for
>>>>>> my project). However I started getting an error regarding not finding
>>>>>> grcbox.h so I removed the deps in all and then I get:
>>>>>>
>>>>>> Tecmake: starting [ cdpdf:Linux54_64 ]
>>>>>> if [ ! -d ../obj/cdpdf/Linux54_64 ] ; then mkdir -p 
>>>>>> ../obj/cdpdf/Linux54_64 ; fimake[1]: *** No rule to make target 
>>>>>> '/tecgraf/pdflib7/include/pdflib.h', needed by 
>>>>>> '../obj/cdpdf/Linux54_64/cdpdf.o'.  Stop.
>>>>>> make: *** [Makefile:14: cdpdf] Error 2
>>>>>>
>>>>>> Would it be better if I worked from the svn repository? If so, how do I 
>>>>>> get specific tags? If not, any idea what I might be doing wrong?
>>>>>>
>>>>>> If it matters, I'm trying to build on Ubuntu 18.04 and 20.04. I'd like 
>>>>>> to get to a point where my automation is building regularly from both 
>>>>>> source tars and svn.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>&g

Re: [Iup-users] Trouble building im - I seem to be missing a variable?

2021-03-18 Thread Matt Welland
Yes, folder is removed. I also built from svn and see the same problem. 

⁣Get BlueMail for Android ​

On Mar 17, 2021, 10:56 AM, at 10:56 AM, Antonio Scuri  
wrote:
> Still the same problem. Did you remove the folder in CD/src folder?
>
>Em qua., 17 de mar. de 2021 às 12:02, Matt Welland
>
>escreveu:
>
>> Hi Scuri,
>>
>> I do get the message:
>>
>> make[1]: *** No rule to make target
>'/tecgraf/pdflib7/include/pdflib.h', needed by
>'../obj/cdpdf/Linux54_64/cdpdf.o'.  Stop.
>>
>> *after* removing the dep dir. Can you suggest how to debug further?
>>
>> Thanks,
>> Matt
>> -=-
>>
>>
>> On Mon, Mar 15, 2021 at 4:39 AM Antonio Scuri
>
>> wrote:
>>
>>> HiI,
>>>
>>> This is the same problem, but in the CD src folder. Simply erase the
>>> folder:
>>>
>>> cd\src\dep
>>>
>>> If you get from SVN head, it will not have the problem. But there
>aren't
>>> any differences in CD and IM that are worth it. Maybe in IUP.
>>>
>>> Best,
>>> Scuri
>>>
>>>
>>>
>>> Em seg., 15 de mar. de 2021 às 02:18, Matt Welland <
>>> mattrwell...@gmail.com> escreveu:
>>>
>>>> Thanks Scuri,
>>>>
>>>> That fixed it and it built a few times (I'm automating the build
>for my
>>>> project). However I started getting an error regarding not finding
>grcbox.h
>>>> so I removed the deps in all and then I get:
>>>>
>>>> Tecmake: starting [ cdpdf:Linux54_64 ]
>>>> if [ ! -d ../obj/cdpdf/Linux54_64 ] ; then mkdir -p
>../obj/cdpdf/Linux54_64 ; fimake[1]: *** No rule to make target
>'/tecgraf/pdflib7/include/pdflib.h', needed by
>'../obj/cdpdf/Linux54_64/cdpdf.o'.  Stop.
>>>> make: *** [Makefile:14: cdpdf] Error 2
>>>>
>>>> Would it be better if I worked from the svn repository? If so, how
>do I get specific tags? If not, any idea what I might be doing wrong?
>>>>
>>>> If it matters, I'm trying to build on Ubuntu 18.04 and 20.04. I'd
>like to get to a point where my automation is building regularly from
>both source tars and svn.
>>>>
>>>> Thanks,
>>>>
>>>> Matt
>>>> -=-
>>>>
>>>>
>>>>
>>>>
>>>> On Mon, Mar 8, 2021 at 5:38 AM Antonio Scuri
>
>>>> wrote:
>>>>
>>>>>   Hi,
>>>>>
>>>>>   This is an error in the distribution files. Erase the folder
>>>>>
>>>>> im\src\dep
>>>>>
>>>>>   And build again.
>>>>>
>>>>> Best,
>>>>> Scuri
>>>>>
>>>>>
>>>>> Em seg., 8 de mar. de 2021 às 03:34, Matt Welland <
>>>>> mattrwell...@gmail.com> escreveu:
>>>>>
>>>>>> Tecmake: starting [ imlua51:Linux54_64 ]
>>>>>> if [ ! -d ../obj/imlua51/Linux54_64/Lua51 ] ; then mkdir -p
>>>>>> ../obj/imlua51/Linux54_64/Lua51 ; fi
>>>>>> if [ ! -d ../lib/Linux54_64/Lua51 ] ; then mkdir -p
>>>>>> ../lib/Linux54_64/Lua51 ; fi
>>>>>> make[1]: *** No rule to make target
>'/tecgraf/lua5.1/include/lua.h',
>>>>>> needed by '../obj/imlua51/Linux54_64/Lua51/imlua.o'.  Stop.
>>>>>> make: *** [Makefile:28: imlua5] Error 2
>>>>>>
>>>>>> The Lua variables are set as follows:
>>>>>>
>>>>>> LUA_SUFFIX
>>>>>> LUA_INC /usr/include/lua5.1
>>>>>> LUA_LIB /usr/lib
>>>>>> USE_LUA_VERSION 51
>>>>>>
>>>>>> I'm trying to follow the instructions from
>https://webserver2.tecgraf.puc-rio.br/im/en/building.html
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> ___
>>>>>> Iup-users mailing list
>>>>>> Iup-users@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>>>>
>>>>> ___
>>>>> Iup-users mailing list
>>>>> Iup-users@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>>>
>>>> ___
>>>> Iup-users mailing list
>>>> Iup-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>>
>>> ___
>>> Iup-users mailing list
>>> Iup-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>
>> ___
>> Iup-users mailing list
>> Iup-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>
>
>
>
>
>
>
>
>___
>Iup-users mailing list
>Iup-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/iup-users
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Trouble building im - I seem to be missing a variable?

2021-03-17 Thread Matt Welland
Hi Scuri,

I do get the message:

make[1]: *** No rule to make target
'/tecgraf/pdflib7/include/pdflib.h', needed by
'../obj/cdpdf/Linux54_64/cdpdf.o'.  Stop.

*after* removing the dep dir. Can you suggest how to debug further?

Thanks,
Matt
-=-


On Mon, Mar 15, 2021 at 4:39 AM Antonio Scuri 
wrote:

> HiI,
>
> This is the same problem, but in the CD src folder. Simply erase the
> folder:
>
> cd\src\dep
>
> If you get from SVN head, it will not have the problem. But there aren't
> any differences in CD and IM that are worth it. Maybe in IUP.
>
> Best,
> Scuri
>
>
>
> Em seg., 15 de mar. de 2021 às 02:18, Matt Welland 
> escreveu:
>
>> Thanks Scuri,
>>
>> That fixed it and it built a few times (I'm automating the build for my
>> project). However I started getting an error regarding not finding grcbox.h
>> so I removed the deps in all and then I get:
>>
>> Tecmake: starting [ cdpdf:Linux54_64 ]
>> if [ ! -d ../obj/cdpdf/Linux54_64 ] ; then mkdir -p ../obj/cdpdf/Linux54_64 
>> ; fimake[1]: *** No rule to make target '/tecgraf/pdflib7/include/pdflib.h', 
>> needed by '../obj/cdpdf/Linux54_64/cdpdf.o'.  Stop.
>> make: *** [Makefile:14: cdpdf] Error 2
>>
>> Would it be better if I worked from the svn repository? If so, how do I get 
>> specific tags? If not, any idea what I might be doing wrong?
>>
>> If it matters, I'm trying to build on Ubuntu 18.04 and 20.04. I'd like to 
>> get to a point where my automation is building regularly from both source 
>> tars and svn.
>>
>> Thanks,
>>
>> Matt
>> -=-
>>
>>
>>
>>
>> On Mon, Mar 8, 2021 at 5:38 AM Antonio Scuri 
>> wrote:
>>
>>>   Hi,
>>>
>>>   This is an error in the distribution files. Erase the folder
>>>
>>> im\src\dep
>>>
>>>   And build again.
>>>
>>> Best,
>>> Scuri
>>>
>>>
>>> Em seg., 8 de mar. de 2021 às 03:34, Matt Welland <
>>> mattrwell...@gmail.com> escreveu:
>>>
>>>> Tecmake: starting [ imlua51:Linux54_64 ]
>>>> if [ ! -d ../obj/imlua51/Linux54_64/Lua51 ] ; then mkdir -p
>>>> ../obj/imlua51/Linux54_64/Lua51 ; fi
>>>> if [ ! -d ../lib/Linux54_64/Lua51 ] ; then mkdir -p
>>>> ../lib/Linux54_64/Lua51 ; fi
>>>> make[1]: *** No rule to make target '/tecgraf/lua5.1/include/lua.h',
>>>> needed by '../obj/imlua51/Linux54_64/Lua51/imlua.o'.  Stop.
>>>> make: *** [Makefile:28: imlua5] Error 2
>>>>
>>>> The Lua variables are set as follows:
>>>>
>>>> LUA_SUFFIX
>>>> LUA_INC /usr/include/lua5.1
>>>> LUA_LIB /usr/lib
>>>> USE_LUA_VERSION 51
>>>>
>>>> I'm trying to follow the instructions from 
>>>> https://webserver2.tecgraf.puc-rio.br/im/en/building.html
>>>>
>>>> Thanks.
>>>>
>>>> ___
>>>> Iup-users mailing list
>>>> Iup-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>>
>>> ___
>>> Iup-users mailing list
>>> Iup-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>
>> ___
>> Iup-users mailing list
>> Iup-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Trouble building im - I seem to be missing a variable?

2021-03-14 Thread Matt Welland
Thanks Scuri,

That fixed it and it built a few times (I'm automating the build for my
project). However I started getting an error regarding not finding grcbox.h
so I removed the deps in all and then I get:

Tecmake: starting [ cdpdf:Linux54_64 ]
if [ ! -d ../obj/cdpdf/Linux54_64 ] ; then mkdir -p
../obj/cdpdf/Linux54_64 ; fimake[1]: *** No rule to make target
'/tecgraf/pdflib7/include/pdflib.h', needed by
'../obj/cdpdf/Linux54_64/cdpdf.o'.  Stop.
make: *** [Makefile:14: cdpdf] Error 2

Would it be better if I worked from the svn repository? If so, how do
I get specific tags? If not, any idea what I might be doing wrong?

If it matters, I'm trying to build on Ubuntu 18.04 and 20.04. I'd like
to get to a point where my automation is building regularly from both
source tars and svn.

Thanks,

Matt
-=-




On Mon, Mar 8, 2021 at 5:38 AM Antonio Scuri 
wrote:

>   Hi,
>
>   This is an error in the distribution files. Erase the folder
>
> im\src\dep
>
>   And build again.
>
> Best,
> Scuri
>
>
> Em seg., 8 de mar. de 2021 às 03:34, Matt Welland 
> escreveu:
>
>> Tecmake: starting [ imlua51:Linux54_64 ]
>> if [ ! -d ../obj/imlua51/Linux54_64/Lua51 ] ; then mkdir -p
>> ../obj/imlua51/Linux54_64/Lua51 ; fi
>> if [ ! -d ../lib/Linux54_64/Lua51 ] ; then mkdir -p
>> ../lib/Linux54_64/Lua51 ; fi
>> make[1]: *** No rule to make target '/tecgraf/lua5.1/include/lua.h',
>> needed by '../obj/imlua51/Linux54_64/Lua51/imlua.o'.  Stop.
>> make: *** [Makefile:28: imlua5] Error 2
>>
>> The Lua variables are set as follows:
>>
>> LUA_SUFFIX
>> LUA_INC /usr/include/lua5.1
>> LUA_LIB /usr/lib
>> USE_LUA_VERSION 51
>>
>> I'm trying to follow the instructions from 
>> https://webserver2.tecgraf.puc-rio.br/im/en/building.html
>>
>> Thanks.
>>
>> ___
>> Iup-users mailing list
>> Iup-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


[Iup-users] Trouble building im - I seem to be missing a variable?

2021-03-07 Thread Matt Welland
Tecmake: starting [ imlua51:Linux54_64 ]
if [ ! -d ../obj/imlua51/Linux54_64/Lua51 ] ; then mkdir -p
../obj/imlua51/Linux54_64/Lua51 ; fi
if [ ! -d ../lib/Linux54_64/Lua51 ] ; then mkdir -p ../lib/Linux54_64/Lua51
; fi
make[1]: *** No rule to make target '/tecgraf/lua5.1/include/lua.h', needed
by '../obj/imlua51/Linux54_64/Lua51/imlua.o'.  Stop.
make: *** [Makefile:28: imlua5] Error 2

The Lua variables are set as follows:

LUA_SUFFIX
LUA_INC /usr/include/lua5.1
LUA_LIB /usr/lib
USE_LUA_VERSION 51

I'm trying to follow the instructions from
https://webserver2.tecgraf.puc-rio.br/im/en/building.html

Thanks.
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Precompiled binaries for IUP on ARM?

2018-06-22 Thread Matt Welland
Hi Scuri,

Is building on ARM supported? If so I'll give building from source a try. I
see some previous posts on this subject but I didn't see any success
reports.

Thanks.

On Fri, Jun 22, 2018 at 8:23 AM, Antonio Scuri 
wrote:

> >  Are there pre-built binaries for ARM available?
>
>   No, there aren't.
>
> Best,
> Scuri
>
>
> Em sex, 22 de jun de 2018 às 12:15, Matt Welland 
> escreveu:
>
>> I would like to try using IUP on GNURoot on my Gemini PDA. Are there
>> pre-built binaries for ARM available? I don't see any on sourceforge.
>>
>> Thanks.
>>
>> References:
>>
>> GNURoot is linux running in android, no need for a rooted phone:
>> https://play.google.com/store/apps/details?id=champion.gnuroot=en_US
>>
>> Gemini pda: https://www.planetcom.co.uk/
>>
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot__
>> _
>> Iup-users mailing list
>> Iup-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


[Iup-users] Precompiled binaries for IUP on ARM?

2018-06-22 Thread Matt Welland
I would like to try using IUP on GNURoot on my Gemini PDA. Are there
pre-built binaries for ARM available? I don't see any on sourceforge.

Thanks.

References:

GNURoot is linux running in android, no need for a rooted phone:
https://play.google.com/store/apps/details?id=champion.gnuroot=en_US

Gemini pda: https://www.planetcom.co.uk/
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Formal proposal for a "postMessage" API to send messages to run on the UI thread

2018-04-18 Thread Matt Welland
On Wed, Apr 18, 2018 at 1:23 AM, Jörg F. Wittenberger <
joerg.wittenber...@softeyes.net> wrote:

> Hi,
>
> just my two cents.
>
> On Apr 16 2018, Eric Wing wrote:
>
> This is a proposal to introduce a way to post and run events on the
>> main UI thread.
>>
>> Currently (as far as I know), IUP is hands-off on threads.
>>
>
> ...
>
> It's easy to see the problem you're facing.
>
> I'm no IUP expert, however I'm pretty positive that this can be solved
> without introducing another API.
>
> In a similar situation I have been able to abstain from using the complete
> IUP abstraction around the main loop and resort to using IupFlush()
> instead. Doing so allows to queue requests from other threads for execution
> in the GUI thread, which processes said queue right before calling
> IupFlush().
>
> Once I had these roughly 40 lines of code in place begin factoring out
> IupFlush()s and run them just once before IupFlush() to reduce some
> flickering.
>
> Maybe such an approach can work for you too.
>

Hi Jörg, this approach sounds really interesting. Can you provide a little
more detail to clarify how this works? Do you put calls to set attribute in
the queue and then periodically execute the calls in the queue followed by
an IupFlush? I tried this (using the Chicken Scheme IUP binding) and it
seems to work well but I'm concerned there are corner cases to be accounted
for. My (probably naive) test implementation of your approach is pasted
below.


>
> Best
>
> /Jörg
>
>
>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>

;; trial of replacing iup:main-loop with a queue
(use (prefix iup iup:) srfi-18)

(define *queue* '())
(define *queue-mutex* (make-mutex))

(define (process-queue)
  (for-each (lambda (entry)(entry))(reverse *queue*))
  (print "processed queue")
  (set! *queue* '()))

(define (iattr . params)
  (mutex-lock! *queue-mutex*)
  (if (not (null? *queue*))
  (process-queue))
  (let ((result (apply iup:attribute params)))
(mutex-unlock! *queue-mutex*)
result))

(define (iattr-set! . params)
  (mutex-lock! *queue-mutex*)
  (set! *queue* (cons (lambda ()(apply iup:attribute-set! params)) *queue*))
  (mutex-unlock! *queue-mutex*))

(define button1 (iup:button
 "Push me"
 action: (lambda (o)
   (print "Got here at " (current-seconds))
   (iattr-set! o "BGCOLOR" "255 255 255"

(define tl (iup:show
(iup:dialog
 (iup:vbox
  button1
  (iup:button "Exit" action: (lambda (o)(exit)))

(define (main)
  (let* ((th1 (make-thread (lambda ()
 (let loop ()
   (mutex-lock! *queue-mutex*)
   (process-queue)
   (mutex-unlock! *queue-mutex*)
   (iup:main-loop-flush)
   (thread-sleep! 1) ;; use a really long delay just for
illustration
   (loop)))
   "flush loop"))
 (th2 (make-thread (lambda ()
 (let loop ()
   (print "set to green")
   (iattr-set! button1 "BGCOLOR" "70 249 73")
   (thread-sleep! 0.2)
   (print "set to red")
   (iattr-set! button1 "BGCOLOR" "253 33 49")
   (thread-sleep! 0.2)
   (loop)
 (th3 (make-thread (lambda ()
 (let loop ()
   (print (iattr button1 "BGCOLOR"))
   (thread-sleep! (random 5))
   (loop))
(thread-start! th1)
(thread-start! th2)
(thread-start! th3)
(thread-join! th1)))

(main)
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] 7GUIs GUI comparison

2017-11-17 Thread Matt Welland
Hi Scuri,

Would you be willing to host the IUP examples for the different languages
as part of the IUP site or would you prefer we go with Eric's suggest to
fork the 7gui repo? My opinion is that these examples have value to IUP
itself and should be coupled closely with the IUP materials. It will take
some time but I'm interested in attempting to implement the remaining gui
patterns in Chicken.

On Nov 17, 2017 5:55 AM, "Antonio Scuri"  wrote:

  Very interesting indeed.

  I think we should implement those samples in C and Lua.

Best,
Scuri


2017-11-16 23:19 GMT-02:00 Eric Wing :

> I saw this on HackerNews or Reddit yesterday.
> https://github.com/eugenkiss/7guis/wiki
>
> Its origins are from a research paper that compares the objected
> oriented and functional programming for GUI design.
> http://www.eugenkiss.com/projects/thesis.pdf
>
> While that falls outside the scope of what IUP cares about, I did
> think the 7 GUI "benchmark" was an interesting and potentially useful
> idea. To help spread the word about IUP, I think it could be useful to
> people to see a comparison of common basic GUI patterns written in
> different libraries.
>
> Such a list would allow:
> - People to learn about libraries they may have not heard of before
> (IUP is relatively unknown compared to, say, Qt.)
> - See examples of code/how it is done.
> - Help those thinking about migrating from one library they currently
> know to a new one.
>
>
> Anyway, I thought I would mention it in case anybody here would like
> to pick up the challenge and try writing an IUP version for those 7.
> Presumably and optionally, that page and examples could be forked to
> become a simple comparison page instead of focusing on the OO vs.
> functional thing.
>
> Thanks,
> Eric
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] 7GUIs GUI comparison

2017-11-16 Thread Matt Welland
I agree with Eric, having examples of each of those 7 basic patterns in the
languages for which IUP has bindings would be both useful and interesting.

Here are initial implementations of the two easy ones, the counter and the
temperature converter, using the Chicken Scheme IUP bindings:

http://www.kiatoa.com/fossils/opensrc/doc/tip/7guis/7guis.scm

I think I was able to be mostly "functional" so not only an example of IUP,
but also a non-OOP, non-imperative (again, mostly) implementation.

[image: Inline image 1]

On Thu, Nov 16, 2017 at 6:19 PM, Eric Wing  wrote:

> I saw this on HackerNews or Reddit yesterday.
> https://github.com/eugenkiss/7guis/wiki
>
> Its origins are from a research paper that compares the objected
> oriented and functional programming for GUI design.
> http://www.eugenkiss.com/projects/thesis.pdf
>
> While that falls outside the scope of what IUP cares about, I did
> think the 7 GUI "benchmark" was an interesting and potentially useful
> idea. To help spread the word about IUP, I think it could be useful to
> people to see a comparison of common basic GUI patterns written in
> different libraries.
>
> Such a list would allow:
> - People to learn about libraries they may have not heard of before
> (IUP is relatively unknown compared to, say, Qt.)
> - See examples of code/how it is done.
> - Help those thinking about migrating from one library they currently
> know to a new one.
>
>
> Anyway, I thought I would mention it in case anybody here would like
> to pick up the challenge and try writing an IUP version for those 7.
> Presumably and optionally, that page and examples could be forked to
> become a simple comparison page instead of focusing on the OO vs.
> functional thing.
>
> Thanks,
> Eric
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


[Iup-users] Where are instructions on how to build on linux from svn?

2015-12-10 Thread Matt Welland
I see the message "Build instructions and usage are available in the IUP
documentation." but I haven't been able to find them on the pages at
http://webserver2.tecgraf.puc-rio.br/iup/

Is there a page with details somewhere?

Thanks

Matt
-=-
--
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


[Iup-users] Possible to show windows on different $DISPLAY?

2013-11-16 Thread Matt Welland
Hello,

I'm using the iup Chicken Scheme bindings and I'd like to be able to
display from one process to more than one display - similar to how you can
start a new window from (x)emacs on a different display. I dug through the
docs but didn't see anything that indicated this was possible. Can it be
done? If so how?

Thanks!

-- 
Matt
-=-
90% of the nations wealth is held by 2% of the people. Bummer to be in the
majority...
--
DreamFactory - Open Source REST  JSON Services for HTML5  Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471iu=/4140/ostg.clktrk___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


[Iup-users] errors in build - can they be ignored?

2013-07-22 Thread Matt Welland
In building cd I get:

g++ -shared -o ../lib/Linux32/libftgl.so
../obj/ftgl/Linux32/FTBuffer.o ../obj/ftgl/Linux32/FTCharmap.o
../obj/ftgl/Linux32/FTContour.o ../obj/ftgl/Linux32/FTFace.o
../obj/ftgl/Linux32/FTGlyphContainer.o ../obj/ftgl/Linux32/FTLibrary.o
../obj/ftgl/Linux32/FTPoint.o ../obj/ftgl/Linux32/FTSize.o
../obj/ftgl/Linux32/FTVectoriser.o ../obj/ftgl/Linux32/FTGlyph.o
../obj/ftgl/Linux32/FTGlyphGlue.o ../obj/ftgl/Linux32/FTBitmapGlyph.o
../obj/ftgl/Linux32/FTBufferGlyph.o
../obj/ftgl/Linux32/FTExtrudeGlyph.o
../obj/ftgl/Linux32/FTOutlineGlyph.o
../obj/ftgl/Linux32/FTPixmapGlyph.o
../obj/ftgl/Linux32/FTPolygonGlyph.o
../obj/ftgl/Linux32/FTTextureGlyph.o ../obj/ftgl/Linux32/FTFont.o
../obj/ftgl/Linux32/FTFontGlue.o ../obj/ftgl/Linux32/FTBitmapFont.o
../obj/ftgl/Linux32/FTBufferFont.o ../obj/ftgl/Linux32/FTExtrudeFont.o
../obj/ftgl/Linux32/FTOutlineFont.o ../obj/ftgl/Linux32/FTPixmapFont.o
../obj/ftgl/Linux32/FTPolygonFont.o
../obj/ftgl/Linux32/FTTextureFont.o ../obj/ftgl/Linux32/FTLayout.o
../obj/ftgl/Linux32/FTLayoutGlue.o
../obj/ftgl/Linux32/FTSimpleLayout.o  -L../lib/Linux32 -lfreetype
-lGLU -lGL -lm
Tecmake: Dynamic Library (../lib/Linux32/libftgl.so) Done.


../tecmake.mak:1518: cd.dep: No such file or directory
Tecmake: Building Dependencies ... [ cd.dep ] (can be
slow)./gdk/cdgdkclp.c:46:22: error: missing binary operator before
token (./cairo/cdcaironative_gdk.c:67:22: error: missing binary
operator before token (./cairo/cdcaironative_gdk.c:79:22: error:
missing binary operator before token
(./cairo/cdcaironative_gdk.c:116:22: error: missing binary operator
before token (./cairo/cdcaironative_gdk.c:158:22: error: missing
binary operator before token (./cairo/cdcaironative_gdk.c:165:22:
error: missing binary operator before token
(./cairo/cdcairoprn_unix.c:12:22: error: missing binary operator
before token (./cairo/cdcairoprn_unix.c:14:24: error: missing binary
operator before token (./cairo/cdcairoprn_unix.c:22:22: error:
missing binary operator before token (

Can these be ignored? If not, any suggestions on how to fix?

Thanks
-- 
Matt
-=-
90% of the nations wealth is held by 2% of the people. Bummer to be in the
majority...
--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Where to find libiupweb files for windows?

2013-05-11 Thread Matt Welland
Ah, thanks for the quick response. I will disable the web controls.


On Sat, May 11, 2013 at 12:17 PM, Antonio Scuri antonio.sc...@gmail.comwrote:

 Hi,

 ** **

   This is probably because you downloaded the Mingw or Cygwin DLLs. The
 IupWebBrowser is implemented in Windows using a technology that
 unfortunately is only available in Visual C++. 

 ** **

   The IupWebBrowser is an optional control in IUP. If you just trying to
 use IUP, IM and CD in a general way, you can simply ignore the webbrowser.
 

 ** **

   If you really need that control than there is another possible approach,
 to use the vc10 DLLs.

 ** **

   Let me know more details on what you are trying to accomplish so I can
 help you better.

 ** **

 Best,

 Scuri

 ** **

 *From:* Matt Welland [mailto:estifo...@gmail.com]
 *Sent:* sábado, 11 de maio de 2013 14:41
 *To:* iup-users@lists.sourceforge.net
 *Subject:* [Iup-users] Where to find libiupweb files for windows?

 ** **

 I'm trying to get iup and canvas draw installed for Chicken Scheme on
 windows and it is expecting libiupweb but I don't see that in any of the
 zip files. Am I missing something? I got im, iup and canvas-draw. I didn't
 get lua as I didn't think I needed it.

 Thanks,

 Matt
 -=-


 --
 Learn Graph Databases - Download FREE O'Reilly Book
 Graph Databases is the definitive new guide to graph databases and
 their applications. This 200-page book is written by three acclaimed
 leaders in the field. The early access version is available now.
 Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
 ___
 Iup-users mailing list
 Iup-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/iup-users


--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users