Jump to content

obj/graphics_Release/CameraController.o] Error 1


seeh
 Share

Recommended Posts


i tried disable mouse edge scrolling in the source code

(
if ( false && g_mouse_active && m_ViewScrollMouseDetectDistance > 0)
)

and got following error by compiling.

How could i fix that?

~/game/0ad/a27/a27build/build/workspaces; ./update-workspaces.sh -j16; cd gcc; make -j16;                   
Updating bundled third-party dependencies...

FCollada is already up to date.

SpiderMonkey is already up to date.

NVTT is already up to date.

make: Entering directory '~/game/0ad/a27/a27build/build/premake/premake5/build/gmake2.unix'
==== Building lua-lib (release) ====
==== Building zip-lib (release) ====
==== Building zlib-lib (release) ====
==== Building curl-lib (release) ====
==== Building luashim-lib (release) ====
==== Building mbedtls-lib (release) ====
==== Building example (release) ====
==== Building luasocket (release) ====
==== Building Premake5 (release) ====
make: Leaving directory '/home/seeh/game/0ad/a27/a27build/build/premake/premake5/build/gmake2.unix'

Premake args:  --atlas
Building configurations...
Running action 'gmake'...
Done (1095ms).
==== Building mocks_real (release) ====
==== Building network (release) ====
==== Building rlinterface (release) ====
==== Building tinygettext (release) ====
==== Building lobby (release) ====
==== Building glooxwrapper (release) ====
==== Building simulation2 (release) ====
==== Building scriptinterface (release) ====
==== Building engine (release) ====
==== Building graphics (release) ====
CameraController.cpp
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: note: use -Winvalid-pch for more information
<command-line>: fatal error: obj/graphics_Release/precompiled.h: No such file or directory
compilation terminated.
make[1]: *** [graphics.make:259: obj/graphics_Release/CameraController.o] Error 1
make: *** [Makefile:127: graphics] Error 2
seeh@seeh-kub ~/g/0/a/a/b/w/gcc [2]>
Link to comment
Share on other sites

i was able to do this with the help of ChatGPT:

HowTo fix this build error of 0ad source code:

build/workspaces; ./update-workspaces.sh -j16; cd gcc; make -j16;

fatal error: obj/graphics_Release/precompiled.h: No such file or directory
compilation terminated.
make[1]: *** [graphics.make:259: obj/graphics_Release/CameraController.o] Error 1
make: *** [Makefile:127: graphics] Error 2

ChatGPT: ..... make clean
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...