Building VSP: Mac

339 views
Skip to first unread message

TScholz

unread,
Jan 12, 2012, 1:07:34 AM1/12/12
to OpenVSP
Hi all,

I'm an senior undergrad AE. I'm currently trying to install the new
version of VSP on my Mac, but having some problems building it
properly. I haven't had much experience working with Terminal or CMake
before, so I'm not sure I fully understand the build process.

I downloaded the compressed package from the website, and downloaded
all of the dependencies and built each successfully, as far as I can
tell. I pulled the src folder from the third package listed on the
website, but I get errors using CMake to try and create the build
directory. I believe the error is in the CMakeLists.txt files in each
folder, but I'm not sure how to change the listings in these files so
that CMake can identify the correct paths (the solution listed in the
README file). The specific error I get in CMake is the following:

Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
CMake Error at /Applications/CMake 2.8-7.app/Contents/share/cmake-2.8/
Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find FLTK (missing: FLTK_FLUID_EXECUTABLE)
Call Stack (most recent call first):
/Applications/CMake 2.8-7.app/Contents/share/cmake-2.8/Modules/
FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
/Applications/CMake 2.8-7.app/Contents/share/cmake-2.8/Modules/
FindFLTK.cmake:299 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
screens/CMakeLists.txt:3 (FIND_PACKAGE)


CMake Error: The following variables are used in this project, but
they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the
CMake files:
JPEG_INCLUDE_DIR (ADVANCED)
used as include directory in directory /Users/snospyder1/Desktop/
OpenVSP/src/load_jpg



Any help or direction would be greatly appreciated. I've used the
program at school before, saw the demonstrations at the ASM
conference, and I'm looking forward to having personal access to it!

Thanks

Rob McDonald

unread,
Jan 12, 2012, 9:12:19 AM1/12/12
to ope...@googlegroups.com
Taylor,

Thanks for diving right in.

I've had a few people have problems with the pre-compiled Mac
binaries. It gives a fairly cryptic error. Hopefully we can help
things out a bit.

These libraries should be installed in /usr/local/lib on your computer
(at least on mine). Check if they're there.

After you compile FLTK with the 'make' command, you need to install it
to your computer. Doing this requires administrator rights for the
specific command. The sudo command is used to elevate your
permissions on the command line. So, after 'make', then do 'sudo make
install' it will ask for the administrator password.

I believe I compiled/installed libjpeg with the standard './configure;
make; sudo make install' sequence. If you haven't done that final
step, it is the easiest way to proceed.

Please let us know if this helps or not.

Rob

Rob McDonald

unread,
Jan 12, 2012, 11:36:43 AM1/12/12
to ope...@googlegroups.com
Taylor,

It may be easier and more appropriate to install libjpeg from a
pre-compiled version.

http://ethan.tira-thompson.com/Mac_OS_X_Ports.html

Has an easy to install DMG for libjpeg.

Rob

TScholz

unread,
Jan 12, 2012, 11:58:20 AM1/12/12
to OpenVSP
Rob,

Thanks for the help, I did all of the above, and, after properly
installing fltk, the DMG you posted seemed to fix the problem. Ran
CMake once that was installed, and it generated everything; I can open
and work with VSP now.

It's not a big issue as far as I can tell, but I get a message in
Terminal when the program loads that it couldn't open the 'external
entity "VspPreferences.xml"'. I have that file in the same directory
as the executable, so I'm not sure why that would happen.

Thanks again,
Taylor

Rob McDonald

unread,
Jan 12, 2012, 12:12:37 PM1/12/12
to ope...@googlegroups.com
Right now, I think it depends on whether you double-click on vsp or if
you run it from the command line.

We haven't set up anything to point the working directory properly from Finder.

If you run from the command line, it should know where it is.

Rob

Reply all
Reply to author
Forward
0 new messages