Page 1 of 1

Help for wxPDFView builng on windows 10

Posted: Sat Oct 13, 2018 11:24 am
by dkaip
Hello. I am trying to follow step by step instructions at https://github.com/TcT2k/wxPDFView
to build wxPDFView, but i making something wrong, i don't know what is it.
A help please to a newbie to this.
Thank you.
Jim.
---------------------------------
mkdir pdfium
cd pdfium
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
gclient config --unmanaged --spec "solutions=[{'name':'pdfium','url':'https://pdfium.googlesource.com/pdfium. ... fesync_url':''}]"
gclient sync
cd pdfium
set PDFIUM_DIR=%cd%
gn gen out/Debug --args="pdf_enable_xfa=false pdf_enable_v8=true pdf_is_standalone=true is_component_build=true target_cpu=\"x86\" is_debug=true"
ninja -C out/Debug pdfium
----------------OK--------------------------
Download the wxWidgets 3.1.1 Windows ZIP
Unzip and open build/msw/wx_vc15.sln in Visual Studio
Set Solution Configuration to Debug, Solution Platform to Win32, click Build Solution
----------------OK--------------------------
System vars ..
PDFIUM_DIR=C:\pdfium\pdfium
WXWIDGETS_DIR=C:\wxWidgets-3.1.1
------------------OK------------------------
git clone https://github.com/rsippl/wxPDFView.git
cd wxPDFView\samples\simple
mkdir build
cd build
cmake .. -DPDFIUM_ROOT_DIR=%PDFIUM_DIR% -DwxWidgets_ROOT_DIR=%WXWIDGETS_DIR% -DwxWidgets_LIB_DIR=%WXWIDGETS_DIR%\lib\vc_lib -DwxWidgets_CONFIGURATION=mswud -DWITH_PDFIUM_SOURCE=true

=====Error================

-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.15063.
CMake Error at ../../CMakeLists.txt:19 (add_subdirectory):
The source directory

C:/wxPDFView/pdfium

does not contain a CMakeLists.txt file.

-- Configuring incomplete, errors occurred!
See also "C:/wxPDFView/samples/simple/build/CMakeFiles/CMakeOutput.log".

Re: Help for wxPDFView builng on windows 10

Posted: Sat Oct 20, 2018 7:41 am
by dkaip
My mistake, wrong repository.
We use only the newer https://github.com/TcT2k/wxPDFView.git.
Thank you
Jim.
C:\>git clone https://github.com/TcT2k/wxPDFView.git
Cloning into 'wxPDFView'...
remote: Enumerating objects: 1336, done.
remote: Total 1336 (delta 0), reused 0 (delta 0), pack-reused 1336
Receiving objects: 100% (1336/1336), 1019.52 KiB | 594.00 KiB/s, done.
Resolving deltas: 100% (1018/1018), done.

C:\>cd wxPDFView\samples\simple

C:\wxPDFView\samples\simple>mkdir build

C:\wxPDFView\samples\simple>cd build

C:\wxPDFView\samples\simple\build>cmake .. -DPDFIUM_ROOT_DIR=%PDFIUM_DIR% -DwxWidgets_ROOT_DIR=%WXWIDGETS_DIR% -DwxWidgets_LIB_DIR=%WXWIDGETS_DIR%\lib\vc_lib -DwxWidgets_CONFIGURATION=mswud -DWITH_PDFIUM_SOURCE=true
-- Building for: Visual Studio 15 2017
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.15063.
-- The C compiler identification is MSVC 19.15.26730.0
-- The CXX compiler identification is MSVC 19.15.26730.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found wxWidgets: C:/wxWidgets-3.1.1/lib/vc_lib/wxmsw31ud_core.lib;C:/wxWidgets-3.1.1/lib/vc_lib/wxbase31ud.lib;C:/wxWidgets-3.1.1/lib/vc_lib/wxmsw31ud_adv.lib;C:/wxWidgets-3.1.1/lib/vc_lib/wxpngd.lib;C:/wxWidgets-3.1.1/lib/vc_lib/wxtiffd.lib;C:/wxWidgets-3.1.1/lib/vc_lib/wxjpegd.lib;C:/wxWidgets-3.1.1/lib/vc_lib/wxzlibd.lib;C:/wxWidgets-3.1.1/lib/vc_lib/wxregexud.lib;C:/wxWidgets-3.1.1/lib/vc_lib/wxexpatd.lib;winmm;comctl32;oleacc;rpcrt4;shlwapi;version;wsock32 (found version "3.1.1")
-- Using PDFium source directory at C:/pdfium/pdfium
-- Found PDFIUM: C:/pdfium/pdfium
-- Configuring done
CMake Warning (dev) in CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) in ../../CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: C:/wxPDFView/samples/simple/build

C:\wxPDFView\samples\simple\build>