не проходит make (перенос trix на 4 Qt)

Модератор: Модераторы разделов

Аватара пользователя
Art666
Сообщения: 49
ОС: Mandriva 2008

не проходит make

Сообщение Art666 »

Помогите пожалуйста. Пробую перенисти трикс на Qt 4, переделал код так как написано в документации на офф сайте trolltech, а трикс не компилируеться

Код:

[art@ArtLocalHost trix-0.93]$ make Making all in src make[1]: Entering directory `/home/art/trix-0.93/src' make all-am make[2]: Entering directory `/home/art/trix-0.93/src' g++ -DHAVE_CONFIG_H -I. -DDATADIR=\"/usr/local/share/trix/\" -I/usr/lib/qt3//include -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -DDATADIR=\"/usr/local/share/trix/\" -I/usr/lib/qt3//include -DQT_THREAD_SUPPORT -g -O2 -MT trix-aboutform.o -MD -MP -MF .deps/trix-aboutform.Tpo -c -o trix-aboutform.o `test -f 'aboutform.cpp' || echo './'`aboutform.cpp aboutform.cpp:23:23: error: QGridLayout: Нет такого файла или каталога aboutform.cpp:24:23: error: QHBoxLayout: Нет такого файла или каталога aboutform.cpp:25:23: error: QVBoxLayout: Нет такого файла или каталога make[2]: *** [trix-aboutform.o] Ошибка 1 make[2]: Leaving directory `/home/art/trix-0.93/src' make[1]: *** [all] Ошибка 2 make[1]: Leaving directory `/home/art/trix-0.93/src' make: *** [all-recursive] Ошибка 1 [art@ArtLocalHost trix-0.93]$

подскажите плис что я зделал не так
Спасибо сказали:
Аватара пользователя
Liksys
Сообщения: 2910

Re: не проходит make

Сообщение Liksys »

Не плохо бы увидеть, как именно написано в документации ;)
Спасибо сказали:
Аватара пользователя
Art666
Сообщения: 49
ОС: Mandriva 2008

Re: не проходит make

Сообщение Art666 »

http://doc.trolltech.com/4.1/porting4.html
делал всё по этой инструкции
Спасибо сказали:
Аватара пользователя
Liksys
Сообщения: 2910

Re: не проходит make

Сообщение Liksys »

qt3to4 для всех файлов запускал? Проектные тоже нужно модифицировать. Исходники, проектные - все.

Но еще мне почему-то кажется, что что-то намудрено в проектных файлах. Поскольку исходник хочет свежие заголовочники, а вот опция
-I/usr/lib/qt3//include
выдает, что ищутся либы далеко не от Qt4.
Спасибо сказали:
Аватара пользователя
Art666
Сообщения: 49
ОС: Mandriva 2008

Re: не проходит make

Сообщение Art666 »

Осёл писал(а): ↑
20.01.2008 22:34
qt3to4 для всех файлов запускал?

я запустил его для проекта а он модифицировал все файлы
Осёл писал(а): ↑
20.01.2008 22:34
-I/usr/lib/qt3//include
выдает, что ищутся либы далеко не от Qt4.

скорее всего так и есть а как от этого избавиться?
Спасибо сказали:
Аватара пользователя
Liksys
Сообщения: 2910

Re: не проходит make

Сообщение Liksys »

Вот видимо проект он как раз не модифицировал. Попробуй еще поискать в документации. Я честно говоря с портированием не сталкивался.
Спасибо сказали:
Аватара пользователя
Art666
Сообщения: 49
ОС: Mandriva 2008

Re: не проходит make

Сообщение Art666 »

ещё вот что мне видал ./configure

Код:

[art@ArtLocalHost trix-0.93]$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking for -p flag to install... yes checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking for stdlib.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking whether gcc needs -traditional... no checking for vprintf... yes checking for _doprnt... no checking for gethostname... yes checking for inet_ntoa... yes checking for socket... yes checking for strlcat... no checking if strlcat needs custom prototype... yes - in libkdefakes checking for strlcpy... no checking if strlcpy needs custom prototype... yes - in libkdefakes checking for main in -lutil... yes checking for main in -lcompat... no checking for crypt in -lcrypt... yes checking for socklen_t... socklen_t checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for inet_ntoa... (cached) yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for sys/types.h... (cached) yes checking for stdint.h... (cached) yes checking sys/bitypes.h usability... yes checking sys/bitypes.h presence... yes checking for sys/bitypes.h... yes checking for poll in -lpoll... no checking if res_init needs -lresolv... yes checking if res_init is available... yes checking for killpg in -lucb... no checking for int... yes checking size of int... 4 checking for short... yes checking size of short... 2 checking for long... yes checking size of long... 4 checking for char *... yes checking size of char *... 4 checking for dlopen in -ldl... yes checking for shl_unload in -ldld... no checking for size_t... yes checking size of size_t... 4 checking for unsigned long... yes checking size of unsigned long... 4 checking sizeof size_t == sizeof unsigned long... yes checking crt_externs.h usability... no checking crt_externs.h presence... no checking for crt_externs.h... no checking for _NSGetEnviron... no checking for vsnprintf... yes checking for snprintf... yes not using lib directory suffix checking for X... libraries /usr/lib, headers . checking for IceConnectionNumber in -lICE... yes checking for libXext... yes checking for KDE-Version... 3.0 checking for pthread_create in -lpthread... yes checking for extra includes... no checking for extra libs... no checking for libz... -lz checking for libpng... -lpng -lz -lm checking for libjpeg6b... no checking for libjpeg... -ljpeg checking for perl... /usr/bin/perl checking for Qt... libraries /usr/lib/qt3/lib, headers /usr/lib/qt3//include using -mt checking for moc... /usr/lib/qt4/bin/moc checking for uic... /usr/lib/qt4/bin/uic checking whether uic supports -L ... no checking whether uic supports -nounload ... no checking if Qt needs -ljpeg... no configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating gfx/Makefile config.status: creating tr/Makefile config.status: creating avatars/Makefile config.status: creating snd/Makefile config.status: creating src/config.h config.status: src/config.h is unchanged config.status: executing depfiles commands
Спасибо сказали:
Аватара пользователя
Liksys
Сообщения: 2910

Re: не проходит make

Сообщение Liksys »

checking for Qt... libraries /usr/lib/qt3/lib, headers /usr/lib/qt3//include using -mt
Видимо, сначала придется скрипты конфигурации править. А потом уже все остальное. Я бы вообще в установочных и конфигурационных файлах поискал что-нить по регекспу "qt3"
Спасибо сказали:
Аватара пользователя
Art666
Сообщения: 49
ОС: Mandriva 2008

Re: не проходит make

Сообщение Art666 »

а в каких конкретно файлах мне искать, там их много :wacko: и большого обёма
Спасибо сказали:
Аватара пользователя
Liksys
Сообщения: 2910

Re: не проходит make

Сообщение Liksys »

google: qt4 qt3 pro porting
Спасибо сказали: