Board.KolibriOS.org

Official KolibriOS board
It is currently Tue Nov 24, 2020 6:39 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: mgtk
PostPosted: Sat Oct 24, 2020 7:29 pm 
Online

Joined: Mon Sep 07, 2020 7:09 pm
Posts: 240
Исходники, и .h
download/file.php?id=219
.h в "maxi_c_dev"
viewtopic.php?f=45&t=565&p=44449#p44449
.h НА SVN (Но, почему то без исходников и .a)
http://websvn.kolibrios.org/listing.php ... caa19b15f1

Темы о этой библиотеке я не нашел, создал.
Она же ведь под menuetlibc? А если взять готовый .a файл статической библиотеки, и прилинковать к проекту на newlibc?
UPD
Нет, ему нужен ИМЕННО menuetlibc:
Spoiler: Show
libmgtk.a(gapp.o):gapp.cpp:(.text+0x18b): undefined reference to `strdup'
libmgtk.a(gapp.o):gapp.cpp:(.text+0x1bb): undefined reference to `__menuet__set_bitfield_for_wanted_events'
libmgtk.a(gapp.o):gapp.cpp:(.text+0x1f7): undefined reference to `__menuet__window_redraw'
libmgtk.a(gapp.o):gapp.cpp:(.text+0x20b): undefined reference to `__menuet__window_redraw'
libmgtk.a(gapp.o):gapp.cpp:(.text+0x22a): undefined reference to `__menuet__wait_for_event'
libmgtk.a(gapp.o):gapp.cpp:(.text+0x236): undefined reference to `__menuet__delay100'
libmgtk.a(gapp.o):gapp.cpp:(.text+0x23b): undefined reference to `__menuet__check_for_event'
libmgtk.a(gapp.o):gapp.cpp:(.text+0x28a): undefined reference to `__menuet__getkey'
libmgtk.a(gapp.o):gapp.cpp:(.text+0x2a0): undefined reference to `__menuet__get_button_id'
libmgtk.a(gapp.o):gapp.cpp:(.text+0x3ad): undefined reference to `__menuet__define_window'
libmgtk.a(gapp.o):gapp.cpp:(.text+0x3d4): undefined reference to `__menuet__write_text'
libmgtk.a(gapp.o):gapp.cpp:(.text+0x3e9): undefined reference to `__menuet__delay100'
libmgtk.a(gtext.o):gtext.cpp:(.text+0x29): undefined reference to `strdup'
libmgtk.a(gtext.o):gtext.cpp:(.text+0x71): undefined reference to `strdup'
libmgtk.a(gtext.o):gtext.cpp:(.text+0x148): undefined reference to `__menuet__write_text'
libmgtk.a(ginput.o):ginput.cpp:(.text+0x379): undefined reference to `__dj_ctype_flags'
libmgtk.a(gtextbutton.o):gtextbutton.cpp:(.text+0x28): undefined reference to `strdup'
libmgtk.a(gtextbutton.o):gtextbutton.cpp:(.text+0x5c): undefined reference to `strdup'
libmgtk.a(gscroll.o):gscroll.cpp:(.text+0x84): undefined reference to `operator new(unsigned long)'
libmgtk.a(gscroll.o):gscroll.cpp:(.text+0xfb): undefined reference to `operator new(unsigned long)'
libmgtk.a(gscroll.o):gscroll.cpp:(.text+0x17b): undefined reference to `operator new(unsigned long)'
libmgtk.a(gscroll.o):gscroll.cpp:(.text+0x236): undefined reference to `operator new(unsigned long)'
libmgtk.a(gscroll.o):gscroll.cpp:(.text+0x2ad): undefined reference to `operator new(unsigned long)'
libmgtk.a(gscroll.o):gscroll.cpp:(.text+0x32d): more undefined references to `operator new(unsigned long)' follow
libmgtk.a(gscroll.o):gscroll.cpp:(.text+0x41a): undefined reference to `__libclog_printf'
libmgtk.a(gbutton.o):gbutton.cpp:(.text+0xf8): undefined reference to `__menuet__make_button'
libmgtk.a(gbutton.o):gbutton.cpp:(.text+0x146): undefined reference to `__menuet__make_button'
libmgtk.a(gbutton.o):gbutton.cpp:(.text+0x194): undefined reference to `__menuet__make_button'
libmgtk.a(gbutton.o):gbutton.cpp:(.text+0x1ff): undefined reference to `__menuet__make_button'
libmgtk.a(gbutton.o):gbutton.cpp:(.text+0x269): undefined reference to `__menuet__make_button'
libmgtk.a(gbutton.o):gbutton.cpp:(.text+0x31c): more undefined references to `__menuet__make_button' follow
libmgtk.a(gpen.o):gpen.cpp:(.text+0xcc): undefined reference to `__menuet__putpixel'
libmgtk.a(gpen.o):gpen.cpp:(.text+0x118): undefined reference to `__menuet__line'
libmgtk.a(gpen.o):gpen.cpp:(.text+0x167): undefined reference to `__menuet__bar'
libmgtk.a(gpen.o):gpen.cpp:(.text+0x1f1): undefined reference to `__menuet__write_text'
libmgtk.a(gpen.o):gpen.cpp:(.text+0x3b2): undefined reference to `__menuet__bar'
libmgtk.a(gpen.o):gpen.cpp:(.text+0x407): undefined reference to `__menuet__line'
libmgtk.a(gpen.o):gpen.cpp:(.text+0x44c): undefined reference to `__menuet__putimage'
libmgtk.a(gpen.o):gpen.cpp:(.text+0x492): undefined reference to `__menuet__putimage'
libmgtk.a(gbuttonallocator.o):gbuttonallocator.cpp:(.text+0x7): undefined reference to `operator new(unsigned long)'


И, возможно переделать библиотеку под newlib.


Перезалив библиотеки:


Attachments:
libmgtk.tar.gz [65.14 KiB]
Downloaded 12 times


Last edited by maxcodehack on Sun Oct 25, 2020 9:20 am, edited 1 time in total.
Top
   
 Post subject: Re: mgtk
PostPosted: Sun Oct 25, 2020 9:38 am 
Online

Joined: Mon Sep 07, 2020 7:09 pm
Posts: 240
Было несколько проблем:
файл gapp.cpp 155 строка, много каких то неизвестных параметров, сделал криво, 2 проблема:

Code:
gapp.cpp:114:22: error: cannot convert 'oskey_t' to 'int' in assignment

Code:
ev.type.key.keyId=get_key();

В Menuetlibc было так:
Code:
ev.type.key.keyId=__menuet__getkey();

Попробовал закомментировать пока эту строку:
Code:
gtext.cpp:10:17: error: 'strdup' was not declared in this scope

Подпало еще и это.
https://stackoverflow.com/questions/407 ... this-scope
Судя по этому, можно либо установить другой стандарт, либо самому реализовать. Установил другой стандарт.
Вроде как больше особых проблем не было.
При попытке собрать программу-пример:
Code:
libmgtk.a(gapp.o):gapp.cpp:(.text+0x356): undefined reference to `strdup'
libmgtk.a(gtext.o):gtext.cpp:(.text+0x5e): undefined reference to `strdup'
libmgtk.a(ginput.o):ginput.cpp:(.text+0x4e6): undefined reference to `isprint'
libmgtk.a(gtextbutton.o):gtextbutton.cpp:(.text+0x76): undefined reference to `strdup'
libmgtk.a(gscroll.o):gscroll.cpp:(.text+0x399): undefined reference to `__libclog_printf'

strdup это понятно, а вот что за isprint и __libclog_printf?
Выложу последние наработки
UPD лучше ключ gnu++11 а не gnu11


Attachments:
libmgtk_newlibc_not_working.zip [147.75 KiB]
Downloaded 11 times

_________________
How to use different compilers in KolibriOS
Old doc
http://diamond.kolibrios.org/hll/hll.htm
New doc
https://maxcodehack.github.io/hll-kos/
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited