Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » upp 1875 + Ubuntu 9.10
upp 1875 + Ubuntu 9.10 [message #24590] Mon, 25 January 2010 11:09 Go to next message
zen10 is currently offline  zen10
Messages: 7
Registered: January 2010
Location: Russia
Promising Member

Hello.
I have a problem. I have Upp 1875 installed on Ubuntu 9.10. I do build example AddressBook. Upp creates an error message at a stage linking:
"In function 'AddressBook':"
"undefined reference to 'Upp::FileSel::FileSel()'"
"undefined reference to 'Upp::TabCtrl::Add(Upp::Ctrl&, char const *)'"
etc.
I understand that types and methods are not defined. I do not understand that calls an error. These are features of programming under Linux, or it is not customised Upp? I successful build this example under WinXP.
Re: upp 1875 + Ubuntu 9.10 [message #24591 is a reply to message #24590] Mon, 25 January 2010 11:13 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
zen10 wrote on Mon, 25 January 2010 05:09

Hello.
I have a problem. I have Upp 1875 installed on Ubuntu 9.10. I do build example AddressBook. Upp creates an error message at a stage linking:
"In function 'AddressBook':"
"undefined reference to 'Upp::FileSel::FileSel()'"
"undefined reference to 'Upp::TabCtrl::Add(Upp::Ctrl&, char const *)'"
etc.
I understand that types and methods are not defined. I do not understand that calls an error. These are features of programming under Linux, or it is not customised Upp? I successful build this example under WinXP.



I would say that the assembly of examples is broken.

Please check by clicking on CtrlLib in the package list. If the package is empty (no files listed in bottom left pane), then this is the most likely cause.

You can fix the issue by right-clicking "examples" and changing the assembly path chain to include existing uppsrc directory (where real CtrlLib package exists).

Mirek
Re: upp 1875 + Ubuntu 9.10 [message #24596 is a reply to message #24590] Mon, 25 January 2010 13:23 Go to previous messageGo to next message
zen10 is currently offline  zen10
Messages: 7
Registered: January 2010
Location: Russia
Promising Member

Excuse luzr. I have found as should be, having followed an example from a asssembly uppsrc. There files in CtrlLib are visible. But I don`t understand where changing the assembly path. CtrlLib without files in Assembly the example always turns out.
Re: upp 1875 + Ubuntu 9.10 [message #24597 is a reply to message #24590] Mon, 25 January 2010 13:32 Go to previous messageGo to next message
zen10 is currently offline  zen10
Messages: 7
Registered: January 2010
Location: Russia
Promising Member

I have troubleshot by folder CtrlLib copying in a folder Examples. But could not solve it by means of customisations.
Re: upp 1875 + Ubuntu 9.10 [message #24599 is a reply to message #24597] Mon, 25 January 2010 13:50 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Please check "Assembly setup" here:

http://www.ultimatepp.org/app$ide$ConfiguringPackagesAssembl ies$en-us.html

Still, "examples" should work out of box. Somebody should check that...

Mirek
Re: upp 1875 + Ubuntu 9.10 [message #24601 is a reply to message #24590] Mon, 25 January 2010 14:15 Go to previous messageGo to next message
zen10 is currently offline  zen10
Messages: 7
Registered: January 2010
Location: Russia
Promising Member

Thanks. I gathered Upp from source files. Probably problem in it.
Re: upp 1875 + Ubuntu 9.10 [message #24615 is a reply to message #24601] Mon, 25 January 2010 17:57 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
zen10 wrote on Mon, 25 January 2010 08:15

Thanks. I gathered Upp from source files. Probably problem in it.


Have you used

make install

?

I have just checked the script, it should have created correct examples assembly...

Mirek
Re: upp 1875 + Ubuntu 9.10 [message #24637 is a reply to message #24590] Tue, 26 January 2010 08:23 Go to previous messageGo to next message
zen10 is currently offline  zen10
Messages: 7
Registered: January 2010
Location: Russia
Promising Member

I use make install or gmake install. I don`t remember))) Now reinstall.
Re: upp 1875 + Ubuntu 9.10 [message #24643 is a reply to message #24590] Tue, 26 January 2010 10:56 Go to previous messageGo to next message
zen10 is currently offline  zen10
Messages: 7
Registered: January 2010
Location: Russia
Promising Member

I reinstall Upp. CtrlLib is correct. But AddressBook is not build. Error Message:
----- AddressBook ( GUI MAIN GCC DEBUG DEBUG_FULL BLITZ LINUX POSIX ) (10 / 10)
AddressBook.cpp
plugin/png: 3 file(s) built in (0:01.38), 460 msecs / file, duration = 3860 msecs, parallelization 100%
AddressBook: 1 file(s) built in (0:01.49), 1495 msecs / file, duration = 4201 msecs, parallelization 100%
Core: 48 file(s) built in (0:09.43), 196 msecs / file, duration = 15963 msecs, parallelization 97%
Linking...
/etc/Develop/Out/Core/GCC.Debug.Debug_full.Gui/$blitz.o: In function `CheckDll__(char const*, char const* const*, Upp::Vector<void*>&)':
/etc/Develop/upp-x11-src-1875/uppsrc/Core/Dli.cpp:164: warning: Using 'dlopen' in statically linked applications requires at runtime the sh
	ared libraries from the glibc version used for linking
/usr/lib/libglib-2.0.a(gutils.o): In function `g_get_any_init_do':
(.text+0xf89): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version 
	used for linking
/usr/lib/libglib-2.0.a(gutils.o): In function `g_get_any_init_do':
(.text+0xf7c): warning: Using 'setpwent' in statically linked applications requires at runtime the shared libraries from the glibc version 
	used for linking
/usr/lib/libglib-2.0.a(gutils.o): In function `g_get_any_init_do':
(.text+0xf94): warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version 
	used for linking
/usr/lib/libX11.a(GetDflt.o): In function `GetHomeDir':
(.text+0xa7): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version
	 used for linking
/usr/lib/libX11.a(GetDflt.o): In function `GetHomeDir':
(.text+0x102): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc versio
	n used for linking
/usr/lib/libX11.a(xim_trans.o): In function `_XimXTransSocketOpen':
(.text+0x66e): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc versi
	on used for linking
/usr/lib/libX11.a(xim_trans.o): In function `_XimXTransSocketUNIXConnect':
(.text+0xe1b): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc ver
	sion used for linking
/usr/lib/libX11.a(xim_trans.o): In function `_XimXTransSocketINETConnect':
(.text+0x22aa): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc ve
	rsion used for linking
/usr/lib/libgtk-x11-2.0.a(gtkentry.o): In function `gtk_entry_class_intern_init':
(.text+0x89ac): undefined reference to `g_icon_get_type'
/usr/lib/libgtk-x11-2.0.a(gtkicontheme.o): In function `icon_info_ensure_scale_and_pixbuf':
(.text+0x1729): undefined reference to `g_file_icon_get_type'
/usr/lib/libgtk-x11-2.0.a(gtkicontheme.o): In function `icon_info_ensure_scale_and_pixbuf':
(.text+0x180f): undefined reference to `g_file_icon_get_file'
/usr/lib/libgtk-x11-2.0.a(gtkicontheme.o): In function `icon_info_ensure_scale_and_pixbuf':
(.text+0x1837): undefined reference to `g_file_query_info'
/usr/lib/libgtk-x11-2.0.a(gtkicontheme.o): In function `icon_info_ensure_scale_and_pixbuf':
(.text+0x184d): undefined reference to `g_file_info_get_content_type'
etc.
Re: upp 1875 + Ubuntu 9.10 [message #24674 is a reply to message #24643] Tue, 26 January 2010 23:51 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
The most likely cause:

Check Build/Output mode... I believe that you are linking in 'All static'. Switch to 'Use shared libs'.

(Still, it is a bug -> it should be default after make install).

Mirek

[Updated on: Tue, 26 January 2010 23:53]

Report message to a moderator

Re: upp 1875 + Ubuntu 9.10 [message #24683 is a reply to message #24590] Wed, 27 January 2010 09:28 Go to previous message
zen10 is currently offline  zen10
Messages: 7
Registered: January 2010
Location: Russia
Promising Member

Big thanks. This option not change after reinstall. Now all successful build.
Previous Topic: Creating legacy OCX with UPP
Next Topic: header file problem
Goto Forum:
  


Current Time: Thu Mar 28 10:09:10 CET 2024

Total time taken to generate the page: 0.01803 seconds