Home
Help
Search
Quick Search
Advanced Search
[Close]
Login
Register
Welcome Guest, please
login
or
register
.
Username:
1 Hour
1 Day
1 Week
1 Month
Forever
Password:
News
:
wxFormBuilder v3.0 released!
wxFormBuilder Forum
User forums
Announcements
Mac OS X Build Available
Pages: [
1
]
2
3
...
6
Topic Tools
Topic Tools
Send this topic
Print
October 02, 2007, 01:44:21 PM
rjmyst3
wxFormBuilder Developer
Global Moderator
Hero Member
Offline
Posts: 599
Mac OS X Build Available
Guilherme Flach has been kind enough to help us fix our code so that it compiles on Mac OS X.
He compiled a binary and posted it for us to distribute.
I think it is nearly the same revision as the official 3.0 RC2. You can download it here:
wxFormBuilder.app.zip
It is for PPC, and depends on wxWidgets 2.8.0 unicode dynamic libraries.
These are his installation instructions:
Quote
Just download it, uncompress then drag wxFormBuilder.app to the Application folder. The installation is complete! (The .fpb files get the correct icon and link to wxFB, double-clicking on .fbp opens the wxFB ...)
He also included instructions for building wxFB on Mac OS X with XCode, which I've published verbatim on our wiki, here:
http://wiki.wxformbuilder.org/Main/BuildingFromSourceOnMacOSX
We are very excited about this, we would love to begin officially supporting Mac. We just need volunteers to help with testing/building on Mac. If anyone is interested, please contact us.
«
Last Edit: October 02, 2007, 05:59:42 PM by rjmyst3
»
Logged
October 02, 2007, 05:26:21 PM
Auria
Jr. Member
Offline
Posts: 63
Re: Mac OS X Build Available
Hi,
I just tried the package. I think requirements should be stated clearly because otherwise it won't run.
1) it is a PPC package. You should really specify it clearly with the download as OS X runs on 2 different arhcitectures and people will want to know wich one is used
2) it depends on wxWidgets 2.8.0 unicode dynamic libraries (dyld: Library not loaded: /usr/local/lib/libwx_macu-2.8.0.dylib, reason: image not found) . On my computer, the app refused to run because i had 2.8.5. This can be fixed by either specifying clearly what is required or by including wx inside the bundle. (But i think including them inside the bundle makes more sense since you shouldn't require a specific version, especially if it's an older one. That's what is usually done on OS X)
Apart from that, very interesting, i'll try building it from source myself when i have time
Logged
October 02, 2007, 06:04:42 PM
rjmyst3
wxFormBuilder Developer
Global Moderator
Hero Member
Offline
Posts: 599
Re: Mac OS X Build Available
I've added the requirements to the announcements, thanks for the info.
If you build a more portable package, please post it, and we'll distribute it.
Thanks.
Logged
October 02, 2007, 06:26:39 PM
Auria
Jr. Member
Offline
Posts: 63
Re: Mac OS X Build Available
Quote from: rjmyst3 on October 02, 2007, 06:04:42 PM
I've added the requirements to the announcements, thanks for the info.
If you build a more portable package, please post it, and we'll distribute it.
Thanks.
Is the author of the current package still interested in maintaining it? If so, i will rather let him, but if he's not interested anymore i could look into it.
Logged
October 02, 2007, 07:47:36 PM
rjmyst3
wxFormBuilder Developer
Global Moderator
Hero Member
Offline
Posts: 599
Re: Mac OS X Build Available
Quote from: Auria on October 02, 2007, 06:26:39 PM
Is the author of the current package still interested in maintaining it? If so, i will rather let him, but if he's not interested anymore i could look into it.
He never replied when I asked him to maintain it. So I assume he is not interested.
I will ask again, and try to get a definite answer.
Logged
October 04, 2007, 01:31:32 AM
Auria
Jr. Member
Offline
Posts: 63
Re: Mac OS X Build Available
I took a look at it, and honestly his instructions are a bit vague on some points. It is needed to recreate all the build system and figure out all dependencies wich is rather long.
Alternatively, i tried just using the build system that's already setup for other platforms, but i get the following error message:
Quote
plugins/additional/premake.lua:219: `popen' not supported
done...
any idea for any for the second issue? i can continue playing a bit with the XCode project but i personnaly find it a pain to rebuild the whole deps system when there's already an existing build system.
thanks
Logged
October 04, 2007, 02:51:34 AM
rjmyst3
wxFormBuilder Developer
Global Moderator
Hero Member
Offline
Posts: 599
Re: Mac OS X Build Available
To be quite honest, we'd prefer that you use the existing
premake
build system. When all goes well, premake will generate GNU makefiles to build with.
See this post for a Mac quickstart:
http://forum.wxformbuilder.org/index.php?topic=298.msg1288#msg1288
The error you show indicates that the premake binary you are using does not have the 'popen' command, which we use with the
wx-config
program to determine your wxWidgets configuration.
Which premake binary did you use??
Logged
October 04, 2007, 09:29:11 PM
Auria
Jr. Member
Offline
Posts: 63
Re: Mac OS X Build Available
To be quite honest, i'd prefer using Premake too so i guess we agree
I downloaded latest stable Premake from Sourceforge, version 3.4. I simply used the provided makefile. Maybe i didn't build it properly but i couldn't find any additional information either. (However, if premake doesn't support OS X properly, that will make matters significantly more difficult.)
I did not use the premake binary included in the /sdk subdirectory because it is for intel compters, and mine is a PPC ( remember, OS X runs on 2 different architectures atm
)
I'll look at the script provided in the other post. It is meant to replace the one included in the source, wich is for linux, right?
EDIT: To clarify, on my first attempt, i used the linux script for generating makefiles but i modified /sdk/premake/premakelinux (or someting like that, don't remember exact name) to make it point to a correct premake binary for mac PPC
«
Last Edit: October 04, 2007, 09:41:41 PM by Auria
»
Logged
October 04, 2007, 10:24:04 PM
RJP Computing
wxFormBuilder Developer
Administrator
Hero Member
Offline
Posts: 551
Re: Mac OS X Build Available
I am really glad that you agree to use Premake is the best way.
As soon as we iron out these issues we can fully support a person building on Mac on a regular basis.
You are correct about how you tried Premake. It is Lua that is embedded into Premake that is the problem. I need to work with other functions that allow use to fire off executables. In the documentation for Lua, it does state that 'popen()' is not supported on all platforms. Now that being said, a volunteer build us, the version we ship in our sdk, for Mac, so I assume the 'popen()' works for Intel Macs.
There is a 'system()' type call that might be able to be used to pipe the data to a file then read the file in. I have to mess with this then have you test it.
How does that sound?
Logged
Regards,
Ryan
RJP Computing
Ubuntu/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, ATI Radeon 9600XT 256MB
October 05, 2007, 12:57:31 AM
Auria
Jr. Member
Offline
Posts: 63
Re: Mac OS X Build Available
os x is exactly the same on PPC and intel apart architecture, therefore if someone got it worknig on intel, we can surely get it working on PPC, we'd just need to find that person and ask him what he did (and blame him for only providing binaries
)
if it can be made to work in another way it's fine too... i just have zero lua knowledge so i won't be very helpful here!
Logged
October 05, 2007, 02:00:25 AM
rjmyst3
wxFormBuilder Developer
Global Moderator
Hero Member
Offline
Posts: 599
Re: Mac OS X Build Available
It is also possible (and I think likely) that we didn't use popen at the time the premake-mac worked.
Maybe we should look for an alternative to popen.
Logged
October 06, 2007, 05:11:07 PM
Auria
Jr. Member
Offline
Posts: 63
Re: Mac OS X Build Available
Well i'll be waiting for this alternative before trying anything else with wxFB, i've even tried building lua with popen support defined in the config header without success so i don't think there's anything more i can do meanwhile.
Logged
October 06, 2007, 07:13:42 PM
RJP Computing
wxFormBuilder Developer
Administrator
Hero Member
Offline
Posts: 551
Re: Mac OS X Build Available
This is disapointing. I am going to post to the Lua group about this before re-writing the Premake scripts. Details to follow.
Logged
Regards,
Ryan
RJP Computing
Ubuntu/WinXP, AMD Athlon 64 3000+, 1000MB RAM, AC 97 Audio, ATI Radeon 9600XT 256MB
October 06, 2007, 08:08:54 PM
Auria
Jr. Member
Offline
Posts: 63
Re: Mac OS X Build Available
Hi, i just discovered something... i tried the following script :
local wxconfig = io.popen("wx-config --libs")
local wxlibs = wxconfig:read("*a")
wxconfig:close()
print(wxlibs)
and ran it with "lua file.lua"
it outputs
-L/usr/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework System -framework QuickTime -lwx_macu_aui-2.8 -lwx_macu_xrc-2.8 -lwx_macu_qa-2.8 -lwx_macu_html-2.8 -lwx_macu_adv-2.8 -lwx_macu_core-2.8 -lwx_base_carbonu_xml-2.8 -lwx_base_carbonu_net-2.8 -lwx_base_carbonu-2.8
so my lua is built properly
the problem seems to be that premake includes its own lua, and uses this one instead of the one i built. i'll try again!
«
Last Edit: October 06, 2007, 08:11:30 PM by Auria
»
Logged
October 06, 2007, 08:14:53 PM
Auria
Jr. Member
Offline
Posts: 63
Re: Mac OS X Build Available
I just checked... premake includes its own version of Lua, which doesn't have the header file i need to activate popen support (luaconf.h) no idea if it's because it's old or because it's not a stand-alone version
It doesn't seem like premake has anything set-up for using another lua than their special built-in version... not sure how to activate popen in that modified version or if it's possible at all
I posted on the premake forums... we'll see what answer i get
«
Last Edit: October 06, 2007, 08:31:55 PM by Auria
»
Logged
Pages: [
1
]
2
3
...
6
« previous
next »
Jump to:
Please select a destination:
-----------------------------
User forums
-----------------------------
=> Announcements
=> General Discussion
=> Help
=> Using wxFormBuilder
=> Nightly Builds
Loading...