Re: [hatari-devel] Test needed to build OSX version

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 21/06/13 12:21, Troed Sångberg a écrit :
(To: and CC: cleaned)

tl;dr: I'm getting the SDLMain.nib error as well. Manually copying SDLMain.nib from my frameworks dir to hatari.app bundle works - but I get the X11 UI and no Mac menus etc. Where's the step I'm missing?

I originally created my repository back in January - and this is what I did now:

hg pull
hg update

make clean

You're right, the cmake build system is broken with the .xib files. xib files need to be converted to nib file. Will have to check how it could be done.
Something like that should be done in the CMakeLists.txt :

# We need to compile the interface builder *.xib files to *.nib files to add to the bundle
# Make sure we can find the 'ibtool' program. If we can NOT find it we skip generation of this project
FIND_PROGRAM( IBTOOL ibtool HINTS "/usr/bin" "${OSX_DEVELOPER_ROOT}/usr/bin" )
if ( ${IBTOOL} STREQUAL "IBTOOL-NOTFOUND" )
	MESSAGE( SEND_ERROR "ibtool can not be found" )
ENDIF()

# Compile the .xib files using the 'ibtool' program with the destination being the app package
FOREACH( xib ${RSRC_IOS_XIB_FILES} )
	ADD_CUSTOM_COMMAND( TARGET ${RT_APP_NAME} POST_BUILD
	COMMAND ${IBTOOL} --errors --warnings --notices --output-format human-readable-text
		--compile
		${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${RT_APP_NAME}.app/Contents/Resources/${xib}.nib
		${RT_APP_ROOT}/src/gui-osx/French.lproj/${xib}.xib
		COMMENT "Compiling ${RT_APP_ROOT}/rsrc/apple/ios/${xib}.xib")
ENDFOREACH()


I need help for that....
xib is a source control friendly format, nib are not, that why it's better to use xib files for devel.

More over, the info.plist is no longer copied in the app bundle by the cmake build system.... Also need to find why. But I do not know anything about cmake...

JV



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/