Re: [hatari-devel] Preliminary Hatari 1.7.0 OSX Build Example

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


Downloaded CMakeLists.txt, replaced the existing one from a just updated repository. make clean, ./configure, sudo make install:

***
[ 66%] Building C object src/CMakeFiles/hatari.dir/main.c.o
/Users/troedsangberg/dev/hatari/src/main.c:687:42: error: expected _expression_
                snprintf(psGlobalConfig, FILENAME_MAX, CONFDIR"%chatari.cfg", PATHSEP);
                                                       ^
<command line>:2:17: note: expanded from macro 'CONFDIR'
#define CONFDIR ../Resources
                ^
/usr/include/secure/_stdio.h:56:62: note: expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^
1 error generated.
make[2]: *** [src/CMakeFiles/hatari.dir/main.c.o] Error 1
make[1]: *** [src/CMakeFiles/hatari.dir/all] Error 2
make: *** [all] Error 2
***

(I haven't played around with cmake and haven't tried fixing it myself)

regards,
Troed
 


On Fri, Jun 28, 2013 at 8:29 PM, Nicolas Pomarède <npomarede@xxxxxxxxxxxx> wrote:
On 28/06/2013 18:46, Nicolas Pomarède wrote:
On 28/06/2013 18:20, Jerome Vernet wrote:
So it's even better to add on line 236:

if(ENABLE_OSX_BUNDLE)
         add_definitions(-DALERT_HOOKS=1)
         add_definitions(-DCONFDIR=\"../Resources\")
     else()
         add_definitions(-DCONFDIR=\"${ETCDIR}\")
endif()

No ?

Yes, it's possible ; is this xcode that create this specific directory
hierarchy (.app/Contents/Resources/...), do all OSX application have the
same hierarchy ?


Here's a modified CMakeLists.txt to handle this case ; can you test it ?

If some other people used to building OSX binary could test it too for their setup ?

Nicolas



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