[Aranym-dev] Building / OS X

Francois LE COAT lecoat at atari.org
Wed Feb 11 17:01:33 CET 2015


Hi,

If I add "gui-sdl/dlgHostfs.cpp" to the Xcode project, there's errors:
"
In file included from 
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../../gui-sdl/dlgHostfs.cpp:26:
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:35:2: 
error: #error "You don't have ANSI C header files."
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:230:2: 
error: #error "No 2 byte type, you lose."
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:239:2: 
error: #error "No 4 byte type, you lose."
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:259:2: 
error: #error "No 8 byte type, you lose."
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:268:2: 
error: #error "Unsupported size of pointer"
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:635:4: 
error: #error "no working memcpy()"
In file included from 
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../../gui-sdl/dlgHostfs.cpp:26:
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:296: 
error: 'uint32' does not name a type
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:524: 
error: 'uint32' does not name a type
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:534: 
error: 'uint32' does not name a type
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:535: 
error: variable or field 'do_put_mem_long' declared void
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:535: 
error: 'uint32' was not declared in this scope
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:535: 
error: 'a' was not declared in this scope
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:535: 
error: 'uint32' was not declared in this scope
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:544: 
error: 'uint32' does not name a type
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:554: 
error: 'uint32' does not name a type
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:555: 
error: variable or field 'do_put_mem_word' declared void
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:555: 
error: 'uint16' was not declared in this scope
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:555: 
error: 'a' was not declared in this scope
/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/../sysdeps.h:555: 
error: 'uint32' was not declared in this scope
...
"

I sent you to your private e-mail.

Thorsten Otto writes:
>  > Undefined symbols:
>  >  "DlgHostfsOpen()", referenced from:
>  >      DlgMain::processDialog()      in dlgMain.o
>
> If you got this error when building from the commandline, you just have
> to regenerate confgure my invoking autogen.sh. In the XCode project file,
> src/gui-sdl/dlgHostfs.cpp has to be added to list of files (this is not
> yet in git, i don't think this can be done by simply editing the project
> file).
>
> Francois LE COAT writes:
> Building today's GIT under OS X gives the following error :
> "
> Ld
> build/MacAranym.build/Release/MacAranym.build/Objects-normal/x86_64/MacAranym
>
> normal x86_64
> cd /Users/admin/Desktop/aranym-code/src/Unix/MacOSX
> setenv MACOSX_DEPLOYMENT_TARGET 10.5
> /Developer/usr/bin/g++-4.2 -arch x86_64
> -L/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/build/Release
> -F/Users/admin/Desktop/aranym-code/src/Unix/MacOSX/build/Release -F.
> -F/Users/admin/Desktop/aranym-code/src/Unix/MacOSX -filelist
> /Users/admin/Desktop/aranym-code/src/Unix/MacOSX/build/MacAranym.build/Release/MacAranym.build/Objects-normal/x86_64/MacAranym.LinkFileList
>
> -Xlinker -rpath -Xlinker @executable_path/../Frameworks/
> -mmacosx-version-min=10.5 -framework SDL_image -framework SDL -framework
> Cocoa -framework IOKit -framework OpenGL -framework Security -prebind -o
> /Users/admin/Desktop/aranym-code/src/Unix/MacOSX/build/MacAranym.build/Release/MacAranym.build/Objects-normal/x86_64/MacAranym
>
> Undefined symbols:
>    "DlgHostfsOpen()", referenced from:
>        DlgMain::processDialog()      in dlgMain.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> "
> So maybe "src/Unix/MacOSX/MacAranym.xcodeproj" isn't complete. There's
> sources missing in the project, about the GUI, but I don't know which.
> I use "SDL-1.2.15.dmg" and "SDL_image-1.2.12.dmg" under OS X 10.6.8.
> That means Xcode Version 3.2.6, and GNU/GCC 4.2.
>
> I know SDL GUI was modified, but Xcode project isn't aware about it.
>
> Thanks for helping.

Best regards,

-- 
François LE COAT
Author of Eureka 2.12 (2D Graph Describer, 3D Modeller)
http://eureka.atari.org/



More information about the cz-bobek-lists-aranym mailing list