Jump to content

Cannot create output file "../../../source/test_root.cpp"


Recommended Posts

As in the subject, i'm trying to compile 0ad on a linux box, debian squeeze, when i launch make after some minutes it blocks saying message:

Cannot create output file "../../../source/test_root.cpp"

here the final log when the error comes up

==== Building test_gen ====
test_Bound.h
test_Matrix3d.h
test_headerless.h
test_allocators.h
test_lib.h
test_lockfree.h
test_fnv_hash.h
test_secure_crt.h
test_byte_order.h
test_adts.h
test_path_util.h
test_bits.h
test_regex.h
test_base32.h
test_cache_adt.h
test_rand.h
test_tex.h
test_topology.h
test_printf.h
test_sysdep.h
test_trace.h
test_CmdLineArgs.h
stub_impl_hack.h
test_CLogger.h
test_test.h
test_CStr.h
test_Parser.h
test_XMLWriter.h
test_XeroXMB.h
test_Xeromyces.h
test_Color.h
test_MeshManager.h
test_AtlasObjectXML.h
Cannot create output file "../../../source/test_root.cpp"
make[1]: *** [all] Error 13
make: *** [test_gen] Error 2

Link to comment
Share on other sites

Hmm, not quite sure what causes that.

Could you try changing build/bin/cxxtestgen.pl line 302 from

	open OUTPUT_FILE,">$output" or die("Cannot create output file \"$output\"\n");

to

	open OUTPUT_FILE,">$output" or die("Cannot create output file \"$output\": $!\n");

and then run it again and see what the error message is?

Link to comment
Share on other sites

now the error is:

Cannot create output file "../../../source/test_root.cpp": Permission denied

i think that's better if you send the error message into the compilation process, like now, it's more debuggable :)

now i changed the permissions to that file i'll update you for further details later.

thank you a lot.

Edited by M0rF3uS
Link to comment
Share on other sites

Ok, now i'm able to compile and to launch the game, i cannot test the gameplay because in this moment i'm at work :) later i'll do some tests. When i launch pyrogenesys_dbg i receive this backtrack, the game starts but i don't know if this can give some troubles.

:~/0ad/trunk/binaries/system$ ./pyrogenesis_dbg 
TIMER| InitVfs: 346.578 ms
TIMER| InitScripting: 157.876 ms
TIMER| CONFIG_Init: 58.6727 ms
TIMER| write_sys_info: 80.7212 ms
ogl_tex.cpp(699): Performance warning: your graphics card does not support compressed textures. The game will try to continue anyway, but may be slower than expected. Please try updating your graphics drivers; if that doesn't help, please try upgrading your hardware.
udbg_bfd_init: loading symbols from /home/morfeus/0ad/trunk/binaries/system/pyrogenesis_dbg.
Performance warning: your graphics card does not support compressed textures. The game will try to continue anyway, but may be slower than expected. Please try updating your graphics drivers; if that doesn't help, please try upgrading your hardware.
Location: ogl_tex.cpp:699 (detect_gl_upload_caps)

Call stack:

(0x085bc26a) ldbg.cpp:101 debug_DumpStack(wchar_t*, unsigned int, void*, char const*)
(0x0856c624) debug.cpp:341 debug_BuildErrorMessage(wchar_t const*, char const*, int, char const*, void*, char const*, ErrorMessageMem*)
(0x0856cb1f) debug.cpp:499 debug_DisplayError(wchar_t const*, unsigned int, void*, char const*, char const*, int, char const*, unsigned char*)
(0x085a0b38) ogl_tex.cpp:700 detect_gl_upload_caps
(0x085a155f) ogl_tex.cpp:824 ogl_tex_upload(long long, unsigned int, int, int)
(0x0859a3cb) unifont.cpp:167 UniFont_reload
(0x08595644) h_mgr.cpp:506 call_init_and_reload
(0x08596cb8) h_mgr.cpp:545 alloc_new_handle
(0x08596e3d) h_mgr.cpp:580 h_alloc(H_VTbl*, boost::filesystem::basic_path<std::string, VfsPathTraits> const&, unsigned int, ...)
(0x08599647) unifont.cpp:210 unifont_load(boost::filesystem::basic_path<std::string, VfsPathTraits> const&, unsigned int)
(0x08395b5a) Font.cpp:46 CFont
(0x082b8cf4) GameSetup.cpp:593 InitPs
(0x082b988f) GameSetup.cpp:991 Init(CmdLineArgs const&, int)
(0x081ede39) main.cpp:395 RunGameOrAtlas
(0x081edf04) main.cpp:412 main
(0xb76447a5) /lib/i686/cmov/libc.so.6:0 __libc_start_main

errno = 0 (?)
OS error = ?


(C)ontinue, (B)reak, Launch (D)ebugger, or (E)xit?
C
TIMER| ps_console: 13.2587 s
TIMER| ps_lang_hotkeys: 73.8098 ms
TIMER| ps_gui_init: 75.568 us
TIMER| ps_gui_setup_xml: 41.7671 ms
TIMER| ps_gui_styles_xml: 19.6715 ms
TIMER| ps_gui_sprite1_xml: 214.884 ms
TIMER| ps_gui_1: 293.416 ms
TIMER| ps_gui_2: 370.196 ms
TIMER| ps_gui_3: 9.6682 ms
TIMER| ps_gui_4: 121.402 ms
TIMER| ps_gui_6: 4.77149 ms
TIMER| ps_gui_6_1: 11.6979 ms
TIMER| ps_gui_6_2: 7.04426 ms
TIMER| ps_gui_7: 4.7821 ms
TIMER| ps_gui_9: 13.5869 ms
TIMER| InitRenderer: 17.5704 ms
TIMER| SimulationInit: 74.3984 ms
TIMER| Init_miscgamesection: 660.167 ms
TIMER| Init_guiload: 313.184 ms
TIMER| shutdown Scheduler: 9.708 us
TIMER| shutdown mouse stuff: 82.343 us
TIMER| shutdown Pathfinder: 303.53 us
TIMER| shutdown game scripting stuff: 2.28297 ms
TIMER| shutdown actor stuff: 6.216 us
TIMER| shutdown TexMan: 11.663 us
TIMER| shutdown Renderer: 112.304 us
TIMER| shutdown ScriptingHost: 15.6856 ms
TIMER| shutdown ConfigDB: 3.911 us
TIMER| shutdown CSocketBase: 317.569 us
TIMER| shutdown CNetLogManager: 8.102 us
TIMER| shutdown I18N: 10.825 us
TIMER| resource modules: 27.5267 ms
TIMER TOTALS (5 clients)
-----------------------------------------------------
tc_2: 0 c (0x)
tc_1: 0 c (0x)
tc_png_decode: 0 c (0x)
tc_transform: 1218 Mc (49x)
tc_plain_transform: 2828.59 kc (12x)
-----------------------------------------------------
TIMER| shutdown misc: 2.75517 ms

Link to comment
Share on other sites

Glad it's working :). I've updated cxxtestgen.pl in SVN to include the extra error detail.

You get that warning because you don't have S3TC (texture compression) support enabled - the easiest solution is to run 'driconf' and turn on the "Enable S3TC ..." option, which should fix it. (We do need to make this warning message a bit friendlier :ok:)

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...