project-navigation
Personal tools

Author Topic: cannot find -ltheora  (Read 36373 times)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: cannot find -ltheora
« Reply #15 on: May 06, 2009, 08:01:41 pm »
What is -ltheora ?

Theora is a video codec that i've merged from the world of padman engine to replace the roq support (because there are more and better tools to create ogg/ogm video files and they have a better quality)

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: cannot find -ltheora
« Reply #16 on: May 06, 2009, 08:49:57 pm »
Thx. So what is the '-l' ? Is the linker looking for a theora.lib ?
And where is that switch/parameter given ? I didn't find anything in the ufo.cbp.

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: cannot find -ltheora
« Reply #17 on: May 06, 2009, 08:52:57 pm »
did you copy the dll from contrib dir (or whatever) to the ufo:ai root dir?
I did. But if I hadn't, I would expect a runtime error like 'DLL not found'. The error I get is at link-time.

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: cannot find -ltheora
« Reply #18 on: May 06, 2009, 09:33:53 pm »
Forget it, I found it (must have been blind): removed theora and xvidcore from Project->Build options->Linker settings and it builds again :)

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: cannot find -ltheora
« Reply #19 on: May 06, 2009, 09:49:37 pm »
... but does not run. :(

What happened to libintl3.dll ??

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: cannot find -ltheora
« Reply #20 on: May 06, 2009, 10:00:51 pm »
are you sure that you replaced the old c::b package with the new one from http://mattn.ninex.info/download/codeblocks.zip ?

theora is included there - i've just tested it in a virtualbox windows image - and it works fine here. the package is maybe using newer version of all needed libs and mingw. so some things might have changed. as i'm not really using windows much and i don't have much experience on this front i have to believe you, but please double check ;)

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: cannot find -ltheora
« Reply #21 on: May 06, 2009, 10:27:28 pm »
Is the existence of 3 libtheora*.DLLs in /contrib/dlls a strong enough indicator that I extracted the zip correctly ? All I have of mingw came with the first install of C::B. So if the package works correctly, everything should be fine with mingw as well.

UFO.exe refuses to start coz it doesn't find libintl3.dll.
I see intl.DLL in contrib/dlls (and yes, a copy of it in the folder with ufo.exe). I assume that's our renamed replacement for libintl3.dll, right ?
As I removed the defines and the libs from the cbp, there must be something else that suddenly calls for libintl3. Dunno how or what atm...

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: cannot find -ltheora
« Reply #22 on: May 06, 2009, 10:33:34 pm »
Ahh
thats a different package

There are those header files
and its working :)

Danke

> libpng3.dll
is in ufoai\contrib\dlls

ufoai\src\ports\windows\installer.nsi
    File "..\..\..\contrib\dlls\*.dll"

It should be ok
« Last Edit: May 06, 2009, 10:39:12 pm by Muton »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: cannot find -ltheora
« Reply #23 on: May 06, 2009, 10:33:54 pm »
no, the dll files are in our svn - i was talking about deleting the old c::b + mingw package and extract it newly from the above linked zip file.

you need the theora headers and libs in mingw/include and mingw/lib in your c::b directory.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: cannot find -ltheora
« Reply #24 on: May 06, 2009, 10:34:39 pm »
Ahh
thats a different package

different package from what? is there some old or broken link somewhere? then please let me know and i will fix it.

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: cannot find -ltheora
« Reply #25 on: May 06, 2009, 10:41:32 pm »
Downloaded this one
http://ufoai.ninex.info/forum/index.php?topic=3551.msg25862#msg25862

and there are no headers for ogm support

The link is the same
It seems you've replaced the package meanwhile
« Last Edit: May 06, 2009, 10:44:00 pm by Muton »

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: cannot find -ltheora
« Reply #26 on: May 06, 2009, 11:35:17 pm »
- deleted the codeblocks folder
- extracted the zip again
- got a fresh ufo.cbp from svn r24362
- rebuilt
==> got tons of compile errs

Is removing the defines and libs (as I described above) the right way to proceed ?

Offline Destructavator

  • Combination Multiple Specialty Developer
  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1908
  • Creater of Scorchcrafter, knows the zarakites...
    • View Profile
Re: cannot find -ltheora
« Reply #27 on: May 07, 2009, 03:28:01 am »
I just got the same result, after I downloaded the new codeblocks, set it up in a new folder just like I did the old one, then deleted the old DLLs from the game directory and put the new ones from "contrib" in there.

Here are some logs, don't know if they help or not.


Edit: UFO.EXE actually does compile, radiant doesn't, but running Ufo.EXE results in an error for missing libintl3.dll.  (As mentioned above in this thread.)

Edit(2): Downloaded libintl3.dll from Sourceforge - some GnuWin32 or something project, now the game complains about missing libiconv2.dll.

Edit(3): Ah-Ha!  Followed instructions I found via Google and copied iconv.dll and renamed the copy to libiconv2.dll.

Now the game starts up and runs!   :D

I'll test to see if the game can now play an OGM in a short while...


Edit/Update (4): OK, The game now tries to play the OGM, I get little random bits of the sound from the video, and no picture.  I'm not sure if it's the game or the way I encoded the OGM.

If anyone has an OGM that they know works on the Linux version of the game, please post it so I can D/L it, try it on Windows, and examine how it is encoded.

[attachment deleted by admin]
« Last Edit: May 07, 2009, 03:58:02 am by Destructavator »

Offline Destructavator

  • Combination Multiple Specialty Developer
  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1908
  • Creater of Scorchcrafter, knows the zarakites...
    • View Profile
Re: cannot find -ltheora
« Reply #28 on: May 07, 2009, 04:07:40 am »
Alright, This time I encoded a test video with VLC and I got the picture (visual) part of the video to play perfectly!    8)

The audio doesn't work though - I get garbled occasional bits of random sound, but mostly silence.

Still, it's getting closer...

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: cannot find -ltheora
« Reply #29 on: May 07, 2009, 08:16:52 am »
@Dest

libintl3.dll is already on your system ufoai\contrib\dlls
and nsis already have
File "..\..\..\contrib\dlls\*.dll"
included
If you compile the installer
everything should be fine
no need to download or renaming.

===================

I got a diff error
There is no ufoai\radiant\modules\model.dll

Code: [Select]
-------------- Clean: windows in uforadiant_model ---------------

Cleaned "uforadiant_model - windows"

-------------- Build: windows in uforadiant_model ---------------

Compiling: ..\..\src\tools\radiant\libs\picomodel\pm_md2.c
Compiling: ..\..\src\tools\radiant\libs\picomodel\picomodel.c
Compiling: ..\..\src\tools\radiant\libs\picomodel\picomodules.c
Compiling: ..\..\src\tools\radiant\libs\picomodel\pm_ase.c
Compiling: ..\..\src\tools\radiant\libs\picomodel\picointernal.c
Compiling: ..\..\src\tools\radiant\libs\picomodel\pm_md3.c
Compiling: ..\..\src\tools\radiant\libs\picomodel\pm_obj.c
Compiling: ..\..\src\tools\radiant\plugins\model\model.cpp
Compiling: ..\..\src\tools\radiant\plugins\model\plugin.cpp
Linking dynamic library: ..\..\radiant\modules\model.dll
V:\MinGW\lib/libstdc++.a(eh_throw.o):eh_throw.cc:(.text+0x7b): undefined reference to `__w32_sharedptr_unexpected'
V:\MinGW\lib/libstdc++.a(eh_throw.o):eh_throw.cc:(.text+0x8c): undefined reference to `__w32_sharedptr_terminate'
V:\MinGW\lib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x4e): undefined reference to `__w32_sharedptr'
V:\MinGW\lib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0xb9): undefined reference to `__w32_sharedptr'
V:\MinGW\lib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x179): undefined reference to `__w32_sharedptr'
V:\MinGW\lib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x186): undefined reference to `__w32_sharedptr'
V:\MinGW\lib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x1e3): undefined reference to `__w32_sharedptr'
V:\MinGW\lib/libstdc++.a(eh_globals.o):eh_globals.cc:(.text+0x1ef): more undefined references to `__w32_sharedptr' follow
V:\MinGW\lib/libstdc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x67): undefined reference to `__w32_sharedptr_terminate'
V:\MinGW\lib/libstdc++.a(eh_terminate.o):eh_terminate.cc
:(.text+0x97): undefined reference to `__w32_sharedptr_unexpected'
V:\MinGW\lib/libstdc++.a(eh_terminate.o):eh_terminate.cc:(.text+0xb3): undefined reference to `__w32_sharedptr_terminate'
V:\MinGW\lib/libstdc++.a(eh_terminate.o):eh_terminate.cc:(.text+0xd3): undefined reference to `__w32_sharedptr_unexpected'
collect2: ld returned 1 exit status




Edit:
solved it

goto MinGW\lib\gcc\mingw32\4.3.3
copy all files into
MinGW\lib


and another error:
Code: [Select]
-------------- Clean: windows in uforadiant ---------------

Cleaned "uforadiant - windows"

-------------- Build: windows in uforadiant ---------------

Compiling: ..\..\src\tools\radiant\radiant\filters.cpp
Compiling: ..\..\src\shared\parse.c
cc1.exe: warning: command line option "-Wno-non-virtual-dtor" is valid for C++/ObjC++ but not for C
Compiling: ..\..\src\tools\radiant\libs\gtkutil\accelerator.cpp
Compiling: ..\..\src\tools\radiant\libs\gtkutil\button.cpp
Compiling: ..\..\src\tools\radiant\libs\gtkutil\clipboard.cpp
Compiling: ..\..\src\tools\radiant\libs\gtkutil\cursor.cpp
Compiling: ..\..\src\tools\radiant\libs\gtkutil\dialog.cpp
Compiling: ..\..\src\tools\radiant\libs\gtkutil\filechooser.cpp
V:\MinGW\ufoai\src\tools\radiant\libs\gtkutil\filechooser.cpp:149: warning: 'shortcutFoldersInBaseDir' defined but not used
Compiling: ..\..\src\tools\radiant\libs\gtkutil\frame.cpp
Compiling: ..\..\src\tools\radiant\libs\gtkutil\glfont.cpp
Compiling: ..\..\src\tools\radiant\libs\gtkutil\glwidget.cpp
Compiling: ..\..\src\tools\radiant\libs\gtkutil\image.cpp
Compiling: ..\..\src\tools\radiant\libs\gtkutil\menu.cpp
Compiling: ..\..\src\tools\radiant\libs\gtkutil\messagebox.cpp
Compiling: ..\..\src\tools\radiant\libs\gtkutil\paned.cpp
Compiling: ..\..\src\tools\radiant\libs\gtkutil\toolbar.cpp
Compiling: ..\..\src\tools\radiant\libs\gtkutil\window.cpp
Compiling: ..\..\src\tools\radiant\libs\profile\file.cpp
Compiling: ..\..\src\tools\radiant\libs\profile\profile.cpp
Compiling: ..\..\src\tools\radiant\radiant\autosave.cpp
Compiling: ..\..\src\tools\radiant\radiant\brush.cpp
Compiling: ..\..\src\tools\radiant\radiant\brush_primit.cpp
Compiling: ..\..\src\tools\radiant\radiant\brushmanip.cpp
Compiling: ..\..\src\tools\radiant\radiant\brushmodule.cpp
Compiling: ..\..\src\tools\radiant\radiant\camwindow.cpp
Compiling: ..\..\src\tools\radiant\radiant\colorscheme.cpp
Compiling: ..\..\src\tools\radiant\radiant\commands.cpp
Compiling: ..\..\src\tools\radiant\radiant\console.cpp
Compiling: ..\..\src\tools\radiant\radiant\csg.cpp
Compiling: ..\..\src\tools\radiant\radiant\dialog.cpp
Compiling: ..\..\src\tools\radiant\radiant\dialogs\about.cpp
Compiling: ..\..\src\tools\radiant\radiant\dialogs\findbrush.cpp
Compiling: ..\..\src\tools\radiant\radiant\dialogs\findtextures.cpp
Compiling: ..\..\src\tools\radiant\radiant\dialogs\light.cpp
Compiling: ..\..\src\tools\radiant\radiant\dialogs\maptools.cpp
Compiling: ..\..\src\tools\radiant\radiant\dialogs\particle.cpp
Compiling: ..\..\src\tools\radiant\radiant\dialogs\prism.cpp
Compiling: ..\..\src\tools\radiant\radiant\dialogs\texteditor.cpp
Compiling: ..\..\src\tools\radiant\radiant\eclass.cpp
Compiling: ..\..\src\tools\radiant\radiant\eclass_def.cpp
Compiling: ..\..\src\tools\radiant\radiant\entity.cpp
Compiling: ..\..\src\tools\radiant\radiant\environment.cpp
Compiling: ..\..\src\tools\radiant\radiant\error.cpp
Compiling: ..\..\src\tools\radiant\radiant\exec.cpp
V:\MinGW\ufoai\src\tools\radiant\radiant\exec.cpp: In function 'void exec_spawn_process(ExecCmd*, void (*)(void*))':
V:\MinGW\ufoai\src\tools\radiant\radiant\exec.cpp:196: warning: statement has no effect
V:\MinGW\ufoai\src\tools\radiant\radiant\exec.cpp: In function 'void exec_run(Exec*)':
V:\MinGW\ufoai\src\tools\radiant\radiant\exec.cpp:396: warning: statement has no effect
Compiling: ..\..\src\tools\radiant\radiant\filetypes.cpp
Compiling: ..\..\src\shared\entitiesdef.c
cc1.exe: warning: command line option "-Wno-non-virtual-dtor" is valid for C++/ObjC++ but not for C
Compiling: ..\..\src\tools\radiant\radiant\grid.cpp
Compiling: ..\..\src\tools\radiant\radiant\gtkmisc.cpp
Compiling: ..\..\src\tools\radiant\radiant\image.cpp
Compiling: ..\..\src\tools\radiant\radiant\lastused.cpp
Compiling: ..\..\src\tools\radiant\radiant\main.cpp
Compiling: ..\..\src\tools\radiant\radiant\mainframe.cpp
Compiling: ..\..\src\tools\radiant\radiant\map.cpp
Compiling: ..\..\src\tools\radiant\radiant\material.cpp
Compiling: ..\..\src\tools\radiant\radiant\nullmodel.cpp
Compiling: ..\..\src\tools\radiant\radiant\parse.cpp
Compiling: ..\..\src\tools\radiant\radiant\pathfinding.cpp
Compiling: ..\..\src\tools\radiant\radiant\plugin.cpp
Compiling: ..\..\src\tools\radiant\radiant\pluginmanager.cpp
Compiling: ..\..\src\tools\radiant\radiant\pluginmenu.cpp
Compiling: ..\..\src\tools\radiant\radiant\plugintoolbar.cpp
Compiling: ..\..\src\tools\radiant\radiant\preferences.cpp
In file included from V:\MinGW\include/libxml/SAX.h:14,
                 from V:\MinGW\include/libxml/globals.h:18,
                 from V:\MinGW\include/libxml/parser.h:576,
                 from V:\MinGW\ufoai\src\tools\radiant\radiant\preferences.h:32,
                 from V:\MinGW\ufoai\src\tools\radiant\radiant\preferences.cpp:31:
V:\MinGW\include/stdlib.h:365: error: 'void free(void*)' redeclared as different kind of symbol
V:\MinGW\include/libxml/xmlmemory.h:66: error: previous declaration of 'void (* free)(void*)'
../../src/tools/radiant/libs/math/aabb.h:233: warning: 'aabb_normals' defined but not used
Process terminated with status 1 (2 minutes, 38 seconds)
2 errors, 24 warnings
« Last Edit: May 07, 2009, 09:13:38 am by Muton »