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

Build is failing... #34

Closed
cbwilliamsnh opened this issue May 9, 2018 · 7 comments
Closed

Build is failing... #34

cbwilliamsnh opened this issue May 9, 2018 · 7 comments

Comments

@cbwilliamsnh
Copy link

I'm in a situation where I can't download and run the xca tool as my company's security policy only allows App Store and Identified apps to run on my MacBook.

Therefore, I've cloned the repo and I'm trying to build my own copy of XCA. First, there is not a 'configure' file that is executable in the clone, but there is a configure.w32 file that is executable so I'm trying to run that one.

Here is the output from my attempt at running ./configure.w32:

$ ./configure.w32
found /usr/local/Cellar/openssl/1.0.2o_1/lib/libcrypto.a
NOT found /usr/local/Cellar/openssl/1.0.2o_1/lib/libltdl.a
found /usr/local/Cellar/openssl/1.0.2o_1/include/openssl/opensslv.h
NOT found /usr/local/Cellar/openssl/1.0.2o_1/include/ltdl.h
QT: '/usr/local/Cellar/qt@4/4.8.7_3'

How can I resolve this issue?

Chuck

@cbwilliamsnh
Copy link
Author

well it just dawned on me that the '.w32' is to build a Windows 32-bit version. So, back to the original question as to why the configure script is missing from the repo?

Chuck

@chris2511
Copy link
Owner

The cloned repository does not have the "configure" file. It is generated by the GNU autotools from configure.ac. The https://github.com/chris2511/xca/releases/download/RELEASE.2.0.1/xca-2.0.1.tar.gz file comes with a "configure" file. You also need OpenSSL, QT5 and libltdl.

I need to update the "INSTALL.mac" file, it is outdated and not very helpful :-/

This is what you need to do:
(Sorry, I'm a unix console guy, so this is console centric :-)

  1. create a basedir: "xca"
  2. unpack xca-2.0.1.tar.gz there
  3. download Qt5 and install it in your home directory.
  4. open "misc/build-mac.sh" in the xca-2.0.1 directory, check the QTDIR variable there and adapt it.
  5. go to the "xca" basedir, create an empty file called "build-libs" and call "xca-2.0.1/misc/build-mac.sh"
  6. This will download and compile openssl and libltdl and then compile xca
    Good luck

@cbwilliamsnh
Copy link
Author

cbwilliamsnh commented May 9, 2018 via email

@cbwilliamsnh
Copy link
Author

cbwilliamsnh commented May 9, 2018 via email

@cbwilliamsnh
Copy link
Author

cbwilliamsnh commented May 10, 2018 via email

@chris2511
Copy link
Owner

  • ERROR: no file at "/usr/local/....." can be ignored
  • "error: The specified item could not be found in the keychain." Means that you don't possess my private code-signing key, which is fine for me :-)
    You may comment out the "codesign" line in the toplevel Makefile at line 160

After that everything should be fine.

@cbwilliamsnh
Copy link
Author

cbwilliamsnh commented May 10, 2018 via email

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

2 participants