Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 26 Nov 2014, 13:39
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Compiler GUI and other packaging tools
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 4 of 12 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6, ..., 10, 11, 12 Next
Author Message
Gedrean


Joined: 05 Jun 2009
Posts: 138

PostPosted: Mon 12 Oct 2009, 13:56    Post_subject:  

Alright, new question. Are underscores "_" (not dashes "-") ever used in ./configure options, that we know of?

EDIT: Better yet. What characters are not able to be used in a bash command line string, for example as arguments of ./configure. That is to say, they must be \-escaped first, or just will not work b/c bash will interpret them as something else and screw up the command?
Back to top
View user's profile Send_private_message 
Gedrean


Joined: 05 Jun 2009
Posts: 138

PostPosted: Mon 12 Oct 2009, 17:08    Post_subject:  

Wow, okay. I'm sorry to say that with decent documentation (documenting out in detail how I got my tricks to work, for example) the file size is HUGEMONGOUS for pcompile.

That being said, in pet form it'll be much smaller, but I expect overall the project may grow to single-digit kilobyte size.

At least, my submission for it.

HOWEVER -- I'm building it so that if we add another checkbox later for default options, then no additional code will need to be added to pcompile - thus the only changes need be done to the window file...
Oh, did I mention, I split off the dialogbox description into a separate file, so it's easier to read and manage?

If you want me to stop mutilating your project, techno, please say so. I hate to trod on toes. Smile
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4379

PostPosted: Mon 12 Oct 2009, 17:27    Post_subject:  

I wouldn't really worry about size/speed too much. Speed should still be insignificant when compared to compile time and size will still be smaller than the smallest binary used during compilation. Keep in mind that it would require the devx anyway. Just wondering - have you gotten src2all to work with python programs?
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Gedrean


Joined: 05 Jun 2009
Posts: 138

PostPosted: Mon 12 Oct 2009, 19:34    Post_subject:  

technosaurus wrote:
I wouldn't really worry about size/speed too much. Speed should still be insignificant when compared to compile time and size will still be smaller than the smallest binary used during compilation. Keep in mind that it would require the devx anyway. Just wondering - have you gotten src2all to work with python programs?


I got nothing on that front.

As it is, I've got a while do done loop doing the checkboxes... With a little work... I finished the loop.

Now I've just got to reiterate my previous question:

Are there any characters in Bash which are UNABLE to be used in arguments by default, like % or whatever, that are unlikely to be included in ./configure arguments?

Thanks!
Back to top
View user's profile Send_private_message 
Gedrean


Joined: 05 Jun 2009
Posts: 138

PostPosted: Mon 12 Oct 2009, 19:46    Post_subject:  

And if the % is an acceptable flag... I now have a loop that decodes checkboxes in a certain format. And if they're true, adds them to the config string.

And then outputs the whole thing to the file, then src2all does it.

And is made of win.
Back to top
View user's profile Send_private_message 
Gedrean


Joined: 05 Jun 2009
Posts: 138

PostPosted: Tue 13 Oct 2009, 00:37    Post_subject:  

Alright, only question now is how does one work with a radio button? I'm not sure what all the returns are like from it... anyhow, it's getting there, the window at least. I got them as checkboxes, but I want to replace one or two of the prefix options with radiobuttons, to choose which locations to put stuff in.

Anyhow, building it up there.
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4379

PostPosted: Tue 13 Oct 2009, 02:04    Post_subject:  

I've been meaning to add that to the template.

From Pmetatagger... looked for it in Pawdioconverter what happened to it???

<radiobutton active=\"true\">
<label>Select a directory</label>
<variable>RADIOBUTTON1</variable>
<action>if true enable:DIRENTRY</action>
<action>if true enable:FILE_BROWSE_DIRECTORY</action>
<action>if false disable:DIRENTRY</action>
<action>if false disable:FILE_BROWSE_DIRECTORY</action>
<action>if true enable:WORD</action>
</radiobutton>
<radiobutton active=\"false\">
<label>or select a single file</label>
<variable>RADIOBUTTON2</variable>
<action>if true enable:ENTRY1</action>
<action>if true enable:FILE_BROWSE_FILENAME</action>
<action>if false disable:ENTRY1</action>
<action>if false disable:FILE_BROWSE_FILENAME</action>
<action>if true disable:WORD</action>
</radiobutton>

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Gedrean


Joined: 05 Jun 2009
Posts: 138

PostPosted: Tue 13 Oct 2009, 02:31    Post_subject:  

God I wish I knew all the options to radiobutton.

There SHOULD be an attrib called Group, which would link a radio button to other radio buttons, all grouped to one primary (the default) so that they all control eachother.

Because I want multiple groups of Rbtns in this.

I'm thinking of moving to Glade, but I don't know that I wanna do it...
I really don't wanna redo this whole damn thing considering how far I've gotten so far... btw, here, uploading the latest version 0.1.3 - but it's not properly working, some things are commented out for debugging and it will throw up on a few things...

Oh and that window file will go in /usr/share/pcompile and be referenced from there in actual release, but for now it's designed to be run from terminal and in directory, not as installed...

uploading it as a tgz for that reason... I'll be honest the options tab looks crappy right now but I'm trying to do formatting and cleanup - but as I do formatting and try to make it look pretty it ungroups some of the RB's!

For now though, all the files that are currently up-to-date (still may be in a state of debug/repair) are in root/my-applications/bin I think... the usr folder just has stuff in there for placeholding I think...
pcompile-0.1.3.tar.gz
Description  TGZ format, not for working install/release, though it'll run as a dialog I think...
gz

 Download 
Filename  pcompile-0.1.3.tar.gz 
Filesize  7.43 KB 
Downloaded  307 Time(s) 
Back to top
View user's profile Send_private_message 
Gedrean


Joined: 05 Jun 2009
Posts: 138

PostPosted: Tue 13 Oct 2009, 02:40    Post_subject:  

So, I was dicking around in Glade, noticing that radio button options had a Group attribute like I had hoped. It groups multiple sub-radio buttons to one, meaning that one of them is the default and the "master" of that group, whereas the others are all "slave" or sub items of that group...

With that I grouped radio buttons that were out of order, found it neat.

Then saved teh file.

Then on a whim opened it in Geany.

Something interesting, here's some output:

Code:
                  <widget class="GtkRadioButton" id="radiobutton2">
                    <property name="label" translatable="yes">radiobutton</property>
                    <property name="visible">True</property>
                    <property name="can_focus">True</property>
                    <property name="receives_default">False</property>
                    <property name="active">True</property>
                    <property name="draw_indicator">True</property>
                    <property name="group">radiobutton1</property>


So, each of those property names seem like tag names in the XML-like markup used by the standard gtkdialog markup... This demands testing...
More in a bit...
Back to top
View user's profile Send_private_message 
Gedrean


Joined: 05 Jun 2009
Posts: 138

PostPosted: Tue 13 Oct 2009, 03:02    Post_subject:  

Well that was a bust.
I tried a dozen different ways to introduce an id or group tag or attribute or property in there -- no luck.

Damn the lack of proper documentation for gtkdialog.
Back to top
View user's profile Send_private_message 
Gedrean


Joined: 05 Jun 2009
Posts: 138

PostPosted: Tue 13 Oct 2009, 03:05    Post_subject:  

I seem to recall reading something about the various action functions available from buttons like radiobuttons...

Tell me there's one for "set false" another radiobutton... and that'll work well enough (though VERY inefficient)
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4379

PostPosted: Tue 13 Oct 2009, 10:47    Post_subject:  

I'll have to look at it when I get home tonight. I started in a different direction (merging src2all) also noted that I need to look at dump2pet to bring it up to 4.3 for database entries (I also want it to >> to a separate file that will keep all of the database entries, since Nicoedit hiccups with files of the same name -- which was not an issue with the old naming scheme, but now they all have pet.specs vs. a named one)
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Gedrean


Joined: 05 Jun 2009
Posts: 138

PostPosted: Tue 13 Oct 2009, 14:41    Post_subject:  

technosaurus wrote:
I'll have to look at it when I get home tonight. I started in a different direction (merging src2all) also noted that I need to look at dump2pet to bring it up to 4.3 for database entries (I also want it to >> to a separate file that will keep all of the database entries, since Nicoedit hiccups with files of the same name -- which was not an issue with the old naming scheme, but now they all have pet.specs vs. a named one)


Well now isn't that a pickle.

I'd really recommend against merging, but that's just my claim of wanting to make sure that any individual file remains its own set of functionality, but that's just my programmer's instinct kicking in. Plus, with how complicated pcompile may become trying to build such a defined interface, it may grow very large -- and very large single file scripts do take more memory, I thought, unless it's something else about large single-file scripts that was a problem... I could be nuts there.

Oh well, anyhow, hope you have fun playing with the version I compiled so far. If you really want to merge src2all, it does keep the added benefit of not making a temp output file for the config options, though definitely one should be made in the base directory -- ALSO: I'd like to request that we output confopts to the base directory instead of tmp, since that gives a good reading later when custom configures can be made... maybe making it confopts.txt , I dunno if that's only a windows thing but I believe the use of the . extension makes it a bit easier to determine if a file should be something the user should read, or if it's just some data file that won't make much sense to the avg user...

I don't like the formatting I've got so far on the options tab, but I can't figure out how to make sure those buttons are linked together. I may just end up ditching the my-applications radio button idea and stick to some default compile options as checkboxes. Maybe do a little work to make them fit together clean.

Yeah I think ditching the radio button's gonna have to be it.
Back to top
View user's profile Send_private_message 
Gedrean


Joined: 05 Jun 2009
Posts: 138

PostPosted: Tue 13 Oct 2009, 15:42    Post_subject: Pcompile 0.1.4.a?  

Alright, I played with alignment for some time and I think I like it enough to submit it as my suggestion for how it should look.

Removed the rbutton for prefix, and put one in for --build, choosing between pc and t2 (I have seen NO difference, really, in the two for any puppies, so whatever).

There's no "none" option, though in pcompile it details a "standard format" for checkboxes and Radiobuttons, so others can be added if that format is followed and it will ALWAYS work. Smile

Pcompile has been removed from "debug" mode.

I've put everything back in the /usr/bin directory (it should go in there anyways, to be compatible with previous versions).

The /usr/share/pcompile/window file is updated to the newest version.

src2all still does builds from pcompile_build -- it's very useful for some tools which will not build from their main directories.

If you don't like some of these behaviors, well I tried to comment things up some so it's cleaner, but it should be detailed where changes were made so you can remove them.

Once you've got src2all integrated into Pcompile, it's commented in pcompile where it'd work to integrate it, and what vars are.

The easiest way would be to put <src2allvar>=$<pcompilevar> for a lot of those src2all vars, and have src2all's code NOT read from the file (still keep the file there for good reference).

Also, I'd like to again request having the confopts output to the package directory - for later perusing and easier finding than in /tmp!

After it's all integrated, I'd like permission to go in and document/comment areas so it's clear what's happening, if code ever gets changed again. Smile

Here's my TGZ for 0.1.4, not a pet yet since it still needs integrated, but right now it's fully functional as is (short of dump2pet and the pet.specs files)

Actually, might I suggest:
When making that separate database file, stick it in /usr/share/pcompile -- what a convenient location! Wink
pcompile-0.1.4.tar.gz
Description  pcompile with formatting fixes, pcompile out of debug.
It's ready to go I think! :)
gz

 Download 
Filename  pcompile-0.1.4.tar.gz 
Filesize  7.42 KB 
Downloaded  299 Time(s) 
Back to top
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4379

PostPosted: Tue 13 Oct 2009, 18:08    Post_subject:  

Actually I only did a simple fix - use $1 $2 and $3 as before, but use them to set the default values, if you use it the same as src2all and all is good just click OK and you get the same behavior. I did have to set up a slightly different case for when there were no entries. The only difference is that there is a GUI there that will let you make some quick changes in a more readable interface before you let it go through the hours long process of compiling Wine-2.0 or whatever without NLS or some other useful feature because of a typo or something.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 4 of 12 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6, ..., 10, 11, 12 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0970s ][ Queries: 13 (0.0060s) ][ GZIP on ]