ashutoshvarma / ashutoshvarma/libxpdf

Upgrade to XPDF 4.04

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
9
Forks
4
PR merge metrics
No merged PRs in 30d

Description

I've sucessfully compiled the v4.02 version
But when i try the same with the sources of v4.04 in "xpdf-4.04" on Windows 10 (Using Visual Studio 2022) i get an error when trying to compile
I've renamed the 4.02 version and folder names to 4.04 in the /CMakeLists.txt and "/libxpdf/.github/workflows/build.yml"
(also tried to place the 4.04 sources in the 4.02 folder)
```
[ 0%] Building CXX object CMakeFiles/xpdftest.dir/xpdf-4.04/xpdf/pdfinfo.cc.obj
pdfinfo.cc
[ 0%] Linking CXX executable xpdftest.exe
LINK: command "C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1433~1.316\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\xpdftest.dir\objects1.rsp /out:xpdftest.exe /implib:xpdftest.lib /pdb:\libxpdf\libxpdf-build\xpdftest.pdb /version:0.0 /machine:x64 /INCREMENTAL:NO /subsystem:console xpdf.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:xpdftest.exe.manifest" failed (exit code 1181) with the following output:
src\pyxpdf\xpdf.cpp(836): fatal error C1083: Cannot open include file: 'Form.h': No such file or directory
```

Any help appreciated !

Update: managed to compile 4.04 sources by changing cmake-config.txt and CMakeLists.txt files ( as compared to 4.02 )
but i don't know if this is a stable solution .....

Contributor guide

No contributing guide indexed for this repository

Research direction

Compare CMakeLists.txt and cmake-config.txt between the working 4.02 sources and the 4.04 sources, including the referenced libxpdf/.github/workflows/build.yml. Reproduce the Visual Studio 2022 build and inspect the xpdftest link failure involving src/pyxpdf/xpdf.cpp and the missing Form.h. Done means the 4.04 sources build successfully with a stable, documented configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.