Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 5, 2013 17:03:27 GMT 1
I was able to get the IUP CD (Canvas Draw) graphics editor example compiled (C) that shows most of the features of the library in it's design. It could be a good reference if trying to use the CD library functions in your application. I'm going to leave this in the hands of the couple members that have shown some interest in IUP with BaCon. ScriptBasic is my main focus so that is where I need to be spending my time.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 7, 2013 17:02:27 GMT 1
I'm having an issue trying to get an IUP IM (Image Management) BaCon converted C example to work. Maybe someone here has an idea what I'm doing wrong. more ...
|
|
|
Post by alexfish on Jan 7, 2013 17:49:23 GMT 1
Hi John
Don't if this will help.
Ubuntu often updates the Kernel , which affects the headers and the libs
Sometimes it is necessary to reinstall sources ,which not debian type or of Ubuntu origin
Do know I got problems Linker , with the LD and iup
can check most with "LD_LIBRARY_PATH"
find what the ld path is with
echo LD_LIBRARY_PATH or can try to influence with LD_LIBRARY_PATH=`blagh\blag` can unset the path with
unset LD_LIBRARY_PATH
beyond that your dealing with three sources , bacon,iup,gtk
confirm if you can compile this directly without bacon "on your own target system"
Regards
Alex
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 7, 2013 18:02:27 GMT 1
The IM demo im_view.c was compiled and ran on my Ubuntu 12.04 LTS 64 system without issue. I always test the C code first before doing a BaCon makeover.
|
|
|
Post by alexfish on Jan 7, 2013 18:55:48 GMT 1
will have to let the master help have looked and tried the code for both but do not have these on my system #include <iup.h> #include <cd.h> < #include <cdiup.h> < #include <im.h> < #include <im_image.h> < #include <stdio.h> #include <string.h> PRAGMA INCLUDE iup.h 'PRAGMA INCLUDE cd.h < 'PRAGMA INCLUDE cdiup.h < 'PRAGMA INCLUDE im.h < 'PRAGMA INCLUDE im_image.h < Regards Alex ADDED found the link for the libs , a little help on the form would help IE: links on same post as code: I hate looking for a code in cd ,, or requires cd another thing I going to send u bill for all these libs i got to download to get this kit up and running ,Bagh there be a big diff between kb and mb
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 7, 2013 19:17:20 GMT 1
Download the IUP, CD and IM libraries for your system. Run as sudo install and install_dev in each of the library modules. That should allow you to follow along and contribute.
|
|
|
Post by alexfish on Jan 7, 2013 19:23:20 GMT 1
Look Above u just beat me the install and other install_dev .fail could not stat directories running MAKE :: make is still running ,,Yawn loads of warnings ,, hope there only och not ouch. OK ended up with this Tecmake: compiling cdlua5.c ... gcc -c -Wall -O2 -I../../lua5.1/include -I../include -DCD_NO_OLD_INTERFACE -DTEC_UNAME=Linux30 -DTEC_SYSNAME=Linux -DLinux=3.0 -DTEC_LITTLEENDIAN -DTEC_32 -DFUNCPROTO=15 -DNDEBUG -o ../obj/cdlua51/Linux30/cdlua5.o lua5/cdlua5.c lua5/cdlua5.c:16:17: fatal error: lua.h: No such file or directory compilation terminated. make[2]: *** [../obj/cdlua51/Linux30/cdlua5.o] Error 1 make[1]: *** [cdlua5] Error 2 make: *** [do_all] Error 2 > presume I don't have lua. but now the install works + install_dev
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 7, 2013 19:48:31 GMT 1
What are you using a 28.8KB modem? I use Comcast cable and download files between 3 - 5 MB/sec. I'll pay for your download charges if you cover my last years open source Basic hosting and support budget.
|
|
|
Post by alexfish on Jan 7, 2013 19:53:05 GMT 1
What are you using a 28.8KB modem? I use Comcast cable and download files between 3 - 5 MB/sec. I'll pay for your download charges if you cover my last years open source Basic hosting and support budget. HA HA HA .................... fastest mobile on the planet ,,, till met sb and iup ;D
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 7, 2013 20:18:10 GMT 1
< 10MB for all the IUP libraries (IUP,CD.IM) and ScriptBasic. (< 450KB)
What is wx-widgets or Qt weighing in at these days?
(I checked)
wxWidgets-2.9.4.zip = 27.2 MB
qt-x11-opensource-src-4.2.3.tar.gz = 35.9MB
|
|
|
Post by alexfish on Jan 7, 2013 20:41:35 GMT 1
< 10MB for all the IUP libraries (IUP,CD.IM) and ScriptBasic. (< 450KB) What is wx-widgets or Qt weighing in at these days? (I checked) wxWidgets-2.9.4.zip = 27.2 MB qt-x11-opensource-src-4.2.3.tar.gz = 35.9MB and. what u think is on my system a 1m * 1m/tb gb hd anyway looks like the .h's get splintered so will look where they need to be post back when I get things sorted . alex
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 7, 2013 20:48:26 GMT 1
Thanks Alex for having a peek!
|
|
|
Post by alexfish on Jan 7, 2013 22:15:52 GMT 1
Ok got all .h files under one camp
PRAGMA OPTIONS -I/home/alexfish/Desktop/keepoff/IUP/iuplib/include ' IM example that shows an image.
'PRAGMA OPTIONS -I/usr/include/cd 'PRAGMA OPTIONS -I/usr/include/iup 'PRAGMA OPTIONS -I/usr/include/im PRAGMA LDFLAGS im PRAGMA LDFLAGS iupcd PRAGMA LDFLAGS cd PRAGMA LDFLAGS iup PRAGMA INCLUDE iup.h PRAGMA INCLUDE cd.h PRAGMA INCLUDE cdiup.h PRAGMA INCLUDE im.h PRAGMA INCLUDE im_image.h
on compile I get this
File '/home/alexfish/Desktop/keepoff/IUP/iuplib/include/im_view.bac'
Line 113: iup_canvas = IupCanvas("do_nothing")
Cause: conflicting types for 'iup_canvas'
iup_canvas = IupCanvas("do_nothing")
regards alex
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jan 7, 2013 22:45:20 GMT 1
I don't think that the IUP headers and the other assumed header locations are going to be happy putting all .h files in one directory. (see IUP installation notes) If you would have run the install & install_dev scripts per module, it would have done the work for you. PRAGMA OPTIONS -I/usr/include/iup PRAGMA OPTIONS -I/usr/include/cd PRAGMA OPTIONS -I/usr/include/im PRAGMA LDFLAGS iup PRAGMA LDFLAGS cd PRAGMA LDFLAGS iupcd PRAGMA LDFLAGS im PRAGMA INCLUDE iup.h PRAGMA INCLUDE cd.h PRAGMA INCLUDE cdiup.h PRAGMA INCLUDE im.h PRAGMA INCLUDE im_image.h The program will not compile if any of the PRAGMA lines are combined. Like I said, I don't have any problem compiling the BaCon version, I'm just not seeing the dialog for some reason. (console thinks the program is running) jrs@laptop:~/BaCon/B29$ ./bacon im_view.bac Converting 'im_view.bac'... done. Compiling 'im_view.bac'... done. Program 'im_view' ready. jrs@laptop:~/BaCon/B29$ Thanks anyways, I'll figure it out by looking at the BaCon generated C code to see what is/isn't being included (correctly).
|
|
|
Post by alexfish on Jan 7, 2013 23:33:52 GMT 1
Tried otherways as well ,
all fail to build , one prob got is iupkey.h
one question though , why does a install package not put every thing where it needs to be.
also like i said the installs + make where throwing errors , to numerous to list.
|
|