Not logged inOpenClonk Forum
Up Topic General / Help and Questions / error compilacion linux
- - By Anonymous [cl] Date 2009-12-20 20:40
/home/chicho/openclonk/src/gui/C4StartupPlrSelDlg.cpp:1350: undefined reference to `C4PlayerControlAssignmentSet::GetPicture() const'
/home/chicho/openclonk/src/gui/C4StartupPlrSelDlg.cpp:1347: undefined reference to `C4PlayerControlAssignmentSets::GetDefaultSet()'
C4StartupPlrSelDlg.o: In function `C4StartupPlrPropertiesDlg::OnCtrlChangeRight(C4GUI::Control*)':
/home/chicho/openclonk/src/gui/C4StartupPlrSelDlg.cpp:1376: undefined reference to `C4PlayerControlAssignmentSets::GetSetByName(char const*)'
/home/chicho/openclonk/src/gui/C4StartupPlrSelDlg.cpp:1377: undefined reference to `C4PlayerControlAssignmentSets::GetSetIndex(C4PlayerControlAssignmentSet const*) const'
/home/chicho/openclonk/src/gui/C4StartupPlrSelDlg.cpp:1379: undefined reference to `C4PlayerControlAssignmentSets::GetSetByIndex(int)'
C4StartupPlrSelDlg.o: In function `C4StartupPlrPropertiesDlg::OnCtrlChangeLeft(C4GUI::Control*)':
/home/chicho/openclonk/src/gui/C4StartupPlrSelDlg.cpp:1365: undefined reference to `C4PlayerControlAssignmentSets::GetSetByName(char const*)'
/home/chicho/openclonk/src/gui/C4StartupPlrSelDlg.cpp:1366: undefined reference to `C4PlayerControlAssignmentSets::GetSetIndex(C4PlayerControlAssignmentSet const*) const'
/home/chicho/openclonk/src/gui/C4StartupPlrSelDlg.cpp:1368: undefined reference to `C4PlayerControlAssignmentSets::GetSetByIndex(int)'
C4Viewport.o: In function `C4Viewport::DrawPlayerStartup(C4TargetFacet&)':
/home/chicho/openclonk/src/gui/C4Viewport.cpp:1435: undefined reference to `C4PlayerControlAssignmentSet::GetPicture() const'
C4Viewport.o: In function `PlrControlKeyName(int, int, bool)':
/home/chicho/openclonk/src/gui/C4Viewport.cpp:1358: undefined reference to `C4PlayerControlAssignmentSet::GetAssignmentByControl(int)'
collect2: ld returned 1 exit status
make[1]: *** [clonk] Error 1
make[1]: se sale del directorio `/home/chicho/openclonk'
make: *** [all] Error 2

please if anyone know how i can fix this problem....
i'm sorry for my bad english but i speak spanish.
Reply
Parent - By Ringwaul [ca] Date 2009-12-20 23:12
Should this go in the bugtracker, or is this just a personal mistake?
Reply
Parent - By Isilkor Date 2009-12-21 01:09 Edited 2009-12-22 19:26
(Assuming cmake build) Try re-running cmake, then make; there's some bug in the cmake build code that triggers undefined references, but the problem should go away with a second pass.

Edit: Disregard this, the linux readme suggests using autotools to compile, and the autotools build had been broken until today.
Reply
Parent - - By Newton [de] Date 2009-12-21 01:12
Hablo Espanol tambien :-)

Que fuerte! Un clonker de Suramerica, bienvenido!
A que branch has actualizado tu repository? PlrCtrl? default? mesh? tip?
Parent - By Isilkor Date 2009-12-21 12:47
PlrCtrl isn't a separate branch anymore since c328d90e39e5. ;)
Reply
Parent - - By chicho91 [cl] Date 2009-12-22 17:46
Gracias por la bienvenida!

no entiendo lo que es el branch(repository? PlrCtrl? default? mesh? tip? ) soy nuevo en esto de ubuntu y aun no entiendo que porque me tira este error.... lo e tratado de compilar varias veces obteniendo siempre el mismo error.
quizas estoi haciendo algo mal, pero no creo porque seguí al pie de la letra las instrucciones.

no se si existe otra forma de compilarlo si esque saben agradeceria que me explicaran.
de antemano gracias.
Reply
Parent - By Newton [de] Date 2009-12-22 19:00
Estamos usando Mercurial como un sistema de control de versiones. "Branch" significa "rama" y es un vocabulario común utilizado en los sistemas de control de versiones. Pero si has check-out (desplegado) sin poner más parámetros, tu repositorio esta en el branch "default".

Has intentado lo que Isilkor te ha aconsejado?:
Actualiza tu repositorio. Despues: (Asumiendo que has hecho el build con cmake) Ejectua cmake otra vez, despues ejectua make. Hay un error en el codigo build de cmake que provoca referencias indefinidos pero la problema debería desaparecer quando ejectuas cmake otra vez.
Parent - - By chicho91 [cl] Date 2009-12-22 18:46
-Wsign-promo -Wunsafe-loop-optimizations -Wsign-promo -Wno-parentheses -Wno-unused-parameter -Wno-inline -Wno-reorder -Wno-float-equal -Wno-switch -Winvalid-pch -pipe -fpch-deps -g -O2 -MT c4group-StdConfig.o -MD -MP -MF .deps/c4group-StdConfig.Tpo -c -o c4group-StdConfig.o `test -f 'src/platform/StdConfig.cpp' || echo './'`src/platform/StdConfig.cpp
src/platform/StdConfig.cpp:21:23: warning: ./C4Include.h.gch: not used because `C4ENGINE' not defined
src/platform/StdConfig.cpp: In member function ‘void CStdConfig::LoadDefault(CStdConfigValue*, void*, const char*)’:
src/platform/StdConfig.cpp:124: warning: cannot optimize loop, the loop counter may overflow
mv -f .deps/c4group-StdConfig.Tpo .deps/c4group-StdConfig.Po
gcc -DHAVE_CONFIG_H   -I. -I./src -I./src/c4group -I./src/network -I./src/lib -I./src/platform -I./src/config -I./src/res -I./src/control -I./src/gui -I./src/editor -I./src/game/landscape -I./src/game/player -I./src/game/script -I./src/game -I./src/game/object -I./src/lib/texture -I./src/script -DUSE_CONSOLE  -Wall -pipe -g -O2 -MT c4group-gzio.o -MD -MP -MF .deps/c4group-gzio.Tpo -c -o c4group-gzio.o `test -f 'src/zlib/gzio.c' || echo './'`src/zlib/gzio.c
mv -f .deps/c4group-gzio.Tpo .deps/c4group-gzio.Po
g++ -std=gnu++0x -pthread  -Wall -Wextra -Wno-invalid-offsetof -Wredundant-decls -Wendif-labels -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Winit-self -Wsign-promo -Wunsafe-loop-optimizations -Wsign-promo -Wno-parentheses -Wno-unused-parameter -Wno-inline -Wno-reorder -Wno-float-equal -Wno-switch -Winvalid-pch -pipe -fpch-deps -g -O2   -o c4group c4group-c4group_ng.o c4group-C4Group.o c4group-C4InputValidation.o c4group-C4SecurityCertificates.o c4group-C4Update.o c4group-Standard.o c4group-CStdFile.o c4group-StdMarkup.o c4group-StdBuf.o c4group-StdCompiler.o c4group-StdFile.o c4group-StdRegistry.o c4group-StdResStr2.o c4group-StdConfig.o c4group-gzio.o   -lz  -lcrypto 
make[1]: se sale del directorio `/home/chicho/openclonk'
chicho@chicho-laptop:~/openclonk$

i compiled again and this is the new error
in this link there are a "how to" for the instalation of the game... take a look
if anyone speak me in spanish  will be good.
Reply
Parent - - By Newton [de] Date 2009-12-22 19:02 Edited 2009-12-22 21:13
Donde esta el error? No lo veo.
Parent - - By chicho91 [cl] Date 2009-12-22 19:18 Edited 2009-12-22 19:21
make[1]: se sale del directorio `/home/chicho/openclonk'
creo q es eso...
baje denuevo el  juego y trate de compilarlo
ahora puse make denuevo y esto me sale

c4group c4group-c4group_ng.o c4group-C4Group.o c4group-C4InputValidation.o c4group-C4SecurityCertificates.o c4group-C4Update.o c4group-Standard.o c4group-CStdFile.o c4group-StdMarkup.o c4group-StdBuf.o c4group-StdCompiler.o c4group-StdFile.o c4group-StdRegistry.o c4group-StdResStr2.o c4group-StdConfig.o c4group-gzio.o   -lz  -lcrypto 
make[1]: se sale del directorio `/home/chicho/openclonk'
chicho@chicho-laptop:~/openclonk$ make
make  all-am
make[1]: se ingresa al directorio `/home/chicho/openclonk'
make[1]: se sale del directorio `/home/chicho/openclonk'
chicho@chicho-laptop:~/openclonk$
Reply
Parent - By chicho91 [cl] Date 2009-12-22 19:23
el comando que ocupo para compilar es  "autoreconf -i && ./configure && make"
Reply
Parent - - By Isilkor Date 2009-12-22 19:24
That's not an error; there should be an executable file called "clonk" in your openclonk directory now. Copy that one into the "planet" folder and you should be good to go.
Reply
Parent - - By chicho91 [cl] Date 2009-12-22 19:37
make  all-am
make[1]: se ingresa al directorio `/home/chicho/openclonk'
make[1]: se sale del directorio `/home/chicho/openclonk'
chicho@chicho-laptop:~/openclonk

i copied the executable and paste into the "planet" folder and i tried to make again but the same thing again...
Reply
Parent - - By Isilkor Date 2009-12-22 19:52
You don't need to run make again, you can start the binary directly. Take the file manager of your choice, browse to the planet folder inside your openclonk directory, and click "clonk"; the game should then start. If you want to use the shell to start it, go to ~/openclonk/planet and run ./clonk.
Reply
Parent - By chicho91 [cl] Date 2009-12-22 19:58
it's work!!!!!!! funcionaa!!! :D:D:D:D:D:D:D:D thanks to any one for the patience!
Reply
Parent - By Asmageddon [pl] Date 2010-01-02 16:38
I have other error, but I decided to not clutter the foru too much, so I post it here, I use Ubuntu 9.04 x32, all dependencies are met, downloaded from Mercurial repository.
src/game/object/C4DefGraphics.cpp: In member function ‘void C4GraphicsOverlay::DrawRankSymbol(C4Facet&, C4Object*)’:
src/game/object/C4DefGraphics.cpp:929: error: ‘::DefaultRanks’ has not been declared
src/game/object/C4DefGraphics.cpp:930: error: ‘::GraphicsResource’ has not been declared
src/game/object/C4DefGraphics.cpp:931: error: ‘::GraphicsResource’ has not been declared
src/game/object/C4DefGraphics.cpp:941: error: invalid use of incomplete type ‘struct C4RankSystem’
./src/C4Prototypes.h:86: error: forward declaration of ‘struct C4RankSystem’
src/game/object/C4DefGraphics.cpp:943: error: invalid use of incomplete type ‘struct C4RankSystem’
./src/C4Prototypes.h:86: error: forward declaration of ‘struct C4RankSystem’
make[1]: *** [C4DefGraphics.o] Błąd 1
make[1]: Opuszczenie katalogu `/home/asmageddon/Pulpit/Open Clonk/openclonk'
make: *** [all] Błąd 2


I will be grateful for quick reply.
Reply
Up Topic General / Help and Questions / error compilacion linux

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill