It is currently Sat Jul 04, 2020 2:15 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Has anyone got the built in GLib API functions working?
PostPosted: Sat Feb 21, 2004 2:32 pm 
Offline
User
User

Joined: Sat Nov 29, 2003 8:49 pm
Posts: 43
Hiya,

Ive got a working installation of PB on Mandrake 10 and RedHat 9 and I can do most things (working around the current known bugs).

But there is one bug I cannot get around and that is the 'RunProgram' bug, i.e. the command not supporting wait till exit. Well anyway Id like to use the Glib built in command API to get around this ideally using clone or fork to spawn a process.

Now with the windows version it all pretty much worked out the box Gettickcount_() and presto I have what I want, the same isnt true for the linux version most of the GTK and GDK and GLib stuff seems broken or missing, even taking into account that the published PB version states it only supports version 1.2 and not GTK+2.0 which is where most of the linux world is right now (especially if you want drag and drop like me :/ ). Anyway I digress, Ive looked in my purelibraries directory and the GDK, GTK libraries seem to be in place, my installation is in /usr/share/purebasic although I have tried using $PUREBASIC_HOME env var to set it to a specific location on both distributions without luck. I have a working version of gcc 3.3, working version of GTK and GDK as I can run some of the sample applications (gadgetfull.pb and SDL.pb) however if I try to run linuxAPI.pb I get no new executable but no errors in the compilation ... nothing at all..

Am I missing some unknown not documented trick? Do I need to do anything more than I am? Is my distribution choice the reason? Is it because Im using gcc 3.3?

Any help much appreiciated as nearly all of us will want to or need to use the linux API at some point (even if its for simple stuff like chmod, or get cwd etc..) as workarounds or simply to offer true linux like application behaviour. Ive posted some linux errors in the bug section of the forum before now and not really had much luck getting a response.

Happy to try any suggestions.

Thanks in advance.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Feb 21, 2004 3:50 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Dec 08, 2003 7:50 pm
Posts: 154
Location: Germany
Hi Ira!

The linux API thing is already reported. Because most people can't use it. We don't know why ...
If you want to use the GTK 2.0 library you have to include with the library functions of PB. I think this can't be such a problem. But I also hope that it will be included or better said: supported in the next version of linux. We will see ...

That you got no answer in the bug area also might be that there are no code snippets to know ere the bug might be. Perhaps you should add some in your topics. (except the Round() topic, because as you recognized it's already supported that the function is missing)

regards,
Christian


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye