Ethereum compilation error: Unknown iconization events problem
The error that is experiencing with 0.4.0rc1 in Ubuntu indicates that the Ethereum project is finding a problem during the compilation process, specifically related to the ui.cpp
file in the class’ cmainframe. The warning suggests that there may be a problem with the
wxiconizeeventobject.
Causes of the problem:
- Missing or incorrect header files : Theui.cpp
file of Ethereum uses the functions of the Windows API (Win32) for iconization, such as' seticonimage
anddestroying me. However, Ubuntu does not provide an Native Windows API equivalent. This can lead to missing or incorrect header files.
- Missing or corrupt library units : Ethereum's construction process is based on several libraries, includingWxwidgets
(a multiplatform gui tool kit). However, it is possible that these libraries are not correctly linked or installed in Ubuntu.
Solution and solutions:
- Manually install the Windows API headers : You can download the necessary headers for the [Community Developer of Microsoft] ( hardware/ dev/). Remove a directory, such as/USR/Include
, and add it to the inclusive route of your system.
- Installwxwidgets
with the Ubuntu Manager
package: You can use the following command in the terminal to install Wxwidgets:
Bash
SUDO APTO UPDATE
Sudo Apt Install Wxwidgets
- Configure the ethhereum construction process : Be sure to have updated yourcmake_build_type
to match the desired configuration (for example, version, purification). You can do this in the
Makefile.unix:
Makefile.unix
if ["$ cmake_build_type" = "release"]; so
Cmake_cxx_flags- = wl, -static-libgdi
others
Cmake_cxx_flags +=-wl, -static-libgdi
endif
- Link manually against thewxwidgets
: you can modify the cmake_linker
variable in the
Makefile.unixfile to manually specify the link indicators for the library 'WXWIDGETS
:
`Makefile.unix
Cmake_linker = $ (ld) -lwxgtk -3.0 -STATIC -Libgdi -Lgdi32
- Reconstruct Ethereum with the updated compilation process
: Once you have made the necessary changes in its' Makefile.unix, reconstruct Ethereum, reconstructing Ethereum using the following command:
`Bash
do -f makefile.unix
Additional tips:
- Make sure your Ubuntu installation is updated and compatible with the latest versions of the packages required by Ethereum.
- If you are experiencing problems during compilation or execution time, consider creating a new compilation environment to isolate the problem.
Following these steps and problem solving strategies, I should be able to solve the problem that causes the errorui.cpp` in 0.4.0rc1 in Ubuntu.
Lascia un commento