Jump to content

installation problems on linux


Recommended Posts

sudo updatedb

[sudo] password for salsero:

salsero@salsero-laptop:~$ locate pratom.h

/usr/include/nspr/pratom.h

/usr/local/include/nvu-0.75/nspr/pratom.h

salsero@salsero-laptop:~$ locate prlock.h

/usr/include/nspr/prlock.h

/usr/local/include/nvu-0.75/nspr/prlock.h

salsero@salsero-laptop:~$ locate prcvar.h

/usr/include/nspr/prcvar.h

/usr/local/include/nvu-0.75/nspr/prcvar.h

Link to comment
Share on other sites

  • Replies 56
  • Created
  • Last Reply

Top Posters In This Topic

hi,

i get this:

salsero@salsero-laptop:~$ nspr-config --cflags --libs

-I/usr/local/include/nspr

-L/usr/local/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lc -lpthread

so nspr-config has the wrong include path, please take a look at your distribution bug database and file a new bug if needed (except you've installed it yourself).

you can try this as workaround:


CFLAGS="-I/usr/include/nspr" make

or even install a newer version or so where this problem might be fixed.

Link to comment
Share on other sites

Hi i get this report:

salsero@salsero-laptop:~$ CFLAGS="-I/usr/include/nspr" make

make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden. Schluss.

salsero@salsero-laptop:~$ sudo CFLAGS="-I/usr/include/nspr" make

[sudo] password for salsero:

make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden. Schluss.

salsero@salsero-laptop:~$

how can i install a new version? libnspr4-0d - 4.7.5 and libnspr4-dev is already installed.

Link to comment
Share on other sites

Hi i get this report:

salsero@salsero-laptop:~$ CFLAGS="-I/usr/include/nspr" make

make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden. Schluss.

salsero@salsero-laptop:~$ sudo CFLAGS="-I/usr/include/nspr" make

[sudo] password for salsero:

make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden. Schluss.

salsero@salsero-laptop:~$

how can i install a new version? libnspr4-0d - 4.7.5 and libnspr4-dev is already installed.

darn! you should do that in the build dir of 0ad you already did that sometimes....

and you don't need to build as root!

Edited by idle
Link to comment
Share on other sites

sorry but the installation is not userfriendly. not every one is a profi.

in which folder i have to go?

salsero@salsero-laptop:~/trunk$ CFLAGS="-I/usr/include/nspr" make

make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden. Schluss.

salsero@salsero-laptop:~/trunk$ cd build

salsero@salsero-laptop:~/trunk/build$ CFLAGS="-I/usr/include/nspr" make

make: *** Keine Targets angegeben und keine »make«-Steuerdatei gefunden. Schluss.

Link to comment
Share on other sites

Try this:

open 'libraries/spidermonkey/src/build.sh' with your editor.

take a look at line 33

change it from:

CFLAGS="`nspr-config --cflags` $no_common" \

to:

CFLAGS="-I/usr/include/nspr `nspr-config --cflags` $no_common" \

then go back into 'build/workspaces/'

and type again: ./update-workspaces.sh

Link to comment
Share on other sites

sorry but the installation is not userfriendly.

heh, that's certainly true - it's much easier on Windows.

not every one is a profi.

Right, but this release (being incomplete and rough around the edges) is intended for devs.

I think idle is somewhat frustrated that your reaction to the error was running with sudo. Instead, the correct thing to do after update-workspaces succeeds is invoke make from build/workspaces/gcc (which should be where a makefile resides).

Edited by janwas
Link to comment
Share on other sites

ok, is this ok?

salsero@salsero-laptop:~/trunk/build/workspaces/gcc$ make

==== Building mocks_real ====

make[1]: »../../../binaries/system/libmocks_real_dbg.a« ist bereits aktualisiert.

==== Building network ====

make[1]: »../../../binaries/system/libnetwork_dbg.a« ist bereits aktualisiert.

==== Building engine ====

make[1]: »../../../binaries/system/libengine_dbg.a« ist bereits aktualisiert.

==== Building graphics ====

Frustum.cpp

Patch.cpp

make[1]: *** Keine Regel vorhanden, um das Target »../../../source/lib/file/path.h«,

benötigt von »obj/graphics_Debug/SkeletonAnimDef.o«, zu erstellen. Schluss.

make: *** [graphics] Fehler 2

Link to comment
Share on other sites

i have a conflict

salsero@salsero-laptop:~/trunk$ svn up
Konflikt in »libraries/spidermonkey/src/build.sh« entdeckt.
Auswahl: (p) zurückstellen, (df) voller Diff, (e) editieren,
(h) Hilfe für weitere Optionen:

what sould i choose?

Edited by sisqonrw
Link to comment
Share on other sites

i have a conflict

salsero@salsero-laptop:~/trunk$ svn up
Konflikt in »libraries/spidermonkey/src/build.sh« entdeckt.
Auswahl: (p) zurückstellen, (df) voller Diff, (e) editieren,
(h) Hilfe für weitere Optionen:

what sould i choose?

p

*EDIT

if you're at the point where you need to run ./update-workspaces.sh type this:


CFLAGS="-I/usr/include/nspr" ./update-workspaces.sh

Edited by idle
Link to comment
Share on other sites

now i get this:

salsero@salsero-laptop:~/trunk$ svn up
Konflikt in »libraries/spidermonkey/src/build.sh« entdeckt.
Auswahl: (p) zurückstellen, (df) voller Diff, (e) editieren,
(h) Hilfe für weitere Optionen: p
C libraries/spidermonkey/src/build.sh
Aktualisiert zu Revision 7130.
salsero@salsero-laptop:~/trunk$ cd /build/workspaces
bash: cd: /build/workspaces: No such file or directory
salsero@salsero-laptop:~/trunk$ cd build
salsero@salsero-laptop:~/trunk/build$ cd workspaces
salsero@salsero-laptop:~/trunk/build/workspaces$ CFLAGS="-I/usr/include/nspr" ./update-workspaces.sh
bash -c 'mkdir -p output/{debug,release,test}/{FCollada/{FCDocument,FMath,FUtils,FColladaTest/{FCTestAssetManagement,FCTestExportImport,FCTestXRef}},FColladaPlugins/FArchiveXML}'
cp output/libFColladaSD.a ../lib/libFColladaSD.a
cp output/libFColladaSR.a ../lib/libFColladaSR.a
./build.sh: 32: Syntax error: redirection unexpected
ERROR: SpiderMonkey build failed

Link to comment
Share on other sites

please read what you type.

you tried to cd into /build which does not exist usually so you have to remove the slash.

cd ~/trunk

svn revert libraries/spidermonkey/src/build.sh

svn up

cd build/workspaces

CFLAGS="-I/usr/include/nspr" ./update-workspaces.sh

cd gcc

make

Link to comment
Share on other sites

is there any problemes?

Yes:

"make[1]: *** Keine Regel vorhanden, um das Target »../../../source/lib/file/path.h«,"

since that causes make to abort, it is most definitely a problem.

Interestingly, path.h was removed in r7063 (one month ago), I'm not sure how/why references linger on, especially in the graphics code. Since the error comes up immediately, it might be due to precompiled headers. Could you please grep for "path.h" in source and header files? If anything comes up, it can and should be removed. You might also try "make clean".

why is it so difficult?

Simple: this is an early development version, where problems are inevitable. We're happy to work together with developers to get things working on other systems, but frankly, we can't hold hands here (it'll only frustrate both sides and take away resources from development).

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