r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[SDK]

DaveC
20-May-2007
[1036]
Does the SDK allow cross target encapping, or does one have to buy 
an SDK for each target platform?
Gabriele
20-May-2007
[1037]
latter.
DaveC
20-May-2007
[1038x2]
Ouch :-)
Still it comes to less then some dev platorms for a single target.
TimW
20-May-2007
[1040]
really?  My license.key works for the downloadable betas for other 
platforms.
Gabriele
20-May-2007
[1041]
you might also just wait for R3 (depends on your schedule)
DaveC
21-May-2007
[1042]
TimW: That's noted. Gabriele: Yes it would be wise to wait for R3 
to pan out. No rush.
TimW
21-May-2007
[1043x2]
Just to mention.  the exists? url issue is also present when enface 
is used on windows.  Although it seems like the networking is having 
issues period.  It is included in enface right?
Nevermind.  I didn't realize the http protocol wasn't included in 
enface.
TomBon
28-May-2007
[1045]
binary embedding of libs possible with encap ?

lib-bin:	read/binary %test.dll
lib:     	load/library lib-bin

does load/library generally expecting a physical file?
Gregg
28-May-2007
[1046]
I believe libs have to be disk files, probably not so much for REBOL, 
but because of how the OS works. The workaround is to write the lib 
out to disk when the app runs, then delete it when shutting down.
BrianH
28-May-2007
[1047x4]
BackOrifice had this great bit of code where they used their own 
LoadLibrary that would link to libraries stored in program resources.
If you didn't care about security at all, you could make a way to 
link to native code in a binary. It can be done.
Just don't ever run code written by anyone else, or even your own 
if you haven't tested it thoroughly.
Sorry, forgot the :)
TomBon
28-May-2007
[1051]
yes this approach will ensure that the lib is alway onboard, unfortunatly 

this doesn't protects from examinig the lib while the proc is running.

the lib I use is special made for mathematical calculation therefore 
I am 
looking for securing it a little bit.
thanks for your input gregg and brian.
BrianH
28-May-2007
[1052]
Go with Gregg's approach.
Gregg
28-May-2007
[1053]
Not sure if it will work, but you might also be able to set the Hidden 
attr on the file when you write it out. I don't think I've ever tried 
that, or how various OSs might respond.
BrianH
28-May-2007
[1054]
Most platforms don't have a hidden attribute - they use file name 
tricks or UI hacks instead.
TomBon
28-May-2007
[1055]
yes, it works (win2000Pro).
system/options/binary-base: 64
the-lib-txt: 	compress to-string read/binary %test.dll
the-lib: 	load to-binary decompress 64#{...}
write/binary %test.dll the-lib  

will also test later with debian.
Henrik
21-Jun-2007
[1056x3]
I'm puzzled here. I added litterally, a few lines of ordinary code 
in a piece of functioning code and now when encapping it and running 
it, I get:

** Syntax Error: Missing ( at end-of-paren
** Near: (line 1) x|rȒz)^Dww`im%K:4!(
** Press enter to quit...


I could be missing something simple (tired, but has to be working 
tomorrow). The length also changes, but that could be the internal 
build number for the program incrementing.
length of binary changes, that is.
I was apparently DO'ing a binary. Sorry, must be tired :-)
Graham
30-Jun-2007
[1059x3]
the windows sdk 2.7.5 distribution is lacking encmdface.exe
Feedback sent to RT.
and the latest encmdface in the download directory is from 2004
Henrik
27-Aug-2007
[1062x2]
does anyone have problems starting encap in Wine? it keeps complaining 
that the license key is missing, but it's stored in the same dir 
as encap.exe
technicalities were the trouble, but it works now.
james_nak
6-Sep-2007
[1064]
This is probably a Gregg question: You know that ftpgadget package? 
How do I compile that thing? I think I've tried just about every 
.exe in the SDK (2.6.2) and I think maybe I need to "do" some of 
those sources but there some trick to those as well. It's time just 
to consult the experts. Thanks in advance.
btiffin
6-Sep-2007
[1065]
James;  Gregg is away till the 9th; there may be a delay in response
james_nak
6-Sep-2007
[1066]
Thanks!
Henrik
8-Sep-2007
[1067x3]
when I start an encapsulated binary with call and within that binary 
call yet another encapsulated binary (this is an installation process, 
hence the cascading execution), the second time, I get a:

PROGRAM ERROR: Invalid encapsulated program data.


is this a security issue? because when the binary is run from Explorer 
it runs fine.
the error is not listed in SDK docs...
solved by entering the full path to the executable when doing the 
call.
Gabriele
8-Sep-2007
[1070]
unless the data is actually invalid (ie never runs), that error usually 
means that rebol is not able to locate itself to load the script 
to run. ie. yourapp.exe must be able to read the yourapp.exe file 
in order to load the rebol script.
Graham
8-Sep-2007
[1071x2]
I get the same problem sometimes with 'launch
which is the encapped program starting up another instance of itself.
Gregg
10-Sep-2007
[1073]
James, maybe Edgar will jump in. I was responsible for helping to 
get the source on REBOL.org, but I don't think I've ever tried to 
build it here.
james_nak
12-Sep-2007
[1074]
OK, thanks.
Maarten
11-Nov-2007
[1075x5]
Funny thing: on my linux VPS the SDK : /Base /Pro work. Rebcmd gives 
the following error:
/rebcmd: error while loading shared libraries: libstdc++-libc6.2-2.so.3: 
cannot open shared object file
Any advice/thoughts know solutions?
(I think Pro suffices anyway though. It has encryption and FastCGI 
on board)
Nevermind.... fixed it with a locate query and a symbolic link
Robert
11-Nov-2007
[1080]
That's why I preferr a static link, simple, works and hd space is 
cheap.
Maarten
18-Nov-2007
[1081]
Question: if I put the SDK in my PATH on win32 and start rebpro from 
an different location, it complains that the license.key can't be 
found. Can I put it somewhere so that I can run /Pro etc from any 
location?
Gregg
18-Nov-2007
[1082]
I haven't figured out a way.
Robert
18-Nov-2007
[1083]
Yes, just put the license.key file into the directory where the SDK 
tools are.
Maarten
18-Nov-2007
[1084x2]
I did that, but sya there arein sdk\tools
Then I cal from c:\temp rebpro and I geta license not found....