Descentforum.DE Forum Index Descentforum.DE
Search | FAQ | Memberlist | Usergroups | Newsfeed Newsfeed  Register
Profile | Log in to check your private messages | Log in 
Chat | D3-Tactics | Downloads | Map | Links | Serverlist | Teamspeak 

d321go kompilieren
Goto page Previous  1, 2, 3, 4, 5
 
Post new topic   Reply to topic    Descentforum.DE Forum Index -> Level-, Design und Entwicklungs - Forum
View previous topic :: View next topic  
Author Message
D.Cent
Forum-Nutzer


Joined: 05 Mar 2006
Posts: 506
Location: Stuttgart

PostPosted: 21.06.2011, 14:23    Post subject: Reply with quote

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
View user's profile Send private message
Linux-Fan
Forum-Nutzer


Joined: 06 Jun 2009
Posts: 257

PostPosted: 03.07.2011, 22:05    Post subject: Reply with quote

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
View user's profile Send private message
Linux-Fan
Forum-Nutzer


Joined: 06 Jun 2009
Posts: 257

PostPosted: 15.07.2011, 23:16    Post subject: Reply with quote

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
View user's profile Send private message
D.Cent
Forum-Nutzer


Joined: 05 Mar 2006
Posts: 506
Location: Stuttgart

PostPosted: 15.07.2011, 23:21    Post subject: Reply with quote

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
View user's profile Send private message
Linux-Fan
Forum-Nutzer


Joined: 06 Jun 2009
Posts: 257

PostPosted: 16.07.2011, 18:24    Post subject: Reply with quote

Bei mir gibt es einen Link der dafür sorgt, dass die libodf im richtigen Verzeichnis liegt, der wurde automatisch erstellt.
Back to top
View user's profile Send private message
King Lo
Forum-Nutzer


Joined: 14 Mar 2006
Posts: 320
Location: Stuttgart, BW

PostPosted: 18.07.2011, 19:23    Post subject: Reply with quote

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 Winken Hoffe es hilft!
Back to top
View user's profile Send private message
Linux-Fan
Forum-Nutzer


Joined: 06 Jun 2009
Posts: 257

PostPosted: 19.07.2011, 21:54    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Descentforum.DE Forum Index -> Level-, Design und Entwicklungs - Forum All times are GMT + 2 Hours
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 
Jump to:  
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
PayPal


Descent is a trademark of Interplay Productions.
Descent, Descent II are © Parallax Software Corporation.
Descent III is © Outrage Entertainment.
Descentforum.DE and Descentforum.NET is © by Martin "Do_Checkor" Timmermann.
Powered by phpBB © 2001-2008 phpBB Group