Error when compiling source code

Hello, I downloaded the latest sources from the repository and I tried to build them.
During this process, I encountered this error:

[ 58%] Linking CXX shared library _eeschema.kiface
…/common/libcommon.a(displlst.cpp.obj):displlst.cpp:(.text+0x10b4): riferimento non definito a “wxListCtrl::SortItems(int ( stdcall*)(long, long, long), long)”
collect2: error: ld returned 1 exit status

I’m using cygwin as shell and mingw-w64 as primary compiler.
All libraries are precompiled and downloaded from the cygwin server, I’m using wxWidgets 3.0.3.
I have to say that I also encountered some troubles when doing the configuration with cmake: for example, it did not find the OpenSSL, so I deleted the file FindOpenSSL.cmake from \CMakeModules directory. I do not know if there are some other files here that could cause the trouble.

Sincerely.

Not all compiling environments are supported on Windows. Try https://github.com/KiCad/kicad-winbuilder.

In general I guess there’s only little knowledge about compiling KiCad on Windows in this user forum. The kicad-developers mailing list may be better place.

1 Like

It seems that the wx headers you are building against don’t match the library you are linking to.

In commit 068b1d03 (July 2015) I fixed the signature for the compare function from long to wxIntPtr, which should use the appropriate type (long on 32 bit, long long on 64 bit). That it’s using long for the signature suggests that the wx headers believe to be on 32 bit.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.