Search found 9 matches

by adamredwoods
Sat Aug 16, 2008 9:57 pm
Forum: Coding Questions
Topic: Is it difficult to code a trick'n tips for MAC ?
Replies: 2
Views: 727

There are still little things missing with the Mac OSX version, that Windows uses by tapping into Window DLLs. This stops it from being cross-platform.

An example is to directly modify a bitmap in memory. Been dying to get this going for Cairo.
by adamredwoods
Sat Mar 01, 2008 10:38 pm
Forum: Feature Requests and Wishlists
Topic: Mac OSX support
Replies: 2
Views: 1705

Mac OSX support

PureBasic is a great rapid application programming language. Although at first the dialect is a little strange, I found it's easy to get used to and adapt to. Compared to other Basic dialects, it has nice advantages.

One thing I would like to see within PureBasic is increased CROSS-PLATFORM support ...
by adamredwoods
Wed Feb 20, 2008 8:11 am
Forum: Mac OSX
Topic: Creating dylibs with PB?
Replies: 1
Views: 2367

In the demo compiler, I saw an option that allowed ".so" files. On Linux, this is a shared object, which acts the same as dll or dylib.

So, I would guess "yes".
by adamredwoods
Mon Feb 18, 2008 9:39 pm
Forum: Mac OSX
Topic: OSX and Cairo libs questions
Replies: 3
Views: 4026

I have been unable to get Cairo to work with Mac OSX.
Here is my code:

XIncludeFile "cairo-include.pb"

;;dll.s = "libcairo2.dylib"
dll.s = "libcairo.2.11.7.dylib"
If InitCairo(dll) = 0
MessageRequester("Error", "Cannot open '" + dll + "'")
End
EndIf

Global hDC.l
Global surface.l


Procedure ...
by adamredwoods
Mon Feb 18, 2008 7:40 am
Forum: Mac OSX
Topic: OSX and Cairo libs questions
Replies: 3
Views: 4026

So, my first attempt at the dylib failed, because I took the binary build from Inkscape. Since that dylib was Universal Binary, PureBasic couldn't open it.

I built Cairo using the MacPorts Sudo command, with the options +atsui +quartz and (I don't know if this made a difference) +no_x11.
I compiled ...
by adamredwoods
Sat Feb 16, 2008 8:56 pm
Forum: Mac OSX
Topic: OSX and Cairo libs questions
Replies: 3
Views: 4026

Ok, perhaps I have discovered that perhaps OpenLibrary command does not work with Mac universal binary libraries.
by adamredwoods
Thu Feb 14, 2008 9:21 pm
Forum: Coding Questions
Topic: 24bit to 32bit PNG
Replies: 13
Views: 3051

Side question:

Is there a way to do the above code line

Code: Select all

GetObject_(ImageID(1), SizeOf(BITMAP), bmp.BITMAP)
On the Mac in OSX?

Many Thanks.
by adamredwoods
Wed Feb 13, 2008 9:14 pm
Forum: Mac OSX
Topic: OSX and Cairo libs questions
Replies: 3
Views: 4026

OSX and Cairo libs questions

Some questions:

1. Does the Mac OSX _demo_ version of PureBasic allow OpenLibrary commands and interfacing to dynlibs?

2. I am experimenting with Cairo to draw vector images. Code from here:
http://www.purebasic.fr/english/viewtopic.php?p=219051&highlight=&sid=de8706af85ec34c43076504efc84a70c ...
by adamredwoods
Wed Feb 13, 2008 1:05 am
Forum: Mac OSX
Topic: Linker Error
Replies: 2
Views: 2625

I am very new to PureBasic, but am willing to help with whatever I can.

I installed XTools v2.5 after downloading off Apple's website (registering is free). I installed it to the root level/developers folder. Worked right away.

I am using the PureBasic demo version on a G4 PowerBook.