Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help3003


This forum is provided to promote discussion amongst students enrolled in Graphics and Animation (CITS3003).
 
Options:
RSS cloud
Jump to:

Makefile problem for project

9 of 265 articles shown, currently no other people reading this forum.
photo
From: ANONYMOUS
Date: Tue 7th Apr, 8:22pm
Summary: ironic
Actions: 
        Login-to-reply
Hi, I tried to run Makefile in the project but it does not work:

g++ -o scene-start scene-start.cpp InitShader.o bitmap.o -I ../../include -I 
../../assimp-3.1.1/include/ -w -fpermissive -O3 -g -lglut -lGL -lXmu -lX11 -lm -Wl,-
rpath,. -lGLEW -Wl,-rpath,. -L. -lassimp
/usr/bin/ld: cannot find -lassimp
collect2: error: ld returned 1 exit status
Makefile:31: recipe for target 'scene-start' failed
make: *** [scene-start] Error 1
  
Does anyone know how to fix it? Thanks!

Makefile problem for project

photo
From: Matthew C.
Date: Tue 7th Apr, 8:29pm
Actions: 
        Login-to-reply
This error means that g++ can not find the assimp libary file, are you sure that libassimp.so.3.1.1 is in the folder next to the Makefile?

Makefile problem for project

photo
From: ANONYMOUS  O.P.
Date: Tue 7th Apr, 8:48pm
Summary: ironic
Actions: 
        Login-to-reply
"Matthew Chidlow"                               wrote:

> This error means that g++ can not find the assimp libary file, are you sure that libassimp.so.3.1.1 is in the folder next to the Makefile?
Yes, it is.

Makefile problem for project

photo
From: Matthew C.
Date: Tue 7th Apr, 8:59pm
Actions: 
        Login-to-reply
Next to the LINUX and MAC folders there is a file called compilation help, in it says you have to run setup-once first, have you done that? Note I had to do 'bash ./setup-once'

Makefile problem for project

photo
From: ANONYMOUS  O.P.
Date: Tue 7th Apr, 9:18pm
Actions: 
        Login-to-reply
Okay now, thanks.
However, whenever I type ./scene-start, it will render different pictures. How to render specific pictures?

Makefile problem for project

photo
From: Matthew C.
Date: Tue 7th Apr, 9:41pm
Actions: 
        Login-to-reply
For that, you want to look into the code of start-scene yourself, I would hazard a guess that somewhere there is a line where it uses rand() to randomly select an object to add.

Makefile problem for project

photo
From: Chong M.
Date: Thu 9th Apr, 8:28pm
Actions: 
        Login-to-reply
"Matthew Chidlow"                               wrote:

> Next to the LINUX and MAC folders there is a file called compilation help, in it says you have to run setup-once first, have you done that? Note I had to do 'bash ./setup-once'

Regarding to ./setup (or ./setup-once), when I tried to run the line in Ubuntu 18.04 terminal, it says "bash: ./setup: Permission denied". Can anyone please advice on this?

Makefile problem for project

photo
From: Matthew C.
Date: Thu 9th Apr, 8:49pm
Actions: 
        Login-to-reply
If that is the complete error, then you probably have to sudo it, which means to type the same command but write 'sudo' before it, like

sudo bash ./setup-once
or
sudo source ./setup

This will then ask for your password

Makefile problem for project

photo
From: Chong M.
Date: Fri 10th Apr, 9:34am
Actions: 
        Login-to-reply
It worked! Thanks a lot Matthew :)
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  8:27am May 24 2020