Skip to content

urshofer/ofxJSON

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ofxJSON
By Jeff Crouse
jefftimesten at gmail dot com
http://www.jeffcrouse.info


USING ofxJSON
============================================

1) add all of the files in ofxJSON/src and ofxJSON/lib/src to your project
2) add ofxJSON/lib/lib/[your platform]/libcurl.a to your project
3) add "../../../addons/ofxJSON/lib/include" to your Header Search Paths
	note: this assumes that you are using the typical layout, where your project
	is in [openFrameworks dir]/apps/*/myProject 
	and the ofxJSON addon is in [openFrameworks dir]/addons


RUNNING THE EXAMPLE
============================================

1) Move the example/ofxJSONExample to [openFrameworks dir]/apps/addonsExamples
2) if you are not using OSX, add all of the files in ofxJSONExample/src to a project and follow the steps in "USING ofxJSON"

COMPILING CURL
============================================

I have compiled CURL for Mac i386 and x_86_64. This is what I did:


	echo "download version 7.21.4"
	wget http://curl.haxx.se/download/curl-7.21.4.tar.gz
	tar -xvf curl-7.21.4.tar.gz
	cd curl-7.21.4
	
	echo "make the i386 version"
	mkdir -p build/i386
	env CFLAGS="-O -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386" LDFLAGS="-arch i386" ./configure --disable-dependency-tracking --prefix=`pwd`/build/i386
	make && make install
	
	echo "Make the x86_64 version"
	make clean
	mkdir -p build/x86_64
	env CFLAGS="-O -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch x86_64" LDFLAGS="-arch x86_64" ./configure --disable-dependency-tracking --prefix=`pwd`/build/x86_64
	make && make install
	
	echo "Make the Universal by lipo-ing the libs together"
	mkdir -p build/universal/lib
	lipo -create build/i386/lib/libcurl.a build/x86_64/lib/libcurl.a -output build/universal/lib/libcurl.a
	cp  -R build/i386/include build/universal
	

But this guy has some good looking instructions too:
http://www.kgarner.com/blog/archives/2009/08/27/build-libcurl-as-a-universal-binary/


For Ubuntu:

	echo "download version 7.21.4"
	wget http://curl.haxx.se/download/curl-7.21.4.tar.gz
	tar -xvf curl-7.21.4.tar.gz
	cd curl-7.21.4
	./configure --prefix=`pwd`/build
	make && make install


About

A wrapper for jsoncpp for openFrameworks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published