May 2012
M T W T F S S
« Jul «-»  
 123456
78910111213
14151617181920
21222324252627
28293031  

Leaving Chris World?

Why not bring back a souvenir?

Archives

Cmake-ing

18secsfoundpattern

I should probably take the time aside to say this.
I was able to take a simple .c file that had to include external
libs and things and configure it into a Xcode project with the cmake build system.
That means I'm now able to debug my project effectively in Xcode.
I thought it would take a lot longer but I'm glad it didn't.

I've got enough to worry about with this strange program output.
I seem to continually have an issue with my programs working... but
not quite well enough to be helpful. So I wind up with images
like the one you see above.

Basically, I'm processing a movie and the data you see is the location
of a pattern in the movie file that it's suppose to use to help track
the camera position. .. . Seems my program can't spot the pattern until
half way through the movie. And then it can't see it after that either
because the numbers aren't changing.

...When I saw this result I was debating whether or not the program had
actually worked....
I mean it proves that it has pulled of it's purpose at least once.

It's just that I need to find out why it's not spotting the pattern in
every frame.

Anyway, that aside I realize I'm aiming for 3 really big projects this year.
The Match Motion Blender Augmentation (this thing I'm working on now)
The realtime digital puppetry system and a proof of concept implementation of the
Construction Algorithm.

#
# Building a simple project that needs to include external libs
#
# Chris B Stones
# April 6, 2010
#
# Cmake build system
# 	http://www.cmake.org/cmake/help/documentation.html
# Function Documentation:
# 	http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:cmake_minimum_required

cmake_minimum_required (VERSION 2.8)
project (ctest)
set (Ctest_VERSION_MAJOR 1)
set (Ctest_VERSION_MINOR 0)

# Must ADD link directories BEFORE you add your target *shrug*

# Find Libaries (.a)'s
link_directories( /Users/admin/Desktop/ARtest/ar/lib )
link_directories( /Users/admin/Desktop/ARtest/ffmpeg/lib )

# Find Headers
include_directories( "/Users/admin/Desktop/ARtest/ar/include"
                     "/Users/admin/Desktop/ARtest/ffmpeg/include")

add_executable(test test.c)

# Must be after you define the executable
target_link_libraries(test   -lAR  -lARMulti  -lARgsub  -lARgsubUtil  -lARgsub_lite
                             -lARvideo -lz  -lbz2  -lavutil  -lswscale  -lavcodec  -lavformat)

2 comments to Cmake-ing

  • Jill Marie

    Hello!
    I stumbled across your You Tube videos while doing research for my History of Design class….I was amused immediately, then again I am one of those funny people who are easily amused!

    Thanks for the laughter…it was a nice break. I will continue to visit your You Tube video page!

    :) Jill

  • Выход - спамеров нужно отстреливать, потому что этот срач в комментариях превращается в откровенный бред.

You must be logged in to post a comment.