Jump to content

build error on mac


Recommended Posts

hi all, I got this error for build the valgrind

have any suggestion

make all-recursive

Making all in include

make[2]: Nothing to be done for `all'.

Making all in VEX

make all-am

gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -Ipriv -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -mdynamic-no-pic -Wbad-function-cast -Wcast-qual -Wcast-align -fstrict-aliasing -Wno-long-long -Wno-pointer-sign -Wdeclaration-after-statement -fno-stack-protector -MT libvex_x86_darwin_a-main_globals.o -MD -MP -MF .deps/libvex_x86_darwin_a-main_globals.Tpo -c -o libvex_x86_darwin_a-main_globals.o `test -f 'priv/main_globals.c' || echo './'`priv/main_globals.c

cc1: error: unrecognized command line option "-mdynamic-no-pic"

cc1: error: unrecognized command line option "-arch"

make[3]: *** [libvex_x86_darwin_a-main_globals.o] Error 1

make[2]: *** [all] Error 2

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2

Link to comment
Share on other sites

and the error of the building AtlasUI

;):P

==== Building AtlasUI ====

ColourTesterImageCtrl.cpp

In file included from ../../../source/tools/atlas/AtlasUI/ColourTester/ColourTesterImageCtrl.cpp:34:

/opt/local/include/IL/il.h:448: error: '<anonymous>' has incomplete type

/opt/local/include/IL/il.h:448: error: invalid use of 'ILvoid'

/opt/local/include/IL/il.h:449: error: '<anonymous>' has incomplete type

/opt/local/include/IL/il.h:449: error: invalid use of 'ILvoid'

/opt/local/include/IL/il.h:456: error: '<anonymous>' has incomplete type

/opt/local/include/IL/il.h:456: error: invalid use of 'ILvoid'

/opt/local/include/IL/il.h:467: error: '<anonymous>' has incomplete type

/opt/local/include/IL/il.h:467: error: invalid use of 'ILvoid'

/opt/local/include/IL/il.h:469: error: '<anonymous>' has incomplete type

/opt/local/include/IL/il.h:469: error: invalid use of 'ILvoid'

/opt/local/include/IL/il.h:472: error: '<anonymous>' has incomplete type

/opt/local/include/IL/il.h:472: error: invalid use of 'ILvoid'

/opt/local/include/IL/il.h:473: error: '<anonymous>' has incomplete type

/opt/local/include/IL/il.h:473: error: invalid use of 'ILvoid'

/opt/local/include/IL/il.h:476: error: '<anonymous>' has incomplete type

/opt/local/include/IL/il.h:476: error: invalid use of 'ILvoid'

/opt/local/include/IL/il.h:492: error: '<anonymous>' has incomplete type

/opt/local/include/IL/il.h:492: error: invalid use of 'ILvoid'

/opt/local/include/IL/il.h:504: error: '<anonymous>' has incomplete type

/opt/local/include/IL/il.h:504: error: invalid use of 'ILvoid'

/opt/local/include/IL/il.h:505: error: '<anonymous>' has incomplete type

/opt/local/include/IL/il.h:505: error: invalid use of 'ILvoid'

/opt/local/include/IL/il.h:506: error: '<anonymous>' has incomplete type

/opt/local/include/IL/il.h:506: error: invalid use of 'ILvoid'

/opt/local/include/IL/il.h:521: error: '<anonymous>' has incomplete type

/opt/local/include/IL/il.h:521: error: invalid use of 'ILvoid'

In file included from ../../../source/tools/atlas/AtlasUI/ColourTester/ColourTesterImageCtrl.cpp:35:

/opt/local/include/IL/ilu.h:125: error: '<anonymous>' has incomplete type

/opt/local/include/IL/ilu.h:125: error: invalid use of 'ILvoid'

/opt/local/include/IL/ilu.h:128: error: '<anonymous>' has incomplete type

/opt/local/include/IL/ilu.h:128: error: invalid use of 'ILvoid'

/opt/local/include/IL/ilu.h:129: error: '<anonymous>' has incomplete type

/opt/local/include/IL/ilu.h:129: error: invalid use of 'ILvoid'

/opt/local/include/IL/ilu.h:134: error: '<anonymous>' has incomplete type

/opt/local/include/IL/ilu.h:134: error: invalid use of 'ILvoid'

/opt/local/include/IL/ilu.h:135: error: '<anonymous>' has incomplete type

/opt/local/include/IL/ilu.h:135: error: invalid use of 'ILvoid'

/opt/local/include/IL/ilu.h:136: error: '<anonymous>' has incomplete type

/opt/local/include/IL/ilu.h:136: error: invalid use of 'ILvoid'

/opt/local/include/IL/ilu.h:137: error: '<anonymous>' has incomplete type

/opt/local/include/IL/ilu.h:137: error: invalid use of 'ILvoid'

/opt/local/include/IL/ilu.h:140: error: '<anonymous>' has incomplete type

/opt/local/include/IL/ilu.h:140: error: invalid use of 'ILvoid'

/opt/local/include/IL/ilu.h:143: error: '<anonymous>' has incomplete type

/opt/local/include/IL/ilu.h:143: error: invalid use of 'ILvoid'

/opt/local/include/IL/ilu.h:145: error: '<anonymous>' has incomplete type

/opt/local/include/IL/ilu.h:145: error: invalid use of 'ILvoid'

/opt/local/include/IL/ilu.h:151: error: '<anonymous>' has incomplete type

/opt/local/include/IL/ilu.h:151: error: invalid use of 'ILvoid'

/opt/local/include/IL/ilu.h:152: error: '<anonymous>' has incomplete type

/opt/local/include/IL/ilu.h:152: error: invalid use of 'ILvoid'

/opt/local/include/IL/ilu.h:154: error: '<anonymous>' has incomplete type

/opt/local/include/IL/ilu.h:154: error: invalid use of 'ILvoid'

/opt/local/include/IL/ilu.h:155: error: '<anonymous>' has incomplete type

/opt/local/include/IL/ilu.h:155: error: invalid use of 'ILvoid'

/opt/local/include/IL/ilu.h:169: error: '<anonymous>' has incomplete type

/opt/local/include/IL/ilu.h:169: error: invalid use of 'ILvoid'

/opt/local/include/IL/il.h: In constructor 'ColourTesterImageCtrl::ColourTesterImageCtrl(wxWindow*)':

/opt/local/include/IL/il.h:476: error: too few arguments to function 'ILvoid ilInit(<type error>)'

../../../source/tools/atlas/AtlasUI/ColourTester/ColourTesterImageCtrl.cpp:48: error: at this point in file

/opt/local/include/IL/il.h: In member function 'void ColourTesterImageCtrl::CalculateImage()':

/opt/local/include/IL/il.h:467: error: too few arguments to function 'ILubyte* ilGetData(<type error>)'

../../../source/tools/atlas/AtlasUI/ColourTester/ColourTesterImageCtrl.cpp:128: error: at this point in file

make[1]: *** [obj/AtlasUI_Debug/ColourTesterImageCtrl.o] Error 1

make: *** [AtlasUI] Error 2

Link to comment
Share on other sites

Take that up with the Valgrind people, it's not yet completely compatible with OS X. You don't need it, anyway.

Also,

Take care that libdevil 1.6.8-rc2 (the version in macports) is not compatible with GCC 4.3, you'll need to install 1.7.8. Get it from http://openil.sourceforge.net/download.php. Then extract the archive, and run ./configure --enable-ILU --enable-ILUT, make, and sudo make install.

Edited by espes
Link to comment
Share on other sites

hello,

thanks for reply my question

but when i build the devil 1,7,8

it gives to me this error...... ;)

gcc -DHAVE_CONFIG_H -I. -I../include/IL -I ./../include -g -O2 -MT ilur.o -MD -MP -MF .deps/ilur.Tpo -c -o ilur.o `test -f '../src-ILU/ilur/ilur.c' || echo './'`../src-ILU/ilur/ilur.c

../src-ILU/ilur/ilur.c:3:20: error: malloc.h: No such file or directory

../src-ILU/ilur/ilur.c: In function 'create_params':

../src-ILU/ilur/ilur.c:105: warning: incompatible implicit declaration of built-in function 'malloc'

../src-ILU/ilur/ilur.c: In function 'destroy_params':

../src-ILU/ilur/ilur.c:121: warning: incompatible implicit declaration of built-in function 'free'

../src-ILU/ilur/ilur.c:125: warning: incompatible implicit declaration of built-in function 'free'

../src-ILU/ilur/ilur.c: In function 'parse_arguments':

../src-ILU/ilur/ilur.c:207: warning: incompatible implicit declaration of built-in function 'malloc'

../src-ILU/ilur/ilur.c:274: warning: incompatible implicit declaration of built-in function 'free'

make[1]: *** [ilur.o] Error 1

make: *** [all-recursive] Error 1

Link to comment
Share on other sites

Sorry to be condescending, but you're meant to be "good at C++". If you google'd the error, you would find hundreds of posts related to the problem; on OS X, malloc.h in in a different location. Modify ilur.c to include "sys/malloc.h".

Edited by espes
Link to comment
Share on other sites

hi all

Iam still on the system mac and compile successfully ;)

It was be allright until click the start button, then it jump to the loading interface, there is a error for me, the application ask me to find the file

"art/meshes/structural/settlement_1.dae"
:P:P

and then

ERROR: dlopen error: dlopen(./libCollada_dbg.so, 6): image not found

ERROR: Failed to load COLLADA conversion DLL

ERROR: Could not load mesh 'art/meshes/structural/settlement_1.dae'

ERROR: CObjectEntry::BuildModel(): Model art/meshes/structural/settlement_1.dae failed to load

any idea?

please ;):P

ps:I have researched in this directory ,but there is just a file jav2.dae.

Link to comment
Share on other sites

Great!!!I redownloaded and rebuilded the code ,but unfortunately:

/trunk/binaries/system/pyrogenesis_dbg ; exit;

li-yandemac-mini:~ liyan$ /trunk/binaries/system/pyrogenesis_dbg ; exit;

exe name before realpath: /trunk/binaries/system/pyrogenesis_dbg

exe name after realpath: /trunk/binaries/system/pyrogenesis_dbg

returning exe name: /trunk/binaries/system/pyrogenesis_dbg

TIMER| InitVfs: 49.2 ms

(current document)(0): malformed UTF-8 character sequence at offset 1

ERROR: JavaScript Error ((current document), line 0): malformed UTF-8 character sequence at offset 1

terminate called after throwing an instance of 'PSERROR_Scripting_SetupFailed'

what(): Scripting_SetupFailed

Abort trap

logout

strange..

maybe it's the problem of different language?

I build it on macmini 10.5.8(chinese language)...

Link to comment
Share on other sites

About libCollada_dbg.so: that's probably because it wasn't successfully compiled for some reason. There have been reports that parallel make breaks, running without -j parameter may help.

Was it the same for you, that a second build attempt worked?

UTF problem: looks like those are coming from a javascript file. The first scripts to be loaded after InitVfs are in binaries\data\mods\public\gui\test. Could you please open all of the .js files there in another application and see if it complains about a byte order marker or similar?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...