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 » Developing U++ » U++ Developers corner » Compile error on Fedora 25 x86_64 (abs redefinition and include that goes wrong?)
icon4.gif  Compile error on Fedora 25 x86_64 [message #47153] Thu, 22 December 2016 18:47 Go to previous message
amrein is currently offline  amrein
Messages: 278
Registered: August 2008
Location: France
Experienced Member
Hi

When I compile upp from source in Fedora 25 x86_64, I have several issues:

In upp-x11-src-9251/uppsrc/Core/Core.h
* Those two methods are refined (according to the compiler) and the compiler will stop with errors:
- inline UPP::int64 abs(UPP::int64 x)
- inline double abs(double x)

In upp-x11-src-9251/uppsrc/CtrlCore/GtkDrawText.cpp
* The included file "ftoutln.h" is not the one from Fedora default freetype include directory and the compiler complains about duplicate definitions then stop with errors.
- #include <plugin/FT_fontsys/ftoutln.h>

In upp-x11-src-9251/upp.spec (my own file)
* The mutithread compilation won't work because of missing objects files when compiling upp source with threads. The uppsrc/Makefile is not thread safe.
- make %{?_smp_mflags}

* We need to prevent rpmbuild to create debug package or it will fail
+ %define debug_package %{nil}

To conclude, all modifications are needed for the upp.spec file but for Core.h and GtkDrawText.cpp, I'm quite sure that you will find a better solution than just commenting those lines.

I uploaded patch.diff for you to find the files and lines I'm talking about.
Regards
  • Attachment: patch.diff
    (Size: 3.03KB, Downloaded 233 times)
 
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Are there any plans to convert U++ comments to format as DOXYGEN / JAVADOC?
Next Topic: Requirement Spellvariant -> new Feature for spelling
Goto Forum:
  


Current Time: Sat Apr 27 22:26:47 CEST 2024

Total time taken to generate the page: 0.02770 seconds