Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting this error now "fatal error LNK1112" #1674

Closed
larslight11 opened this issue Dec 12, 2019 · 2 comments
Closed

Getting this error now "fatal error LNK1112" #1674

larslight11 opened this issue Dec 12, 2019 · 2 comments

Comments

@larslight11
Copy link

larslight11 commented Dec 12, 2019

So i built the files already for the nextcloud client with

cmake -G "Visual Studio 15 2017 Win64" .. -DCMAKE_INSTALL_PREFIX=C:\Nextcloud\desktop\build -DQTKEYCHAIN_INCLUDE_DIR=C:\qtkeychain-0.9.0\build\Debug  -DZLIB_INCLUDE_DIR=C:\zlib\include -DZLIB_LIBRARY=C:\zlib\lib\zlib.lib -DQT_PATH=C:\Qt\5.12.6\msvc2017_64\bin -DCMAKE_BUILD_TYPE=Debug -DNO_SHIBBOLETH=1

After that when i try to build it with

cmake --build . --config Debug --target nextcloud

Before it was giving me this error

  module machine type 'x86' conflicts with target machine type 'x64'

So then i realised that i built my QTKEYCHAIN with msvc2017 not msvc2017_64 , because i tried to build it with the 64bit (msvc2017_64) but it gave me this error

"C:\qtkeychain-0.8.0\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\qtkeychain-0.8.0\build\qt5keychain.vcxproj" (default target) (3) ->
(Link target) ->
  Qt5Cored.lib(Qt5Cored.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86'
[C:\qtkeychain-0.8.0\build\qt5keychain.vcxproj]

    0 Warning(s)
    1 Error(s)

Now im getting over 23 errors all of a sudden

"C:\Nextcloud\desktop\cmake\src\gui\nextcloud.vcxproj" (default target) (1) ->
"C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj" (default target) (3) ->
(ClCompile target) ->
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\wordlist.cpp(3): fatal error C1083: Cannot open include file: 'openssl/rand.h': No s
uch file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.cpp(1): fatal error C1083: Cannot open include file: 'openssl/r
sa.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\creds\httpcredentials.cpp(25): fatal error C1083: Cannot open include file: 'keychai
n.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]
  c:\nextcloud\desktop\src\libsync\clientsideencryption.h(13): fatal error C1083: Cannot open include file: 'openssl/ev
p.h': No such file or directory [C:\Nextcloud\desktop\cmake\src\libsync\nextcloudsync.vcxproj]

    3 Warning(s)
    23 Error(s)

Someone please guide on how to resolve this step by step ,it would be much appreciated as its my first C++ project and its taking so long just to build it.

@ifrh
Copy link

ifrh commented Dec 19, 2019

Compiler and after that the linker are searching for openssl headerfiles and library with correct bitness. So perhaps you haven't openssl -sources and library in your search path.
The same holds for QT-import libraray Qt5Cored.lib so that after build process the application can use Qt5Cored.dll.

@FlexW
Copy link

FlexW commented Apr 29, 2021

You can try this guide if you need help to compile the client https://cloud.nextcloud.com/s/ezLpDDHx24fHrKN

@FlexW FlexW closed this as completed Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants