IPB Style© Fisana

Jump to content


Build environment and deployment on the Mac


  • Please log in to reply
189 replies to this topic

#181 wraitii

wraitii

  • WFG Programming Team

  • Primus Pilus
    (1,045 posts)

Posted 12 February 2013 - 04:55 PM

I'm getting a -liconv but no libiconv with that link.
It's indeed the same error I had.
Wraitii
Wildfire Games Programmer, AI developer, auxiliary map designer, dealing with anything water.
Contact me: wraitii@wildfiregames.com

Also the world's only three-dimensional poodle.

#182 stwf

stwf

  • WFG Programming Team

  • Sesquiplicarius
    (173 posts)

Posted 12 February 2013 - 07:14 PM

Stevens-MacBook-Pro:s0ad steve$ ./libraries/osx/wxwidgets/bin/wx-config --libs
-L/Users/steve/Projects/s0ad/libraries/osx/wxwidgets/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL /Users/steve/Projects/s0ad/libraries/osx/wxwidgets/lib/libwx_osx_cocoau_xrc-2.9.a /Users/steve/Projects/s0ad/libraries/osx/wxwidgets/lib/libwx_osx_cocoau_webview-2.9.a /Users/steve/Projects/s0ad/libraries/osx/wxwidgets/lib/libwx_osx_cocoau_qa-2.9.a /Users/steve/Projects/s0ad/libraries/osx/wxwidgets/lib/libwx_baseu_net-2.9.a /Users/steve/Projects/s0ad/libraries/osx/wxwidgets/lib/libwx_osx_cocoau_html-2.9.a /Users/steve/Projects/s0ad/libraries/osx/wxwidgets/lib/libwx_osx_cocoau_adv-2.9.a /Users/steve/Projects/s0ad/libraries/osx/wxwidgets/lib/libwx_osx_cocoau_core-2.9.a /Users/steve/Projects/s0ad/libraries/osx/wxwidgets/lib/libwx_baseu_xml-2.9.a /Users/steve/Projects/s0ad/libraries/osx/wxwidgets/lib/libwx_baseu-2.9.a -framework WebKit -lexpat -lwxregexu-2.9 -lwxtiff-2.9 -lwxjpeg-2.9 -lwxpng-2.9 -lz -lpthread -liconv

#183 historic_bruno

historic_bruno

  • WFG Programming Team

  • Primus Pilus
    (1,980 posts)

Posted 14 February 2013 - 04:00 PM

Update: I have a fresh Mountain Lion (10.8.2) test system now and the build process works fine, so I guess it's MacPorts/Homebrew that is causing these issues. I will try to see what can be done about that (other than uninstalling MacPorts).
Ben Brian [ aka historic_bruno ]

Wildfire Games Programmer
Contact me: ben@wildfiregames.com

#184 Echelon9

Echelon9

  • Donator

  • Discens
    (54 posts)

Posted 16 February 2013 - 12:23 AM

View Posthistoric_bruno, on 09 February 2013 - 07:14 AM, said:

Indeed, I forgot to mention that :) Luckily Cmake has an OS X package available: http://www.cmake.org...s/software.html

Compiling on a clean Mac 10.8.2 system with Xcode 4.6.

#185 wraitii

wraitii

  • WFG Programming Team

  • Primus Pilus
    (1,045 posts)

Posted 17 February 2013 - 10:20 AM

FYI, it compiled on my iMac (under 10.8 or 10.7, can't recall), which does have macports. So it might not be strictly linked to that.
Wraitii
Wildfire Games Programmer, AI developer, auxiliary map designer, dealing with anything water.
Contact me: wraitii@wildfiregames.com

Also the world's only three-dimensional poodle.

#186 historic_bruno

historic_bruno

  • WFG Programming Team

  • Primus Pilus
    (1,980 posts)

Posted 17 February 2013 - 09:11 PM

View PostEchelon9, on 16 February 2013 - 12:23 AM, said:

Compiling on a clean Mac 10.8.2 system with Xcode 4.6.
Do you mean to say it worked, or didn't work, or it's in progress? :)

View Postwraitii, on 17 February 2013 - 10:20 AM, said:

FYI, it compiled on my iMac (under 10.8 or 10.7, can't recall), which does have macports. So it might not be strictly linked to that.

For the wxWidgets/iconv error, it may be helpful to see what wxWidgets' configure scripts are doing. This is logged in config.log in the build directory, "libraries/osx/wxwidgets/wxWidgets-2.9.4/build-release/config.log".

Any version of OS X to this point (including 10.8) should have libiconv available in /usr/include/iconv.h and /usr/lib/libiconv.dylib, but maybe MacPorts or something is confusing it. I have a possible fix that involves using --with-libiconv-prefix=/usr to override whatever configure is finding.
Ben Brian [ aka historic_bruno ]

Wildfire Games Programmer
Contact me: ben@wildfiregames.com

#187 Echelon9

Echelon9

  • Donator

  • Discens
    (54 posts)

Posted 22 February 2013 - 12:28 PM

View PostEchelon9, on 16 February 2013 - 12:23 AM, said:

Compiling successfully on a clean Mac 10.8.2 system with Xcode 4.6.


#188 historic_bruno

historic_bruno

  • WFG Programming Team

  • Primus Pilus
    (1,980 posts)

Posted 16 March 2013 - 08:20 PM

So I tried installing MacPorts, then all the ports required for the old build system, then ran the new build system from scratch, all worked perfectly on 10.8.3 w/ Xcode 4.6. "otool -L pyrogenesis" revealed it wasn't even linking with MacPorts libs - it seems that won't happen by default. Then I tried the same with Homebrew, with the same results. So I'm thinking there is more to those build issues than MacPorts or Homebrew, it could be some other app was installed that mangled the build environment, or they were installed in a non-default way. But I can't reproduce the errors so easily.

If you have errors, I would suggest checking there are no conflicts in your SVN/git repo, that everything updated cleanly, and then looking for any apps that might have modified the build environment in some way. It also may be worth knowing whether you upgraded OS X or it was a clean install?
Ben Brian [ aka historic_bruno ]

Wildfire Games Programmer
Contact me: ben@wildfiregames.com

#189 historic_bruno

historic_bruno

  • WFG Programming Team

  • Primus Pilus
    (1,980 posts)

Posted 23 March 2013 - 10:45 PM

In response to Geek377's build log from IRC: you need to install cmake as described in the instructions :)
Ben Brian [ aka historic_bruno ]

Wildfire Games Programmer
Contact me: ben@wildfiregames.com

#190 Geek377

Geek377

  • Web Development Team

  • Primus Pilus
    (1,720 posts)

Posted 24 March 2013 - 04:34 AM

View Posthistoric_bruno, on 23 March 2013 - 10:45 PM, said:

In response to Geek377's build log from IRC: you need to install cmake as described in the instructions :)
Thanks, for this and dealing with my busy schedule. Somehow I missed that in the instruction... being stupid as usual :fool:
The Geek [ aka Geek377]
Wildfire Games Webmaster
Contact me: Posted Image Posted Image




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users