Ykkrosh Posted August 7, 2009 Report Share Posted August 7, 2009 Whoops, "osx" vs "macosx" was my mistake - fixed now (I hope)./usr/bin/ld: can't locate file for: -lAtlasUI_dbgSounds like AtlasUI failed to compile, so there must have been another error somewhere. Do you still get the problem if you do "make clean" and then a normal "make" again? If so, what's the output when you run "make AtlasUI" (which hopefully will mention the error)? Quote Link to comment Share on other sites More sharing options...
arn34 Posted August 8, 2009 Report Share Posted August 8, 2009 (edited) Well, Philip, I can't see any other errors in this compilation (the complete gcc output is available here : http://pastebin.com/m465e7f34).If I launch make AtlasUI (without make clean), I get :==== Building AtlasObject ====make[1]: `../../../binaries/system/libAtlasObject_dbg.a' is up to date.==== Building AtlasScript ====make[1]: `../../../binaries/system/libAtlasScript_dbg.a' is up to date.==== Building wxJS ====make[1]: `../../../binaries/system/libwxJS_dbg.a' is up to date.==== Building AtlasUI ====make[1]: `../../../binaries/system/libAtlasUI_dbg.so' is up to date.All I can see in my compilation that could tell us something are warnings like that :ld: warning -L: directory name (../../../libraries/dl/lib) does not exist...ld: warning -L: directory name (../../../libraries/comsuppw/lib) does not existld: warning -L: directory name (../../../libraries/x11/lib) does not existHow are those directories created (cause they're not present in sources) ?edit : creating these directories from scratch suppresses the warnings, but I get the same error at last.==== Building ActorEditor ======== Building ColourTester ====ActorEditor.cppColourTester.cppLinking ColourTesterLinking ActorEditor/usr/bin/ld: can't locate file for: -lAtlasUI_dbg/collect2: usr/bin/ld: can'tld returned 1 exit status locate file for: -lAtlasUI_dbgcollect2: ld returned 1 exit statusmake[1]: *** [../../../binaries/system/ActorEditor_dbg.app/Contents/MacOS/ActorEditor_dbg] Error 1make[1]: *** [../../../binaries/system/ColourTester_dbg.app/Contents/MacOS/ColourTester_dbg] Error 1make: *** [ActorEditor] Error 2make: *** Waiting for unfinished jobs....make: *** [ColourTester] Error 2 Edited August 8, 2009 by arn34 Quote Link to comment Share on other sites More sharing options...
janwas Posted August 8, 2009 Report Share Posted August 8, 2009 The directories are referenced from build/premake/extern_libs.lua but aren't present in libraries/. Comsuppw (Windows-specific) is a .lib file shipped with the compiler; X11 ought to be present on most *nix but I don't know where/whether we need a directory or just a single file. I don't know about DL, either. Seems quite doubtful that these warnings point to a problem that prevents the library from being loaded, though. Quote Link to comment Share on other sites More sharing options...
arn34 Posted August 8, 2009 Report Share Posted August 8, 2009 Did you see the whole output, Jan ? What could point to these errors otherwise ? I can't see anything else for my part ... Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted August 8, 2009 Report Share Posted August 8, 2009 Hmm... Does the file binaries/system/libAtlasUI_dbg.so exist? (or anything with a similar name?)Could you run "./update-workspaces.sh --verbose" and then "make clean" and "make ActorEditor" (without any -j option)? That should make it easier to see exactly what it's doing. Quote Link to comment Share on other sites More sharing options...
arn34 Posted August 8, 2009 Report Share Posted August 8, 2009 I'll try this on monday (have to leave for the week-end now) : I'll tell you about the result. Quote Link to comment Share on other sites More sharing options...
janwas Posted August 8, 2009 Report Share Posted August 8, 2009 Did you see the whole output, Jan ? What could point to these errors otherwise ? I can't see anything else for my part ...I didn't see any relevant info, either :/ (We do need to clean up those warnings, though)Just one thing looked strange: /usr/bin/ld: can't/usr/ locate file for: -lAtlasUI_dbgbin/ld: can't locate file for: -lAtlasUI_dbgIs it trying two linkers (and failing to print a newline after the first error)? That's interesting.. Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted August 8, 2009 Report Share Posted August 8, 2009 Is it trying two linkers (and failing to print a newline after the first error)? That's interesting..It's linking ActorEditor and ColourTester in parallel (as a consequence of using "make -j3"). Quote Link to comment Share on other sites More sharing options...
arn34 Posted August 10, 2009 Report Share Posted August 10, 2009 (edited) Here is the output of a make (without -j3), after an ./update-workspace.sh --verbose, on the latest svn revision (7104) :g++ -MD -I "../../../source/tools/atlas/AtlasFrontends/.." -g -Wall -Wno-switch -Wno-reorder -Wno-invalid-offsetof -Wextra -Wno-missing-field-initializers -Wunused-parameter -Wredundant-decls -D_FORTIFY_SOURCE=2 -fstrict-aliasing -fpch-preprocess -msse -ffast-math -fvisibility=hidden -MF obj/ActorEditor_Debug/ActorEditor.d -o obj/ActorEditor_Debug/ActorEditor.o -c ../../../source/tools/atlas/AtlasFrontends/ActorEditor.cppmkdir -p ../../../binaries/systemmkdir -p ../../../binaries/systemmkdir -p ../../../binaries/systemif [ ! -d ../../../binaries/system/ActorEditor_dbg.app/Contents/MacOS ]; then mkdir -p ../../../binaries/system/ActorEditor_dbg.app/Contents/MacOS; fig++ -o ../../../binaries/system/ActorEditor_dbg -L../../../binaries/system -L../../../binaries/system -L"/opt/local/lib" obj/ActorEditor_Debug/ActorEditor.o ../../../binaries/system/libAtlasObject_dbg.a ../../../binaries/system/libAtlasUI_dbg.so -lAtlasUI_dbg/usr/bin/ld: can't locate file for: -lAtlasUI_dbgcollect2: ld returned 1 exit statusmake[1]: *** [../../../binaries/system/ActorEditor_dbg.app/Contents/MacOS/ActorEditor_dbg] Error 1make: *** [ActorEditor] Error 2The whole outputs are available here :- ./update-workspace.sh -- verbose : http://pastebin.com/m160b3e8f- make : http://pastebin.com/m4fb1cbd4I thought the parallel builds could lead to the error message, but now that I tried a simple make, I don't understand why it fails ... Edited August 10, 2009 by arn34 Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted August 10, 2009 Report Share Posted August 10, 2009 g++ -o ../../../binaries/system/libAtlasUI_dbg.so...g++ -o ../../../binaries/system/ActorEditor_dbg -L../../../binaries/system -L../../../binaries/system -L"/opt/local/lib" obj/ActorEditor_Debug/ActorEditor.o ../../../binaries/system/libAtlasObject_dbg.a ../../../binaries/system/libAtlasUI_dbg.so -lAtlasUI_dbg/usr/bin/ld: can't locate file for: -lAtlasUI_dbgAfter doing this, does the file binaries/system/libAtlasUI_dbg.so exist? It sounds like it's being compiled properly, and the problem is when trying to link against it, but I have no idea why Does anyone else on OS X have this same problem?What is the output from the commands pkg-config libxml-2.0 --libspkg-config nspr --libswx-config --unicode=yes --libs std,gl?The only significant difference I see from Linux is that I get g++ -o ../../../binaries/system/ActorEditor_dbg -L../../../binaries/system -L../../../binaries/system -Wl,--no-undefined -Wl,--as-needed -L"/usr/X11R6/lib" obj/ActorEditor_Debug/ActorEditor.o -Xlinker --start-group ../../../binaries/system/libAtlasObject_dbg.a ../../../binaries/system/libAtlasUI_dbg.so -Xlinker --end-group -lAtlasUI_dbg(i.e. with --start-group) but I don't see why that would matter here. Quote Link to comment Share on other sites More sharing options...
arn34 Posted August 10, 2009 Report Share Posted August 10, 2009 After doing this, does the file binaries/system/libAtlasUI_dbg.so exist? II forgot to mention it (you already asked for that file in last post), but yes it exists :ordinateur-de-arnaud:~/Desktop/0adtest/binaries/system arnaud$ lsActorEditor.exe libatlas_dbg.aActorEditor_dbg.app libengine_dbg.aActorViewer.bat libgraphics_dbg.aAtlas.bat libgui_dbg.aAtlasUI.dll libi18n_dbg.aAtlasUI.dll.2.config liblowlevel_dbg.aCollada.dll libmocks_real_dbg.aColourTester.exe libmocks_test_dbg.aFCollada.dll libnetwork_dbg.aFColladaD.dll libnspr4.dllFontBuilder.exe libpng13.dllMicrosoft.VC80.CRT.manifest libpng13d.dllMicrosoft.VC80.DebugCRT.manifest libwxJS_dbg.aMicrosoft.VC90.CRT.manifest libxml2.dllMicrosoft.VC90.OpenMP.manifest msvcm80.dllOpenAL32.dll msvcp71.dllQuickstart.bat msvcp80.dllRebuildRandomMaps.bat msvcp80d.dllSDL.dll msvcp90.dllaken.pdb msvcr71.dllaken.sys msvcr71d.dllaken64.pdb msvcr80.dllaken64.sys msvcr80d.dllaken64d.pdb msvcr90.dllaken64d.sys msvcrt.dllakend.pdb msvcrtd.dllakend.sys ogg.dllape ogg_d.dllavcodec-51.dll perl58.dllavformat-51.dll pyrogenesis.exeavutil-49.dll pyrogenesis.pdbcryptopp.dll pyrogenesis_dbgcryptoppd.dll pyrogenesis_dbg.appdbghelp.dll readme.txtfreetypea.dll rmgen.exefreetypeb.dll rmgen.pdbicons.dll swscale-0.dlliconv.dll textureconvjpeg-6b.dll vcomp90.dlljpeg-6bd.dll vorbis.dlljs32.dll vorbis_d.dlljs32d.dll vorbisfile.dlljs32d.pdb vorbisfile_d.dlllibAtlasObject_dbg.a wrap_oal.dlllibAtlasScript_dbg.a zlib1.dlllibAtlasUI_dbg.so zlib1d.dll(see just above)What is the output from the commands Here they are :ordinateur-de-arnaud:~/Desktop/0adtest/binaries/system arnaud$ pkg-config libxml-2.0 --libs-L/opt/local/lib -lxml2 -lpthread -lz -liconv -lm ordinateur-de-arnaud:~/Desktop/0adtest/binaries/system arnaud$ pkg-config nspr --libs-L/opt/local/lib/nspr -L/opt/local/lib -lplds4 -lplc4 -lnspr4 ordinateur-de-arnaud:~/Desktop/0adtest/binaries/system arnaud$ wx-config --unicode=yes --libs std,gl-L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework System -framework QuickTime -framework OpenGL -framework AGL -lwx_macu_gl-2.8 -lwx_macu-2.8 Any idea ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.