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

version.h file not found? #213

Closed
leiyong316 opened this issue Dec 2, 2014 · 16 comments
Closed

version.h file not found? #213

leiyong316 opened this issue Dec 2, 2014 · 16 comments

Comments

@leiyong316
Copy link

@jedisct1 hi , xcode 6.1 build error

@jedisct1
Copy link
Owner

jedisct1 commented Dec 2, 2014

Hi Leon,

How are you compiling this?

version.h is automatically created by the configure script.

@leiyong316
Copy link
Author

@jedisct1 use pod, libtoolize not found

leiyongdeMacBook-Pro:BLEMeshChat-master leiyong$ pod install
Analyzing dependencies

CocoaPods 0.35.0 is available.
To update use: gem install cocoapods

For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.

Fetching podspec for libsodium from Podspecs/libsodium.podspec.json
Downloading dependencies
Installing libsodium (1.0.0)
[!] /bin/bash
set -e
sh autogen.sh
sh ./configure

autogen.sh: line 13: libtoolize: command not found

@jedisct1
Copy link
Owner

jedisct1 commented Dec 2, 2014

Hi Leon,

Cocoapods is not a tested or supported way to use libsodium.

Bugs regarding the Cocoapods spec should be reported directly to its maintainer.

I'd have loved to take a look, but incidentally, Cocoapods is down. So is Rubygems, required to install it. What a great day :)

Neither autogen.sh nor libtoolize are required if you are using release tarballs.

That said, you can work around the libtoolize: command not found error by installing libtool:

$ brew install libtool

@DomT4
Copy link

DomT4 commented Dec 2, 2014

Rubygems is backed by DNSimple, and I suspect Cocoapods is too. DNSimple have been having some... issues all day thanks to a significant attack. They should be back up at some point. The status blog is here.

Small note on brew install libtool:

You'd need to change references in the files that reference libtool from libtoolize to glibtoolize as Brew prepends libtool with the g to avoid smashing into the OS X native utility, which despite sharing the name is a completely different tool to GNU's libtool, I believe.

@jedisct1
Copy link
Owner

jedisct1 commented Dec 2, 2014

Indeed, Apple shipping an incompatible libtool is pretty confusing.

But libsodium's autogen.sh script is looking for glibtoolize first.

@leiyong316
Copy link
Author

I found libtool in the system already exist。
If you do "brew install libtool" overrides the system libtool it?

leiyongdeMacBook-Pro:InterstitialExample leiyong$ which libtool
/usr/bin/libtool

@jedisct1
Copy link
Owner

jedisct1 commented Dec 2, 2014

The default libtool on OSX is not the one used on other operating systems.

brew install libtool will install the real one, without overriding the system one. It will use a different name.

Still, you don't need libtool if you are installing a release (from https://download.libsodium.org/ or https://github.com/jedisct1/libsodium/releases)

@DomT4
Copy link

DomT4 commented Dec 2, 2014

But libsodium's autogen.sh script is looking for glibtoolize first.

Cool. I presumed it must have been because I haven't needed to patch the autogen the few times I've built from the git directly. Neat.

If you do "brew install libtool" overrides the system libtool it?

Nope.

ls -1 /usr/local/opt/libtool/bin 
glibtool
glibtoolize

@DomT4
Copy link

DomT4 commented Dec 2, 2014

You can also install libsodium direct from Brew, as well. We ship it. If you need the HEAD build for any particular reason @leiyong316 just shout and I'll go write it into the formula.

@chrisballinger
Copy link

I modified the podspec for use in an iOS project of mine, seems to work well (including version.h): https://github.com/chrisballinger/BLEMeshChat/blob/master/Podspecs/libsodium.podspec.json

@jedisct1
Copy link
Owner

jedisct1 commented Dec 2, 2014

For iOS, you can also download a libsodium release and type dist-build/ios.sh.
Then add what's in the libsodium-ios directory to your project.

@leiyong316
Copy link
Author

Hi, Good morning to All Friends.

I try installed libtool success, But with new problem. in the autogen.sh line 14

leiyongdeMacBook-Pro:BLEMeshChat-master leiyong$ brew install libtool
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libtool-2.4.2.mavericks.bottle.3.tar.gz
######################################################################## 100.0%
==> Pouring libtool-2.4.2.mavericks.bottle.3.tar.gz
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
🍺 /usr/local/Cellar/libtool/2.4.2: 69 files, 2.5M

leiyongdeMacBook-Pro:BLEMeshChat-master leiyong$ pod install
Analyzing dependencies
Fetching podspec for libsodium from Podspecs/libsodium.podspec.json
Downloading dependencies
Using CocoaLumberjack (1.9.2)
Using FormatterKit (1.7.2)
Using IGIdenticon (0.2.1)
Using InAppSettingsKit (2.2.1)
Using JSQMessagesViewController (6.0.0)
Using JSQSystemSoundPlayer (2.0.0)
Using Mantle (1.5.1)
Using PureLayout (2.0.2)
Using YapDatabase (2.5.3)
Installing libsodium (1.0.0)
[!] /bin/bash
set -e
sh autogen.sh
sh ./configure

glibtoolize: putting auxiliary files in `.'.

glibtoolize: linking file `./ltmain.sh'

glibtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.

glibtoolize: linking file `m4/libtool.m4'

glibtoolize: linking file `m4/ltoptions.m4'

glibtoolize: linking file `m4/ltsugar.m4'

glibtoolize: linking file `m4/ltversion.m4'

glibtoolize: linking file `m4/lt~obsolete.m4'
autogen.sh: line 14: aclocal: command not found

@DomT4
Copy link

DomT4 commented Dec 3, 2014

autogen.sh: line 14: aclocal: command not found

aclocal is part of automake. Try brew install automake.

@chrisballinger
Copy link

@leiyong316 Oh lol, you're compiling BLEMeshChat? It's just a proof-of-concept at this point, please don't use it for anything serious. Try brew install autoconf automake. You should probably close this issue because it isn't an issue with libsodium.

@leiyong316
Copy link
Author

@chrisballinger yes, compiling BLEMeshChat

@leiyong316
Copy link
Author

thanks to all

Repository owner locked and limited conversation to collaborators Aug 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants