[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 2
  • 1
  • 2
  • »
Форум Panda3D - по русски » Panda3D » Общие вопросы » Установка на OpenSuse 12.1 (Проблемы при установке на OpenSuse 12.1)
Установка на OpenSuse 12.1
ясен_пеньДата: Воскресенье, 05.08.2012, 20:54 | Сообщение # 1
Рядовой
Группа: Пользователи
Сообщений: 10
Награды: 0
Репутация: 0
Статус: Offline
Здравствуйте! Пытаюсь собрать панду 1.8.0 на OpenSuse 12.1.
Пишу python makepanda/makepanda.py --everything
Вывод:
WARNING: Could not locate thirdparty package eigen, excluding from build
Generating library cache...
WARNING: Could not locate thirdparty package fcollada, excluding from build
WARNING: Could not locate thirdparty package fftw, excluding from build
WARNING: Could not locate thirdparty package fmodex, excluding from build
WARNING: Could not locate thirdparty package vrpn, excluding from build
WARNING: Could not locate thirdparty package rocket, excluding from build
Storing dependency cache.
Elapsed Time: 1 sec
Could not locate bison!
Build terminated.

fcollada - Пакета fcollada в репозитории нет, есть libOpenCOLLADA0, libOpenCOLLADA0 - Collada 3D import and export libraries. Установил его, но ничего не изменилось.
fftw - Установил пакет fftw3, fftw3 - Discrete Fourier Transform (DFT) C Subroutine Library. Также ничего не изменилось.
fmodex - Установил пакет libfmodex428, libfmodex428 - FMOD is a cross platform audio library and toolset. Та же история.
vrpn - Не нашел в репозитории.
rocket - Тоже не нашел.

Вопрос: Насколько важны эти пакеты для панды?
 
ninthДата: Воскресенье, 05.08.2012, 23:08 | Сообщение # 2
Admin
Группа: Администраторы
Сообщений: 1582
Награды: 5
Репутация: 46
Статус: Offline
Насколько я понимаю затык, пока что на bison, на остальное можешь временно забить. Потерянные библиотеки - это работа с форматом файлов COLLADA, видео и аудио кодеки, GUI библиотека rocket, и vrpn - кажется относится к шлемам виртуальной реальности.
И ещё, ставить по-моему надо dev версии (с исходниками).
 
ясен_пеньДата: Понедельник, 06.08.2012, 19:28 | Сообщение # 3
Рядовой
Группа: Пользователи
Сообщений: 10
Награды: 0
Репутация: 0
Статус: Offline
Спасибо! Ставил dev пакеты, но сдается мне что дело в версиях. Варнинги полностью завладели моим вниманием а сообщение про bison я как-то не заметил.
Установил bison, и еще пару пакетов которые потребовала панда, вроде бы процесс пошел, но не тут-то было:

...
[ 22%] Building Interrogate database built/pandac/input/libp3char.in
[ 23%] Building C++ object built/tmp/p3dgraph_composite1.o
[ 23%] Building C++ object built/tmp/p3dgraph_composite2.o
[ 23%] Building Interrogate database built/pandac/input/libp3dgraph.in
[ 23%] Building C++ object built/tmp/p3display_composite1.o
In file included from panda/src/display/get_x11.h:58:0,
from panda/src/display/nativeWindowHandle.h:21,
from panda/src/display/config_display.cxx:31,
from panda/src/display/p3display_composite1.cxx:1:
/usr/include/X11/extensions/xf86dga.h:9:2: warning: #warning "xf86dga.h is obsolete and may be removed in the future." [-Wcpp]
/usr/include/X11/extensions/xf86dga.h:10:2: warning: #warning "include <X11/extensions/Xxf86dga.h> instead." [-Wcpp]
[ 24%] Building C++ object built/tmp/p3display_composite2.o
In file included from panda/src/display/get_x11.h:58:0,
from panda/src/display/nativeWindowHandle.h:21,
from panda/src/display/nativeWindowHandle.cxx:15,
from panda/src/display/p3display_composite2.cxx:12:
/usr/include/X11/extensions/xf86dga.h:9:2: warning: #warning "xf86dga.h is obsolete and may be removed in the future." [-Wcpp]
/usr/include/X11/extensions/xf86dga.h:10:2: warning: #warning "include <X11/extensions/Xxf86dga.h> instead." [-Wcpp]
[ 24%] Building Interrogate database built/pandac/input/libp3display.in
In file included from built/include/get_x11.h:58:0,
from built/tmp/libp3display_igate.cxx:27:
/usr/include/X11/extensions/xf86dga.h:9:2: warning: #warning "xf86dga.h is obsolete and may be removed in the future." [-Wcpp]
/usr/include/X11/extensions/xf86dga.h:10:2: warning: #warning "include <X11/extensions/Xxf86dga.h> instead." [-Wcpp]
[ 24%] Building C++ object built/tmp/p3device_composite1.o
[ 24%] Building C++ object built/tmp/p3device_composite2.o
[ 25%] Building Interrogate database built/pandac/input/libp3device.in
[ 25%] Building C++ object built/tmp/p3pnmtext_composite1.o
[ 25%] Building Interrogate database built/pandac/input/libp3pnmtext.in
[ 26%] Building C++ object built/tmp/p3text_composite1.o
[ 26%] Building C++ object built/tmp/p3text_composite2.o
[ 26%] Building Interrogate database built/pandac/input/libp3text.in
[ 26%] Building C++ object built/tmp/p3movies_composite1.o
[ 27%] Building C++ object built/tmp/p3movies_composite2.o
In file included from panda/src/movies/p3movies_composite2.cxx:3:0:
panda/src/movies/ffmpegVirtualFile.cxx: In member function ‘bool FfmpegVirtualFile::open_vfs(const Filename&)’:
panda/src/movies/ffmpegVirtualFile.cxx:123:68: error: ‘av_open_input_file’ was not declared in this scope
panda/src/movies/ffmpegVirtualFile.cxx: In member function ‘bool FfmpegVirtualFile::open_subfile(const SubfileInfo&)’:
panda/src/movies/ffmpegVirtualFile.cxx:179:68: error: ‘av_open_input_file’ was not declared in this scope
panda/src/movies/ffmpegVirtualFile.cxx: In member function ‘void FfmpegVirtualFile::close()’:
panda/src/movies/ffmpegVirtualFile.cxx:197:5: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1533) [-Wdeprecated-declarations]
panda/src/movies/ffmpegVirtualFile.cxx:197:40: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1533) [-Wdeprecated-declarations]
panda/src/movies/ffmpegVirtualFile.cxx: In static member function ‘static void FfmpegVirtualFile::register_protocol()’:
panda/src/movies/ffmpegVirtualFile.cxx:231:10: error: ‘URLProtocol’ does not name a type
panda/src/movies/ffmpegVirtualFile.cxx:232:3: error: ‘protocol’ was not declared in this scope
panda/src/movies/ffmpegVirtualFile.cxx:249:52: error: ‘av_register_protocol2’ was not declared in this scope
panda/src/movies/ffmpegVirtualFile.cxx: In static member function ‘static int FfmpegVirtualFile::pandavfs_open(URLContext*, const char*, int)’:
panda/src/movies/ffmpegVirtualFile.cxx:271:4: error: invalid use of incomplete type ‘struct URLContext’
panda/src/movies/ffmpegVirtualFile.h:31:8: error: forward declaration of ‘struct URLContext’
panda/src/movies/ffmpegVirtualFile.cxx: In static member function ‘static int FfmpegVirtualFile::pandavfs_read(URLContext*, unsigned char*, int)’:
panda/src/movies/ffmpegVirtualFile.cxx:282:52: error: invalid use of incomplete type ‘struct URLContext’
panda/src/movies/ffmpegVirtualFile.h:31:8: error: forward declaration of ‘struct URLContext’
panda/src/movies/ffmpegVirtualFile.cxx: In static member function ‘static int64_t FfmpegVirtualFile::pandavfs_seek(URLContext*, int64_t, int)’:
panda/src/movies/ffmpegVirtualFile.cxx:324:52: error: invalid use of incomplete type ‘struct URLContext’
panda/src/movies/ffmpegVirtualFile.h:31:8: error: forward declaration of ‘struct URLContext’
panda/src/movies/ffmpegVirtualFile.cxx: In static member function ‘static int FfmpegVirtualFile::pandavfs_close(URLContext*)’:
panda/src/movies/ffmpegVirtualFile.cxx:365:4: error: invalid use of incomplete type ‘struct URLContext’
panda/src/movies/ffmpegVirtualFile.h:31:8: error: forward declaration of ‘struct URLContext’
In file included from panda/src/movies/p3movies_composite2.cxx:4:0:
panda/src/movies/ffmpegAudioCursor.cxx: In constructor ‘FfmpegAudioCursor::FfmpegAudioCursor(FfmpegAudio*)’:
panda/src/movies/ffmpegAudioCursor.cxx:55:7: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1357) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx:55:38: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1357) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx:81:6: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3380) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx:81:42: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3380) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx: In member function ‘bool FfmpegAudioCursor::reload_buffer()’:
panda/src/movies/ffmpegAudioCursor.cxx:218:17: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3658) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx:218:74: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3658) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx: In member function ‘virtual void FfmpegAudioCursor::seek(double)’:
panda/src/movies/ffmpegAudioCursor.cxx:266:6: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3380) [-Wdeprecated-declarations]
panda/src/movies/ffmpegAudioCursor.cxx:266:42: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3380) [-Wdeprecated-declarations]
In file included from panda/src/movies/p3movies_composite2.cxx:5:0:
panda/src/movies/ffmpegVideoCursor.cxx: In member function ‘bool FfmpegVideoCursor::open_stream()’:
panda/src/movies/ffmpegVideoCursor.cxx:512:7: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1357) [-Wdeprecated-declarations]
panda/src/movies/ffmpegVideoCursor.cxx:512:38: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1357) [-Wdeprecated-declarations]
panda/src/movies/ffmpegVideoCursor.cxx:544:7: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3380) [-Wdeprecated-declarations]
panda/src/movies/ffmpegVideoCursor.cxx:544:43: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3380) [-Wdeprecated-declarations]
Storing dependency cache.
Elapsed Time: 22 min 20 sec
The following command returned a non-zero value: g++ -ftemplate-depth-30 -fPIC -c -o built/tmp/p3movies_composite2.o -Ibuilt/tmp -Ibuilt/include -I/usr/include/python2.7 -DMAKEPANDA= -Ipanda/src/movies -pthread -msse2 -O2 -DBUILDING_PANDA panda/src/movies/p3movies_composite2.cxx
Build terminated.

Что она от меня хочет? Ткните пожалуйста носом, то что-то я туплю сегодня.
 
ninthДата: Вторник, 07.08.2012, 08:53 | Сообщение # 4
Admin
Группа: Администраторы
Сообщений: 1582
Награды: 5
Репутация: 46
Статус: Offline
Честно говоря, я не могу сказать что именно в данном случае вызывает проблему. Ты ffmpeg поставил? Если да, то попробуй снести и скомпилить без него, возможно спотыкается на нём.
 
unkierДата: Вторник, 07.08.2012, 18:21 | Сообщение # 5
Лейтенант
Группа: Пользователи
Сообщений: 55
Награды: 0
Репутация: 2
Статус: Offline
сегодня тоже весь день панду компилил. с ffmpeg да, не собирается и с ode тоже не собирается, а он мне нужен (
вот так собирается makepanda.py --everything --no-opencv --no-ode --no-maya2012 --no-ffmpeg
 
ясен_пеньДата: Вторник, 07.08.2012, 22:34 | Сообщение # 6
Рядовой
Группа: Пользователи
Сообщений: 10
Награды: 0
Репутация: 0
Статус: Offline
Надоел я наверное уже. Всетаки сдается мне что дело в версиях библиотек. Удалил ffmpeg-devel, процесс пошел, но немножко всеже не хватило:
...
[ 91%] Building C++ object built/tmp/x2egg_xFileToEgg.o
[ 91%] Linking executable built/bin/x2egg
[ 91%] Building C++ object built/tmp/p3ai_composite1.o
In file included from contrib/src/ai/p3ai_composite1.cxx:4:0:
contrib/src/ai/aiBehaviors.cxx: In member function ‘void AIBehaviors::pause_ai(std::string)’:
contrib/src/ai/aiBehaviors.cxx:514:41: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
[ 92%] Building Interrogate database built/pandac/input/libpandaai.in
[ 92%] Building Interrogate object built/tmp/libpandaai_module.o
Referencing Library libpandaai
[ 92%] Linking dynamic library built/lib/libpandaai.so
[ 92%] Generating 'pandac' tree
Importing code library: libpandaexpress
Found extensions for class: StreamReader
Found extensions for class: Ramfile
Found extensions for class: HTTPChannel
Importing code library: libpanda
Found extensions for class: Mat3
Found extensions for class: NodePathCollection
Found extensions for class: VBase3
Found extensions for class: VBase4
Found extensions for class: NodePath
Importing code library: libpandaphysics
Importing code library: libpandafx
Importing code library: libp3direct
Found extensions for class: CInterval
Importing code library: libp3vision
Traceback (most recent call last):
File "direct/src/ffi/jGenPyCode.py", line 94, in <module>
DoGenPyCode.run()
File "/home/a1/bin/panda3d-1.8.0/built/direct/ffi/DoGenPyCode.py", line 305, in run
generateNativeWrappers()
File "/home/a1/bin/panda3d-1.8.0/built/direct/ffi/DoGenPyCode.py", line 258, in generateNativeWrappers
Dtool_PreloadDLL(moduleName)
File "/home/a1/bin/panda3d-1.8.0/built/direct/extensions_native/extension_native_helpers.py", line 79, in Dtool_PreloadDLL
imp.load_dynamic(module, pathname)
ImportError: /home/a1/bin/panda3d-1.8.0/built/lib/libp3vision.so: undefined symbol: cvGetCaptureProperty
Storing dependency cache.
Elapsed Time: 40 min 53 sec
The following command returned a non-zero value: /usr/bin/python2.7 direct/src/ffi/jGenPyCode.py -r libpandaexpress libpanda libpandaphysics libpandafx libp3direct libp3vision libpandaskel libpandaegg libpandaode
Build terminated.

Тут уже что-то в питоновском скрипте не может импортировать судя по всему..
 
unkierДата: Среда, 08.08.2012, 08:01 | Сообщение # 7
Лейтенант
Группа: Пользователи
Сообщений: 55
Награды: 0
Репутация: 2
Статус: Offline
это на opencv ругается. попробуй или без него собрать или установить dev пакеты от него
 
ясен_пеньДата: Среда, 08.08.2012, 17:35 | Сообщение # 8
Рядовой
Группа: Пользователи
Сообщений: 10
Награды: 0
Репутация: 0
Статус: Offline
dev пакет установлен, были не установлены биндинги для питона, но и они не спасли.
Написал makepanda.py --everything --no-opencv, процесс пошел, посмотрим что получится.
А что это за библиотека opencv, написано что для компьютерного зрения, а для чего она? Для распознавания образов?
 
unkierДата: Среда, 08.08.2012, 17:51 | Сообщение # 9
Лейтенант
Группа: Пользователи
Сообщений: 55
Награды: 0
Репутация: 2
Статус: Offline
Quote (ясен_пень)
А что это за библиотека opencv, написано что для компьютерного зрения, а для чего она? Для распознавания образов?

угу. там куча всяких алгоритмов, распознавание образов, определение движущихся обьектов, работа с камерами, много всего.
 
ясен_пеньДата: Среда, 08.08.2012, 18:30 | Сообщение # 10
Рядовой
Группа: Пользователи
Сообщений: 10
Награды: 0
Репутация: 0
Статус: Offline
Скомпилировалось, спасибо вам за подсказки. Появился каталог built.
И снова вопрос: Как теперь это установить?
 
unkierДата: Среда, 08.08.2012, 20:07 | Сообщение # 11
Лейтенант
Группа: Пользователи
Сообщений: 55
Награды: 0
Репутация: 2
Статус: Offline
всё во имя Панды !

инсталить как то так
installpanda.py --prefix=/usr
 
ясен_пеньДата: Среда, 08.08.2012, 21:08 | Сообщение # 12
Рядовой
Группа: Пользователи
Сообщений: 10
Награды: 0
Репутация: 0
Статус: Offline
Установилось.
Только чего-то все равно не хватает. Ошибка импорта:

import direct.directbase.DirectStart

DirectStart: Starting the game.
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/home/a1/<ipython-input-1-76211581d2b9> in <module>()
----> 1 import direct.directbase.DirectStart

/usr/share/panda3d/direct/directbase/DirectStart.py in <module>()
1 print 'DirectStart: Starting the game.'
2
----> 3 from direct.showbase import ShowBase
4 base = ShowBase.ShowBase()

/usr/share/panda3d/direct/showbase/ShowBase.py in <module>()
8 #import VerboseImport

9
---> 10 from pandac.PandaModules import *
11
12 # This needs to be available early for DirectGUI imports

/usr/share/panda3d/pandac/PandaModules.py in <module>()
1 try:
----> 2 from libpandaexpressModules import *
3 except ImportError, err:
4 if "DLL loader cannot find" not in str(err):
5 raise

/usr/share/panda3d/pandac/libpandaexpressModules.py in <module>()
----> 1 from extension_native_helpers import *
2 Dtool_PreloadDLL("libpandaexpress")
3 from libpandaexpress import *
4
5 from extension_native_helpers import *

/usr/share/panda3d/pandac/extension_native_helpers.py in <module>()
79 imp.load_dynamic(module, pathname)
80
---> 81 Dtool_PreloadDLL("libpandaexpress")
82 from libpandaexpress import *
83

/usr/share/panda3d/pandac/extension_native_helpers.py in Dtool_PreloadDLL(module)
77 # Now import the file explicitly.

78 pathname = os.path.join(target, filename)
---> 79 imp.load_dynamic(module, pathname)
80
81 Dtool_PreloadDLL("libpandaexpress")

ImportError: libp3dtool.so.1.8: cannot open shared object file: No such file or directory
 
unkierДата: Четверг, 09.08.2012, 06:51 | Сообщение # 13
Лейтенант
Группа: Пользователи
Сообщений: 55
Награды: 0
Репутация: 2
Статус: Offline
тут умные люди говорят что если сказать python makepanda/makepanda.py --everything --installer
оно сделает красивые пакетики. не пробовал ?

сюзя не самый подходящий дистр если ты хочешь собирать сам софт из сырцов.
 
ясен_пеньДата: Четверг, 09.08.2012, 07:27 | Сообщение # 14
Рядовой
Группа: Пользователи
Сообщений: 10
Награды: 0
Репутация: 0
Статус: Offline
Нет, не пробовал, не знал даже о таком. Это же наверняка почитать где-то можно? Я что-то смаху не нашел.. Вечером попробую собрать пакеты.

Не менять же дистрибутив из-за того что для него нет какого-то готового пакета.
 
ninthДата: Четверг, 09.08.2012, 08:20 | Сообщение # 15
Admin
Группа: Администраторы
Сообщений: 1582
Награды: 5
Репутация: 46
Статус: Offline
Стоп. Попробуй запускать ppython в качестве интерпретатора. Именно с двумя "p".
 
Форум Panda3D - по русски » Panda3D » Общие вопросы » Установка на OpenSuse 12.1 (Проблемы при установке на OpenSuse 12.1)
  • Страница 1 из 2
  • 1
  • 2
  • »
Поиск: