Ask Your Question
0

cannot find the portableapps_package.vcxproj with wireshark3.6.8 / 4.1.0 tot win64

asked 2022-10-03 03:52:42 +0000

mikechen gravatar image

updated 2022-10-03 08:18:12 +0000

grahamb gravatar image

hi sir, I want to build version3.6.8 PortableApps. I could cmake/build the wireshark.exe. however, I cannot find the 'portableapps_package.vcxproj' at the build folder.

could you give me a hint what is missing?

thanks

I already follow the instructions to install PortableApps. nsis installed version and portable version. I could see the nsis_prep.vcxproj, but not the portableapps_package.vcxproj

reference doc

https://www.wireshark.org/docs/wsdg_h... 3.11.6. Windows: PortableApps .paf.exe Package

msbuild /m /p:Configuration=RelWithDebInfo wireshark_nsis_prep.vcxproj

msbuild /m /p:Configuration=RelWithDebInfo portableapps_package.vcxproj

C:\Development\totbuild64>cmake -G "Visual Studio 16 2019" -DUSE_qt6=OFF -A x64 ..\wireshark_tot
-- Selecting Windows SDK version 10.0.20348.0 to target Windows 10.0.19042.
-- Generating build using CMake 3.20.21032501-MSVC_2
-- Using "Visual Studio 16 2019" generator (multi-config)
-- LTO/IPO is not enabled
-- Using 3rd party repository
-- Building for win64 and CPU target amd64
Working in C:\Development\wireshark-win64-libs
Current library manifest found. Skipping download.
-- V: 4.1.0, MaV: 4, MiV: 1, PL: 0, EV: .
-- Linker flags: /LARGEADDRESSAWARE /MANIFEST:NO /INCREMENTAL:NO /RELEASE /guard:cf
CMake Warning at CMakeLists.txt:1198 (message):
  Support for QT5_BASE_DIR will be removed in a future release.

OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
2022-10-03T11:39:01.017+08:00 [main] WARN FilenoUtil : Native subprocess control requires open access to the JDK IO subsystem
Pass '--add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED' to enable.
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
2022-10-03T11:39:02.968+08:00 [main] WARN FilenoUtil : Native subprocess control requires open access to the JDK IO subsystem
Pass '--add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED' to enable.
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
2022-10-03T11:39:04.953+08:00 [main] WARN FilenoUtil : Native subprocess control requires open access to the JDK IO subsystem
Pass '--add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED' to enable.
-- C-Flags:  /MP /diagnostics:caret /Zo /utf-8 /guard:cf /w34295 /w34100 /w34189 /wd4200 /DWIN32 /D_WINDOWS /W3
-- CXX-Flags:  /MP /diagnostics:caret /Zo /utf-8 /guard:cf /w34295 /w34100 /w34189 /wd4200 /DWIN32 /D_WINDOWS /W3 /GR /EHsc
-- Warnings as errors enabled: /WX
-- The following OPTIONAL packages have been found:

 * Git
 * GMODULE2
 * Perl
 * LIBSSH (required version >= 0.6), Library for implementing SSH clients, <https://www.libssh.org/>
   extcap remote SSH interfaces (sshdump, ciscodump, wifidump)
 * PCAP
 * AIRPCAP
 * Qt5Network (required version >= 5.15.2)
 * Qt5Multimedia
 * MaxMindDB, C library for the MaxMind DB file format, <https://github.com/maxmind/libmaxminddb>
   Support for GeoIP lookup
 * SMI, Library to access SMI management information, <https://www.ibr.cs.tu-bs.de/projects/libsmi/>
   Support MIB and PIB parsing and OID ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-10-03 05:20:58 +0000

Chuckc gravatar image

7120: CMake: Update WiX and PortableApps target names.

Rename the wix_package target to wireshark_wix and the portableapps_package target to wireshark_portableapps.

The log attached to this Gitlab job show it being built with the new name:
https://gitlab.com/wireshark/wireshar...

$ msbuild /verbosity:minimal wireshark_portableapps.vcxproj
Microsoft (R) Build Engine version 17.2.1+52cd2da31 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
edit flag offensive delete link more

Comments

Chuckc gravatar imageChuckc ( 2022-10-03 16:30:34 +0000 )edit

thanks, also found the problem that missing portableapps_package.vcxproj

// Doesn't generate Portable vcxproj becuase it cannot find the portableApps platform(generator, installer)
C:\Development\wireshark\CMakeLists.txt
if(PORTABLEAPPS_LAUNCHER_GENERATOR_EXECUTABLE AND PORTABLEAPPS_INSTALLER_EXECUTABLE)
   ADD_PORTABLEAPPS_PACKAGE_TARGET()
endif()

C:\Development\wireshark\cmake\modules\FindPortableApps.cmake
# Find PortableApps.comLauncherGenerator
find_program(PORTABLEAPPS_LAUNCHER_GENERATOR_EXECUTABLE PortableApps.comLauncherGenerator
    PATH
        "C:/PortableApps/PortableApps.comLauncher"
        "$ENV{USERPROFILE}/PortableApps/PortableApps.comLauncher"
    DOC "Path to the PortableApps.comLauncherGenerator utility."
)

// Find PortableApps.comInstaller
find_program(PORTABLEAPPS_INSTALLER_EXECUTABLE PortableApps.comInstaller
    PATH
        "C:/PortableApps/PortableApps.comInstaller"
        "$ENV{USERPROFILE}/PortableApps/PortableApps.comInstaller"
    DOC "Path to the PortableApps.comInstaller utility."
)


// compare with my installed portableapps appcompactor path
"C:/PortableApps/PortableApps.comLauncher"
change to 
"C:/PortableApps/PortableApps/PortableApps.comLauncher"

then Rename the wix_package target to wireshark_wix and the portableapps_package target to wireshark_portableapps.

mikechen gravatar imagemikechen ( 2022-10-05 06:29:45 +0000 )edit

This is from a clean install following the WSDG instructions which matches the first search path in the Cmake file. If you want them down a level (PortableApps) then they would need to be installed under the %USERPROFILE% directory.

C:\Development\wsbuild64_2022>echo %USERPROFILE%
C:\Users\xxxxxx

C:\Development\wsbuild64_2022>cd \PortableApps

C:\PortableApps>dir
 Volume in drive C has no label.
 Volume Serial Number is 104E-001B

 Directory of C:\PortableApps

10/03/2022  09:11 AM    \<dir\>          .
10/03/2022  09:11 AM    \<dir\>          ..
02/27/2016  04:00 PM               235 .nomedia
10/03/2022  08:22 AM    \<dir\>          PortableApps.com
10/03/2022  08:41 AM    \<dir\>          PortableApps.comInstaller
10/03/2022  08:41 AM    \<dir\>          PortableApps.comLauncher
10/03/2022  09:11 AM    \<dir\>          WiresharkPortable64
               1 File(s)            235 bytes
               6 Dir(s)   8,446,672,896 bytes free
Chuckc gravatar imageChuckc ( 2022-10-05 15:04:57 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2022-10-03 03:52:42 +0000

Seen: 215 times

Last updated: Oct 05 '22