 |
Descentforum.DE
|
View previous topic :: View next topic |
Author |
Message |
D.Cent Forum-Nutzer
Joined: 05 Mar 2006 Posts: 508
Location: Stuttgart
|
Posted: 21.06.2011, 14:23 Post subject: |
|
|
Kannst Du das "-fPIC" mal bei CFLAGS eintragen? Irgendwie kompiliert er immer noch ohne den Parameter (vorher natürlich wieder make clean).
|
|
Back to top |
|
 |
Linux-Fan Forum-Nutzer

Joined: 06 Jun 2009 Posts: 257
|
Posted: 03.07.2011, 22:05 Post subject: |
|
|
Ergibt wieder den gleichen Fehler:
Code: | g++ -Wall -ansi -g -DLIBODF_DEBUG -D__LINUX__ -fPIC -O3 ./src/dirs.o ./src/file_funcs.o ./src/optfile.o ./src/os_fix.o ./src/paths.o ./src/regfile.o ./src/tfile.o ./src/t_funcs.o ./src/network/basis.o ./src/network/client.o ./src/network/httpclient.o ./src/network/server.o ./src/network/tcpclient.o ./src/network/tcpserver.o ./src/network/udpserver.o -o libodf.so -shared -fPIC -pthread
/usr/bin/ld: ./src/dirs.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
./src/dirs.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libodf.so] Error 1 |
|
|
Back to top |
|
 |
Linux-Fan Forum-Nutzer

Joined: 06 Jun 2009 Posts: 257
|
Posted: 15.07.2011, 23:16 Post subject: |
|
|
Ich habe jetzt herausgefunden, was das Problem war, trotz "make clean", blieben immer noch Dateien wie ".depend_lib".
Als ich diese löschte, gelang es mir tatsächlich, die libodf zu kompilieren. Jetzt gibt es aber zwei weitere Probleme:
1. make install klappt mit der libodf nicht (NO INSTALL MAKEFILE SPECIFIED! make: *** [check_installing] Error 1)
2. Wenn ich jetzt d321go kompilieren will, kommt folgender Fehler:
Code: | Which GUI would you like to use (enter h for help)? (gtkmm/qt) gtkmm
Checking dependencies...
Start compiling right now? (y/n) y
Compiling libircclient...
Compiling libunzip...
Compiling D321GO!!... (this may take some minutes)
HINT: When you start D321GO!! the first time, please
go through all options before you start a game!
An error occured while compiling.
Please check the file 'log.txt' . |
In der besagten "log.txt" steht folgendes:
Code: | make: Circular priest/irc_handler.cpp <- priest/irc_handler.cpp dependency dropped.
priest/irc_handler.cpp:26:17: fatal error: odf.h: No such file or directory
compilation terminated.
make: *** [priest/irc_handler.o] Error 1 |
Auch als ich in der irc_handler.cpp den Pfad zur odf.h (aus dem libodf Ordner) angab, funktionierte es nicht.
|
|
Back to top |
|
 |
D.Cent Forum-Nutzer
Joined: 05 Mar 2006 Posts: 508
Location: Stuttgart
|
Posted: 15.07.2011, 23:21 Post subject: |
|
|
Leider gibt es noch keine "make install"-Funktion für die libodf.
Vom Hauptverzeichnis von d321go aus sollte der odf-mainheader unter diesem Pfad zu finden sein: "../libodf/odf.h" - falls die libodf bei Dir woanders liegt, musst Du (ich nehme mal an, dass Du gtkmm benutzt) die Datei "Makefile.gtkmm" editieren und dabei den Eintrag "CFLAGS = " anpassen, sodass der Include-Path stimmt.
|
|
Back to top |
|
 |
Linux-Fan Forum-Nutzer

Joined: 06 Jun 2009 Posts: 257
|
Posted: 16.07.2011, 18:24 Post subject: |
|
|
Bei mir gibt es einen Link der dafür sorgt, dass die libodf im richtigen Verzeichnis liegt, der wurde automatisch erstellt.
|
|
Back to top |
|
 |
King Lo Forum-Nutzer

Joined: 14 Mar 2006 Posts: 320
Location: Stuttgart, BW
|
Posted: 18.07.2011, 19:23 Post subject: |
|
|
Hey,
Linux-Fan wrote: | Code: | make: Circular priest/irc_handler.cpp <- priest/irc_handler.cpp dependency dropped.
priest/irc_handler.cpp:26:17: fatal error: odf.h: No such file or directory
compilation terminated.
make: *** [priest/irc_handler.o] Error 1 |
|
ich denke, das Makefile hat einen Bug unter Ubuntu. Der löscht alle CPP-Files, so dass Du sie evtl. noch mal runterladen musst.
Der Bug tritt auf, wenn die Datei Makefile.gtkmm bei Dir bei ENDING=... ein (oder mehrere) $ nach dem ".cpp" kommen. Falls das so ist, lösche alle diese Dollarzeichen raus und kompilier dann nochmal komplett neu. Das sollte zumindest deine Circular dependency beheben Hoffe es hilft!
|
|
Back to top |
|
 |
Linux-Fan Forum-Nutzer

Joined: 06 Jun 2009 Posts: 257
|
Posted: 19.07.2011, 21:54 Post subject: |
|
|
hat geklappt, d321go läuft!
Vielen Dank!
Last edited by Linux-Fan on 19.07.2011, 21:54; edited 1 time in total |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|