­
I've opened this pull request with my changes:
https://github.com/sigrokproject/sigrok-util/pull/15

Now only the pythor error remains to be fixed. Maybe this post from  @sdbbs 
sdbbs is the key to the solution:

https://github.com/sdbbs/sigrok_pulseview_combine_merge/blob/master/2020_10_28_pulseview_build_log.md

Cheers,
Cedric

-------- Forwarded Message --------
Subject:     Re: [sigrok-devel] MSYS2 native build on Widows: ld.exe: Linking 
pulseview.exe cannot find -lpython3.10: No such file or directory
Date:     Sun, 14 May 2023 15:08:21 +0300
From:     Ruslan Migirov <trap...@gmail.com>
To: cedric.dew...@eclipso.eu

https://www.mail-archive.com/sigrok-devel@lists.sourceforge.net/msg03784.html

On 5/14/23 14:01, via sigrok-devel wrote:
> Python was not installed. installing python does not solve the problem:
> cedric@DESKTOP-LRFL83R MINGW64 ~/sigrok-util/cross-compile/msys2
> $ pacman -S python
> resolving dependencies...
> looking for conflicting packages...
>
> Packages (2) mpdecimal-2.5.1-1  python-3.11.2-1
>
> Total Download Size:    22.06 MiB
> Total Installed Size:  186.85 MiB
>
> :: Proceed with installation? [Y/n]
> :: Retrieving packages...
>   mpdecimal-2.5.1-1-x86_64                                             75.8 
> KiB   224 KiB/s 00:00 
> [########################################################] 100%
>   python-3.11.2-1-x86_64                                               22.0 
> MiB  3.21 MiB/s 00:07 
> [########################################################] 100%
>   Total (2/2)                                                          22.1 
> MiB  3.21 MiB/s 00:07 
> [########################################################] 100%
> (2/2) checking keys in keyring                                                
>                    [########################################################] 
> 100%
> (2/2) checking package integrity                                              
>                    [########################################################] 
> 100%
> (2/2) loading package files                                                   
>                    [########################################################] 
> 100%
> (2/2) checking for file conflicts                                             
>                    [########################################################] 
> 100%
> (2/2) checking available disk space                                           
>                    [########################################################] 
> 100%
> :: Processing package changes...
> (1/2) installing mpdecimal                                                    
>                    [########################################################] 
> 100%
> (2/2) installing python                                                       
>                    [########################################################] 
> 100%
>
> cedric@DESKTOP-LRFL83R MINGW64 ~/sigrok-util/cross-compile/msys2
> $ ./sigrok-native-msys2
> Cloning into 'libusb'...
> remote: Enumerating objects: 160, done.
> remote: Counting objects: 100% (160/160), done.
> [ 98%] Building CXX object 
> CMakeFiles/pulseview.dir/C_/msys64/mingw64/qt5-static/lib/cmake/Qt5Gui/Qt5Gui_QWebpPlugin_Import.cpp.obj
> [ 99%] Building CXX object 
> CMakeFiles/pulseview.dir/C_/msys64/mingw64/qt5-static/lib/cmake/Qt5Gui/Qt5Gui_QWindowsIntegrationPlugin_Import.cpp.obj
> [100%] Linking CXX executable pulseview.exe
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
>  cannot find -lpython3.10: No such file or directory
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
>  C:/msys64/mingw64/lib/libglib-2.0.dll.a(libglib_2_0_0_dll_d
> 001864.o):(.text+0x0): multiple definition of 
> `g_win32_get_system_data_dirs_for_module'; 
> C:/msys64/mingw64/lib\libglib-2.0.a(gutils.c.obj):(.text+0x2af0): first
> defined here
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
>  C:/msys64/mingw64/lib/libgobject-2.0.dll.a(libgobject_2_0_0
> _dll_d000013.o):(.text+0x0): multiple definition of 
> `g_binding_flags_get_type'; 
> C:/msys64/mingw64/lib\libgobject-2.0.a(gbinding.c.obj):(.text+0xf80): first 
> defin
> ed here
> collect2.exe: error: ld returned 1 exit status
> make[2]: *** [CMakeFiles/pulseview.dir/build.make:2150: pulseview.exe] Error 1
> make[1]: *** [CMakeFiles/Makefile2:103: CMakeFiles/pulseview.dir/all] Error 2
> make: *** [Makefile:156: all] Error 2
>
> Pulseview tries to link to python3.10, while 3.11.2-1 is installed.
>
> Kind regards,
> Cedric
>
>
> --- original message ---
> From: " "<cedric.dew...@eclipso.eu>
> Date: 14.05.2023 10:00:18
> To:<sigrok-devel@lists.sourceforge.net>
> Subject: MSYS2 native build on Widows: ld.exe: Linking pulseview.exe cannot 
> find     -lpython3.10: No such file or directory
>
> ­Hi All,
>
> I've been trying to build sigrok on Windows using MSYS2. i get this error
> at the end:
> [ 98%] Building CXX object 
> CMakeFiles/pulseview.dir/C_/msys64/mingw64/qt5-static/lib/cmake/Qt5Gui/Qt5Gui_QWebpPlugin_Import.cpp.obj
>
> [ 99%] Building CXX object 
> CMakeFiles/pulseview.dir/C_/msys64/mingw64/qt5-static/lib/cmake/Qt5Gui/Qt5Gui_QWindowsIntegrationPlugin_Import.cpp.obj
>
> [100%] Linking CXX executable pulseview.exe
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
> cannot find -lpython3.10: No such file or directory
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
> C:/msys64/mingw64/lib/libglib-2.0.dll.a(libglib_2_0_0_dll_d
> 001864.o):(.text+0x0): multiple definition of 
> `g_win32_get_system_data_dirs_for_module';
> C:/msys64/mingw64/lib\libglib-2.0.a(gutils.c.obj):(.text+0x2af0): first
> defined here
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
> C:/msys64/mingw64/lib/libglib-2.0.dll.a(libglib_2_0_0_dll_d
> 001850.o):(.text+0x0): multiple definition of `g_vfprintf'; 
> C:/msys64/mingw64/lib\libglib-2.0.a(gprintf.c.obj):(.text+0x240):
> first defined here
> <snip>
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
> C:/msys64/mingw64/lib/libgobject-2.0.dll.a(libgobject_2_0_0
> _dll_d000013.o):(.text+0x0): multiple definition of 
> `g_binding_flags_get_type';
> C:/msys64/mingw64/lib\libgobject-2.0.a(gbinding.c.obj):(.text+0xf80): first
> defin
> ed here
> collect2.exe: error: ld returned 1 exit status
> make[2]: *** [CMakeFiles/pulseview.dir/build.make:2150: pulseview.exe] Error
> 1
> make[1]: *** [CMakeFiles/Makefile2:103: CMakeFiles/pulseview.dir/all] Error
> 2
> make: *** [Makefile:156: all] Error 2
>
> cedric@DESKTOP-LRFL83R MINGW64 ~/sigrok-util/cross-compile/msys2
> $
>
> To get there, I did the following:
> clone the source:
> https://github.com/Harvie/libsigrok.git
>
> Get the build instructions:
> README ->
> http://sigrok.org/wiki/Building  ->
> http://sigrok.org/wiki/Windows  ->
>
> Native build using MSYS2
> http://sigrok.org/gitweb/?p=sigrok-util.git;a=blob;f=cross-compile/msys2/README
>
>
> Step1: First, you need to install MSYS2 (use the 64bit installer, 
> msys2-x86_64-*.exe):
>
> https://github.com/msys2/msys2-installer/releases/download/2023-03-18/msys2-x86_64-20230318.exe
>
>
> This is an obsolete link:
> https://github.com/msys2/msys2/wiki/MSYS2-installation
> It has moved to:
> https://www.msys2.org/wiki/MSYS2-installation/
>
> Step2: Then, perform the MSYS2 update procedure as per the documentation
> above.
> $ pacman -Syu # If needed (it was), close MSYS2, run it again from Start
> menu.
> $ pacman -Su
>
> Step3: Now close the shell and start an "MSYS2 MinGW 64-bit" or
> "MSYS2 MinGW 32-bit" shell (do NOT use the "MSYS2 MSYS"
> shell). All other steps will always have to be performed in an "MSYS2
> MinGW 64-bit" or "MSYS2 MinGW 32-bit" shell. (typo: 62 bit
> instead of 64 bit)
>
> Step4: Install the MSYS2 git package there:
> cedric@DESKTOP-LRFL83R MINGW64 ~
> $ pacman -Sy
> $ pacman -S git
>
> Step5: This is all that is needed to bootstrap your MSYS2 system. You can
> now use our sigrok-native-msys2 script to install all other required MSYS2
> packages:
> $ ./sigrok-native-msys2 prepare (This step fails, as the repository is not
> yet cloned)
>
> Step5: (works)
> $ git config --global url.https://github.com/.insteadOf git://github.com/
>
> $ git clone git://sigrok.org/sigrok-util
> $ cd sigrok-util/cross-compile/msys2/
> $ ./sigrok-native-msys2 prepare (download size 1231 MB)
>
> Step6: (fails, branch "" for libusb doesn't exists)
> $ ./sigrok-native-msys2
> Cloning into 'libusb'...
> warning: Could not find remote branch event-abstraction-v4 to clone.
> fatal: Remote branch event-abstraction-v4 not found in upstream origin 
> (master,
> type-mismatch WIP examples next and init_default_ctx are available)
>
> Step6: (fails, cannot find -lpython3.10)
> $ nano sigrok-native-msys2
> # libusb
> # $GIT_CLONE git://github.com/dickens/libusb -b event-abstraction-v4 #very
> old
> $GIT_CLONE git://github.com/libusb/libusb
> $ ./sigrok-native-msys2
>
> My system:
> OS Name    Microsoft Windows 10 Pro
> Version    10.0.19044 Build 19044
> Other OS Description     Not Available
> OS Manufacturer    Microsoft Corporation
> System Name    DESKTOP-LRFL83R
> System Manufacturer    Gigabyte Technology Co., Ltd.
> System Model    B550 AORUS PRO AC
> System Type    x64-based PC
> System SKU    Default string
> Processor    AMD Ryzen 5 5600X 6-Core Processor, 3701 Mhz, 6 Core(s), 12 
> Logical
> Processor(s)
> BIOS Version/Date    American Megatrends Inc. F12, 18/01/2021
> SMBIOS Version    3.3
> Embedded Controller Version    255.255
> BIOS Mode    UEFI
> BaseBoard Manufacturer    Gigabyte Technology Co., Ltd.
> BaseBoard Product    B550 AORUS PRO AC
> BaseBoard Version    Default string
> Platform Role    Desktop
> Secure Boot State    Off
> PCR7 Configuration    Binding Not Possible
> Windows Directory    C:\Windows
> System Directory    C:\Windows\system32
> Boot Device    \Device\HarddiskVolume3
> Locale    United States
> Hardware Abstraction Layer    Version = "10.0.19041.2728"
> User Name    DESKTOP-LRFL83R\cedric
> Time Zone    W. Europe Daylight Time
> Installed Physical Memory (RAM)    32,0 GB
> Total Physical Memory    31,9 GB
> Available Physical Memory    25,1 GB
> Total Virtual Memory    31,9 GB
> Available Virtual Memory    22,7 GB
> Page File Space    0 bytes
> Kernel DMA Protection    Off
> Virtualization-based security    Not enabled
> Device Encryption Support    Reasons for failed automatic device encryption:
> TPM is not usable, PCR7 binding is not supported, Hardware Security Test
> Interface failed and device is not Modern Standby, Un-allowed DMA capable
> bus/device(s) detected, TPM is not usable
> Hyper-V - VM Monitor Mode Extensions    Yes
> Hyper-V - Second Level Address Translation Extensions    Yes
> Hyper-V - Virtualization Enabled in Firmware    Yes
> Hyper-V - Data Execution Protection    Yes
>
> Kind regards,
> Cedric
> ________________________________________________________
> Your E-Mail. Your Cloud. Your Office. eclipso Mail & 
> Cloud.https://www.eclipso.eu
>
>
> ________________________________________________________
> Your E-Mail. Your Cloud. Your Office. eclipso Mail & 
> Cloud.https://www.eclipso.eu
>
>
>
>
> _______________________________________________
> sigrok-devel mailing list
> sigrok-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sigrok-devel




________________________________________________________
Your E-Mail. Your Cloud. Your Office. eclipso Mail & Cloud. 
https://www.eclipso.eu




_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to